-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By gtf7dvygiduivtd · Posted
it only happens in 1.15+ logs.txt -
By IchBinEinToast · Posted
Oh I solved it Thank you @diesieben07 -
Hello! I'm modifying the damage calculation by subscribing to LivingHurtEvent and scaling the damage value. This works fine, but now I also want to change the rendering a bit. My current LivingHurtEvent looks like this (I removed some unnecessary stuff) @SubscribeEvent public static void elementifyLivingHurtEvent(LivingHurtEvent event) { // compute new damage value .... // heals the target, if damage is lower than 0. This can happen with my modification if(damageAmount <= 0) { target.heal(-damageAmount); event.setCanceled(true); //does this even do something? damageAmount = 0; } event.setAmount(damageAmount); } 1. I want to change the red texture (an OverlayTexture?) to a green one, if the targets is healed. But I don't really know, where I should start with this task. I couldn't even find the code, that applies the red texture. So which Event do I need to hook in, so I can change this texture? Is it RenderLivingEvent? I also would like to read the vanilla code. I'm assuming, that the red overlayTexture is applied as long as hurttime>0, and that I might need to work around this with capabilities. 2. I also would like to reduce the screen shake (or at least disable it, when no damage has been dealt). Here I got the same question as 1. As you can see, I'm not really experienced with all the render stuff. It's my first time working with it. 3. Not really a question about rendering, but I didn't want to create a new thread for a single problem. I would also like to prevent the hurt-sound from firing, if no damage has been dealt and instead play another sound. Again I have no idea, where I would have to start looking in the vanilla code or which event I should use. So yeah, I'm quite clueless and I hope you can help me out. Here is my repository, if you need more informations: https://github.com/Tavi007/ElementalCombat
-
I have problems too. I'm not the brightes crayon in the box when it comes to technical things, so please be patient and nice ;) I downoaded installer from website and extarced it. It looks like that: https://ibb.co/pZw4QJb Inside it looks like that: https://ibb.co/p3CHw1J Installer folder look like this, but none of it works, i dont have installed on my computer anything that could open it https://ibb.co/SffK0HR Pretty Please! Help! I want nice things in minecraft, especially OTTERS :) Thank You!
-
-
Topics
-
Who's Online (See full list)