Started by
Tinnytoy4
on
Topic category: Help with Minecraft modding (Java Edition)
Hi everyone,
I want to create a mod that when you break an ore, that ore will be replaced with another block (in this case bedrock), and after a certain amount of time that block (bedrock) will return to the original ore again.
Can someone help me, or someone have an idea?
Kind regards
Select your ore and go to Triggers. Then select "When block destroyed by player" and name your procedure. Next, make your procedure like this (except the "comments"). After that, save both the ore and procedure.
Oh wow, thanks. This was a lot easier than I thought. Thanks a lot...
The only problem here is that I can't get rid of the block when I placed it. The block will spawn over and over. So how could I stop block spawning when breaking the bedrock? Any ideas?
When replacing the block to your custom one, check if the current block is still bedrock (or any other block you chose). If it is, replace with your custom ore
This is how I did it for those who wants to know...
Thanks a lot danilkaD