Started by
Citrous241
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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.