Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "forge_marker": 1,
- "defaults": {
- "textures": {"texture": "blocks/planks_acacia"},
- "model": "fence_post",
- "submodel": { // Submodels are essentially variant objects (like their owner variants), combined in a block model in code.
- "removed_in_variants": { // To show that submodels can be removed as well as added.
- "model": "random" // This model does not exist.
- }
- }
- },
- "variants": {
- "east": {
- "true": {
- "submodel": {
- "east_connect": [ // Submodels can have multiple variants, contained in a json array.
- {
- "model": "fence_connect",
- "y": 90 // Submodels can be rotated. However, submodels' rotation will be combined with their owner's rotation.
- }, // This means that if the owner is rotated 90 degrees and a submodel's rotation is 90 degrees, the submodel will be rendered rotated 180 degrees.
- {
- "model": "fence_connect",
- "y": 90
- }
- ],
- "removed_in_variants": null // This removes the submodel declared in "defaults".
- }
- },
- "false": {} // All properties and values must be declared like this, or some or all states will have missing models.
- },
- "north": {
- "true": {
- "submodel": {
- "north_connect": { // Submodels can also be defined with one variant object, not contained in an array.
- "model": "fence_connect"
- },
- "removed_in_variants": null
- }
- },
- "false": {}
- },
- "south": {
- "true": {
- "submodel": {
- "south_connect": {
- "model": "fence_connect",
- "y": 180
- },
- "removed_in_variants": null
- }
- },
- "false": {}
- },
- "west": {
- "true": {
- "submodel": "fence_connect", // Simple submodels cannot remove or add any submodels, only add a single submodel.
- "y": 270
- },
- "false": {}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement