Topic category: Help with MCreator software
Would it be possible to check if a block was generated naturally in the world vs placed by the player?
I have a portal block similar to end portal frames which I would like to have a random chance of spawning with an eye inside. I have a procedure that runs [When block is added] to the world where I would like to randomly set if it has an eye. But I need to check if the player placed the portal, as I don't want it to be a method for duping eyes if the player just placed the portal block.
My only solution for this would be using the trigger [When block is placed by] and having it set a blockstate in the portal block to true when triggered. Then I'd just have to check that blockstate before running the previous procedure to randomly set an eye. However, I'm not sure how I would ensure that the [When block is placed by] procedure runs before the [When block is added] procedure?
Ugh actually after some testing, I assume this isn't working because the schematic that generates the portal blocks sets their blockstates too. And this might be overriding the [When block is added] trigger, since it seems to be working when I set the block using a command, but none of the structures I find have the eyes generated. Sad, but good to confirm it'll work if you're not using a schematic ig?