KubeJS (Old)

KubeJS (Old)

3M Downloads

Custom recipe ingredients are stripped of NBT

aaronhowser1 opened this issue ยท 4 comments

commented

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')

})

image

I thought this was the other mod's fault (Shadows-of-Fire/Hostile-Neural-Networks/issues/28) and made myself look like a FOOL

image
Swapping it out for another random item with NBT, that one's also broken. Looks like NBT is just stripped straight off the item.
image

Crash report/logs

No response

commented

You need to add .weakNBT() after it, as all ingredient are ignoreNBT() by default in 1.19

commented

Do I add this after .shaped() and before .stage() ?

commented

its per ingredient

commented

Duplicate of #579