Help making a static plant instantly replace itself

Started by deeptwisty on

Topic category: Help with modding (Java Edition)

Last seen on 22:54, 24. Dec 2019
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help making a static plant instantly replace itself

I'm trying to create a custom static plant that instantly replaces itself with an oak sapling when placed but I'm at a dead end. Placing this procedure in the plant's Update Tick event is the only thing I can think to try:

[Procedure that removes the block at the provided coordinates and places an oak sapling in its place]

What am I doing wrong?

Last seen on 22:54, 24. Dec 2019
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I figured out…
Tue, 12/24/2019 - 22:56

Nevermind, I figured out that I can do it by just having the procedure above get called when a block is placed and only execute if the block is the one I want replaced