KubeJS (Old)

KubeJS (Old)

3M Downloads

Custom block names incorrectly given

redgoblin88 opened this issue ยท 0 comments

commented

In the past to create a custom block, you would use the following script

onEvent('block.registry', event => {
event.create('a_thing').displayName('A block thingy');
})

In which, this block would have the name "A block thingy" and be refered to as "kubejs:a_thing" as the blocks technical name

however in 1.18.2 this exact same script is instead calling the block "a Thing" (and yes, in cammel case too), ignoring the ".displayName()"

modlist:
forge: 40.0.54
kubejs: 1802.5.1-build.340
architectury: 4.2.49
rhino: 1801.1.9-build.135