How do I change attack damage of that item in that entity's hand

Started by zommer500 on

Topic category: General discussion

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I change attack damage of that item in that entity's hand

I'm trying to change attack damage of an item in that entity's hand. I don't know how the damage itemstack works, by the ways, I'm making a mob take damage when It attacks a another mob. So I need help. Can I get help. That will be nice.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just make it so when an…
Sun, 09/12/2021 - 06:18

just make it so when an entity is hit with the sword, it deals bonus damage. procedure would be like this:

TRIGGER: on entity hit 

if source entity has YOUR_SWORD in main hand

   do deal NUMBER_OF_DAMAGE to Event/Target Entity type: generic

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much. I can…
Sun, 09/12/2021 - 21:25

Thank you very much. I can make entities deal more damage with swords, axes and other tools. It took a lot of procedure blocks to code all the tools in the game. Thank you for your help.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you might want to add Custom…
Sun, 09/12/2021 - 21:39

you might want to add Custom Death Messages then if you want it to be a unique mod :)!

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help adding custom…
Sun, 09/12/2021 - 22:28

I need help adding custom death messages to my mod. So it will be easer to figure out that will be nice.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
go to localization create a…
Sun, 09/12/2021 - 23:52

go to localization create a file and name it death.attack.CUSTOM_NAME and on the bar next to it %s YOUR DEAD MESSAGE now on procedures Deal Custom Damage To Event/Target Entity death.attack.YOUR_DEATH_MESSAGE

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for that, I was…
Mon, 09/13/2021 - 00:17

Thank you for that, I was trying to figure that procedure block last time, but I did not know how to use it, so thank you.