Heltrato Posted January 2, 2018 Posted January 2, 2018 1.) Is it possible i could run "Damage Indicator" mod for my eclipse workspace? 2.) How is ISpecialArmor implement and what are the important methods (can explain how? ) Quote
Heltrato Posted January 2, 2018 Author Posted January 2, 2018 1 hour ago, diesieben07 said: Yes. You implement it on your item class. The methods have extensive Javadocs, if you have specific questions, please ask. Okay, i think i got the ISpecialArmor now, only 3 important methods, the display,properties,apply.. And somehow its additive to the EnumArmorMaterial. One last additional question... - Why is that the maximum health for every mob is only 1024? (in previous MC Version we can go way higher than that am if not mistaken ). Is there a way i can exceed it? Quote
Heltrato Posted January 2, 2018 Author Posted January 2, 2018 32 minutes ago, diesieben07 said: The maximum value is set in SharedMonsterAttributes.MAX_HEALTH. It is not really viable to change it. Then i shall create custom Attribute then? Quote
Heltrato Posted January 2, 2018 Author Posted January 2, 2018 (edited) 2 hours ago, diesieben07 said: You could, yes. But you'd be incompatible with pretty much everything which tries to access max health. Whuuuuuuuuuuuuuuuuuuuuuuuttttttttttt????????????????????????????????? Why how why is there no safest hack to do with that? Also i stumbled across this tutorial its pretty much he just made variable with regards the IAttribute system Edited January 2, 2018 by Heltrato fixes Quote
Major Tuvok Posted January 2, 2018 Posted January 2, 2018 You could (instead of attempting to hack max health) try to reduce damage taken by this entity, so that it simulates having more health than it actually has... Simplest (but definitly not a good way to do that (I think theres probably a callback for that, because I haven't worked with any LivingEntity yet I have no clue how the callback is called) way would be to intercept LivingAttackEvents and reduce any damage done to your Entity. You would have to evaluate that depending on how much you want to scale it up... Quote
Heltrato Posted January 2, 2018 Author Posted January 2, 2018 1 hour ago, Major Tuvok said: You could (instead of attempting to hack max health) try to reduce damage taken by this entity, so that it simulates having more health than it actually has... Simplest (but definitly not a good way to do that (I think theres probably a callback for that, because I haven't worked with any LivingEntity yet I have no clue how the callback is called) way would be to intercept LivingAttackEvents and reduce any damage done to your Entity. You would have to evaluate that depending on how much you want to scale it up... as a temporary resolve i might do that, but il try to hack still, maybe Reflection API? Quote
ArmamentHaki Posted January 2, 2018 Posted January 2, 2018 Changing the health system is not really complicated as most times the LivingHurtEvent is called. You could simply make a Capability that stores your entities health and substract the given amount. Then you set the amount to something near 0 so that the actual health doesnt matter. But I think this is to complicated for this simple thing. Or as Major Tuvok said subscribe to LivingHurtEvent, test if your conditions are given and then multiply the amount by something smaller than 1. Quote
Heltrato Posted January 3, 2018 Author Posted January 3, 2018 17 hours ago, ArmamentHaki said: Changing the health system is not really complicated as most times the LivingHurtEvent is called. You could simply make a Capability that stores your entities health and substract the given amount. Then you set the amount to something near 0 so that the actual health doesnt matter. But I think this is to complicated for this simple thing. Or as Major Tuvok said subscribe to LivingHurtEvent, test if your conditions are given and then multiply the amount by something smaller than 1. Solved, i did have 3 multiple instances health bar for monsters, but since my mod have lots of features, it still making it more derpy or unbalance looking. So what i did is i just bypassed it with Reflection API. Solve btw. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.