How could I make my procedure only run when the ore is generated into the world?

Started by Litleck on Sat, 06/30/2018 - 21:19

Topic category: Advanced modding

Last seen on 14:19, 15. Sep 2018
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How could I make my procedure only run when the ore is generated into the world?
Sat, 06/30/2018 - 21:19

Hello,

I've been working on a procedure to place blocks surrounding my custom ore.  It works perfectly fine when its generated but when I place the ore down it'll run the procedure generating the surrounding blocks.  I do not want this to happen when a player places it.  I'm using the "When block added" event in the ore.

Thank you.

Last seen on 04:37, 26. Jun 2020
Joined May 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
A way of doing this is have…
Sun, 07/15/2018 - 03:08

A way of doing this is have an ore generator block that will generate the ore on an update tick, and turn itself into an ore block. This generator block would then generate the ore (and be creative mode only) and the blocks around the ore in the world, while the ore does nothing but what you want the ore itself to do.