How to do specific damage?

Started by Frost_200 on Mon, 09/07/2020 - 13:56

Topic category: Help with MCreator software

Last seen on 21:39, 23. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to do specific damage?
Mon, 09/07/2020 - 13:56

If you don't understand the title, I'll give you an example:
Having an armor that for each part adds a certain amount of damage to weapons. Is there a way to do this?
 

Last seen on 03:51, 8. Sep 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for your question, I…
Tue, 09/08/2020 - 03:51

Thanks for your question, I am having the same problem as you too, allow me to follow your topic. mapquest directions

Last seen on 11:45, 24. Oct 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could add a procedure…
Tue, 09/08/2020 - 07:19

You could add a procedure that on every global update tick checks what type of armour the player is wearing. If the player is wearing a certain type of armour and attacks something you can just use the deal damage block to deal extra damage to the target entity

Last seen on 11:05, 24. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can also use the Entity…
Mon, 10/12/2020 - 14:49

You can also use the Entity attacked global trigger and it will give you the player as the Event/target entity. Just check if the Event/target entity is holding the sword and wearing the armor, then use the deal damage block to deal extra damage to the Source entity.