Updating from v1¶
Important note for mod pack authors
Updating to v2 breaks compatibility to v1. v1 players won't be able to join on v2 servers and the other way around.
More changes will be added to this page while working one the update.
JSON changes¶
- Dollars in general:
- Dollars now support operator precedence (e.g.
3+1*2now returns 5 instead of 6) - Dollars now have more data types:
- This means that
5 / 2= 2 but5.0 / 2= 2.5 - More about this coming soon™ in the dollar documentation
- This means that
- Dollars now support operator precedence (e.g.
- Anvil recipes
- Dollars now use
baseinstead ofi0andingredientinstead ofi1
- Dollars now use
- Brewing recipes
- Dollars now use
ingredientandbaseaccordingly instead of justthis
- Dollars now use
- Cauldron recipes
- Dollars now use
ingredientinstead ofi0
- Dollars now use
- Cooking recipes
- Cooking recipes' ingredients now work the same as all other ingredients
Java changes¶
Most notably dollars changed completely and has also been moved to the de.siphalor.nbtcrafting.dollar package
API¶
RecipeUtilnow expectsMap<String, Object>instead ofMap<String, CompoundTag- you can now put inNumbers andStrings too - have fun 😉ServerRecipehas been moved into the newde.siphalor.nbtcrafting.apipackageNbtHelper- This,
NbtNumberRangeandNbtExceptioncan now be found inde.siphalor.nbtcrafting.api.nbt - JSON paths have mostly been updated to
String[] iterateTagshas been moved toNbtIterator
- This,
Other stuff¶
- The
Coreclass is now calledNbtCrafting- accordinglyClientCorebecameNbtCraftingClient - Also
MODIDgained an underscore so it's nowMOD_ID - Duck interfaces have been moved into their own package