Minecraft Maps

1.14 to 1.15 - How to check Equine Stats (McFunction)

infoWhat is PMCView3D? Read the Schemagic feature announcement for more info.

  • 12
  • 4
  • 7
avatar Nitrox Nova
Level 49 : Master Robot
This supports Donkeys, Mules, Skeleton and Zombie Horses as well. You can also create more than one of these stat checkers without causing conflicts!

*1.14 updates*
wall_sign changed to oak_wall_sign
removed the slashes in the sign command

You can skip Step 1 by Downloading the World Save and copying the horsestats folder in datapacks (you will still need to do Step 2)

Step 1 - Create Datapack
To navigate to your minecraft saves folder, open file explorer and type %appdata%\.minecraft\saves
Open the folder with the name of your world. There will be a datapacks folder, open this. It is probably empty.
Create a folder, named whatever you want, I will use horsestats
inside this folder, create a file named pack.mcmeta Open with notepad and paste the following:

Click to reveal

Also inside the horsestats folder, create a folder named data
in data, create another folder named horsestats
in horsestats, create a folder named functions

The full file path will look something like C:\Users\NitroxNova\AppData\Roaming\.minecraft\saves\horseblock\datapacks\horsestats\data\horsestats\functions

Inside the functions folder, create a file named checkstats.mcfunction Open with notepad and paste the following

Click to reveal

Step 2 - World Setup
Open the world, or type /reload command if it was already open
Run the following commands:
  /scoreboard objectives add HorseHealth dummy
  /scoreboard objectives add HorseSpeed dummy
  /scoreboard objectives add HorseJump dummy
Give yourself a command block /give @p command_block
Place command block level with the ground, and right click it.
Type the following in the console command box of the command block
  function horsestats:checkstats
Place a pressure plate on top of the command block. Stepping on the pressure plate will generate three signs. If there are no horses around, they will say zero. If you ride, lead or push an equine within 2 blocks of the command block (marked with glass in the picture) and trigger the pressure plate, its respective stats will show up on the signs. This works on babies, untamed and untamable equines as well.
Progress100% complete

1 Update Logs

Update #1 : 06/30/2020 12:24:38 pmJun 30th

due to changes in the array order, stats are found by name instead of index number.
Health = Attributes[{Name:"generic.maxHealth"}].Base
Speed = Attributes[{Name:"generic.movementSpeed"}].Base 100
Jump = Attributes[{Name:"horse.jumpStrength"}].Base 100

11/24/2019 7:12 am
Level 1 : New Miner
i have done what u had done with the comands in the video and the stats dont work :(
06/14/2019 11:21 pm
Level 1 : New Miner
is there a link to a video tutorial for this method? im just very confused because im not that great at this stuff.
05/27/2019 5:00 am
Level 6 : Apprentice Skinner
This is amazing! Works perfectly. I was wondering how you got the stat attribute numbers. I was hoping to make one to check llama strength.
06/05/2019 9:17 amhistory
Level 49 : Master Robot
Nitrox Nova
thank you for trying it out! I didnt even know llamas had strength, but sure enough, they do!
/data get entity @e[type=minecraft:llama, limit=1] Strength
I wish the command for horses was so simple..
05/24/2019 10:41 am
Level 44 : Master Technomancer
I really like how you used the scoreboard command to store a variable. I have used this method in the past, but I have since forgotten how it works. Now I can just look at your code and figure it out again.

Great work Nitrox!
05/26/2019 1:08 pm
Level 49 : Master Robot
Nitrox Nova
thank you very much! im glad i can help :)
05/22/2019 6:09 pm
Level 43 : Master Musician
Akuma Kaibutsu
looks amazing and creative ;)
Planet Minecraft Logo


© 2010 - 2020