Sky Resources 2

Sky Resources 2

3M Downloads

CraftTweaker support for items with NBT

KAfable opened this issue ยท 1 comments

commented

I'm trying to add a Life Infusion recipe for spawn eggs of passive mobs, however with the following I seem to get parsing errors where the syntax checker expects another closing parenthesis.

mods.skyresources.infusion.addRecipe(
<minecraft:spawn_egg>.withTag({EntityTag: {id: "minecraft:cow"}}), 
<harvestcraft:grainbaititem>, <harvestcraft:groundtrap>, 9);

I've tried several items without NBT tags and they seem to work perfectly fine, would it be possible to add support for items with NBT tags or is that already included and I'm derping somehow.

commented

Nevermind, turns out it was just an issue with how ZenScript parses the information. Declaring the cow egg as a variable worked instead.