Specific Item for if statement? [solved lol]

Started by CjTheDumb on

Topic category: Help with modding (Java Edition)

Last seen on 22:46, 14. Nov 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Specific Item for if statement? [solved lol]
Sun, 10/03/2021 - 04:30 (edited)

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
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it depends on what you want…
Sun, 10/03/2021 - 02:33

it depends on what you want to do with the block

Last seen on 22:46, 14. Nov 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to give a person a…
Sun, 10/03/2021 - 02:35

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.

Last seen on 22:46, 14. Nov 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(different procedures btw)
Sun, 10/03/2021 - 02:44

(different procedures btw)

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for block player hits block…
Sun, 10/03/2021 - 03:07

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

 

Last seen on 22:46, 14. Nov 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you
Sun, 10/03/2021 - 04:22

thank you