Started by
BeePlay
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! How do I make a block that opens GUI on right click ONLY when it powered by redstone?
EDITED: Can someone help with different thing?
I just created a new block with GUI, and made it give result in slot 2 if slot 0 and 1 has items that matches slots and if restone power more or equals one powering it. But when testing, it just ignores all redstone blocks but not the wooden pressure plate and only if player standing in it. How do I make it so it will need any redstone power from any powering block and to make it work without opening its GUI to check items?
Please answer as soon as possible!
Edited by BeePlay on Sun, 05/04/2025 - 07:46
in the block settings enable block entity, bind your gui to the block and set the size of inventory to the number of slots in the gui, in the triggers tab add a procedure for the trigger "on block right clicked", and this is what you need to do: https://ibb.co/Gf27GtYB
Thank you man, I got it!
I can't open the link but I got how to do what I need. Thanks!