Skip to content

block_states

AlcatrazEscapee edited this page May 26, 2022 · 4 revisions

A collection of helper functions for creating common vanilla block state Jsons.

Usage:

from mcresources import block_states

Methods

slab_variants(block: str, block_slab: str, block_slab_top: str) -> JsonObject
stairs_variants(stairs: str, stairs_inner: str, stairs_outer: str) -> JsonObject
fence_multipart(fence_post: str, fence_side: str) -> Json
fence_gate_variants(fence_gate: str, fence_gate_open: str, fence_gate_wall: str, fence_gate_wall_open: str) -> JsonObject
wall_multipart(wall_post: str, wall_side: str, wall_side_tall: str) -> Json
door_blockstate(door_bottom: str, door_bottom_hinge: str, door_top: str, door_top_hinge: str) -> JsonObject
trapdoor_blockstate(trapdoor_bottom: str, trapdoor_top: str, trapdoor_open: str) -> JsonObject
button_blockstate(button: str, pressed: str) -> JsonObject
pressure_plate_variants(pressure_plate: str, pressure_plate_down: str) -> JsonObject