Replacing a mined ore into another block?

Started by Tinnytoy4 on Tue, 07/27/2021 - 17:17

Topic category: Help with modding (Java Edition)

Last seen on 21:05, 27. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Replacing a mined ore into another block?
Tue, 07/27/2021 - 17:17

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

Last seen on 16:05, 17. Sep 2021
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Select your ore and go to…
Fri, 07/30/2021 - 13:49

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. The procedure

Last seen on 21:05, 27. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh wow, thanks. This was a…
Thu, 08/05/2021 - 17:55

Oh wow, thanks. This was a lot easier than I thought. Thanks a lot...

 

Last seen on 21:05, 27. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The only problem here is…
Thu, 08/05/2021 - 18:09

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?

 

 

Last seen on 16:05, 17. Sep 2021
Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When replacing the block to…
Mon, 08/16/2021 - 12:17

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

 

Last seen on 21:05, 27. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
  This is how I did it for…
Fri, 08/27/2021 - 21:06

Respawnableblock_procedure

 

This is how I did it for those who wants to know...

Thanks a lot danilkaD