Giter Site home page Giter Site logo

Comments (3)

mschae23 avatar mschae23 commented on July 28, 2024 2

The error message already kind of tells you that, but you need the normal_factor and treasure_factor fields in the object where you have type set to grindenchantments:count_levels:

{
  "allow_removing_curses": false,
  "dedicated_server_options": {
    "alternative_cost_display_enabled": false
  },
  "client_options": {
    "show_enchantment_cost": true
  },
  "disenchant_to_book": {
    "enabled": true,
    "consume_enchanted_item": false,
    "cost_function": {
      "function": {
        "normal_factor": 1.0,
        "treasure_factor": 1.0,
        "type": "grindenchantments:count_levels"
      },
      "factor": 0.05,
      "offset": 1.0,
      "type": "grindenchantments:transform"
    }
  },
  "move_enchantments": {
    "enabled": true,
    "cost_function": {
      "function": {
        "function": {
          "normal_factor": 0.5,
          "treasure_factor": 0.5,
          "type": "grindenchantments:count_levels"
        },
        "type": "grindenchantments:first_enchantment"
      },
      "factor": 0.5,
      "offset": 0.5,
      "type": "grindenchantments:transform"
    }
  },
  "version": 2
}

I know there's absolutely no documentation on what any of these options do right now (sorry), so here's a summary:

  • normal_factor: How many XP levels each enchantment level of a "normal" enchantment should cost (which is any enchantment you can get from an enchanting table).
  • treasure_factor: How many XP levels each level of a "treasure" enchantment should cost (these are the ones you can't get from an enchanting table).

In the example above, I set both to 1.0, meaning you'd need exactly one XP level per enchantment level (if you ignore the subsequent factor and offset); however, you can set that to whatever you want, of course.

from grind-enchantments.

MrMattsBlog avatar MrMattsBlog commented on July 28, 2024

I see.. anyway I got the config automatically when I launched the mod. I even tried to delete it and re-download it, but it was still missing those two factors, so maybe you should check that out.
Meanwhile, I literally copy/pasted the config you provided me in the previous reply into my config, now the game asks me 2xp level per enchanted tool, it doesn't matter how many enchantments there are on it and how powerful they're.

To make myself more clear: I have a bow with Mending, Unbreaking III and Efficiency IV. Paying 1xp level per enchantment (considering the enchantments levels), I should pay 8xp level to move all the bow's enchants to a book, right?
But the game asks me only 2xp level. Same thing goes for another bow with only Efficiency IV (again, it should cost 4xp level but it costs 2).
Is there anything wrong with my config?

Anyway thanks for replying so fast, I really appreciate it!

from grind-enchantments.

MrMattsBlog avatar MrMattsBlog commented on July 28, 2024

Ok apparently it seems I fixed it, I changed the config file and now it's all good, so you can close the issue.
One last thing I'd like to say is to create some sort of documentation (even something written for dummies like me :P ), that will probably help the "average player" better understand the mod and probably will reduce the number of open issues ahah!
As previously, thanks for the help, you can close this thread if you want!!

Thanks again for all the effort you're putting into this mod, I really appreciate it!

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.