Caltinor / Project-MMO-2.0

A continuation of Harmony's Project MMO project
37 stars 21 forks source link

Huge xp earn #565

Closed JasonFortis closed 4 days ago

JasonFortis commented 4 days ago

For example by running i'm getting 75 agility per second, or by mining dirt 187 excavation xp, is it supposed to be this way?

Caltinor commented 4 days ago

Yes, this is normal. You can change it if you like, but this is the default settings.

JasonFortis commented 4 days ago

thank you, how can i change it? in 1.21 version

SomewhatDamaged commented 4 days ago

minecraft/saves/<save name>/serverconfig/pmmo-server.toml

Edit the following to a lower value. Do so with the game closed and with any editor except Notepad++.

            [XP_Gains.Event_XP_Specifics.Player_Actions."SPRINTING Skills and Ratios"]
                agility = 100.0

For excavation you would be better served with a general scaling down of XP. In the same file, find:

    #Modifies xp gains for specific skills.  This is multiplicative to the XP.
    #(Mutually Exclusive to [Global Modifier])
    [Levels."Skill Modifiers"]
        example_skill = 1.0

And make it:

    #Modifies xp gains for specific skills.  This is multiplicative to the XP.
    #(Mutually Exclusive to [Global Modifier])
    [Levels."Skill Modifiers"]
        example_skill = 1.0
        excavation = 0.5

This would halve excavation XP

JasonFortis commented 4 days ago

minecraft/saves/<save name>/serverconfig/pmmo-server.toml

Edit the following to a lower value. Do so with the game closed and with any editor except Notepad++.

            [XP_Gains.Event_XP_Specifics.Player_Actions."SPRINTING Skills and Ratios"]
                agility = 100.0

For excavation you would be better served with a general scaling down of XP. In the same file, find:

  #Modifies xp gains for specific skills.  This is multiplicative to the XP.
  #(Mutually Exclusive to [Global Modifier])
  [Levels."Skill Modifiers"]
      example_skill = 1.0

And make it:

  #Modifies xp gains for specific skills.  This is multiplicative to the XP.
  #(Mutually Exclusive to [Global Modifier])
  [Levels."Skill Modifiers"]
      example_skill = 1.0
      excavation = 0.5

This would halve excavation XP

in 1.20.1 i found configs in folder you mentioned, but in 1.21 i cant find them here

Caltinor commented 4 days ago

in 1.21 you have to generate them. use the /pmmo genData withConfig command followed by /pmmo genData create to construct the datapack with the configs included. you can then edit from there.

SomewhatDamaged commented 4 days ago

Ah! Yes, you need to generate a datapack with the configs.

In game, type the following in sequence: /pmmo genData begin /pmmo genData withConfig /pmmo genData create

This will make your files in: minecraft/saves/<save name>/datapacks/generated_pack/data/pmmo/config/server.json The is the section you want. You can modify endurance and agility in there:

  "levels": {
    "xp_min": 200,
    "xp_base": 1.025,
    "per_level": 1.1,
    "global_modifier": 1.0,
    "skill_modifiers": {
      "example_skill": 1.0
    },
    "loss_on_death": 0.05,
    "lose_on_death": false,
    "lose_only_excess": true,
    "max_level": 1523,
    "static_levels": [
      -1
    ]
  },

Making these changes:

  "levels": {
    "xp_min": 200,
    "xp_base": 1.025,
    "per_level": 1.1,
    "global_modifier": 1.0,
    "skill_modifiers": {
      "example_skill": 1.0,
      "endurance": 0.5,
      "agility": 0.5
    },
    "loss_on_death": 0.05,
    "lose_on_death": false,
    "lose_only_excess": true,
    "max_level": 1523,
    "static_levels": [
      -1
    ]
  },

This will halve both (multiply by 0.5).

JasonFortis commented 4 days ago

thank you very much!