Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/19/20 in all areas

  1. Fix this, you really need to be able to see the vanilla code for modding. If you have trouble with it ask for help. Look at the horse code. It’s probably something like a timer in the entity + setting rotations in the Renderer based on that timer.
    1 point
  2. If you can't view vanilla code from your IDE, get that fixed ASAP. It's absolutely critical to be able to see how vanilla and Forge code does stuff, not to mention being able to set debugging breakpoints.
    1 point
  3. Have you looked at how vanilla animals (e.g. pig or sheep) do it? Mob entities (which include animals) have goals, which are registered and run by the entity's GoalSelector object. Every mob entity has a goal selector, which is public, and the goal selector has a getRunningGoals() method to get all of the currently-active goals. Take a look at e.g. PigEntity and find the obviously-named goal which controls panic behaviour. That should be all the info you need. It might actually be simpler just to check that the animal has a non-null getRevengeTarget()... depends on how much control you want over the process. An animal can have a revenge target but not have a running panic goal if it can't find somewhere to flee to, for example.
    1 point
  4. Going to guess that the entity in question doesn't extend LivingEntity, in which case see or one of the other several threads I found by Googling "forge 1.14 entity renderer". And yeah, ditch that itemModelMesher code like yesterday It's utterly unnecessary.
    1 point
  5. I personlly used debug mode to see what's going on. Can't really get anything else for visualization.
    1 point
  6. So after more experimenting I noticed that the server has the right information about the empty slots in the inventories connected in the multi-block, however the client does not. I simply filled up the chests manually, and I noticed that the value of the empty slots did not change in the client. https://prnt.sc/r48reg The numbers in the image represent the number of empty slots available in the multi-block, and as you can see the client and the server have different values on that. How can I update the client data?
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.