This repository was archived by the owner on May 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Serializers
Nick Ignoffo edited this page Nov 11, 2017
·
5 revisions
Specifications for each serializer type that Resourceful Crops makes use of.
Fields marked as Optional do not need to be defined in your JSON
// TODO
// TODO
// TODO
// TODO
{
"domain": "foo",
"path": "bar"
}
{
"id": ResourceLocation,
"variant": "foo=bar"
}
-
idRequired- The block ID for this state. See the ResourceLocation serializer.
-
variantOptional- A map of property names to values, separated by commas.
{
"id": ResourceLocation,
"amount": 1,
"meta": 0,
"nbt": ""
}
-
idRequired- The item ID for this item. See the ResourceLocation serializer.
-
amountOptional- The amount of this item. Defaults to
1.
- The amount of this item. Defaults to
-
metaOptional- The damage value of this item. Defaults to
0.
- The damage value of this item. Defaults to
-
nbtOptional- An NBT compound for this item. Uses the Vanilla Minecraft NBT String format. Defaults to
"".
- An NBT compound for this item. Uses the Vanilla Minecraft NBT String format. Defaults to
-
minLightRequired- (Integer) Minimum light level needed for seed/crop growth to occur.
-
maxLightRequired- (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