#Can I replace a block with another forcefully if it gets converted, or cancel certain block conv.?

5 messages · Page 1 of 1 (latest)

queen python
#

I've been checking the command list. There is an event /startup_scripts/ BlockEvents.modification (link)
But that means to modify the block itself, correct?
Entity spawns can be checked. I was wondering if I can check whether a block gets transformed into another (of a list of blocks I list in the command) so I can basically if conditions are met reverse that transformation, aka. effectively cancel the conversion on certain conditions. I can cancel a mob spawn, after all.
Is there any way one could accomplish that? Do I need an addon?

Examplary situation: There is a bug in my modpack where Rich Soil gets transformed into either rooted dirt or Podzol when a spruce grows on top of it (or any other alike tree). I want to solve the issue via KubeJS, but dunno how exactly. Thanks in advance for any tips regarding this!

autumn notchBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

cloud zealot
#

no

queen python
#

Ok so I need to look elswhere for a solution?

cloud zealot
#

yeah