Started by
CjTheDumb
on
Topic category: Help with Minecraft modding (Java Edition)
Sorry, I couldn't find it anywhere so I'm asking here:
How to make a specific block be affected from an if statement on a Procedure.
Sorry again if it is somewhere obvious.
Edited by CjTheDumb on Sun, 10/03/2021 - 04:30
it depends on what you want to do with the block
I want to give a person a custom item when breaking a certain block.
I also want to give effect when they eat a certain food item.
(different procedures btw)
for block
player hits block Global Trigger
if block at X Y Z = BLOCK
spawn gem ITEM at X Y Z
for food
if it is custom food
when player eats food (on the food editor) give potion effect event target entity for TICKS type:EFFECT
if it is for normal food
player eats global trigger, if provided itemstack = FOOD
give potion effect etc etc etc
thank you