Custom Armor Ability

Started by WitPantix on

Topic category: Help with modding (Java Edition)

Last seen on 11:16, 3. Aug 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Armor Ability
How can I create this skill? Any mobs that approach receive a light poison effect
Last seen on 18:33, 25. Aug 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if armor in armor slot 0-3 …
Thu, 07/18/2024 - 03:48

if armor in armor slot 0-3 (0 for boots and 3 for helmet) is the armor you want then

   for each entity as entity iterator in square cube of however big you want the range to be

      if they(entity iterator) aren't the event entity then

           add poison to them (0 is the first level l, and 1 is the second ll and so on)

 

it could be better I think but it gets the job done

Last seen on 16:29, 23. Aug 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Copying this will result in:…
Thu, 07/18/2024 - 04:25

Copying this will result in:

checking for all armor on

if armor is on it checks for "entity iterator" in a 4 block area

inside this it makes sure that the iterator isnt the player and the iterator doesnt already have poison

now it gives the iterator poison
 

Last seen on 11:16, 3. Aug 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks
Thu, 07/18/2024 - 13:43

Thanks