Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- solarpanel.java:
- package com.wezulaweciarz.basinica.blocks;
- import net.minecraft.block.Block;
- import net.minecraft.block.SoundType;
- import net.minecraft.block.material.Material;
- public class SolarPanel extends Block {
- public SolarPanel() {
- super(Properties.create(Material.IRON)
- .sound(SoundType.METAL)
- .hardnessAndResistance(2.0f)
- .lightValue(14)
- );
- setRegistryName("solarpanel");
- }
- }
- blockstate:
- {
- "variants": {
- "": { "model": "basinica:block/solarpanel"}
- }
- }
- model:
- {
- "credit": "Basinica Solar Panel",
- "textures": {
- "3": "basinica:block/solar_panel",
- "4": "basinica:block/solar_gray",
- "5": "basinica:block/solar_connector"
- },
- "elements": [
- {
- "name": "holder",
- "from": [4, 0, 4],
- "to": [12, 1, 12],
- "faces": {
- "north": {"uv": [0, 0, 8, 1], "texture": "#4"},
- "east": {"uv": [0, 0, 8, 1], "texture": "#4"},
- "south": {"uv": [0, 0, 8, 1], "texture": "#4"},
- "west": {"uv": [0, 0, 8, 1], "texture": "#4"},
- "up": {"uv": [0, 0, 8, 1], "texture": "#4"},
- "down": {"uv": [0, 0, 8, 1], "texture": "#4"}
- }
- },
- {
- "name": "support",
- "from": [7, 1, 7],
- "to": [9, 6, 9],
- "faces": {
- "north": {"uv": [0, 0, 16, 16], "texture": "#5"},
- "east": {"uv": [0, 0, 16, 16], "texture": "#5"},
- "south": {"uv": [0, 0, 16, 16], "texture": "#5"},
- "west": {"uv": [0, 0, 16, 16], "texture": "#5"},
- "up": {"uv": [0, 0, 16, 16], "texture": "#5"},
- "down": {"uv": [0, 0, 16, 16], "texture": "#5"}
- }
- },
- {
- "name": "panel",
- "from": [0, 6, 0],
- "to": [16, 7, 16],
- "faces": {
- "north": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "east": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "south": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "west": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "up": {"uv": [0, 0, 16, 16], "texture": "#3"},
- "down": {"uv": [0, 0, 16, 16], "texture": "#4"}
- }
- },
- {
- "name": "holder connector",
- "from": [6, 1, 6],
- "to": [10, 2, 10],
- "faces": {
- "north": {"uv": [0, 0, 4, 1], "texture": "#4"},
- "east": {"uv": [0, 0, 4, 1], "texture": "#4"},
- "south": {"uv": [0, 0, 4, 1], "texture": "#4"},
- "west": {"uv": [0, 0, 4, 1], "texture": "#4"},
- "up": {"uv": [0, 0, 4, 1], "texture": "#4"},
- "down": {"uv": [0, 0, 4, 1], "texture": "#4"}
- }
- },
- {
- "name": "panel connector",
- "from": [6, 5, 6],
- "to": [10, 6, 10],
- "faces": {
- "north": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "east": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "south": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "west": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "up": {"uv": [0, 0, 16, 16], "texture": "#4"},
- "down": {"uv": [0, 0, 16, 16], "texture": "#4"}
- }
- }
- ],
- "display": {
- "thirdperson_righthand": {
- "rotation": [75, 315, 0],
- "translation": [0, 2.5, 0],
- "scale": [0.375, 0.375, 0.375]
- },
- "firstperson_righthand": {
- "rotation": [0, 315, 0],
- "translation": [0, 2.5, 0],
- "scale": [0.4, 0.4, 0.4]
- },
- "ground": {
- "translation": [0, 3, 0],
- "scale": [0.25, 0.25, 0.25]
- },
- "gui": {
- "rotation": [30, 45, 0],
- "scale": [0.625, 0.625, 0.625]
- },
- "head": {
- "rotation": [0, 180, 0]
- },
- "fixed": {
- "rotation": [0, 180, 0]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement