one of the mods I'm playing with, the signs don't have a material assigned and crash your game if you place them down. I'm attempting to fix this with kubejs.
I've tried both:
BlockEvents.modification(event => {
event.modify('eternal_starlight:lunar_sign', block => {
block.material = Wood
})
})
and
BlockEvents.modification(event => {
event.modify('eternal_starlight:lunar_sign', block => {
block.material = 'Wood'
})
})
the first gave the error StartupEvents.js#18: Error in 'BlockEvents.modification': dev.latvian.mods.rhino.EcmaError: ReferenceError: "Wood" is not defined.
the second gave the error StartupEvents.js#18: Error in 'BlockEvents.modification': dev.latvian.mods.rhino.EvaluatorException: Java class "dev.latvian.mods.kubejs.block.BlockModificationKubeEvent$BlockModifications" has no public instance field or method named "material".
I just want to add the generic wood material to the signs but I can't find the documentation I need on the wiki, what do I need to do differently?