Custom recipe ingredients are stripped of NBT
aaronhowser1 opened this issue ยท 4 comments
Minecraft Version
1.19.2
KubeJS Version
kubejs-forge-1902.6.0-build.135
Rhino Version
rhino-forge-1902.2.2-build.264
Architectury Version
architectury-6.5.69-forge
Forge/Fabric Version
Forge 43.2.4
Describe your issue
ServerEvents.recipes(recipe => {
recipe.remove({output: 'enderstorage:ender_chest'})
recipe.shaped('enderstorage:ender_chest',[
' H ',
' P ',
' C '
],{
P: 'enderstorage:ender_pouch',
C: 'minecraft:ender_chest',
H: Item.of('hostilenetworks:prediction', '{data_model:{id:"hostilenetworks:enderman"}}')
}).stage('enderchest')
})
I thought this was the other mod's fault (Shadows-of-Fire/Hostile-Neural-Networks/issues/28) and made myself look like a FOOL
Swapping it out for another random item with NBT, that one's also broken. Looks like NBT is just stripped straight off the item.
Crash report/logs
No response
You need to add .weakNBT() after it, as all ingredient are ignoreNBT() by default in 1.19
Duplicate of #579