ShetiPhian / Localizations-and-Issues

Localizations and Issue Tracker for all of my Minecraft Mods
https://minecraft.curseforge.com/projects/shetiphiancore
9 stars 18 forks source link

Applying Random Effects in Random Players in 1.12 and 1.19 #381

Closed FernandoCalaza closed 1 year ago

FernandoCalaza commented 2 years ago

Describe the bug Hello, I love this mod. But at every non-fixed amount of time, a random player on my server gets random effects. Sometimes they don't impact gameplay like fire resistance (3 min.) or water breathing (2 min.). But other times they get in the way and cause the player's death, such as wither (30 sec.) or levitation (15 sec.). I don't know the right time between one effect application and another, but I believe that the maximum time I had between one and the other was 40 min.

Additional context Minecraft Version: 1.12 and 1.19 Forge Version: 14.23.5.2860 and 43.1.47 ShetiPhian Core Version: 1.12.0-3.5.9 and 1.19-3.11.1 Other Mod(s) Intalled:

ShetiPhian commented 2 years ago

ShetiPhianCore doesn't add anything and though its not listed it sounds like Terraqueous

While DeathFruit dose stuff this sounds like the work of TricksterBloom it a blue flower found in forests. Touching it will trigger a random effects sometime in the future. In the configs there is a list of effects you can modify, I don't think the handler will be happy if the list is empty so you'll want to keep at least one. (you can even use ones other mods add)

Here are the defaults, and what they do. (some are disabled but kept for reference)

list.add("effect[minecraft:speed];time[30-60];level[0-1]"); // Increases walking speed, higher levels make the player quicker
list.add("effect[minecraft:slowness];time[10-20];level[0-1]"); // Decreases walking speed, higher levels make the player slower
list.add("effect[minecraft:haste];time[60-120];level[0-1]"); // Increases mining and attack speed, higher levels increase the player's mining and attack speed
list.add("effect[minecraft:mining_fatigue];time[60-120];level[0-1]"); // Decreases mining and attack speed, higher levels further decrease mining and attack speed
list.add("effect[minecraft:strength];time[60-120];level[0-1]"); // Increases melee damage, higher levels make the player do more melee damage
// list.add("effect[minecraft:instant_health];time[0];level[0]") // Heals entities, damages undead, higher levels heal more health
// list.add("effect[minecraft:instant_damage];time[0];level[0]") // Damages entities, heals undead, higher levels do more damage (opposite for undead)
list.add("effect[minecraft:jump_boost];time[60-120];level[0-1]"); // Increases jump height and reduces fall damage, higher levels make the player jump higher and reduces more fall damage
list.add("effect[minecraft:nausea];time[10];level[0]"); // Wobbles and warps the screen
list.add("effect[minecraft:regeneration];time[10-30];level[0-1]"); // Regenerates health over time, higher levels regenerate quicker
list.add("effect[minecraft:resistance];time[60-120];level[0-1]"); // Reduces most damage, higher levels reduce more damage
list.add("effect[minecraft:fire_resistance];time[150-300];level[0-1]"); // Immunity to fire and lava
list.add("effect[minecraft:water_breathing];time[150-300];level[0-1]"); // Prevents drowning and lets the player breathe underwater
list.add("effect[minecraft:invisibility];time[60-300];level[0-1]"); // Grants invisibility, making the player invisible unless they have armor on or they have a weapon or item in their hand
list.add("effect[minecraft:blindness];time[30-60];level[0-1]"); // Impairs vision and disables the ability to sprint and critical hit
list.add("effect[minecraft:night_vision];time[60-120];level[0-1]"); // Negates darkness
list.add("effect[minecraft:hunger];time[10-30];level[0-1]"); // Increases food exhaustion, higher levels cause the player to starve quicker
list.add("effect[minecraft:weakness];time[10-20];level[0-1]"); // Decreases melee damage, higher levels decrease more melee damage
list.add("effect[minecraft:poison];time[5-10];level[0]"); // Inflicts damage over time (but can't kill), higher levels make the player take damage in a shorter period of time
list.add("effect[minecraft:wither];time[3-5];level[0]"); // Inflicts damage over time (can kill), higher levels can do more damage per second
// list.add("effect[minecraft:health_boost];time[0];level[0]") // Increases maximum health (Absorption; except hearts can be healed, initially appear as damaged and remain after effect until lost)
list.add("effect[minecraft:absorption];time[30-60];level[0-1]"); // Adds damage absorption, higher levels give more absorption (hearts lost after effect ends)
list.add("effect[minecraft:saturation];time[15-30];level[0-1]"); // Restores hunger and saturation
list.add("effect[minecraft:glowing];time[30-60];level[0-1]"); // Outlines entities (can be seen through blocks)
list.add("effect[minecraft:levitation];time[2-3];level[0]"); // Floats entities upwards
list.add("effect[minecraft:luck];time[30-60];level[0-1]"); // Can increase chances of high-quality and more loot, higher levels increase the chances of better loot
list.add("effect[minecraft:unluck];time[20-40];level[0-1]"); // Can reduce chances of high-quality and more loot, higher levels reduce the chance of good loot
list.add("effect[minecraft:slow_falling];time[15-30];level[0-1]"); // Decreases falling speed and negates fall damage
list.add("effect[minecraft:conduit_power];time[90-180];level[0-1]"); // Increases underwater visibility and mining speed, prevents drowning
list.add("effect[minecraft:dolphins_grace];time[30-60];level[0-1]"); // Increases swimming speed (only obtainable from dolphins)
// list.add("effect[minecraft:bad_omen];time[0];level[0]") // Causes an illager raid to start upon entering a village (only received from an Illager captain upon its death)
list.add("effect[minecraft:hero_of_the_village];time[120];level[2-4]"); // Gives discounts on trades