Giter Site home page Giter Site logo

Comments (6)

Zarepheth avatar Zarepheth commented on July 28, 2024

Replacing all the 0.25 entries with 4 in my config file does not make much difference in the displayed cost:

Pickaxe with Efficiency 2: Cost 12
Hoe with Efficiency 3, Unbreaking 3: Cost 21
Hoe with Efficiency 3: Cost 15

Updated config:

{
  "allow_removing_curses": true,
  "dedicated_server_options": {
    "alternative_cost_display_enabled": false
  },
  "client_options": {
    "show_enchantment_cost": true
  },
  "disenchant_to_book": {
    "enabled": true,
    "consume_enchanted_item": false,
    "cost_config": {
      "count_mode": {
        "type": "grindenchantments:count_levels"
      },
      "cost_factor": 4,
      "cost_offset": 0.0
    }
  },
  "move_enchantments": {
    "enabled": true,
    "cost_config": {
      "count_mode": {
        "delegate": {
          "normal_factor": 4,
          "treasure_factor": 4,
          "type": "grindenchantments:count_levels"
        },
        "type": "grindenchantments:first_enchantment"
      },
      "cost_factor": 4,
      "cost_offset": 0.0
    }
  }
}

from grind-enchantments.

Zarepheth avatar Zarepheth commented on July 28, 2024

Subsequent tests indicate that the config file is ignored. At least as far as I've modified it.

from grind-enchantments.

MeeniMc avatar MeeniMc commented on July 28, 2024

The file format for the config file has changed between 1.6 and 2.0, you may have to delete the config file, and re-apply your changes after letting the 2.0 version create a new config file. Also, prices are a lot more expensive by default in 2.0

from grind-enchantments.

mschae23 avatar mschae23 commented on July 28, 2024

Your config is missing the normal_factor and treasure_factor fields for count_levels in the disenchant_to_book case (look for "Error decoding config" in the log). In this case, the mod will simply use the default configuration.

from grind-enchantments.

Zarepheth avatar Zarepheth commented on July 28, 2024

@mschae23 Thank you. I copied the entries from another section, added them to that section and now the costs are what I was expecting.

Note: the default config file was missing those entries. Perhaps because the default had a different cost type?

from grind-enchantments.

mschae23 avatar mschae23 commented on July 28, 2024

Note: the default config file was missing those entries. Perhaps because the default had a different cost type?

Yes, the default is using the count_min_power type, which does not have those fields (or any other options).

from grind-enchantments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.