SHARE
TWEET

Untitled

a guest Aug 25th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. solarpanel.java:
  2.  
  3. package com.wezulaweciarz.basinica.blocks;
  4.  
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.SoundType;
  7. import net.minecraft.block.material.Material;
  8.  
  9. public class SolarPanel extends Block {
  10.     public SolarPanel() {
  11.         super(Properties.create(Material.IRON)
  12.                 .sound(SoundType.METAL)
  13.                 .hardnessAndResistance(2.0f)
  14.                 .lightValue(14)
  15.         );
  16.         setRegistryName("solarpanel");
  17.     }
  18. }
  19.  
  20. blockstate:
  21.  
  22. {
  23.   "variants": {
  24.     "": { "model": "basinica:block/solarpanel"}
  25.   }
  26. }
  27.  
  28.  
  29. model:
  30.  
  31. {
  32.     "credit": "Basinica Solar Panel",
  33.     "textures": {
  34.         "3": "basinica:block/solar_panel",
  35.         "4": "basinica:block/solar_gray",
  36.         "5": "basinica:block/solar_connector"
  37.     },
  38.     "elements": [
  39.         {
  40.             "name": "holder",
  41.             "from": [4, 0, 4],
  42.             "to": [12, 1, 12],
  43.             "faces": {
  44.                 "north": {"uv": [0, 0, 8, 1], "texture": "#4"},
  45.                 "east": {"uv": [0, 0, 8, 1], "texture": "#4"},
  46.                 "south": {"uv": [0, 0, 8, 1], "texture": "#4"},
  47.                 "west": {"uv": [0, 0, 8, 1], "texture": "#4"},
  48.                 "up": {"uv": [0, 0, 8, 1], "texture": "#4"},
  49.                 "down": {"uv": [0, 0, 8, 1], "texture": "#4"}
  50.             }
  51.         },
  52.         {
  53.             "name": "support",
  54.             "from": [7, 1, 7],
  55.             "to": [9, 6, 9],
  56.             "faces": {
  57.                 "north": {"uv": [0, 0, 16, 16], "texture": "#5"},
  58.                 "east": {"uv": [0, 0, 16, 16], "texture": "#5"},
  59.                 "south": {"uv": [0, 0, 16, 16], "texture": "#5"},
  60.                 "west": {"uv": [0, 0, 16, 16], "texture": "#5"},
  61.                 "up": {"uv": [0, 0, 16, 16], "texture": "#5"},
  62.                 "down": {"uv": [0, 0, 16, 16], "texture": "#5"}
  63.             }
  64.         },
  65.         {
  66.             "name": "panel",
  67.             "from": [0, 6, 0],
  68.             "to": [16, 7, 16],
  69.             "faces": {
  70.                 "north": {"uv": [0, 0, 16, 16], "texture": "#4"},
  71.                 "east": {"uv": [0, 0, 16, 16], "texture": "#4"},
  72.                 "south": {"uv": [0, 0, 16, 16], "texture": "#4"},
  73.                 "west": {"uv": [0, 0, 16, 16], "texture": "#4"},
  74.                 "up": {"uv": [0, 0, 16, 16], "texture": "#3"},
  75.                 "down": {"uv": [0, 0, 16, 16], "texture": "#4"}
  76.             }
  77.         },
  78.         {
  79.             "name": "holder connector",
  80.             "from": [6, 1, 6],
  81.             "to": [10, 2, 10],
  82.             "faces": {
  83.                 "north": {"uv": [0, 0, 4, 1], "texture": "#4"},
  84.                 "east": {"uv": [0, 0, 4, 1], "texture": "#4"},
  85.                 "south": {"uv": [0, 0, 4, 1], "texture": "#4"},
  86.                 "west": {"uv": [0, 0, 4, 1], "texture": "#4"},
  87.                 "up": {"uv": [0, 0, 4, 1], "texture": "#4"},
  88.                 "down": {"uv": [0, 0, 4, 1], "texture": "#4"}
  89.             }
  90.         },
  91.         {
  92.             "name": "panel connector",
  93.             "from": [6, 5, 6],
  94.             "to": [10, 6, 10],
  95.             "faces": {
  96.                 "north": {"uv": [0, 0, 16, 16], "texture": "#4"},
  97.                 "east": {"uv": [0, 0, 16, 16], "texture": "#4"},
  98.                 "south": {"uv": [0, 0, 16, 16], "texture": "#4"},
  99.                 "west": {"uv": [0, 0, 16, 16], "texture": "#4"},
  100.                 "up": {"uv": [0, 0, 16, 16], "texture": "#4"},
  101.                 "down": {"uv": [0, 0, 16, 16], "texture": "#4"}
  102.             }
  103.         }
  104.     ],
  105.     "display": {
  106.         "thirdperson_righthand": {
  107.             "rotation": [75, 315, 0],
  108.             "translation": [0, 2.5, 0],
  109.             "scale": [0.375, 0.375, 0.375]
  110.         },
  111.         "firstperson_righthand": {
  112.             "rotation": [0, 315, 0],
  113.             "translation": [0, 2.5, 0],
  114.             "scale": [0.4, 0.4, 0.4]
  115.         },
  116.         "ground": {
  117.             "translation": [0, 3, 0],
  118.             "scale": [0.25, 0.25, 0.25]
  119.         },
  120.         "gui": {
  121.             "rotation": [30, 45, 0],
  122.             "scale": [0.625, 0.625, 0.625]
  123.         },
  124.         "head": {
  125.             "rotation": [0, 180, 0]
  126.         },
  127.         "fixed": {
  128.             "rotation": [0, 180, 0]
  129.         }
  130.     }
  131. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top