#Update blockEntity visually

5 messages · Page 1 of 1 (latest)

summer widget
#

Is there a way to change a blockEntity and update it to the client?

hidden scaffoldBOT
#

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

summer widget
#

I'm changing malum's itemstand data, but it doesn't show for the player

#
BlockEvents.leftClicked('malum:soulwood_item_stand', event => {
    setItem(event.block, 'minecraft:diamond', 32)
})

let setItem = (itemStand, id, count) => {
    if (id == null) {
        let itemData = itemStand.getEntityData().inventory.Items
        itemData = []
        itemStand.setEntityData(itemData)
    } else {
        let itemData = itemStand.getEntityData()
        itemData.inventory.Items = [{Count:count,Slot:0,id:id}]
        itemStand.setEntityData(itemData)
    }
}```
#

itemStand.entity.setChanged() didn't work