Despawning Item Places Block

Started by Lyikos on

Topic category: Help with modding (Java Edition)

Last seen on 19:20, 9. Mar 2023
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Despawning Item Places Block

Hello everyone, MCreate has already been a massive help to my Modpack so I decided to ask this question because I want to know roughly how much work this takes. I plan to try making this mod eventually, but if it's going to take days to figure out I'd prefer to polish other parts of my pack first.

How do I achieve this type of behavior?

Example:

-Behavior is unique to the modded block.

-If the block is lying on the ground as item, 6000 ticks pass, game deletes item.

-I want the "game deletes item" even to trigger block placement at item location.

 

For example I toss a Granite Slab on the ground. When the slab item despawns, the game places a Granite Slab on the block the item was laying on.