How do I make a block that shatters into nothing after falling, like suspicious sand and gravel do?

Started by Citrous241 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block that shatters into nothing after falling, like suspicious sand and gravel do?

I'm making a mod of the Iceologer, and I want to make it's falling ice attack. I already coded it as it spawns a new block above the player's head, and the block will fall and damage the player. But it stays there afterwards, which is not what I want. I don't want the player to obtain this block at all, and if they mine it it will drop nothing. But I want it to just disappear when hitting the ground like the 1.20 suspicious sand/gravel do. How would I do that?

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could make a procedure…
Mon, 01/22/2024 - 17:00

you could make a procedure that runs whenever a block is placed, and if the block is your custom ice block and there is a block below it, then replace the custom ice block with air.

 

if you want, i could send you either an image of the procedure or the procedure itself.