From 021c025a0efca0864bcca378ac54a6d441bef937 Mon Sep 17 00:00:00 2001 From: Biggest_Xuan <91203660+BiggestXuan@users.noreply.github.com> Date: Mon, 3 Oct 2022 21:34:58 +0800 Subject: [PATCH] example --- example.zs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 example.zs 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