Topic category: Help with Minecraft modding (Java Edition)
So i've made a procedure so when a full set of armor is worn it gives the player certain potion effects. Howerver with Regeneration it does't actully regenrate the players health. It says the player has regen but the hearts do not go up. I believe this is because it just stays at 0.03 seconds and doesn't actually actiavate. Its just stuck at 0.03 seconds like all other potion effects. Same with health boost it constantly damages the player and doesnt generate the helath boost hearts. Any one got any idea how to fix this? If possible i'd like the potion effect to go to 0 and then restart the count. However i'd like to keep it so night vision stays at a higher number of seconds to stop the annoying flashing sky before the effect clears. Any sort of help would be appreciated <3
Put all the potion effect blocks with higher duration numbers. It counts in ticks, so if you do 20 in Duration box it goes for one second. I usually do 60, which is high enough but low enough to not last long enough to be useful when you don't wear the armour.
Yeah i've got this but say you do regen for 2 minuites it doesn't actually regen. Because its not counting down. It keeps constantly applying the regen at the same amout of time. Therefore its not actually giving regen enough time to regen anything.
Can you please provide me with the code for full set armor effects?