How to Create Content ‐ Basics - FlansMods/FlansModReloaded GitHub Wiki
Creating a Content File
Definition files are written in the JSON format
Definitions go in the folder resources/data/<your_content_pack_modid>/<content_type>/
Content Types
Shared Elements
ItemSettings
Any Definition that may have an item associated with it will have one of these somewhere in its Definition.
maxStackSize
: How many items of this type can go in a stack? Some types, like guns or vehicles are limited to 1 no matter what.tags
: An array of tag IDs. Note: This does not actually apply the tags in-game. If you are using the Content Tool to export your pack, this tag array will be used to construct the tag .jsons for Minecraft to read. (See: Page TODO)
"itemSettings": {
"maxStackSize": 1,
"tags": [
"flansmod:gun",
"flansvendersgame:hm_craftable"
]
}
Paintjobs
Some types are paintable. If so, they will have the option to setup different paintjobs here. This is a JSON object, containing a JSON array.
textureName
: The key to lookup for the item icon and/or 3D model skin. These can be setup in the TurboRig (Link: TODO)paintBucketsRequired
: An optional way of setting a cost for painting in survival. The base mod adds Rainbow Paintcans to loot tables, which are the requirement for this cost.entitlementKey
: Not yet functional, but may be used to allow pack creators to set up Patreon exclusives.
"paints": {
"paintjobs": [
{
"textureName": "hm_14_olive",
"paintBucketsRequired": 1,
"entitlementKey": ""
},
{
"textureName": "hm_14_wood",
"paintBucketsRequired": 1,
"entitlementKey": ""
}
]
}