::[Bat To Exe Converter]
::
::YAwzoRdxOk+EWAnk
::fBw5plQjdG8=
::YAwzuBVtJxjWCl3EqQJgSA==
::ZR4luwNxJguZRRnk
::Yhs/ulQjdF+5
::cxAkpRVqdFKZSjk=
::cBs/ulQjdF+5
::ZR41oxFsdFKZSTk=
::eBoioBt6dFKZSDk=
::cRo6pxp7LAbNWATEpCI=
::egkzugNsPRvcWATEpCI=
::dAsiuh18IRvcCxnZtBJQ
::cRYluBh/LU+EWAnk
::YxY4rhs+aU+IeA==
::cxY6rQJ7JhzQF1fEqQJgZksaH0rSXA==
::ZQ05rAF9IBncCkqN+0xwdVsEAlTMbyXqZg==
::ZQ05rAF9IAHYFVzEqQIUKQ9VawGMXA==
::eg0/rx1wNQPfEVWB+kM9LVsJDCCDKGqdA7t8
::fBEirQZwNQPfEVWB+kM9LVsJDGQ=
::cRolqwZ3JBvQF1fEqQITJwlRaRyWOWWpD7oSqMz6++ugp0NdVvt/V5vU95WqM6Aw5krxcdZglv2SeEzJ8py5q5RpqG8=
::dhA7uBVwLU+EWDk=
::YQ03rBFzNR3SWATElA==
::dhAmsQZ3MwfNWATE21Y/BTpwX0ShMGSvAvVRqG8zD21CXMr8gWT9vu8=
::ZQ0/vhVqMQ3MEVWAtB9wSA==
::Zg8zqx1/OA3MEVWAtB9wSA==
::dhA7pRFwIByZRRnk
::Zh4grVQjdCuDJH6W9UY8LSdyTQaQNWjrSOdMprnH7f+OrkkhcOMreaje1Je7Ca0k40vgeoE+m0wK1phCXVVdZhfL
::YB416Ek+ZW8=
::
::
::978f952a14a936cc963da21a135fa983
@ECHO OFF
REM  QBFC Project Options Begin
REM  HasVersionInfo: No
REM Companyname: OtoMAD Clouds
REM Productname: DataGen
REM Filedescription: Generator
REM Copyrights: OtoMAD Clouds - ϡ������ GPLv3
REM Trademarks: 
REM Originalname: 
REM Comments: 
REM Productversion: 0 .1 .0 .0 
REM Fileversion:  0. 1. 0. 0
REM Internalname: DataGen
REM ExeType: console
REM Architecture: x64
REM Appicon: 
REM AdministratorManifest: Yes
REM  QBFC Project Options End
@ECHO ON
@echo off
::cls
setlocal
SET VERSIONS=0.3.1
SET ROOT=%cd%
SET WORKDIR=%cd%/assets
SET NAMESPACE=%2
SET BLOCKSTATES=%cd%/assets/%NAMESPACE%/blockstates
SET BLOCKMODEL=%cd%/assets/%NAMESPACE%/models/block
SET ITEMMODEL=%cd%/assets/%NAMESPACE%/models/item
SET ITEMTEXTURE=%cd%/assets/%NAMESPACE%/textures/item
SET BLOCKTEXTURE=%cd%/assets/%NAMESPACE%/textures/block
SET ID=%3
SET TITLE=DataGenerator - V%VERSIONS%
title %TITLE%

::SET /p INPUT=MinecraftResourceDir:
::SET WORKDIR=%INPUT%/assets

GOTO CHOICE
::if "%a%"=="1" Goto function1
:CHOICE
IF "%1"=="debug" (
    GOTO DEBUG
) ELSE IF "%1"=="help" (
    GOTO HELP
) ELSE IF "%1"=="setup" (
    GOTO SETUP
) ELSE IF "%1"=="item" (
    GOTO ITEM
) ELSE IF "%1"=="button" (
    GOTO BUTTON
) ELSE IF "%1"=="BUTTON" (
    GOTO BUTTON
) ELSE IF "%1"=="-button" (
    GOTO BUTTON
) ELSE IF "%1"=="tool" (
    GOTO TOOL
) ELSE IF "%1"=="cube_all" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="cube" (
    GOTO CUBE
) ELSE IF "%1"=="stairs" (
    GOTO STAIRS
) ELSE IF "%1"=="slab" (
    GOTO SLAB
) ELSE IF "%1"=="wall" (
    GOTO WALL
) ELSE IF "%1"=="door" (
    GOTO DOOR
) ELSE IF "%1"=="fence" (
    GOTO FENCE
) ELSE IF "%1"=="fence_gate" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="fencegate" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="pressure_plate" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="pressureplate" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="trap_door" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="trapdoor" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="-debug" (
    GOTO DEBUG
) ELSE IF "%1"=="-help" (
    GOTO HELP
) ELSE IF "%1"=="-setup" (
    GOTO SETUP
) ELSE IF "%1"=="-item" (
    GOTO ITEM
) ELSE IF "%1"=="-tool" (
    GOTO TOOL
) ELSE IF "%1"=="-cube_all" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="-cube" (
    GOTO CUBE
) ELSE IF "%1"=="-stairs" (
    GOTO STAIRS
) ELSE IF "%1"=="-slab" (
    GOTO SLAB
) ELSE IF "%1"=="-cubeall" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="-wall" (
    GOTO WALL
) ELSE IF "%1"=="-door" (
    GOTO DOOR
) ELSE IF "%1"=="-fence" (
    GOTO FENCE
) ELSE IF "%1"=="-fence_gate" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="-fencegate" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="-pressure_plate" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="-pressureplate" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="-trap_door" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="-trapdoor" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="-DEBUG" (
    GOTO DEBUG
) ELSE IF "%1"=="-HELP" (
    GOTO HELP
) ELSE IF "%1"=="-SETUP" (
    GOTO SETUP
) ELSE IF "%1"=="-ITEM" (
    GOTO ITEM
) ELSE IF "%1"=="-TOOL" (
    GOTO TOOL
) ELSE IF "%1"=="-CUBE_ALL" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="-CUBE" (
    GOTO CUBE
) ELSE IF "%1"=="-STAIRS" (
    GOTO STAIRS
) ELSE IF "%1"=="-SLAB" (
    GOTO SLAB
) ELSE IF "%1"=="-CUBEALL" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="-WALL" (
    GOTO WALL
) ELSE IF "%1"=="-DOOR" (
    GOTO DOOR
) ELSE IF "%1"=="-FENCE" (
    GOTO FENCE
) ELSE IF "%1"=="-FENCE_GATE" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="-FENCEGATE" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="-PRESSURE_PLATE" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="-PRESSUREPLATE" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="-TRAP_DOOR" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="-TRAPDOOR" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="SETUP" (
    GOTO SETUP
) ELSE IF "%1"=="HELP" (
    GOTO HELP
) ELSE IF "%1"=="SETUP" (
    GOTO SETUP
) ELSE IF "%1"=="ITEM" (
    GOTO ITEM
) ELSE IF "%1"=="TOOL" (
    GOTO TOOL
) ELSE IF "%1"=="CUBE_ALL" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="CUBE" (
    GOTO CUBE
) ELSE IF "%1"=="STAIRS" (
    GOTO STAIRS
) ELSE IF "%1"=="SLAB" (
    GOTO SLAB
) ELSE IF "%1"=="CUBE_ALL" (
    GOTO CUBE_ALL
) ELSE IF "%1"=="WALL" (
    GOTO WALL
) ELSE IF "%1"=="DOOR" (
    GOTO DOOR
) ELSE IF "%1"=="FENCE" (
    GOTO FENCE
) ELSE IF "%1"=="FENCE_GATE" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="FENCEGATE" (
    GOTO FENCE_GATE
) ELSE IF "%1"=="PRESSURE_PLATE" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="PRESSUREPLATE" (
    GOTO PRESSURE_PLATE
) ELSE IF "%1"=="TRAP_DOOR" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="TRAPDOOR" (
    GOTO TRAPDOOR
) ELSE IF "%1"=="allblock" (
    GOTO ALLBLOCK
) ELSE IF "%1"=="ALLBLOCK" (
    GOTO ALLBLOCK
) ELSE IF "%1"=="alltool" (
    GOTO ALLTOOL
) ELSE IF "%1"=="ALLTOOL" (
    GOTO ALLTOOL
) ELSE IF "%1"=="allarmor" (
    GOTO ARMORS
) ELSE IF "%1"=="armor" (
    GOTO ARMORS
) ELSE IF "%1"=="armors" (
    GOTO ARMORS
) ELSE IF "%1"=="ALLARMOR" (
    GOTO ARMORS
) ELSE IF "%1"=="ARMOR" (
    GOTO ARMORS
) ELSE IF "%1"=="ARMORS" (
    GOTO ARMORS
) ELSE IF "%1"=="shield" (
    GOTO SHIELD
) ELSE IF "%1"=="SHIELD" (
    GOTO SHIELD
) ELSE IF "%1"=="/SHIELD" (
    GOTO SHIELD
) ELSE IF "%1"=="?" (
    GOTO HELP
) ELSE IF "%1"=="/?" (
    GOTO HELP
) ELSE IF "%1"=="/help" (
    GOTO HELP
) ELSE IF "%1"=="/HELP" (
    GOTO HELP
) ELSE IF "%1"=="/LOG" (
    GOTO LOGBLOCK
) ELSE IF "%1"=="LOG" (
    GOTO LOGBLOCK
) ELSE IF "%1"=="CROP" (
    GOTO HELP
) ELSE IF "%1"=="CROP" (
    GOTO HELP
) ELSE (
    GOTO HELP
)

:DEBUG
REM SET /p INPUT=MineCraftResourceDir:
REM SET MCRDIR=%INPUT%
REM SET INPUT=0
REM SET /p INPUT=Run:

REM IF "%INPUT%"=="/BLOCKSTATES"
REM IF "%INPUT%"=="/BLOCKMODEL"
REM IF "%INPUT%"=="/ITEMMODEL"
REM IF "%INPUT%"=="/BLOCKMODEL"
ECHO DEBUG DISABLED
GOTO EXIT

:CROP
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_block.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=0": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage0" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=1": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage1" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=2": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage2" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=3": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage3" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=4": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage4" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=5": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage5" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=6": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage6" >> %BLOCKSTATES%/%ID%_block.json
ECHO     }, >> %BLOCKSTATES%/%ID%_block.json
ECHO     "age=7": { >> %BLOCKSTATES%/%ID%_block.json
ECHO       "model": "%NAMESPACE%:block/%ID%_block_stage7" >> %BLOCKSTATES%/%ID%_block.json
ECHO     } >> %BLOCKSTATES%/%ID%_block.json
ECHO   } >> %BLOCKSTATES%/%ID%_block.json
ECHO } >> %BLOCKSTATES%/%ID%_block.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_block_stage0.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage0.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage0" >> %BLOCKMODEL%/%ID%_block_stage0.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage0.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage0.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage0.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage1.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage1.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage1" >> %BLOCKMODEL%/%ID%_block_stage1.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage1.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage1.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage1.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage2.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage2.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage2" >> %BLOCKMODEL%/%ID%_block_stage2.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage2.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage2.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage2.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage3.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage3.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage3" >> %BLOCKMODEL%/%ID%_block_stage3.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage3.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage3.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage3.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage4.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage4.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage4" >> %BLOCKMODEL%/%ID%_block_stage4.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage4.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage4.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage4.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage5.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage5.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage5" >> %BLOCKMODEL%/%ID%_block_stage5.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage5.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage5.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage5.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage6.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage6.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage6" >> %BLOCKMODEL%/%ID%_block_stage6.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage6.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage6.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage6.json

ECHO { > %BLOCKMODEL%/%ID%_block_stage7.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_block_stage7.json
ECHO     "crop": "%NAMESPACE%:block/%ID%_stage7" >> %BLOCKMODEL%/%ID%_block_stage7.json
ECHO   }, >> %BLOCKMODEL%/%ID%_block_stage7.json
ECHO   "parent": "minecraft:block/crop" >> %BLOCKMODEL%/%ID%_block_stage7.json
ECHO } >> %BLOCKMODEL%/%ID%_block_stage7.json

REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_age.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_age.json
ECHO     "layer0": "coreextensions:block/examplecrop_stage7" >> %ITEMMODEL%/%ID%_age.json
ECHO   }, >> %ITEMMODEL%/%ID%_age.json
ECHO   "parent": "minecraft:item/generated" >> %ITEMMODEL%/%ID%_age.json
ECHO } >> %ITEMMODEL%/%ID%_age.json
GOTO EXIT

:LOGBLOCK
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_log.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_log.json
ECHO     "axis=x": { >> %BLOCKSTATES%/%ID%_log.json
ECHO       "model": "%NAMESPACE%:block/%ID%_log_horizontal", > %BLOCKSTATES%/%ID%_log.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_log.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_log.json
ECHO     }, >> %BLOCKSTATES%/%ID%_log.json
ECHO     "axis=y": { >> %BLOCKSTATES%/%ID%_log.json
ECHO       "model": "%NAMESPACE%:block/%ID%_log" >> %BLOCKSTATES%/%ID%_log.json
ECHO     }, > %BLOCKSTATES%/%ID%_log.json
ECHO     "axis=z": { >> %BLOCKSTATES%/%ID%_log.json
ECHO       "model": "%NAMESPACE%:block/%ID%_log_horizontal", >> %BLOCKSTATES%/%ID%_log.json
ECHO       "x": 90 >> %BLOCKSTATES%/%ID%_log.json
ECHO     } >> %BLOCKSTATES%/%ID%_log.json
ECHO   } >> %BLOCKSTATES%/%ID%_log.json
ECHO } >> %BLOCKSTATES%/%ID%_log.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%.json
ECHO   "parent": "minecraft:block/cube_column", >> %BLOCKMODEL%/%ID%.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%.json
ECHO     "end": "%NAMESPACE%:block/%ID%_log_top", >> %BLOCKMODEL%/%ID%.json
ECHO     "side": "%NAMESPACE%:block/%ID%_log" >> %BLOCKMODEL%/%ID%.json
ECHO   } >> %BLOCKMODEL%/%ID%.json
ECHO } >> %BLOCKMODEL%/%ID%.json
ECHO { > %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO   "parent": "minecraft:block/cube_column_horizontal", >> %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO     "end": "%NAMESPACE%:block/%ID%_log_top", >> %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO     "side": "%NAMESPACE%:block/%ID%_log" >> %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO   } >> %BLOCKMODEL%/%ID%_log_horizontal.json
ECHO } >> %BLOCKMODEL%/%ID%_log_horizontal.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_log_horizontal.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_log" >> %ITEMMODEL%/%ID%_log_horizontal.json
ECHO } >> %ITEMMODEL%/%ID%_log_horizontal.json
GOTO EXIT

:CUBE
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%.json
ECHO     "facing=east": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%", >> %BLOCKSTATES%/%ID%.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%.json
ECHO     }, >> %BLOCKSTATES%/%ID%.json
ECHO     "facing=north": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%" >> %BLOCKSTATES%/%ID%.json
ECHO     }, >> %BLOCKSTATES%/%ID%.json
ECHO     "facing=south": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%", >> %BLOCKSTATES%/%ID%.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%.json
ECHO     }, >> %BLOCKSTATES%/%ID%.json
ECHO     "facing=west": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%", >> %BLOCKSTATES%/%ID%.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%.json
ECHO     } >> %BLOCKSTATES%/%ID%.json
ECHO   } >> %BLOCKSTATES%/%ID%.json
ECHO } >> %BLOCKSTATES%/%ID%.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%.json
ECHO   "parent": "minecraft:block/cube", >> %BLOCKMODEL%/%ID%.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%.json
ECHO     "down": "%NAMESPACE%:block/%ID%_down", >> %BLOCKMODEL%/%ID%.json
ECHO     "east": "%NAMESPACE%:block/%ID%_east", >> %BLOCKMODEL%/%ID%.json
ECHO     "north": "%NAMESPACE%:block/%ID%_north", >> %BLOCKMODEL%/%ID%.json
ECHO     "particle": "%NAMESPACE%:block/%ID%_north", >> %BLOCKMODEL%/%ID%.json
ECHO     "south": "%NAMESPACE%:block/%ID%_south", >> %BLOCKMODEL%/%ID%.json
ECHO     "up": "%NAMESPACE%:block/%ID%_up", >> %BLOCKMODEL%/%ID%.json
ECHO     "west": "%NAMESPACE%:block/%ID%_west" >> %BLOCKMODEL%/%ID%.json
ECHO   } >> %BLOCKMODEL%/%ID%.json
ECHO } >> %BLOCKMODEL%/%ID%.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%.json
ECHO   "parent": "%NAMESPACE%:block/%ID%" >> %ITEMMODEL%/%ID%.json
ECHO } >> %ITEMMODEL%/%ID%.json
GOTO EXIT
:CUBE_ALL
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%.json
ECHO     "": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%" >> %BLOCKSTATES%/%ID%.json
ECHO     } >> %BLOCKSTATES%/%ID%.json
ECHO   } >> %BLOCKSTATES%/%ID%.json
ECHO } >> %BLOCKSTATES%/%ID%.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%.json
ECHO   "parent": "block/cube_all", >> %BLOCKMODEL%/%ID%.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%.json
ECHO     "all": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%.json
ECHO   } >> %BLOCKMODEL%/%ID%.json
ECHO } >> %BLOCKMODEL%/%ID%.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%.json
ECHO   "parent": "%NAMESPACE%:block/%ID%" >> %ITEMMODEL%/%ID%.json
ECHO } >> %ITEMMODEL%/%ID%.json
GOTO EXIT

:SHIELD
REM ITEM
ECHO { > %ITEMMODEL%/%ID%_shield.json
ECHO     "parent":"fabricshieldlib:item/fabric_shield", >> %ITEMMODEL%/%ID%_shield.json
ECHO     "textures":{ >> %ITEMMODEL%/%ID%_shield.json
ECHO         "shield":"%NAMESPACE%:item/%ID%_shield" >> %ITEMMODEL%/%ID%_shield.json
ECHO     }, >> %ITEMMODEL%/%ID%_shield.json
ECHO     "overrides": [ >> %ITEMMODEL%/%ID%_shield.json
ECHO         { >> %ITEMMODEL%/%ID%_shield.json
ECHO             "predicate": { >> %ITEMMODEL%/%ID%_shield.json
ECHO                 "blocking": 1 >> %ITEMMODEL%/%ID%_shield.json
ECHO             }, >> %ITEMMODEL%/%ID%_shield.json
ECHO             "model": "%NAMESPACE%:item/%ID%_shield_blocking" >> %ITEMMODEL%/%ID%_shield.json
ECHO         } >> %ITEMMODEL%/%ID%_shield.json
ECHO     ] >> %ITEMMODEL%/%ID%_shield.json
ECHO }
REM ITEM_BLOCKING
ECHO { > %ITEMMODEL%/%ID%_shield_blocking.json
ECHO     "parent":"fabricshieldlib:item/fabric_shield_blocking", >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO     "textures":{ >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO         "shield":"%NAMESPACE%:item/%ID%_shield" >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO     }, >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO     "overrides": [ >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO         { >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO             "predicate": { >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO                 "blocking": 1 >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO             }, >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO             "model": "%NAMESPACE%:item/%ID%_shield_blocking" >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO         } >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO     ] >> %ITEMMODEL%/%ID%_shield_blocking.json
ECHO } >> %ITEMMODEL%/%ID%_shield_blocking.json
GOTO EXIT

:STAIRS
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_stairs.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     } >> %BLOCKSTATES%/%ID%_stairs.json
ECHO   } >> %BLOCKSTATES%/%ID%_stairs.json
ECHO } >> %BLOCKSTATES%/%ID%_stairs.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_stairs.json
ECHO   "parent": "minecraft:block/stairs", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs.json
ECHO { > %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   "parent": "minecraft:block/inner_stairs", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO { > %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "parent": "minecraft:block/outer_stairs", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_outer.json
REM MODEL-ITEM
ECHO { > %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "parent": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_outer.json
GOTO EXIT

:SLAB
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_slab.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=bottom": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%_slab" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     }, >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=double": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     }, >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=top": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%_slab_top" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     } >> %BLOCKSTATES%/%ID%_slab.json
ECHO   } >> %BLOCKSTATES%/%ID%_slab.json
ECHO } >> %BLOCKSTATES%/%ID%_slab.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_slab.json
ECHO   "parent": "minecraft:block/slab", >> %BLOCKMODEL%/%ID%_slab.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_slab.json
ECHO   } >> %BLOCKMODEL%/%ID%_slab.json
ECHO } >> %BLOCKMODEL%/%ID%_slab.json
ECHO { > %BLOCKMODEL%/%ID%_slab_top.json
ECHO   "parent": "minecraft:block/slab_top", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO   } >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO } >> %BLOCKMODEL%/%ID%_slab_top.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_slab.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_slab" >> %ITEMMODEL%/%ID%_slab.json
ECHO } >> %ITEMMODEL%/%ID%_slab.json
GOTO EXIT

:FENCE
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_fence.json
ECHO   "multipart": [ >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_post" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "north": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "east": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "south": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "west": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     } >> %BLOCKSTATES%/%ID%_fence.json
ECHO   ] >> %BLOCKSTATES%/%ID%_fence.json
ECHO } >> %BLOCKSTATES%/%ID%_fence.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_fence_post.json
ECHO   "parent": "minecraft:block/fence_post", >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO { > %BLOCKMODEL%/%ID%_fence_side.json
ECHO   "parent": "minecraft:block/fence_side", >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO { > %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   "parent": "minecraft:block/fence_inventory", >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_inventory.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_fence.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_fence_inventory" >> %ITEMMODEL%/%ID%_fence.json
ECHO } >> %ITEMMODEL%/%ID%_fence.json
GOTO EXIT

:FENCE_GATE
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_fence_gate.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     } >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO   } >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO } >> %BLOCKSTATES%/%ID%_fence_gate.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   "parent": "minecraft:block/template_fence_gate", >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   "parent": "minecraft:block/template_fence_gate_open", >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   "parent": "minecraft:block/template_fence_gate_wall", >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   "parent": "minecraft:block/template_fence_gate_wall_open", >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_fence_gate.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_fence_gate" >> %ITEMMODEL%/%ID%_fence_gate.json
ECHO } >> %ITEMMODEL%/%ID%_fence_gate.json
GOTO EXIT

:DOOR
REM BLOCKSTATES
ECHO { >> %BLOCKSTATES%/%ID%_door.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     } >> %BLOCKSTATES%/%ID%_door.json
ECHO   } >> %BLOCKSTATES%/%ID%_door.json
ECHO } >> %BLOCKSTATES%/%ID%_door.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   "parent": "minecraft:block/door_bottom_left", >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   "parent": "minecraft:block/door_bottom_left_open", >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   "parent": "minecraft:block/door_bottom_right", >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   "parent": "minecraft:block/door_bottom_right_open", >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   "parent": "minecraft:block/door_top_left", >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   "parent": "minecraft:block/door_top_left_open", >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   "parent": "minecraft:block/door_top_right", >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   "parent": "minecraft:block/door_top_right_open", >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_right_open.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_door.json
ECHO   "parent": "minecraft:item/generated", >> %ITEMMODEL%/%ID%_door.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_door.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_door" >> %ITEMMODEL%/%ID%_door.json
ECHO   } >> %ITEMMODEL%/%ID%_door.json
ECHO } >> %ITEMMODEL%/%ID%_door.json
GOTO EXIT

:BUTTON
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_button.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button" >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed" >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     } >> %BLOCKSTATES%/%ID%_button.json
ECHO   } >> %BLOCKSTATES%/%ID%_button.json
ECHO } >> %BLOCKSTATES%/%ID%_button.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_button.json
ECHO   "parent": "minecraft:block/button", >> %BLOCKMODEL%/%ID%_button.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button.json
ECHO   } >> %BLOCKMODEL%/%ID%_button.json
ECHO } >> %BLOCKMODEL%/%ID%_button.json
ECHO { > %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   "parent": "minecraft:block/button_inventory", >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO { > %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   "parent": "minecraft:block/button_pressed", >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   } >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO } >> %BLOCKMODEL%/%ID%_button_pressed.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_button.json
ECHO   "parent": "%NAMESPACE%:block/other_button_inventory" >> %ITEMMODEL%/%ID%_button.json
ECHO } >> %ITEMMODEL%/%ID%_button.json
GOTO EXIT

:PRESSURE_PLATE
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     "powered=false": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_pressure_plate" >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     "powered=true": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_pressure_plate_down" >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     } >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO   } >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO } >> %BLOCKSTATES%/%ID%_pressure_plate.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   "parent": "minecraft:block/pressure_plate_up", >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   } >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO } >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO { > %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   "parent": "minecraft:block/pressure_plate_down", >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   } >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO } >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_pressure_plate.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_pressure_plate" >> %ITEMMODEL%/%ID%_pressure_plate.json
ECHO } >> %ITEMMODEL%/%ID%_pressure_plate.json
GOTO EXIT

:WALL
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_wall.json
ECHO   "multipart": [ >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_post" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "up": "true" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "north": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "east": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "south": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "west": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "north": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "east": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "south": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "west": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     } >> %BLOCKSTATES%/%ID%_wall.json
ECHO   ] >> %BLOCKSTATES%/%ID%_wall.json
ECHO } >> %BLOCKSTATES%/%ID%_wall.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   "parent": "minecraft:block/wall_inventory", >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO { > %BLOCKMODEL%/%ID%_wall_post.json
ECHO   "parent": "minecraft:block/template_wall_post", >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO { > %BLOCKMODEL%/%ID%_wall_side.json
ECHO   "parent": "minecraft:block/template_wall_side", >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO { > %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   "parent": "minecraft:block/template_wall_side_tall", >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_side_tall.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_wall.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_wall_inventory" >> %ITEMMODEL%/%ID%_wall.json
ECHO } >> %ITEMMODEL%/%ID%_wall.json
GOTO EXIT

:TRAPDOOR
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_trapdoor.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     } >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO   } >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO } >> %BLOCKSTATES%/%ID%_trapdoor.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   "parent": "minecraft:block/template_trapdoor_bottom", >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   "parent": "minecraft:block/template_trapdoor_open", >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   "parent": "minecraft:block/template_trapdoor_top", >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_top.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_trapdoor.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %ITEMMODEL%/%ID%_trapdoor.json
ECHO } >> %ITEMMODEL%/%ID%_trapdoor.json
GOTO EXIT

:TOOL
ECHO { > %ITEMMODEL%/%ID%.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%" >> %ITEMMODEL%/%ID%.json
ECHO   } >> %ITEMMODEL%/%ID%.json
ECHO } >> %ITEMMODEL%/%ID%.json
GOTO EXIT

:SWORD
ECHO { > %ITEMMODEL%/%ID%_sword.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_sword.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_sword.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_sword" >> %ITEMMODEL%/%ID%_sword.json
ECHO   } >> %ITEMMODEL%/%ID%_sword.json
ECHO } >> %ITEMMODEL%/%ID%_sword.json
GOTO EXIT

:PICKAXE
ECHO { > %ITEMMODEL%/%ID%_pickaxe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_pickaxe" >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO   } >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO } >> %ITEMMODEL%/%ID%_pickaxe.json
GOTO EXIT

:AXE
ECHO { > %ITEMMODEL%/%ID%_axe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_axe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_axe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_axe" >> %ITEMMODEL%/%ID%_axe.json
ECHO   } >> %ITEMMODEL%/%ID%_axe.json
ECHO } >> %ITEMMODEL%/%ID%_axe.json
GOTO EXIT

:HOE
ECHO { > %ITEMMODEL%/%ID%_hoe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_hoe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_hoe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_hoe" >> %ITEMMODEL%/%ID%_hoe.json
ECHO   } >> %ITEMMODEL%/%ID%_hoe.json
ECHO } >> %ITEMMODEL%/%ID%_hoe.json
GOTO EXIT

:SHOVEL
ECHO { > %ITEMMODEL%/%ID%_shovel.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_shovel.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_shovel.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_shovel" >> %ITEMMODEL%/%ID%_shovel.json
ECHO   } >> %ITEMMODEL%/%ID%_shovel.json
ECHO } >> %ITEMMODEL%/%ID%_shovel.json
GOTO EXIT

:ARMORS
REM HEAD-ITEM
ECHO { > %ITEMMODEL%/%ID%_helmet.json
ECHO     "parent": "item/generated", >> %ITEMMODEL%/%ID%_helmet.json
ECHO     "textures": { >> %ITEMMODEL%/%ID%_helmet.json
ECHO         "layer0": "%NAMESPACE%:item/%ID%_helmet" >> %ITEMMODEL%/%ID%_helmet.json
ECHO     } >> %ITEMMODEL%/%ID%_helmet.json
ECHO } >> %ITEMMODEL%/%ID%_helmet.json
REM CHEST-ITEM
ECHO { > %ITEMMODEL%/%ID%_chestplate.json
ECHO     "parent": "item/generated", >> %ITEMMODEL%/%ID%_chestplate.json
ECHO     "textures": { >> %ITEMMODEL%/%ID%_chestplate.json
ECHO         "layer0": "%NAMESPACE%:item/%ID%_chestplate" >> %ITEMMODEL%/%ID%_chestplate.json
ECHO     } >> %ITEMMODEL%/%ID%_chestplate.json
ECHO } >> %ITEMMODEL%/%ID%_chestplate.json
REM LEGS-ITEM
ECHO { > %ITEMMODEL%/%ID%_leggings.json
ECHO     "parent": "item/generated", >> %ITEMMODEL%/%ID%_chestplate.json
ECHO     "textures": { >> %ITEMMODEL%/%ID%_chestplate.json
ECHO         "layer0": "%NAMESPACE%:item/%ID%_chestplate" >> %ITEMMODEL%/%ID%_chestplate.json
ECHO     } >> %ITEMMODEL%/%ID%_chestplate.json
ECHO } >> %ITEMMODEL%/%ID%_chestplate.json
REM BOOTS-ITEM
ECHO { > %ITEMMODEL%/%ID%_boots.json
ECHO     "parent": "item/generated", >> %ITEMMODEL%/%ID%_boots.json
ECHO     "textures": { >> %ITEMMODEL%/%ID%_boots.json
ECHO         "layer0": "%NAMESPACE%:item/%ID%_chestplate" >> %ITEMMODEL%/%ID%_boots.json
ECHO     } >> %ITEMMODEL%/%ID%_boots.json
ECHO } >> %ITEMMODEL%/%ID%_boots.json
GOTO EXIT

:ALLTOOL
ECHO { > %ITEMMODEL%/%ID%_sword.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_sword.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_sword.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_sword" >> %ITEMMODEL%/%ID%_sword.json
ECHO   } >> %ITEMMODEL%/%ID%_sword.json
ECHO } >> %ITEMMODEL%/%ID%_sword.json
ECHO { > %ITEMMODEL%/%ID%_pickaxe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_pickaxe" >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO   } >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO } >> %ITEMMODEL%/%ID%_pickaxe.json
ECHO { > %ITEMMODEL%/%ID%_axe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_axe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_axe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_axe" >> %ITEMMODEL%/%ID%_axe.json
ECHO   } >> %ITEMMODEL%/%ID%_axe.json
ECHO } >> %ITEMMODEL%/%ID%_axe.json
ECHO { > %ITEMMODEL%/%ID%_hoe.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_hoe.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_hoe.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_hoe" >> %ITEMMODEL%/%ID%_hoe.json
ECHO   } >> %ITEMMODEL%/%ID%_hoe.json
ECHO } >> %ITEMMODEL%/%ID%_hoe.json
ECHO { > %ITEMMODEL%/%ID%_shovel.json
ECHO   "parent": "minecraft:item/handheld", >> %ITEMMODEL%/%ID%_shovel.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_shovel.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_shovel" >> %ITEMMODEL%/%ID%_shovel.json
ECHO   } >> %ITEMMODEL%/%ID%_shovel.json
ECHO } >> %ITEMMODEL%/%ID%_shovel.json
GOTO EXIT

:ITEM
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%.json
ECHO     "parent": "item/generated", >> %ITEMMODEL%/%ID%.json
ECHO     "textures": { >> %ITEMMODEL%/%ID%.json
ECHO         "layer0": "%NAMESPACE%:item/%ID%" >> %ITEMMODEL%/%ID%.json
ECHO     } >> %ITEMMODEL%/%ID%.json
ECHO } >> %ITEMMODEL%/%ID%.json
GOTO EXIT

:SETUP
IF NOT EXIST "%cd%/pack.mcmeta" (
    ECHO { > "%cd%/pack.mcmeta"
    ECHO   "pack": { >> "%cd%/pack.mcmeta"
    ECHO     "pack_format": 15, >> "%cd%/pack.mcmeta"
    ECHO     "description": "§6CoreExtensions API MOD-%NAMESPACE%" >> "%cd%/pack.mcmeta"
    ECHO   } >> "%cd%/pack.mcmeta"
    ECHO } >> "%cd%/pack.mcmeta"
)
IF NOT EXIST "%cd%/assets" MD "%cd%/assets"
IF NOT EXIST "%cd%/assets/%NAMESPACE%" MD "%cd%/assets/%NAMESPACE%"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/blockstates" MD "%cd%/assets/%NAMESPACE%/blockstates"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/lang" MD "%cd%/assets/%NAMESPACE%/lang"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/models" MD "%cd%/assets/%NAMESPACE%/models"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/models/block" MD "%cd%/assets/%NAMESPACE%/models/block"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/models/item" MD "%cd%/assets/%NAMESPACE%/models/item"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/textures" MD "%cd%/assets/%NAMESPACE%/textures"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/textures/block" MD "%cd%/assets/%NAMESPACE%/textures/block"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/textures/item" MD "%cd%/assets/%NAMESPACE%/textures/item"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/textures/models" MD "%cd%/assets/%NAMESPACE%/textures/models"
IF NOT EXIST "%cd%/assets/%NAMESPACE%/textures/models/armor" MD "%cd%/assets/%NAMESPACE%/textures/models/armor"
IF NOT EXIST "%cd%/data" MD "%cd%/data"
IF NOT EXIST "%cd%/data/minecraft" MD "%cd%/data/minecraft"
IF NOT EXIST "%cd%/data/fabric" MD "%cd%/data/fabric"
IF NOT EXIST "%cd%/data/fabric/tags" MD "%cd%/data/fabric/tags"
IF NOT EXIST "%cd%/data/fabric/tags/blocks" MD "%cd%/data/fabric/tags/blocks"
IF NOT EXIST "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json" (
    ECHO { > "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json"
    ECHO   "replace": false, >> "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json"
    ECHO   "values": [ >> "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json"
    ECHO   ] >> "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json"
    ECHO } >> "%cd%/data/fabric/tags/blocks/needs_tool_level_4.json"

)
IF NOT EXIST "%cd%/data/minecraft" MD "%cd%/data/minecraft"
IF NOT EXIST "%cd%/data/minecraft/tags" MD "%cd%/data/minecraft/tags"
IF NOT EXIST "%cd%/data/minecraft/tags/blocks" MD "%cd%/data/minecraft/tags/blocks"
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/enderman_holdable.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"

)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/enderman_holdable.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/enderman_holdable.json"

)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/needs_diamond_tool.json"

)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/needs_gold_tool.json"

)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/needs_iron_tool.json"

)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable" MD "%cd%/data/minecraft/tags/blocks/mineable"
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable/axe.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/mineable/axe.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/mineable/axe.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/mineable/axe.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/mineable/axe.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/mineable/axe.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/mineable/pickaxe.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable/shovel.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/mineable/shovel.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/mineable/shovel.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/mineable/shovel.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/mineable/shovel.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/mineable/shovel.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable/hoe.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/mineable/hoe.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/mineable/hoe.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/mineable/hoe.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/mineable/hoe.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/mineable/hoe.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/blocks/mineable/sword.json" (
    ECHO { > "%cd%/data/minecraft/tags/blocks/mineable/sword.json"
    ECHO   "replace": false, >> "%cd%/data/minecraft/tags/blocks/mineable/sword.json"
    ECHO   "values": [ >> "%cd%/data/minecraft/tags/blocks/mineable/sword.json"
    ECHO   ] >> "%cd%/data/minecraft/tags/blocks/mineable/sword.json"
    ECHO } >> "%cd%/data/minecraft/tags/blocks/mineable/sword.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/functions" MD "%cd%/data/minecraft/tags/functions"
IF NOT EXIST "%cd%/data/minecraft/tags/functions/load.json" (
    ECHO { >> "%cd%/data/minecraft/tags/functions/load.json"
    ECHO 	"values": [ >> "%cd%/data/minecraft/tags/functions/load.json"
    ECHO 	] >> "%cd%/data/minecraft/tags/functions/load.json"
    ECHO } >> "%cd%/data/minecraft/tags/functions/load.json"
)
IF NOT EXIST "%cd%/data/minecraft/tags/functions/tick.json" (
    ECHO { >> "%cd%/data/minecraft/tags/functions/tick.json"
    ECHO 	"values": [ >> "%cd%/data/minecraft/tags/functions/tick.json"
    ECHO 	] >> "%cd%/data/minecraft/tags/functions/tick.json"
    ECHO } >> "%cd%/data/minecraft/tags/functions/tick.json"
)
ECHO DataGenerator Setup Build Successful
GOTO EXIT

:ALL
REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%.json
ECHO     "": { >> %BLOCKSTATES%/%ID%.json
ECHO       "model": "%NAMESPACE%:block/%ID%" >> %BLOCKSTATES%/%ID%.json
ECHO     } >> %BLOCKSTATES%/%ID%.json
ECHO   } >> %BLOCKSTATES%/%ID%.json
ECHO } >> %BLOCKSTATES%/%ID%.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%.json
ECHO   "parent": "block/cube_all", >> %BLOCKMODEL%/%ID%.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%.json
ECHO     "all": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%.json
ECHO   } >> %BLOCKMODEL%/%ID%.json
ECHO } >> %BLOCKMODEL%/%ID%.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%.json
ECHO   "parent": "%NAMESPACE%:block/%ID%" >> %ITEMMODEL%/%ID%.json
ECHO } >> %ITEMMODEL%/%ID%.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_stairs.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=east,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=north,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer" >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=south,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=bottom,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=inner_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=inner_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_inner", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=outer_left": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=outer_right": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs_outer", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     }, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     "facing=west,half=top,shape=straight": { >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "model": "%NAMESPACE%:block/%ID%_stairs", >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_stairs.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_stairs.json
ECHO     } >> %BLOCKSTATES%/%ID%_stairs.json
ECHO   } >> %BLOCKSTATES%/%ID%_stairs.json
ECHO } >> %BLOCKSTATES%/%ID%_stairs.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_stairs.json
ECHO   "parent": "minecraft:block/stairs", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs.json
ECHO { > %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   "parent": "minecraft:block/inner_stairs", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_inner.json
ECHO { > %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "parent": "minecraft:block/outer_stairs", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   } >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_outer.json
REM MODEL-ITEM
ECHO { > %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO   "parent": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_stairs_outer.json
ECHO } >> %BLOCKMODEL%/%ID%_stairs_outer.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_slab.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=bottom": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%_slab" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     }, >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=double": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     }, >> %BLOCKSTATES%/%ID%_slab.json
ECHO     "type=top": { >> %BLOCKSTATES%/%ID%_slab.json
ECHO       "model": "%NAMESPACE%:block/%ID%_slab_top" >> %BLOCKSTATES%/%ID%_slab.json
ECHO     } >> %BLOCKSTATES%/%ID%_slab.json
ECHO   } >> %BLOCKSTATES%/%ID%_slab.json
ECHO } >> %BLOCKSTATES%/%ID%_slab.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_slab.json
ECHO   "parent": "minecraft:block/slab", >> %BLOCKMODEL%/%ID%_slab.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_slab.json
ECHO   } >> %BLOCKMODEL%/%ID%_slab.json
ECHO } >> %BLOCKMODEL%/%ID%_slab.json
ECHO { > %BLOCKMODEL%/%ID%_slab_top.json
ECHO   "parent": "minecraft:block/slab_top", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "side": "%NAMESPACE%:block/%ID%", >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO     "top": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO   } >> %BLOCKMODEL%/%ID%_slab_top.json
ECHO } >> %BLOCKMODEL%/%ID%_slab_top.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_slab.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_slab" >> %ITEMMODEL%/%ID%_slab.json
ECHO } >> %ITEMMODEL%/%ID%_slab.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_fence.json
ECHO   "multipart": [ >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_post" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "north": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "east": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "south": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO     { >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "model": "%NAMESPACE%:block/%ID%_fence_side", >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_fence.json
ECHO       }, >> %BLOCKSTATES%/%ID%_fence.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_fence.json
ECHO         "west": "true" >> %BLOCKSTATES%/%ID%_fence.json
ECHO       } >> %BLOCKSTATES%/%ID%_fence.json
ECHO     } >> %BLOCKSTATES%/%ID%_fence.json
ECHO   ] >> %BLOCKSTATES%/%ID%_fence.json
ECHO } >> %BLOCKSTATES%/%ID%_fence.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_fence_post.json
ECHO   "parent": "minecraft:block/fence_post", >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_post.json
ECHO { > %BLOCKMODEL%/%ID%_fence_side.json
ECHO   "parent": "minecraft:block/fence_side", >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_side.json
ECHO { > %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   "parent": "minecraft:block/fence_inventory", >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_inventory.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_fence.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_fence_inventory" >> %ITEMMODEL%/%ID%_fence.json
ECHO } >> %ITEMMODEL%/%ID%_fence.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_fence_gate.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=east,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=north,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=south,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=false,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=false,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=true,open=false": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     "facing=west,in_wall=true,open=true": { >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_fence_gate_wall_open", >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO     } >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO   } >> %BLOCKSTATES%/%ID%_fence_gate.json
ECHO } >> %BLOCKSTATES%/%ID%_fence_gate.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   "parent": "minecraft:block/template_fence_gate", >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   "parent": "minecraft:block/template_fence_gate_open", >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_open.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   "parent": "minecraft:block/template_fence_gate_wall", >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_wall.json
ECHO { > %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   "parent": "minecraft:block/template_fence_gate_wall_open", >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
ECHO } >> %BLOCKMODEL%/%ID%_fence_gate_wall_open.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_fence_gate.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_fence_gate" >> %ITEMMODEL%/%ID%_fence_gate.json
ECHO } >> %ITEMMODEL%/%ID%_fence_gate.json

REM BLOCKSTATES
ECHO { >> %BLOCKSTATES%/%ID%_door.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=east,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=north,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=south,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open" >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=lower,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_bottom_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=left,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=left,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_left_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=right,open=false": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_door.json
ECHO     }, >> %BLOCKSTATES%/%ID%_door.json
ECHO     "facing=west,half=upper,hinge=right,open=true": { >> %BLOCKSTATES%/%ID%_door.json
ECHO       "model": "%NAMESPACE%:block/%ID%_door_top_right_open", >> %BLOCKSTATES%/%ID%_door.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_door.json
ECHO     } >> %BLOCKSTATES%/%ID%_door.json
ECHO   } >> %BLOCKSTATES%/%ID%_door.json
ECHO } >> %BLOCKSTATES%/%ID%_door.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   "parent": "minecraft:block/door_bottom_left", >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_left.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   "parent": "minecraft:block/door_bottom_left_open", >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_left_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   "parent": "minecraft:block/door_bottom_right", >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_right.json
ECHO { > %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   "parent": "minecraft:block/door_bottom_right_open", >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_bottom_right_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   "parent": "minecraft:block/door_top_left", >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_left.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   "parent": "minecraft:block/door_top_left_open", >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_left_open.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   "parent": "minecraft:block/door_top_right", >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_right.json
ECHO { > %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   "parent": "minecraft:block/door_top_right_open", >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO     "bottom": "%NAMESPACE%:block/%ID%_door_bottom", >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO     "top": "%NAMESPACE%:block/%ID%_door_top" >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_door_top_right_open.json
ECHO } >> %BLOCKMODEL%/%ID%_door_top_right_open.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_door.json
ECHO   "parent": "minecraft:item/generated", >> %ITEMMODEL%/%ID%_door.json
ECHO   "textures": { >> %ITEMMODEL%/%ID%_door.json
ECHO     "layer0": "%NAMESPACE%:item/%ID%_door" >> %ITEMMODEL%/%ID%_door.json
ECHO   } >> %ITEMMODEL%/%ID%_door.json
ECHO } >> %ITEMMODEL%/%ID%_door.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_button.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=ceiling,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 180, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button" >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed" >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=floor,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=east,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=east,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=north,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=north,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=south,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=south,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=west,powered=false": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     }, >> %BLOCKSTATES%/%ID%_button.json
ECHO     "face=wall,facing=west,powered=true": { >> %BLOCKSTATES%/%ID%_button.json
ECHO       "model": "%NAMESPACE%:block/%ID%_button_pressed", >> %BLOCKSTATES%/%ID%_button.json
ECHO       "uvlock": true, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "x": 90, >> %BLOCKSTATES%/%ID%_button.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_button.json
ECHO     } >> %BLOCKSTATES%/%ID%_button.json
ECHO   } >> %BLOCKSTATES%/%ID%_button.json
ECHO } >> %BLOCKSTATES%/%ID%_button.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_button.json
ECHO   "parent": "minecraft:block/button", >> %BLOCKMODEL%/%ID%_button.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button.json
ECHO   } >> %BLOCKMODEL%/%ID%_button.json
ECHO } >> %BLOCKMODEL%/%ID%_button.json
ECHO { > %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   "parent": "minecraft:block/button_inventory", >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_button_inventory.json
ECHO { > %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   "parent": "minecraft:block/button_pressed", >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO   } >> %BLOCKMODEL%/%ID%_button_pressed.json
ECHO } >> %BLOCKMODEL%/%ID%_button_pressed.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_button.json
ECHO   "parent": "%NAMESPACE%:block/other_button_inventory" >> %ITEMMODEL%/%ID%_button.json
ECHO } >> %ITEMMODEL%/%ID%_button.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     "powered=false": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_pressure_plate" >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     }, >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     "powered=true": { >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO       "model": "%NAMESPACE%:block/%ID%_pressure_plate_down" >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO     } >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO   } >> %BLOCKSTATES%/%ID%_pressure_plate.json
ECHO } >> %BLOCKSTATES%/%ID%_pressure_plate.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   "parent": "minecraft:block/pressure_plate_up", >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO   } >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO } >> %BLOCKMODEL%/%ID%_pressure_plate.json
ECHO { > %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   "parent": "minecraft:block/pressure_plate_down", >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO     "texture": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO   } >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
ECHO } >> %BLOCKMODEL%/%ID%_pressure_plate_down.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_pressure_plate.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_pressure_plate" >> %ITEMMODEL%/%ID%_pressure_plate.json
ECHO } >> %ITEMMODEL%/%ID%_pressure_plate.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_wall.json
ECHO   "multipart": [ >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_post" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "up": "true" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "north": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "east": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "south": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "west": "low" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "north": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 90 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "east": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 180 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "south": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO     { >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "apply": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "model": "%NAMESPACE%:block/%ID%_wall_side_tall", >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "uvlock": true, >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "y": 270 >> %BLOCKSTATES%/%ID%_wall.json
ECHO       }, >> %BLOCKSTATES%/%ID%_wall.json
ECHO       "when": { >> %BLOCKSTATES%/%ID%_wall.json
ECHO         "west": "tall" >> %BLOCKSTATES%/%ID%_wall.json
ECHO       } >> %BLOCKSTATES%/%ID%_wall.json
ECHO     } >> %BLOCKSTATES%/%ID%_wall.json
ECHO   ] >> %BLOCKSTATES%/%ID%_wall.json
ECHO } >> %BLOCKSTATES%/%ID%_wall.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   "parent": "minecraft:block/wall_inventory", >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_inventory.json
ECHO { > %BLOCKMODEL%/%ID%_wall_post.json
ECHO   "parent": "minecraft:block/template_wall_post", >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_post.json
ECHO { > %BLOCKMODEL%/%ID%_wall_side.json
ECHO   "parent": "minecraft:block/template_wall_side", >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_side.json
ECHO { > %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   "parent": "minecraft:block/template_wall_side_tall", >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO     "wall": "%NAMESPACE%:block/%ID%" >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO   } >> %BLOCKMODEL%/%ID%_wall_side_tall.json
ECHO } >> %BLOCKMODEL%/%ID%_wall_side_tall.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_wall.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_wall_inventory" >> %ITEMMODEL%/%ID%_wall.json
ECHO } >> %ITEMMODEL%/%ID%_wall.json

REM BLOCKSTATES
ECHO { > %BLOCKSTATES%/%ID%_trapdoor.json
ECHO   "variants": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=east,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 90 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=north,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=south,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 180 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=bottom,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=bottom,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=top,open=false": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_top" >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     }, >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     "facing=west,half=top,open=true": { >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "model": "%NAMESPACE%:block/%ID%_trapdoor_open", >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO       "y": 270 >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO     } >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO   } >> %BLOCKSTATES%/%ID%_trapdoor.json
ECHO } >> %BLOCKSTATES%/%ID%_trapdoor.json
REM MODEL-BLOCK
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   "parent": "minecraft:block/template_trapdoor_bottom", >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_bottom.json
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   "parent": "minecraft:block/template_trapdoor_open", >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_open.json
ECHO { > %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   "parent": "minecraft:block/template_trapdoor_top", >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   "textures": { >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO     "texture": "%NAMESPACE%:block/%ID%_trapdoor" >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO   } >> %BLOCKMODEL%/%ID%_trapdoor_top.json
ECHO } >> %BLOCKMODEL%/%ID%_trapdoor_top.json
REM MODEL-ITEM
ECHO { > %ITEMMODEL%/%ID%_trapdoor.json
ECHO   "parent": "%NAMESPACE%:block/%ID%_trapdoor_bottom" >> %ITEMMODEL%/%ID%_trapdoor.json
ECHO } >> %ITEMMODEL%/%ID%_trapdoor.json
ECHO DataGenerator All Block Build Successful
GOTO EXIT

:ALL_TOOL

:HELP
ECHO %0 [-TYPE] [-NAMESPACE] [-ID]
ECHO          ���� [TYPE]      ����:
ECHO          ���� [NAMESPACE] �����ռ�
ECHO          ���� [ID]        ����/��ƷID
ECHO.
GOTO EXIT-NOPAUSE

:EXIT
ECHO Block %NAMESPACE%:%ID% Build Successful
::PAUSE

:EXIT-NOPAUSE
