Advertisement
Guest User

acacia_fence.json

a guest
May 27th, 2015
303
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "forge_marker": 1,
  3.     "defaults": {
  4.         "textures": {"texture": "blocks/planks_acacia"},
  5.         "model": "fence_post",
  6.         "submodel": {   // Submodels are essentially variant objects (like their owner variants), combined in a block model in code.
  7.             "removed_in_variants": {    // To show that submodels can be removed as well as added.
  8.                 "model": "random"   // This model does not exist.
  9.             }
  10.         }
  11.     },
  12.     "variants": {
  13.         "east": {
  14.             "true": {
  15.                 "submodel": {
  16.                     "east_connect": [   // Submodels can have multiple variants, contained in a json array.
  17.                         {
  18.                             "model": "fence_connect",
  19.                             "y": 90 // Submodels can be rotated. However, submodels' rotation will be combined with their owner's rotation.
  20.                         },          // 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.
  21.                         {
  22.                             "model": "fence_connect",
  23.                             "y": 90
  24.                         }
  25.                     ],
  26.                     "removed_in_variants": null // This removes the submodel declared in "defaults".
  27.                 }
  28.             },
  29.             "false": {} // All properties and values must be declared like this, or some or all states will have missing models.
  30.         },
  31.         "north": {
  32.             "true": {
  33.                 "submodel": {
  34.                     "north_connect": {  // Submodels can also be defined with one variant object, not contained in an array.
  35.                         "model": "fence_connect"
  36.                     },
  37.                     "removed_in_variants": null
  38.                 }
  39.             },
  40.             "false": {}
  41.         },
  42.         "south": {
  43.             "true": {
  44.                 "submodel": {
  45.                     "south_connect": {
  46.                         "model": "fence_connect",
  47.                         "y": 180
  48.                     },
  49.                     "removed_in_variants": null
  50.                 }
  51.             },
  52.             "false": {}
  53.         },
  54.         "west": {
  55.             "true": {
  56.                 "submodel": "fence_connect",    // Simple submodels cannot remove or add any submodels, only add a single submodel.
  57.                 "y": 270
  58.             },
  59.             "false": {}
  60.         }
  61.     }
  62. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement