Caltinor / Project-MMO-2.0

A continuation of Harmony's Project MMO project
38 stars 22 forks source link

Crazy mobs scaling #617

Open Chikaze opened 2 hours ago

Chikaze commented 2 hours ago

My total level exceeds 500, naturally generating a multitude of mobs with Crazy attributes without the use of data packets. Therefore, I copied the "easy" folder to "saves/.../datapacks/". Apart from "mob_scaling", everything else seems to be effective. As a result, mobs with 100 times the normal attributes are continuously spawned, boasting HP of 1000+ and Crazy movespeeds, posing a one-hit kill threat to players.

Versions:

SomewhatDamaged commented 2 hours ago

You'll need to edit: minecraft/saves/<save name>/datapacks/generated_data/data/pmmo/config/server.json

The section:

  "mob_scaling": {
    "use_exponential_formula": true,
    "per_level": 1.0,
    "power_base": 1.104088404342588,
    "ratios": {
      "minecraft:generic.attack_damage": {
        "combat": 1.0E-4
      },
      "minecraft:generic.movement_speed": {
        "combat": 1.0E-6
      },
      "minecraft:generic.max_health": {
        "combat": 0.001
      }
    },
    "enabled": true,
    "scaling_aoe": 150,
    "base_level": 0,
    "boss_scaling": 1.1
  },

Change "enabled": true, to "enabled": false, That will stop new monsters spawning with crazy attributes, but the ones in the world already will retain theirs. You'll have to kill them with commands.

Chikaze commented 1 hour ago

"easy" datapack already includes it,MOBS is respawning.

/home/deck/Minecraft/instances/1.21.1/.minecraft/saves/Skyblock/datapacks/PMMO/data/pmmo/config/server.json

...
"mob_scaling": {
    "base_level": 0,
    "boss_scaling": 1.0,
    "enabled": false,
    "per_level": 0.0,
    "power_base": 1.0,
    "ratios": {},
    "scaling_aoe": 0,
    "use_exponential_formula": true
  },
...

The 100x Mobs attribute does not seem to be the expected value for PMMO, possibly due to an incorrect allocation within the PMMO mods. Having normal Mobs becomes rare when a player's level exceeds 500.

SomewhatDamaged commented 1 hour ago

Then you need to kill the mobs with a command, because the code only alters new monsters—not ones already spawned.

Chikaze commented 1 hour ago

mobs is respawning,and /reload without effect

Chikaze commented 1 hour ago

I can only disable PMMO mod to stop spawning of crazy mobs. đŸ˜­ Otherwise, I would keep dying at spawn point.

Chikaze commented 16 minutes ago

I am quite sure that these Mobs are generated by the MobAttributeHandler of PMMO, mob_scaling directly assigned a cap value.