Cannot use Data Models in custom recipes
aaronhowser1 opened this issue ยท 8 comments
I'm trying to make a custom recipe with KubeJS, and I want to use a Self Aware Enderman Model in it.
KubeJS:
recipe.shaped('enderstorage:ender_chest',[
' H ',
' P ',
' C '
],{
P: 'enderstorage:ender_pouch',
C: 'minecraft:ender_chest',
H: Item.of('hostilenetworks:data_model', '{data_model:{data:1271,id:"hostilenetworks:enderman"}}')
})
As far as I can see, the data model doesn't include any special nbt that would be breaking this. My first assumption was that each model's nbt was actually just a pointer to the actual information, but no it's just right there. Any idea why this wouldn't be working?
If the nbt matches exactly the nbt you would see on the real item, it should be working as expected, which leads me to think there may be some sort of mismatch between the "real" item and the "ingredient" item.
Did you write the nbt manually or did you get it from the kjs hand command (or whatever copies your held item into kjs form)?
I did use /ftblibrary nbtedit item
to set the NBT, by manually pushing data
up until it says Self Aware (specifically, going up until I was 1 below Self Aware and then killing another one)
Well that's even more bizzare then. Can you use a mod which dumps nbt to tooltip to verify that the item shown in jei has the right nbt?
Also, check if the recipe works as intended. It might be a jei issue we're seeing
{Count:1b,id:"hostilenetworks:data_model",tag:{data_model:{data:1271,id:"hostilenetworks:enderman"}}}
Using https://www.curseforge.com/minecraft/mc-mods/item-nbt-viewer: