#Make an item that is immune to explosions/fire, and can't despawn

23 messages · Page 1 of 1 (latest)

south junco
#

Basically title. Here's my code yet:
Pretty empty, just basic item making

    StartupEvents.registry('item', event => {
      event.create('key_card').translationKey('item.kubejs.key_card')
  })

By looking through the wiki about custom items, couldn't find anything about fire resistance, explosion resistance, or despawn time

barren flaxBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

south junco
#

bump

south junco
#

bump

south junco
#

bump

deft tinsel
#

You mean, like netherite tools immune to fire?

south junco
deft tinsel
#

Oh, yeah, it should be placed in server script

#

Fire resistance can be added through item registry but I don't find the despawn part and explosion immune part.

south junco
deft tinsel
south junco
#

just tnt explosions

deft tinsel
#

Then idk

#

Maybe it's blown away

south junco
#

No, it wasn't around sadly, it was just destroyed
Eehh, I just "fixed" it by making a pneumatic craft explosion crafting recipe with the item crafting itself during the explosion, that works I guess although this is an unsatisfying solution :/

deft tinsel
#

IDK. Maybe it's your pack adding something to an explosion.

#

perhaps pneumatic just considered everything having no valid recipe crafted into nothing in explosions

south junco
#

Well, nether start is immune to explosions, but maybe PnC accounts for that, and that's actually what might be happening
Anyway, thanks for the help, ig I'll stick with the recursive explosion recipe since this works lol

modern patioBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.

south junco
#

damn wrong one