How can I make a Mace-like item

Started by LOLBroSave on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a Mace-like item
Wed, 03/26/2025 - 20:19 (edited)

So im not the best in mcreator. Im trying to create a Hammer item that Deals extra damage, depending on your falling hight, tried it by making two variables one changes depending on the y coordinate depending on when the Player last were on ground and the other when the entity gets hit and finally the First variable minus the second gives the extra damage, but it doesnt work like I want it, the player gets constant damage and I don’t get any extra damage can someone help me? Thank you in advance

Edited by LOLBroSave on Wed, 03/26/2025 - 20:19
Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're still on 2024.4…
Thu, 03/27/2025 - 16:59

If you're still on 2024.4 you can use Redwire's plugin, it has a fall distance variable. Sorry if this doesn't work!

(also tell me how you add to the damage please, I tried making a mace myself and got lost on that.)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry that I let you wait, I…
Mon, 03/31/2025 - 16:04

Sorry that I let you wait, I was busy. I tried your solution, but it didn‘t function, sadly, but still thanks

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im actually still waiting…
Thu, 04/10/2025 - 10:46

Im actually still waiting for an answer, how I can make a Mace-like item, like in 1.21, if anyone had a procedure or could Tell me how I would be very grateful

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OMG, I tried using ChatGPT…
Thu, 04/10/2025 - 16:01

OMG, I tried using ChatGPT for Code for the Mace after many tries it made me a Code for a Mace that even deletes Fall-damage for me when I hit an entity

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How did you manage to do the…
Fri, 04/11/2025 - 15:05

How did you manage to do the mace in the GPT chat?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just asked if it can make…
Sat, 04/12/2025 - 00:29

I just asked if it can make Mcreator Code and pasted the base item Code, so it could rewrite it and after many tries and many corrections I had the Mace code

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you maybe upload the…
Fri, 06/13/2025 - 19:15

could you maybe upload the workspace and share it with me? im also struggling with this.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please paste the workspace…
Thu, 07/17/2025 - 11:04

Please paste the workspace or the code for us to use.

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make it by…
Fri, 07/25/2025 - 22:41

You could make it by tracking the fall damage you take, healing yourself by that much, storing it in a variable and then dealing that much damage. First you need to make a procedure with a global trigger "Entity is hurt". To see if the damage is fall damage, get an if block, an and block, and a "Is [Provided damage source] of type [ ] in the logic tab. To make sure the damage type is fall damage, select fall. I the other part of the and block make sure the item in main-hand of event/target entity equals your mace like item just to make it simpler. In the if block create a global variable and set it to Number dependency amount. To get the "Number dependency amount" block, double click the word amount in the provided dependencies at the side of the screen. After that, Set the health of the target entity to it's current health plus the damage taken variable. Then wait ten ticks, damage the player by the damage taken variable, set the global variable to zero, and save the procedure. For the next procedure, go into the mace like item and create a procedure for "When living entity is hit with tool". In the procedure Deal damage taken variable to the target entity and set the damage taken variable to zero. That way, the player has ten ticks (or half a second) to attack before he takes the fall damage. I give credit to ChatGPT who at first didn't tell me anything about extra damage if you fall on your target.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@PeterWC thanks for the help…
Sat, 07/26/2025 - 08:45

@PeterWC thanks for the help. I will try it but atleast maybe can you please also test it and send a screenshot so it is more understandable and thanks for the help. I will be back when it works or when it doesn’t.