#Custom chest with chest open animation but my custom texture

18 messages · Page 1 of 1 (latest)

rich valley
#

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)
    })
  })
})
hidden mulchBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

elfin valve
#

not posible

#

the texture is hardcoded

rich valley
#

So it can only be a standard block texture i can't add the chest opening effect/texture

#

What about just making it able to be picked up with its contents in place

elfin valve
#

yeah
that might be possible, i think theres a thing in the loot table you can set to copy nbt

hearty quiver
#

my mod is able to do this

#

its on fabric

rich valley
#

Do you have any examples? Or could u point me in the right direction with with my script?

hearty quiver
#

no

#

you would need a mod for this

#

all the values are very hardcoded

#

there should be some other mod you can use

#

like some other like stone chest mod or smth

hearty quiver
#

what happened here?

#

why am i back