Defence Stat

Started by Ro... on Sat, 05/22/2021 - 00:35

Topic category: Help with modding (Java Edition)

Last seen on 00:49, 30. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Defence Stat
Sat, 05/22/2021 - 00:35

How could i make a defence statistique, that can be upgraded, and will act like this: When the Player is Attacked, if the opponent have 200 of Damage, and the Player 400 Health, the opponant can 2 shot him, so The Damage stats of the player, is substracted to the Player's Defence points, and then, the number that it gives, is the number of HP the Player will lose, if it gives a negative number(mean the Defence is lower than Damage) like: 20-41=-21, do Damage + 21.

Last seen on 00:49, 30. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Anyone?!?
Sun, 05/23/2021 - 00:48

Anyone?!?

Last seen on 03:29, 26. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
not possible without code
Sun, 05/23/2021 - 02:38

not possible without code

Last seen on 14:21, 28. Jul 2021
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you could make a defense nbt…
Sat, 06/05/2021 - 13:24

you could make a defense nbt tag and before damage heal the player by the defense, if the number is negative set it to attack

Last seen on 00:49, 30. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank You to replying, hmm,…
Tue, 06/08/2021 - 00:03

Thank You to replying, hmm, how can i do that, can you explain me please!?

Last seen on 17:56, 28. Jul 2021
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah, that explanation…
Tue, 06/08/2021 - 23:04

Yeah, that explanation sounds a little bit confusing but it also sounds like it could work, could you explain better?