illusion armor on zombies/gamerule broke zombies with custom armor

Started by JPZamps on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
illusion armor on zombies/gamerule broke zombies with custom armor

I basically created a procedure that detects whenever a zombie spawns, and when that happens, it equips them with a random armor from my mod. However, I wanted this to be configurable, so I created a gamerule called "DoZombiesGetArmor." I set it up so that if the gamerule is set to "true," the procedure would work as intended, something like this: "IF get logic game rule DoZombiesGetArmor = true, do this". In any case, it should be functioning properly, but even when the gamerule is set to "false," the zombies still appear with the armor. However, they still catch fire and don't have the armor's protection, so it seems like a cosmetic armor/phantom armor/illusion because they don't actually have the armor, but it still visually appears on their bodies for some reason

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try putting the procedure to…
Wed, 06/21/2023 - 20:36

try putting the procedure to give them armor in "if(not(is provided world client-side))"

that should fix it.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
work on the first try man,…
Wed, 06/21/2023 - 23:46

work on the first try man, thank you!!