How do I change properties of an armor to avoid debuffs?

Started by Tsurayamiku on Wed, 01/13/2021 - 22:54

Topic category: Help with modding (Java Edition)

Last seen on 21:06, 14. Feb 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I change properties of an armor to avoid debuffs?
Thu, 01/14/2021 - 00:13 (edited)

I'm creating a modpack in 1.16.4 based on DDSS (1.12.2). I download all the mods available for the version, but I'm having a problem with Avaritia Lite. The armor is very very strong and it's almost impossible your life decrease, but you still receive debuffs (wither effect, poison, instant harm, etc). So I decide create my own mod and make an armor with the same skin, but differente properties. How do I create an armor strong enough to don't receive damage from any mob and don't be affected by negative status?

Another problem is that I don't have the ability of fly. Isn't too important 'cause I have an angel ring, but will be cool have the armor more near of the original Avaritia.

 

UPDATE:

I test and using the command " /effect clear @p [effect] " I can remove negative effects, but how I check if the player is suffering a debuff?

Edited by Tsurayamiku on Thu, 01/14/2021 - 00:13
Last seen on 21:06, 14. Feb 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you ^^
Thu, 01/14/2021 - 22:33

Thank you ^^

Last seen on 18:04, 16. Jun 2021
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You're welcome, I'm glad I…
Fri, 01/15/2021 - 04:40

You're welcome, I'm glad I could help)

Last seen on 13:29, 13. Feb 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no need to check for debuff!…
Tue, 02/09/2021 - 14:21

no need to check for debuff!

execute command:/effect clear @p [BadEffect1]

execute command:/effect clear @p[BadEffect2]

...

clear every debuff.if there isn't it won't do anything.

keep in mind that it may make a lot of stuff like

succesfully cleared effect Nausea from SomePlayer

ERROR:SomePlayer does not have effect Poison

ERROR:SomePlayer does  not have effect Wither

...