Started by
SuperMax64
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod for a machine that creates a portal when you insert a crystal into a slot and press a button. I need it so that while the machine is running the player cannot take the crystal from the slot. I tried a lot of things, for example, creating an nbt tag in a block and trying to make a condition on it, such as returning a logical value when the tag = true.https://imgur.com/a/GxoipKS
But it doesn't work! Please help!
Edited by SuperMax64 on Tue, 06/25/2024 - 17:21
is it possible that you are not applying the procedure to the slot?
no, I definitely apply it to the slot
but I found out that a global variable will work as a condition BUT in this case I can't use global variables