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*2
now 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
base
instead ofi0
andingredient
instead ofi1
- Dollars now use
- Brewing recipes
- Dollars now use
ingredient
andbase
accordingly instead of justthis
- Dollars now use
- Cauldron recipes
- Dollars now use
ingredient
instead 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¶
RecipeUtil
now expectsMap<String, Object>
instead ofMap<String, CompoundTag
- you can now put inNumber
s andString
s too - have fun 😉ServerRecipe
has been moved into the newde.siphalor.nbtcrafting.api
packageNbtHelper
- This,
NbtNumberRange
andNbtException
can now be found inde.siphalor.nbtcrafting.api.nbt
- JSON paths have mostly been updated to
String[]
iterateTags
has been moved toNbtIterator
- This,
Other stuff¶
- The
Core
class is now calledNbtCrafting
- accordinglyClientCore
becameNbtCraftingClient
- Also
MODID
gained an underscore so it's nowMOD_ID
- Duck interfaces have been moved into their own package