How to make an armor stop working at 1 durability like elytra and can be recharged.

Started by TheGoldenDragon on

Topic category: Help with modding (Java Edition)

Last seen on 18:45, 4. Apr 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an armor stop working at 1 durability like elytra and can be recharged.

So i am trying to make iron man armor for my mod. Is there a way I can make it so the flight and other abilities stop working when it reaches 1 Dubai like elytra. Also, is it possible to make a machine that recharges it. Another thing is that is it possible to make an armor that you cant put on, but can be put on you with a special block. One more thing, I know I am asking alot, but another part of my mod is wolves claws. Is it possible to make it so when you have them equip in both hands, the both swing on left click, preferably taking turns. Like on first leftclick, it will swing in the right hand, but on the second click, in the left. Thanks

Last seen on 11:15, 5. Jan 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im so sorry to tell you but…
Wed, 03/11/2020 - 20:18

Im so sorry to tell you but nobody gives a damn about your post :/

Also im sorry i cant help you im not good at coding.

Last seen on 18:45, 4. Apr 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tou don't need to be rude…
Wed, 03/11/2020 - 23:27

Tou don't need to be rude. People may see it and have answers.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can help you…
Thu, 03/12/2020 - 07:02

I can help you,TheGoldenDragon

- There is no way to check for item durability at the moment, I think

- It is possible to make a block that recharges your armor. First, you need a custom block model. After that, you need to create a procedure that removes the old, damaged armor then add a new set of armor into provided entity inventory when they right clicked the block.

- If you want to make a armor that you can't wear, make a item with armor texture instead of armor. If you want a special block to equip your armor, you need to make a custom block model and create a set of armor that look the same as the armor that you can't equip then create a procedure, on block right clicked or when entity walk on the block, execute command in the name of provided entity then fill in the blank with /replaceitem command in minecraft, take a look my comments in this forum https://mcreator.net/comment/100387 

- If you wanted to fight with two hands with wolves claws, I'd suggest you to download better combat mod, which let you fight with two hands, here is the link to the mod page: https://www.curseforge.com/minecraft/mc-mods/better-combat-rebirth

 

Hope I answered all of your questions and have a good day! :)

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh and if you have anymore…
Thu, 03/12/2020 - 07:06

Oh and if you have anymore questions, feel free to ask! :)

 

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can create an item that…
Thu, 05/07/2020 - 07:30

you can create an item that has no creative tab and whenever your durability is 1 the item would be removed and the broken one would get added(if there is no way to do that,im so sorry i havent tested it)

 

 

Last seen on 15:36, 24. Mar 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ngl i think someone cared…
Sat, 09/16/2023 - 20:33

ngl i think someone cared about this guy's post