GrowthcraftCE / Growthcraft-Deco

Growthcraft Decorations is a Forge mod for Minecraft. It adds decorative blocks to the game.
GNU General Public License v3.0
1 stars 0 forks source link

[1.19] Add Vanilla Glowing Stairs #16

Closed Alatyami closed 1 year ago

Alatyami commented 1 year ago

Description

Mirror the vanilla block and block properties and add a custom light level.

Recipe

B = Vanilla Stair Block G = Glowstone or Shroomlight

| B | B | B | | B | G | B | | B | B | B |

New Blocks

Add glowing variations of all 50 vanilla stair blocks.

  "block.growthcraft_deco.stairs_oak_glowing": "Oak Stairs Glowing",
  "block.growthcraft_deco.stairs_spruce_glowing": "Spruce Stairs Glowing",
  "block.growthcraft_deco.stairs_birch_glowing": "Birch Stairs Glowing",
  "block.growthcraft_deco.stairs_jungle_glowing": "Jungle Stairs Glowing",
  "block.growthcraft_deco.stairs_acacia_glowing": "Acacia Stairs Glowing",
  "block.growthcraft_deco.stairs_dark_oak_glowing": "Dark Oak Stairs Glowing",
  "block.growthcraft_deco.stairs_mangrove_glowing": "Mangrove Stairs Glowing",
  "block.growthcraft_deco.stairs_dark_prismarine_glowing": "Dark Primarine Stairs Glowing",
  "block.growthcraft_deco.stairs_prismarine_glowing": "Prismarine Stairs Glowing",
  "block.growthcraft_deco.stairs_prismarine_brick_glowing": "Prismarine Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_cobblestone_glowing": "Cobblestone Stairs Glowing",
  "block.growthcraft_deco.stairs_sandstone_glowing": "Sandstone Stairs Glowing",
  "block.growthcraft_deco.stairs_red_sandstone_glowing": "Red Sandstone Stairs Glowing",
  "block.growthcraft_deco.stairs_brick_glowing": "Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_stone_brick_glowing": "Stone Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_mud_brick_glowing": "Mud Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_nether_brick_glowing": "Nether Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_warped_glowing": "Warped Stairs Glowing",
  "block.growthcraft_deco.stairs_crimson_glowing": "Crimson Stairs Glowing",
  "block.growthcraft_deco.stairs_quartz_glowing": "Quartz Stairs Glowing",
  "block.growthcraft_deco.stairs_purpur_glowing": "Purpur Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_granite_glowing": "Polished Granite Stairs Glowing",
  "block.growthcraft_deco.stairs_smooth_red_sandstone_glowing": "Smooth Red Sandstone Stairs Glowing",
  "block.growthcraft_deco.stairs_mossy_stone_brick_glowing": "Mossy Stone Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_diorite_glowing": "Polished Diorite Stairs Glowing",
  "block.growthcraft_deco.stairs_mossy_cobblestone_glowing": "Mossy Cobblestone Stairs Glowing",
  "block.growthcraft_deco.stairs_end_stone_brick_glowing": "End Stone Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_stone_glowing": "Stone Stairs Glowing",
  "block.growthcraft_deco.stairs_smooth_sandstone_glowing": "Smooth Sandstone Stairs Glowing",
  "block.growthcraft_deco.stairs_smooth_quartz_glowing": "Smooth Quartz Stairs Glowing",
  "block.growthcraft_deco.stairs_granite_glowing": "Granite Stairs Glowing",
  "block.growthcraft_deco.stairs_andesite_glowing": "Andesite Stairs Glowing",
  "block.growthcraft_deco.stairs_red_nether_brick_glowing": "Red Nether Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_andesite_glowing": "Polished Andesite Stairs Glowing",
  "block.growthcraft_deco.stairs_diorite_glowing": "Diorite Stairs Glowing",
  "block.growthcraft_deco.stairs_blackstone_glowing": "Blackstone Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_blackstone_brick_glowing": "Polished Blackstone Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_blackstone_glowing": "Polished Blackstone Stairs Glowing",
  "block.growthcraft_deco.stairs_cut_copper_glowing": "Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_exposed_cut_copper_glowing": "Exposed Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_weathered_cut_copper_glowing": "Weathered Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_oxidized_cut_copper_glowing": "Oxidized Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_waxed_cut_copper_glowing": "Waxed Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_waxed_exposed_cut_copper_glowing": "Waxed Exposed Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_waxed_weathered_cut_copper_glowing": "Waxed Weathered Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_waxed_oxidized_cut_copper_glowing": "Waxed Oxidized Cut Copper Stairs Glowing",
  "block.growthcraft_deco.stairs_cobbled_deepslate_glowing": "Cobbled Deepslate Stairs Glowing",
  "block.growthcraft_deco.stairs_polished_deepslate_glowing": "Polished Deepslate Stairs Glowing",
  "block.growthcraft_deco.stairs_deepslate_brick_glowing": "Deepslate Brick Stairs Glowing",
  "block.growthcraft_deco.stairs_deepslate_tile_glowing": "Deepslate Tile Stairs Glowing"
Alatyami commented 1 year ago

New block registry entry

public static final RegistryObject<Block> STAIR_OAK_GLOWING = registerBlock(
        Reference.UnlocalizedName.STAIR_OAK_GLOWING,
        () -> new GlowingStairBlock(Blocks.OAK_STAIRS.defaultBlockState(), 
                  BlockBehaviour.Properties.copy(Blocks.OAK_STAIRS))
);
Alatyami commented 1 year ago

blockstate.json

{
  "variants": {
    "facing=east,half=bottom,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 270
    },
    "facing=east,half=bottom,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner"
    },
    "facing=east,half=bottom,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 270
    },
    "facing=east,half=bottom,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer"
    },
    "facing=east,half=bottom,shape=straight": {
      "model": "minecraft:block/acacia_stairs"
    },
    "facing=east,half=top,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180
    },
    "facing=east,half=top,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 90
    },
    "facing=east,half=top,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180
    },
    "facing=east,half=top,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 90
    },
    "facing=east,half=top,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "x": 180
    },
    "facing=north,half=bottom,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 180
    },
    "facing=north,half=bottom,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 270
    },
    "facing=north,half=bottom,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 180
    },
    "facing=north,half=bottom,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 270
    },
    "facing=north,half=bottom,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "y": 270
    },
    "facing=north,half=top,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 270
    },
    "facing=north,half=top,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180
    },
    "facing=north,half=top,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 270
    },
    "facing=north,half=top,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180
    },
    "facing=north,half=top,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "x": 180,
      "y": 270
    },
    "facing=south,half=bottom,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner"
    },
    "facing=south,half=bottom,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 90
    },
    "facing=south,half=bottom,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer"
    },
    "facing=south,half=bottom,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 90
    },
    "facing=south,half=bottom,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "y": 90
    },
    "facing=south,half=top,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 90
    },
    "facing=south,half=top,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 180
    },
    "facing=south,half=top,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 90
    },
    "facing=south,half=top,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 180
    },
    "facing=south,half=top,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "x": 180,
      "y": 90
    },
    "facing=west,half=bottom,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 90
    },
    "facing=west,half=bottom,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "y": 180
    },
    "facing=west,half=bottom,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 90
    },
    "facing=west,half=bottom,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "y": 180
    },
    "facing=west,half=bottom,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "y": 180
    },
    "facing=west,half=top,shape=inner_left": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 180
    },
    "facing=west,half=top,shape=inner_right": {
      "model": "minecraft:block/acacia_stairs_inner",
      "uvlock": true,
      "x": 180,
      "y": 270
    },
    "facing=west,half=top,shape=outer_left": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 180
    },
    "facing=west,half=top,shape=outer_right": {
      "model": "minecraft:block/acacia_stairs_outer",
      "uvlock": true,
      "x": 180,
      "y": 270
    },
    "facing=west,half=top,shape=straight": {
      "model": "minecraft:block/acacia_stairs",
      "uvlock": true,
      "x": 180,
      "y": 180
    }
  }
}