Change Entity Despawn (Y/N) coding with a Procedure

Started by ninjawizard1234 on

Topic category: Help with modding (Java Edition)

Last seen on 17:03, 12. Feb 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Entity Despawn (Y/N) coding with a Procedure

im trying to solve this problem (without double the amount of entities on my mod) - i set all my animal entities to Despawn (box check) on the mcreator mob spawning tab (for obivous reasons since i got more than 100 animals on my mod and if i set them all to not Despwn it would lag as hell the game), however, i would like the mobs people capture and keep on their base to dont despawn somehow, so i was thinking if would not be possible to change this set, on each entity (by right clicking or wtv) with a Procedure?

 

right click (item in hand) -> target entity -> set to Not Despawn ?

 

thanks!

Last seen on 17:03, 12. Feb 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nobody? isnt this possible…
Fri, 12/01/2023 - 02:42

nobody? isnt this possible manually editing procedure codes?