#Alternative to ScreenJS for 6.0?
11 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
lats working on a mod for this for newer mc versions
oh thats what this was? #future-vision message
I'm working on adding custom BlockEntities to KubeJS!
And custom screens/menus. It's still WIP, and only for 1.20.1, but you will be able to do stuff like this:
https://i.latvian.dev/pc/2023-09-11_22.18.55.mp4
Code used for demo:
StartupEvents.registry('block', event => {
event.create('machine_block').soundType('netherite_block').blockEntity(entityInfo => {
entityInfo.inventory(9, 4) // create inventory to 9x4 / 36 slots
entityInfo.rightClickOpensInventory() // Right-clicking on entity opens its inventory
entityInfo.clientTick(12, 0, entity => { // Tick on client side only. 12, 0 = every 12 ticks with offset 0 (tick % 12 == 0)
entity.level.addParticle('minecraft:campfire_cosy_smoke', true, entity.x + 0.5, entity.y + 1.05, entity.z + 0.5, 0, 0.3, 0)
})
entityInfo.serverTick(20, 0, entity => { // Tick on server side only
entity.inventory.insertItem('minecraft:apple', false)
})
})
})
This exists already
Just update Kube
Oh wait
You meant screens 🤦
Yeah that's in the works
yeah i was talking about this #off-topic message