Started by
SirPotate
on
Topic category: Help with Minecraft modding (Java Edition)
Hello
Im trying to make a Trial spawner system in my mod like 1.21, bur with custom mobs, now I need help, how can I make it so when the mob(s) dies it changes the block to a diamond block or something like that.
make a procedure that gets the coordinates of the block when the mo dies then replaces the block with the diamond block:
when _ mob killed
if mob is _
then get coordinates of block and replace block at coordinates with diamond block
-PixelKid
I cant find a procedure part that identifies my specific mob, and i am putting multiple mobs, so the idea is that the player right-clicks on the trial block, multiple mobs spawn, and when they are all dead, the block switches to a block that gives loot.
There should be a block that says mob type in (minecraft:skeleton) format.
for a group of mobs either check to see if there are no mobs within a radius of 10 or so blocks before replacing the trial block with the other block. if you do that try using entity in range. Or give a tag to the mobs and check to see if all the mobs with the tag is gone before changing:
if no mobs with nbt tag of trialgame
then replace block with _ block.
or
if no mobs within 10 blocks of block
then replace block with _block
I hope I helped! -PixelKid