#is this the right syntax to add NBT to an item ?
77 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
i dont think i understood
oh i have to put code inside
event.create('thermal:upgrade_augment_signalum').displayName("Signalum Integral Components").subtypes(item => {
item.nbt = { "AugmentData": { "Type": "Upgrade", "BaseMod": "5.0f" } }
})
```|
lets try this
NOEP
well idk how to give nbt to an item
@late chasm any clue ?
stop partying with people
<#1183236648104902716 message>
check this thread, also notice the JEI event that you need to take care of to properly add
@stuck perch
no, just take the subtype and the jei stuff
okay ty
.subtypes(originalStack => {
let myItemList = Utils.newList()
let myNewItem = originalStack.copy()
myNewItem.setNbt({AugmentData:{Type:'Upgrade', BaseMod:'5.0F'}})
myItemList.add(myNewItem)
return myItemList
})```
is this correct for the SetNBT ?
not sure about 5.0F, can you use NBT.f(5) ?
you need the jei stuff to show up there or you need to go to creative tab to grab it
okay
nope
show your JEI code
JEIEvents.hideItems(event => {
event.hide(Item.of("thermal:upgrade_augment_signalum").strongNBT())
})
JEIEvents.subtypes(event => {
event.useNBT("thermal:upgrade_augment_signalum")
})```
well the item doesnt have NBT anyways
event.create('thermal:upgrade_augment_signalum').displayName("Signalum Integral Components").subtypes(originalStack => {
let myItemList = Utils.newList()
let myNewItem = originalStack.copy()
myNewItem.setNbt({ AugmentData: { Type: 'Upgrade', BaseMod: NBT.f(5) } })
myItemList.add(myNewItem)
return myItemList
})
5.0 maybe
hmm
basicaly
/give @p thermal:upgrade_augment_signalum{AugmentData:{Type:'Upgrade',BaseMod:5.0f}}
this is the command im trying to adapt into a real item
you can use setNbt('{AugmentData:{Type:'Upgrade',BaseMod:5.0f}')
lemme see
is this at client_scripts?
yeah
AAAAARGH
im gonna cry
im just not going to add nbt
imma do it at recipe creation
yes, you would still need that, but this is to fix JEI and creative tab
or item would be raw
it is bad for people who use JEI
to grab items
not cheat, most for testing stuff
imagine if mojang didnt do that for potions hehe
you would have to type
all potions nbt
or craft it
lmao
so it generates with the nbt
i made a pickle that gives +100000% energy bonus

real
