#How to add a screen to a block?

20 messages · Page 1 of 1 (latest)

cunning forum
#

Say for example I wanted to create a custom block that opens a crafting table screen on right click, is it possible within' KubeJS?

I apologize if this isn't the correct place to ask.

austere heartBOT
#

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

cunning forum
#

I know that sounds weird but I dislike how over detailed the mod's crafting block is.

shrewd void
#

afaik the only way to open the ui would be to use the java class loaders

#

because what you want to do is open another preexisting one, instead of adding one to a custom block

#

so you need to find the source of the ui in their github and use that somehow with java()

#

alternatively you could just change the model of the table with a resourcepack

cunning forum
#

But it may be the only real way to do it idk 🤷

shrewd void
#

you can change the hitbox model too i think

cunning forum
#

really?

shrewd void
#

wait no yeah you cant

#

you can change the shape of the model but not the hitbox

cunning forum
#

Hmm, well I can try and figure something out.

shrewd void
#

found the actual bit of code that opens the menu in java

#

dont think this can be done in kube though

cunning forum
#

well darn, sorry to waste your time then 😓

#

Thank you for your help though, you've been great :)

shrewd void
#

👍