#item registry does not work

16 messages · Page 1 of 1 (latest)

terse egret
#

im trying to registrate an item but i cant connect to my server.

woven riverBOT
#

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

pale citrus
#

means you dont have that item on either your server or client

#

most likely the client

terse egret
#

i have the script and textures in both

pale citrus
#

the server disagrees hmmm

#

did you restart the game after adding the scripts?

terse egret
#

yes

#

maybe the script is wrong

#

StartupEvents.registry('item', e => {
e.create('test_item_1')
.texture('kubejs:item/industrial_coin')
.maxStackSize(64)
.glow(true)
.displayName('Industrial Coin')
.rarity('epic')
})

#

just a test

#

since ive never done it before

#

uhh i guess its a client problem

#

does not work in single player

#

allthough everything is the same

languid cypressBOT
#

Please send your KubeJS startup log. It can be found at /minecraft/logs/kubejs/startup.log.
If you are on 1.18 or 1.16 it will be called startup.txt.
Please send the file directly, without links or snippets.