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

Started by Litleck on

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How could I make my procedure only run when the ore is generated into the world?

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 19:18, 8. Aug 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.