#Alternative to ScreenJS for 6.0?

11 messages · Page 1 of 1 (latest)

neat plover
#

Is there anyway to achieve what ScreenJS does/did? I've read and seen that it doesn't work on kubejs 6...

amber walrusBOT
#

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

autumn nexus
#

lats working on a mod for this for newer mc versions

neat plover
#

oh thats what this was? #future-vision message

eager krakenBOT
#

kubejs 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)
        })
    })
})
strong creek
#

This exists already

#

Just update Kube

#

Oh wait

#

You meant screens 🤦

#

Yeah that's in the works

autumn nexus
#

yeah i was talking about this #off-topic message