Official wiki explanation Zen Summoning Minecraft Game

Here are the examples (only 1.12.2) in wiki, link.

 Import Mods.zensumoning.SummoningDirector;

Import Mods.zensumMoning.SummoningatTempt;

Import Mods.zensumMoning.Summoninginfo;

Import Mods.zensumMoning.mobinfo;

SummoningDirector.addsummoninfo (// fixed format.

SummoningInfo.create () // Fixed format.

.Setcatalyst () // The catalyst for summoning is not filled.

.SetReagents ([, *12]) // The items used.

.Addmob (mobinfo.create () // fixed format.

.Setmob ("Minecraft: COW") // Calling creatures.

.Setcount (4) // The number of summoned.

.Setoffset (0,4,0) // The offset of the position after summoning.

.SetSpream (3,3,3) // The randomness after summoning.

.Setdata ({"health": 200, "Attributes": [{"name": "GENERIC.MAXHEALTH", "Base": 200}) // The data of summoning creatures (NBT), in the form of the original version.

Cure

.SetMutator (Function (Attempt as Summoningattempt) {// Try to summon events.

If (attempt.World.raining) {// Deciding whether the summoner's world is raining.

Attempt.success = false; // Prevent the summoning event.

Attempt.message = "Can't summon this in the rain!"; // Output the string for the attemptors.} Else {

Attempt.message = "Woohoo!"; // The judgment is the output of the string.

}

})

);