Coder Social home page Coder Social logo

davidmacdonald11 / anvilfix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googleooer/anvilfix

0.0 0.0 0.0 58 KB

Fixes and rebalances anvils.

Home Page: https://modrinth.com/mod/anvilfix

License: GNU Lesser General Public License v3.0

Java 100.00%

anvilfix's Introduction

AnvilFix

Fixes and rebalances anvils.

(Requires the Fabric API)

Why I Made These Changes

I've been increasingly frustrated with the balance of Survival mode, especially when it comes to anvil enchanting/repairing/renaming. With the recent controversy around the villager rebalance, I thought I'd take the opportunity to try my hand at addressing the issues surrounding anvil mechanics.

Changes Implemented

General

  • Removed "Too Expensive!".
  • Removed XP cost accumulation.
  • Made enchanting, repairing, and renaming independent of each other in terms of XP usage.

Enchanting

  • Rethought the enchanting cost system. Instead of relying on frustrating XP accumulation and other obscure factors, costs are now based solely on the enchantments you want to apply.
  • Each enchantment has a base cost that is then multiplied by its level. For example, applying Sharpness I costs 2 XP, Sharpness II costs 4 XP, and Sharpness V costs 10 XP.

Repairing

  • Introduced a straightforward linear cost of 2 XP * material amount.
  • The removal of "Too Expensive!" means you can now repair your equipment as much as you want without it eventually becoming disposable.

Renaming

  • Renaming now has a flat cost of 2 XP.
  • Renaming when you cannot perform an item merge is no longer possible (to stop deletion of said item).

Optional: Mending Rebalance

  • I know this change is probably gonna be controversial, so it's an optional feature (mendingWorksWithUnbreaking gamerule, false by default)
  • I've always felt like Mending is Mojang's band-aid fix to the anvil repairing issue, while also being overpowered and obtainable too early in the game. With the anvil issues resolved, a rebalance seems appropriate.
  • Mending and Unbreaking are now incompatible, providing players with two choices:
    • Choose Unbreaking if you want extended equipment durability, but need to manually repair it through an anvil.
    • Choose Mending for automatic equipment repair via XP, but with standard uses. - Buffed Mending: Mending now works on unequipped items as well. The hierarchy of repair priority is as follows: Equipped items take priority over unequipped ones, and damaged items are prioritized over those with less damage. Damaged unequipped items are given priority over nearly fully repaired equipped items. Not implemented yet.

Disclaimer

This is my first public mod, so it will probably have some bugs. XP costs are still being tweaked and I haven't tested this in multiplayer, but it should work. You can always report any bugs at the GitHub issue tracker.

anvilfix's People

Contributors

googleooer avatar davidmacdonald11 avatar

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.