I'm trying to figure out how to name a block thats animated and made with geckojs, and addon for kubejs that allows use with geckolib, but even though i see no errors in the logs, the .displayName('') doesnt work to name it for some reason. My best bet is as im looking through the source code, it might be renaming it with the .defaultGeoModel(), or creating a separate item for the block that i can't rename, but I'm not sure as I don't particularly know how to read the source code well. I also don't know how i'd figure out a way around it if there is any. On a side note, I also tried to figure out how rotating blocks would work (like a furnace, facing only north, south, east, or west), but couldn't fully tell how off looking at the wiki and some of the support threads.
event.create('blacklightbulb')
.displayName('Black Light Bulb')
.glassSoundType()
.lightLevel(1)
.unbreakable()
.defaultTranslucent()
.box(5, 3, 5, 11, 16, 11)
.blockEntity((c =>{
c.serverTick(20, 0, (blockEntity) => {
if (global.tickingFunction) {
global.tickingFunction(blockEntity)
}
})
}))
event.create('lightbulbwire')
.displayName('Black Light Bulb Wire')
.soundType('wool')
.unbreakable()
.defaultTranslucent()
.box(7, 0, 7, 9, 16, 9)
event.create('geckojs:letter_a', 'animatable')
.displayName('A Key')
.glassSoundType()
.hardness(50)
.resistance(1200)
.tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:needs_diamond_tool')
.requiresTool(true)
.lightLevel(0.5)
.box(6, 0, 1, 12, 16, 15, true)
.animatableBlockEntity(info => {
info.addAnimation(state => state.setAndContinue(RawAnimation.begin().thenLoop("animation.model.letterfloat")))
})
.defaultGeoModel()
})```
This is what I have in startup_scripts. I used to have Keys A-Z, but after finding issues with all of them not being named properly, I decided to only have A for now to figure out how to do it properly before. a weird thing though is that is automatically named it "Letter a", but all the other ones were "Letter B" through z, with the last letter being capital. may not be relevant though
Either way, any input on how I may get it named properly, that would be of great help to me as I've been trying for around 5 hours with no results. Thank you for your time :)