diff --git a/example.zs b/example.zs new file mode 100644 index 0000000..703fcb9 --- /dev/null +++ b/example.zs @@ -0,0 +1,24 @@ +import mods.mythicbotany.CTRunePosition; + +//Use 3 coals and 10K mana craft a diamond. +.addRecipe("test",,[,,],10000,0xfffff,0x00000); + +//Remove terra ingot recipe in infusion. +.removeRecipe(); + +//Remember import package! +var pos as CTRunePosition = new CTRunePosition(,1,1,false); //Dynamic get CTRunePosition. +var pos1 as CTRunePosition = CTRunePosition.getPosition(,-1,-1,false); //Static get CTRunePosition. +var pos2 as CTRunePosition = new CTRunePosition(,1,-1,true); //Dynamic get CTRunePosition,but snowball will consume. +var pos3 as CTRunePosition = CTRunePosition.getPosition(,-1,1,true); //Static get CTRunePosition,but snowball will consume. + +//Recipe need a array! +var posArray as CTRunePosition[] = [ + pos,pos1,pos2,pos3 +]; + +//Use 4 snowballs and a water bucket,the center item is coal to craft a snowblock. +.addRecipe("test1",,posArray,100000,100,[],[]); + +//Remove kvasir blood recipe. +.removeRecipe("mythicbotany:mythicbotany_rune_rituals/kvasir_blood"); \ No newline at end of file