Creating a treasure block with generation.

Started by Syvvik on

Topic category: Help with modding (Java Edition)

Last seen on 04:03, 15. Jul 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Creating a treasure block with generation.
Thu, 06/08/2023 - 03:32 (edited)

I want to create a grass block where I can use an item that digs the block, dropping a treasure item, then getting replaced by a normal dirt block. I also want to include this in terrain generation and if possible, have it generate across a certain area each minecraft day. My inspiration are the treasure spots from Animal Crossing. Is there any way to achieve this using Mcreator? Thanks!
Edit: Perhaps something quite similar to how the suspicious sand works in the new 1.20 update. 

Edited by Syvvik on Thu, 06/08/2023 - 03:32
Last seen on 12:35, 18. Nov 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have solution but i cant…
Sat, 06/10/2023 - 10:29

i have solution but i cant send a picture

-NEW PRODECURE

-set global trigger to "BLOCK DESTROYED"

IF: provided blockstate is the same block as (YOUR BLOCK)

AND SOURCE ENTITYis sub type PLAYER

DO

spawn item\gem at x y z TREASURE ITEM

PLACE dirt block at x y z