There was a support ticket closed about the same topic, I was trying to implement and came to this code;
const $CogWheelBlock = Java.loadClass('com.simibubi.create.content.kinetics.simpleRelays.CogWheelBlock')
const $CogWheelBlockItem = Java.loadClass('com.simibubi.create.content.kinetics.simpleRelays.CogwheelBlockItem')
const $CreateBlocks = Java.loadClass('com.simibubi.create.AllBlocks')
const $Properties = Java.loadClass('net.minecraft.world.level.block.state.BlockBehaviour$Properties')
const $IProperties = Java.loadClass('net.minecraft.world.item.Item$Properties')
const $BlockItem = Java.loadClass('net.minecraft.world.item.BlockItem')
let metalCogwheel
StartupEvents.registry('block', e => {
metalCogwheel = e.custom(
'bronze_cogwheel',
new $CogWheelBlock($Properties.copy($CreateBlocks.COGWHEEL.get()))
)
})```
however I am prompted with the error:
Error occurred while handling event 'StartupEvents.registry': java.lang.NullPointerException: Registry entry not present: create:cogwheel
which leads me to believe create is loading after kube?