Started by
QuoteWasThere
on
Topic category: Help with Minecraft modding (Java Edition)
i've got into mcreator very recently and the first thing i wanted to get into 1.20.1 is the mace. is there a way to make its intended mechanics or make at least something similar?
Presumably they're just using the fall distance of the player. I'm pretty sure there's a function to get fall distance, but if there isn't, you could pretty easily make one yourself. Make a player-persistent number variable that sets itself to the player's current y value whenever they're on teh ground, and becomes locked when they're in the air. Then, when they attack, you can get the difference between their current y position and their saved y position, and use this to determine the additional damage.