GithubHelp home page GithubHelp logo

aws404 / simplejsonvillagertrades Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 139 KB

As simple as it sounds, a small jij-able library to modify/add/remove Villager trades via datapacks.

License: Creative Commons Zero v1.0 Universal

Java 100.00%

simplejsonvillagertrades's People

Contributors

aws404 avatar

Stargazers

 avatar

Watchers

 avatar

simplejsonvillagertrades's Issues

Throw error if item isn't present in the registry.

I think SJVT should throw an error if an invalid item is input into the JSON file. Its current behaviour seems to be to just replace the item with air.

e.g.:

{
        "type": "minecraft:sell_item",
        "item": "reaping:diamond_reaping_tool",
        "price": 13,
        "max_uses": 3,
        "experience": 30
}

should throw an error in your testmod, since reaping:diamond_reaping_tool isn't an item.

Potentially this should only happen if FabricLoader.genInstance().isDevelopment() is true.

The "minecraft:sell_potion_holding_item" factory is documented incorrectly

Hello. I'm trying to use this trade offer factory, but the trades don't appear in the villager's ui. I'm following every step of the wiki.

This is what I wrote according with the trade offer factory options in the wiki

{ "type": "minecraft:set_potion_holding_item", "price": 3, "second_count": 5, "arrow": "minecraft_arrow", "sell_count": 5, "tipped_arrow": "minecraft:tipped_arrow", "max_uses": 12, "experience": 10 }

Note that in the example, the code seems simpler:
image
I tried using this way too, but nothing changed.

Incompatible with 1.18.2

Data changes go brrr

Hi, I'm just writing this to hopefully reach out to you about updating this mod to 1.18.2 at some stage.

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.