I need help with making a trial block system

Started by SirPotate on

Topic category: Help with modding (Java Edition)

Last seen on 06:07, 13. Jul 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with making a trial block system

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.

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a procedure that gets…
Tue, 06/18/2024 - 15:51

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

Last seen on 06:07, 13. Jul 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I cant find a procedure part…
Tue, 06/18/2024 - 16:19

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.

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There should be a block that…
Tue, 06/18/2024 - 17:00

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