horses act just like they do in vanilla minecraft. You could make wynncraft horses in vanilla if you really wanted. Just make an item summon a horse when used using a scoreboard, add a saddle, and make them despawn if the player is too far away from it.
it's kinda simple... It detects two horses in the crafting grid, and when it does, it puts an item in "Slot 0", which is the Output slot for crafting. When you pick it up, it erases the Crafting grid slots, and it makes it look like normal vanilla crafting. Next, after they click the Output horse, it doesn't a random chance of getting the same tier, a new tier, or a lower tier.
This uses something called chance modifier u wanna create by Java then get the custom Breeding is simply done by Making Custom Recipes. One check from google you can get millions of answers. And If u r talking about the Horses' Lvls, They are basically stored in a config file or MySQL
@Oryx
Bukkit already has a listener for every however tick u wanna have for. The way u explained is pretty ok for me but plugin devs who are beginners or intermediates will have some problems. So The way u explained it was visuals lemme get more intricate right here
@Kepler_17c
Create a Listener for every ticks
Create The custom recipe (u can find them in many places)
Now the Horses lores and the stuff
This is very abstruse and critical thinking is required which master Jumla Has shown all of us, so The Horses have somethig called NBT lores (You can also learn them from the website) Then The EntityHorse is hooked with NMS (AIDS jks its Net.minecraft.server)
And for every lvl the horse gains it is added to the config (Im not sure if he did use Configs, Hashsets get removed when they are reloaded so a possibility he used Database or cofnig) There are some stuff called Handlers Which you need to learn
ITs the process of removing an "!EventListener" Annotated class this is the 2nd Right click which Despawns the Horse,
There are many Youtubers who done this and made a vid one
I dun recommend u watching them as most of them give u bad Practice.
Try reading the JavaDocs and the Bukkit Docs
Java Docs Due to the use of High Constructors and passing of methods(If u think u r ok with Java u can skip this but i do recommend me myself still read the Java for Dummies book x.x) the Bukkit Docs has ALL Minecraft things basically from entity to all the classes u use such as when u extend or Implement
very nice explanation though it is not what I'd like to know
thy anyway
for I like programming and IT stuff too it is nice to get some more info about how this actually works behind what we see in the game
I posted the exact information in a conversation which I invited Jumla to
posting it here would give a whole bunch of msgs that wouldn't help
so my post here was another try to reach him
Comments on Profile Post by Kepler_17c