I am attempting to make a custom block that works like a standard minecraft chest but uses my custom textures and effects
StartupEvents.registry('block', event => {
event.create('common_creeper_chest')
.property(BlockProperties.CHEST_TYPE)
.model('kubejs:block/common_creeper_chest')
.resistance(100)
.soundType('netherite_block')
.blockEntity(entityInfo => {
entityInfo.inventory(9, 10)
entityInfo.rightClickOpensInventory()
entityInfo.clientTick(20, 0, entity => {
entity.level.addParticle('minecraft:campfire_cozy_smoke', true, entity.x + 0.5, entity.y + 1.05, entity.z + 0.5, 0, 0.3, 0)
})
})
})