How to check Equine Stats (McFunction) 1.13

  • 11
  • 6
  • 1
avatar Nitrox Nova
Level 50 : Grandmaster Robot
This is similar to my previous post about horse stats:

However, this now supports Donkeys, Mules, Skeleton and Zombie Horses as well.
Rather than using command blocks, I will walk you through making a function. You can create more than one of these stat checkers without causing conflicts!

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:

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

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

03/12/2019 7:23 pm
Level 35 : Artisan Geek
Darth Lemon
Planet Minecraft Logo


© 2010 - 2020