#Block Entity inventory size and position on gui

5 messages · Page 1 of 1 (latest)

devout ocean
#

I'm still trying to do a custom block entity with one or two slots but when i try to make a block entity with slot size (x,y) of 1x1 it return every time 9x1

StartupEvents.registry('block', event => {
    event.create('machine_block').soundType('netherite_block').blockEntity(entityInfo => {
        entityInfo.inventory(1,1) // but return like (9,1)
        entityInfo.rightClickOpensInventory()
    })
})

also i have try to search with probejs but i didn't find nothing , there is a way to set position of a slot or "manipulate slot offset" or something like that using BlockEntities?

quick riverBOT
#

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

devout ocean
#

also i think that was a kubejs bug due if i insert an item on other slots it crash..

proud crag
#

You can't make inventories smaller than 9x1, or 1x9, both cases are gonna work very badly

devout ocean