Model having XXX error / warning
Read the console. The error log walks you through the reason and the solution, and gives you additional insight on the problem itself.
Model taking damage for no reason
The "eye height" is either missing or set below 0. To fix this, bring the hitbox's bone pivot point above 0.
You can learn more about this Here
The model is made up of vanilla items!
Use the generated resource pack, located in the plugin's folder.
The plugin folder is located at
<Server Main Directory>/plugins/ModelEngine/resource pack.zip
Model using parts of a different model
Update the resource pack.
I want my Modeled Entity to perform a custom attack animation
While you could play a state with a onAttack trigger, there will be no delay between the start of the attack animation and the damage itself, so a different solution is required.
A popular and effective method is to:
- Cancel the attack event
- Play the state
- Delay the execution of the skilltree
- Deal Damage
And this is usually done via the use, in some form, of the following base metaskill:
ExampleMob:
Type: ZOMBIE
Skills:
- model{mid=examplemob} @self ~onSpawn
- skill{s=ExampleModelAttack;sync=true} @self ~onAttack
ExampleModelAttack:
Skills:
- cancelevent
- state{...}
- delay 17
- damage{...} @trigger