make a fabric plugin for 26.2 where every player that joins are rolled one of these permanent Minecraft effects: Haste 1, Hero of the Village 1, Strength 1, Speed 1, Luck 1, Regeneration 1, Saturation 1, Fire Resistance 1, Dolphins Grace 1, and Health Boost 1. each of these effects except for Health boost and hero of the village, work like for every time the player kills someone their effect level goes up by 0.2 in strength and when they die it goes down by 0.2 these effects start at the vanilla power level of 1 and can increase and decrease by these intervals, also the limit for the power levels is when the player has reached the vanilla level two for the effect, if the player dies enough without enough gain of power level their effect is removed until they get a kill and gain 0.2 power of the effect. and above the players hearts and armor GUI it shows text showing their permanent effects name and what level it's on and the text color being the potion effects main color, the levels work like this when the player has 0 kill as of what it should look like when they first spawn in it shows level 0 and when the player gains one kill it goes to level 1 then 2 then 3 then 4 then 5, but when the player dies it goes it goes down 1 level and it can starting from 0 can go sown to -1 then -2 then -3 then -4 then -5 which removes the effect essentially. for health boost for every kill the player gains they receive an extra heart not taking a heart away from the player they killed just adding a new heart. the player starts with an extra two hearts as health boost level one gives, and they can max out at 15 hearts after which is 3 kills with no death starting at health boost 1 or level 0, when the player has 12 hearts their potion effect GUI says level 0 when they have 13 hearts it says level 1 when they have 14 it says level 2 and when they have 15 it says level 3, but when if they die they lose one level and once they reach level zero they if they die again can go down to level -1 removing 1 heart putting them at 11 hearts then if they die again they lose another heart then saying level -2 then if they die again they go to level -3 and it removes the 11th heart bringing them to 10 hearts and level -3 and if they die again they go down to 9 hearts level -4 the limit for the negative of the effect. now for hero of the village just make it so when the player starts, they have hero of the village 1 and the GUI says level 0 every time they kill someone, they gain a whole hero of the village level with the max being level 8 and they can't go below hero of the village 1 but every time they die, they do lose a level of hero of the village. if players want to change their effect they in the crafting recipe need to place 1 nether star in the center 4 ominous trail keys in each of the 4 corners and 4 enchanted golden apples is the rest of the slots this will give the player a drinkable potion called the Reroll Potion and when they drink it gives them a new random potion effect from the list I gave and make sure it doesn't give the player the same potion effect they currently have also when they reroll the power level of the potion resets if they get health boost or hero of the village but if they get any of the others they keep the same power level and make the potion color inside the bottle rainbow, and also when they reroll and get the new effect in the chat it broadcasts to everyone in the color of the potion effect they got the new potion effect that they obtained to tell everyone what their new effect is. ok its working fine now. make it so when the player dies it sends a message in the chat that only the player who died see's it in the chat saying Your affect is now (whatever their effect is then shows the new level of the effect) and do the same when the player gets a kill but this time they gained it. and when the player first loads in there is text that changes through all the effects and lands on one of the effects you can get and that is how the player knows what effect they have. also, above their hot bar make sure the GUI actually show for what effect the player actually has in use so they know what level they're at all times and so they can see what effect they have. also, can you make the reroll potion a 16x16 GUI and change the crafting recipe for the Reroll Potion 1 nether star and 8 ominous trail keys. can you make the Reroll potion back to its original texture. make it so when a player kills someone while that player is at max effect level the player drops an item called a potion shard which looks like an amethyst shard but rainbow and when right clicked if the player is below the level max it can be used to gain an effect level and the shards can be stackable up to 64, also make sure that players on negative -5 or the lowest level they can be at of their effect those players don't drop shards, and make sure shards are not craftable. also make it so shards can be removed with a command that players without op can use the command make the command /withdraw shard (number of shards they want to withdraw) and make sure the player can't withdraw an amount of shards that they don't have, just block the command from being used that time, and have an error message saying You don't have enough shards for that! also add an item called effect essence that looks like gunpowder but rainbow and is crafted with an enchanted golden apple in the middle and 4 netherite ingots in each of the 4 corners and 1 diamond block in each of the rest of the slots, this item works like the potion shards but can be crafted and can only be used up to level 0 not allowing the player to use this to reach effect levels 1-5.
Is this for an existing project? If so, please add it to this workspace. Otherwise, would you like me to create a new Fabric 26.2 mod project?
No files in this session