Help with procedure because i have the stupid

Started by Snoopysabbr on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with procedure because i have the stupid

im trying to make a procedure where basically: when this modded effect expires, detect which what entity had it, and if it is a player kill them and spawn thing, if it is a zombie/villager/pillager etc. de-spawn them and spawn thing, and if other just kill them. ive been trying for a while to figure out how i would do this but im having trouble finding the procedure block id need.

 

any help is greatly appreciated, even a very minor suggestion or advice

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go to your effect triggers:ā€¦
Sun, 09/22/2024 - 12:50

Go to your effect triggers: when effect expires.

For code there's a block in the logic tab wich says: "Is entity of (sub)type= " 

 

If the type is player or server player 

 -execute as entity [/kill @s]

Else

 Despawn entity

 

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh thank you!
Mon, 09/23/2024 - 04:39

oh thank you!