#Custom Box Storage

17 messages · Page 1 of 1 (latest)

bold copper
#

I want to set the storage space of the custom box to 1 slot, but graphically it still appears as multiple slots, and clicking the second slot causes a crash.

Additionally, blocks appear to be missing in areas where there is no model.

StartupEvents.registry('block', event => {
    event.create('clay_vessel')
        .displayName('Clay Vessel')
        .model("notreepunching:block/clay_large_vessel")
        .blockEntity(entityInfo => {
            entityInfo.inventory(1, 1)
            entityInfo.rightClickOpensInventory()
        });
});
desert swanBOT
#

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

hard quail
#

i dunno about the inventory, but for the rest do this:


StartupEvents.registry('block', event => {
  event.create('clay_vessel')
    .model("notreepunching:block/clay_large_vessel")
    .defaultCutout()
    .blockEntity(entityInfo => {
      entityInfo.inventory(1, 1)
      entityInfo.rightClickOpensInventory()
    })
})
onyx obsidian
#

Kjs Block entities can only have inventorys in 9xN form

bold copper
onyx obsidian
#

yes

#

idk if custom machinery can just make a block with a single slot, you could try that

hard quail
#

what about BEJS hmmm

onyx obsidian
#

that could work

bold copper
#

Thank you, I'll give it a try

#

why