Armor set help

Started by NobodyATL on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armor set help

So i'm having a small problem
Doesn't work
I tried making it give the player some potion effects once the full set was worn but it didn't work. could someone help me with this?

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure: TimerStart…
Thu, 10/07/2021 - 08:48

Procedure: TimerStart
Trigger: On player join

Set entity/player number NBT "ModnameTimer" to 0

---

Procedure: TimerTick
Trigger: Every player tick

Set "ModnameTimer" to (Get "ModnameTimer" + 1)
If (Get "ModnameTimer" MOD 50 = 0){ //every 50 ticks
Call 'CheckArmor' procedure
}

---

Procedure: CheckArmor
Trigger: External

If (Wearing set 1) {
apply effects
} else if (Wearing Set 2){
apply other effects
} else if ...

If you have issues with eg. Health Boost or Regen being too powerful, since the apply event can be stronger than a standard tick, then increase the length of the potion effect, and make TimerTick call less, say every 150 ticks (7.5 sec).

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Health boost gives empty…
Thu, 10/07/2021 - 10:29

Health boost gives empty hearts, here's a workaround to save any extra health

Create a local number variable called "HealthVar"

...
Set "HealthVar" to (current Health of entity)
Apply Health Boost potion effect
Set Health of entity to "HealthVar"
...

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
See armor slot ids here:
Thu, 10/07/2021 - 12:04

See armor slot ids here: