Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.

Serializers

Nick Ignoffo edited this page Nov 11, 2017 · 5 revisions

JSON Serializers


Specifications for each serializer type that Resourceful Crops makes use of.

Fields marked as Optional do not need to be defined in your JSON


Output

// TODO


InfoOverride

// TODO

StateInformation

// TODO


ModelInformation

// TODO


ResourceLocation

{
    "domain": "foo",
    "path": "bar"
}

Blockstate

{
    "id": ResourceLocation,
    "variant": "foo=bar"
}
  • id Required
  • variant Optional
    • A map of property names to values, separated by commas.

ItemStack

{
    "id": ResourceLocation,
    "amount": 1,
    "meta": 0,
    "nbt": ""
}
  • id Required
  • amount Optional
    • The amount of this item. Defaults to 1.
  • meta Optional
    • The damage value of this item. Defaults to 0.
  • nbt Optional

GrowthRequirement

  • minLight Required
    • (Integer) Minimum light level needed for seed/crop growth to occur.
  • maxLight Required
    • (Integer) Maximum light level needed to not be exceeded for seed/crop growth to occur.

The "GrowthRequirement" serializer is optional in seed configs (defaults to minLight=7, maxLight=15) but if a GrowthRequirement is being specified, both minLight and maxLight are required parameters

Clone this wiki locally