generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e423da6
commit df7ae03
Showing
15 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind = "brick" | ||
id = "wwizardry:basalt_bricks" | ||
color = "gray" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind = "brick" | ||
id = "wwizardry:basalt_tiles" | ||
color = "gray" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind = "brick" | ||
id = "wwizardry:chiseled_basalt" | ||
color = "gray" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind = "wood" | ||
name = "denia" | ||
id = "wwizardry:denia_log" | ||
color = "ice" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind = "wood" | ||
name = "mycha" | ||
id = "wwizardry:mycha_stem" | ||
color = "purple" | ||
-stem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import fennec from "https://oliver-makes-code.github.io/FennecConfig/impl/typescript/mod.ts" | ||
import { getAllFiles } from "./common.ts" | ||
|
||
type ArchExFennec = { | ||
kind: "brick"|"wood" | ||
name?: string | ||
id: string | ||
color: string | ||
stem?: boolean | ||
} | ||
|
||
type ArchExJson = { | ||
name?: string | ||
base_block: string | ||
textures: string | ||
recipes: string | ||
map_color: string | ||
types_to_generate: string[] | ||
} | ||
|
||
export default function generateArchEx(inputDir: string, outputDir: string) { | ||
for (const file of getAllFiles(inputDir, outputDir)) { | ||
const inputFile = inputDir+"/"+file+".fennec" | ||
const outputFile = outputDir+"/"+file+".json" | ||
|
||
const read = fennecToJson(fennec.parse(Deno.readTextFileSync(inputFile))) | ||
Deno.writeTextFileSync(outputFile, JSON.stringify(read)) | ||
|
||
console.log(inputFile + " -> " + outputFile) | ||
} | ||
} | ||
|
||
function fennecToJson(fennec: ArchExFennec): ArchExJson { | ||
if (fennec.kind == "brick") { | ||
return { | ||
name: fennec.name, | ||
base_block: fennec.id, | ||
textures: fennec.id.replace(":", ":block/"), | ||
recipes: "stonecutting", | ||
map_color: fennec.color, | ||
types_to_generate: [ | ||
"arch", | ||
"octagonal_column", | ||
"round_arch", | ||
"roof", | ||
"wall_column", | ||
"wall_post", | ||
"facade", | ||
"rod", | ||
] | ||
} | ||
} | ||
return { | ||
name: fennec.name, | ||
base_block: fennec.id, | ||
textures: fennec.stem ? "wood_with_stem" : "wood_with_log", | ||
recipes: "sawing", | ||
map_color: fennec.color, | ||
types_to_generate: [ | ||
"facade", | ||
"round_fence_post", | ||
"round_arch", | ||
"octagonal_column", | ||
"beam", | ||
"fence_post", | ||
"joist", | ||
"crown_molding", | ||
"post_cap", | ||
"post_lantern", | ||
"lattice", | ||
"transom", | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"itemGroup.wwizardry.items":"Wandering Wizardry Items","block.wwizardry.rose_quartz_ore":"Rose Quartz Ore","block.wwizardry.deepslate_rose_quartz_ore":"Deepslate Rose Quartz Ore","block.wwizardry.rose_quartz_block":"Block Of Rose Quartz","block.wwizardry.crystalline_sculk_block":"Crystalline Sculk Block","block.wwizardry.reinforced_glass":"Reinforced Glass","block.wwizardry.reinforced_glass_pane":"Reinforced Glass Pane","block.wwizardry.sculk_resonator":"Resonating Sculk Shrieker","block.wwizardry.camera":"Camera","block.wwizardry.redstone_lantern":"Redstone Lantern","block.wwizardry.wall_holder":"Wall Holder","block.wwizardry.modulo_comparator":"Modulo Comparator","block.wwizardry.redstone_stepper":"Redstone Stepper","block.wwizardry.sculkflower":"Sculkflower","block.wwizardry.indigo_caeruleum":"Indigo Caeruleum","block.wwizardry.mycelial_sand":"Mycelial Sand","block.wwizardry.altar_pedestal":"Altar Pedestal","block.wwizardry.altar_catalyzer":"Altar Catalyzer","block.wwizardry.stripped_denia_log":"Stripped Denia Log","block.wwizardry.denia_log":"Denia Log","block.wwizardry.stripped_denia_wood":"Stripped Denia Wood","block.wwizardry.denia_wood":"Denia Wood","block.wwizardry.denia_planks":"Denia Planks","block.wwizardry.denia_stairs":"Denia Stairs","block.wwizardry.denia_slab":"Denia Slab","block.wwizardry.denia_button":"Denia Button","block.wwizardry.denia_pressure_plate":"Denia Pressure Plate","block.wwizardry.denia_door":"Denia Door","block.wwizardry.denia_trapdoor":"Denia Trapdoor","block.wwizardry.denia_sign":"Denia Sign","block.wwizardry.denia_hanging_sign":"Denia Hanging Sign","block.wwizardry.denia_fence":"Denia Fence","block.wwizardry.denia_fence_gate":"Denia Fence Gate","block.wwizardry.denia_leaves":"Denia Leaves","block.wwizardry.denia_sapling":"Denia Sapling","block.wwizardry.denia_boat":"Denia Boat","block.wwizardry.denia_chest_boat":"Denia Boat With Chest","block.wwizardry.stripped_mycha_stem":"Stripped Mycha Stem","block.wwizardry.mycha_stem":"Mycha Stem","block.wwizardry.stripped_mycha_hyphae":"Stripped Mycha Hyphae","block.wwizardry.mycha_hyphae":"Mycha Hyphae","block.wwizardry.mycha_planks":"Mycha Planks","block.wwizardry.mycha_stairs":"Mycha Stairs","block.wwizardry.mycha_slab":"Mycha Slab","block.wwizardry.mycha_button":"Mycha Button","block.wwizardry.mycha_pressure_plate":"Mycha Pressure Plate","block.wwizardry.mycha_door":"Mycha Door","block.wwizardry.mycha_trapdoor":"Mycha Trapdoor","block.wwizardry.mycha_sign":"Mycha Sign","block.wwizardry.mycha_hanging_sign":"Mycha Hanging Sign","block.wwizardry.mycha_fence":"Mycha Fence","block.wwizardry.mycha_fence_gate":"Mycha Fence Gate","block.wwizardry.mycha_wart":"Mycha Wart","block.wwizardry.mycha_fungus":"Mycha Fungus","block.wwizardry.chiseled_basalt":"Chiseled Basalt","block.wwizardry.chiseled_basalt_stairs":"Chiseled Basalt Stairs","block.wwizardry.chiseled_basalt_slab":"Chiseled Basalt Slab","block.wwizardry.chiseled_basalt_wall":"Chiseled Basalt Wall","block.wwizardry.basalt_bricks":"Basalt Bricks","block.wwizardry.basalt_brick_stairs":"Basalt Brick Stairs","block.wwizardry.basalt_brick_slab":"Basalt Brick Slab","block.wwizardry.basalt_brick_wall":"Basalt Brick Wall","block.wwizardry.basalt_tiles":"Basalt Tiles","block.wwizardry.basalt_tile_stairs":"Basalt Tile Stairs","block.wwizardry.basalt_tile_slab":"Basalt Tile Slab","block.wwizardry.basalt_tile_wall":"Basalt Tile Wall","item.wwizardry.crystalline_sculk":"Crystalline Sculk","item.wwizardry.rose_quartz":"Rose Quartz","item.wwizardry.denia_boat":"Denia Boat","item.wwizardry.denia_chest_boat":"Denia Boat with Chest","aurorasdeco.wood_type.wwizardry.denia":"Denia","aurorasdeco.wood_type.wwizardry.mycha":"Mycha"} | ||
{"itemGroup.wwizardry.items":"Wandering Wizardry Items","block.wwizardry.rose_quartz_ore":"Rose Quartz Ore","block.wwizardry.deepslate_rose_quartz_ore":"Deepslate Rose Quartz Ore","block.wwizardry.rose_quartz_block":"Block Of Rose Quartz","block.wwizardry.crystalline_sculk_block":"Crystalline Sculk Block","block.wwizardry.reinforced_glass":"Reinforced Glass","block.wwizardry.reinforced_glass_pane":"Reinforced Glass Pane","block.wwizardry.sculk_resonator":"Resonating Sculk Shrieker","block.wwizardry.camera":"Camera","block.wwizardry.redstone_lantern":"Redstone Lantern","block.wwizardry.wall_holder":"Wall Holder","block.wwizardry.modulo_comparator":"Modulo Comparator","block.wwizardry.redstone_stepper":"Redstone Stepper","block.wwizardry.sculkflower":"Sculkflower","block.wwizardry.indigo_caeruleum":"Indigo Caeruleum","block.wwizardry.mycelial_sand":"Mycelial Sand","block.wwizardry.altar_pedestal":"Altar Pedestal","block.wwizardry.altar_catalyzer":"Altar Catalyzer","block.wwizardry.stripped_denia_log":"Stripped Denia Log","block.wwizardry.denia_log":"Denia Log","block.wwizardry.stripped_denia_wood":"Stripped Denia Wood","block.wwizardry.denia_wood":"Denia Wood","block.wwizardry.denia_planks":"Denia Planks","block.wwizardry.denia_stairs":"Denia Stairs","block.wwizardry.denia_slab":"Denia Slab","block.wwizardry.denia_button":"Denia Button","block.wwizardry.denia_pressure_plate":"Denia Pressure Plate","block.wwizardry.denia_door":"Denia Door","block.wwizardry.denia_trapdoor":"Denia Trapdoor","block.wwizardry.denia_sign":"Denia Sign","block.wwizardry.denia_hanging_sign":"Denia Hanging Sign","block.wwizardry.denia_fence":"Denia Fence","block.wwizardry.denia_fence_gate":"Denia Fence Gate","block.wwizardry.denia_leaves":"Denia Leaves","block.wwizardry.denia_sapling":"Denia Sapling","block.wwizardry.denia_boat":"Denia Boat","block.wwizardry.denia_chest_boat":"Denia Boat With Chest","block.wwizardry.stripped_mycha_stem":"Stripped Mycha Stem","block.wwizardry.mycha_stem":"Mycha Stem","block.wwizardry.stripped_mycha_hyphae":"Stripped Mycha Hyphae","block.wwizardry.mycha_hyphae":"Mycha Hyphae","block.wwizardry.mycha_planks":"Mycha Planks","block.wwizardry.mycha_stairs":"Mycha Stairs","block.wwizardry.mycha_slab":"Mycha Slab","block.wwizardry.mycha_button":"Mycha Button","block.wwizardry.mycha_pressure_plate":"Mycha Pressure Plate","block.wwizardry.mycha_door":"Mycha Door","block.wwizardry.mycha_trapdoor":"Mycha Trapdoor","block.wwizardry.mycha_sign":"Mycha Sign","block.wwizardry.mycha_hanging_sign":"Mycha Hanging Sign","block.wwizardry.mycha_fence":"Mycha Fence","block.wwizardry.mycha_fence_gate":"Mycha Fence Gate","block.wwizardry.mycha_wart":"Mycha Wart","block.wwizardry.mycha_fungus":"Mycha Fungus","block.wwizardry.chiseled_basalt":"Chiseled Basalt","block.wwizardry.chiseled_basalt_stairs":"Chiseled Basalt Stairs","block.wwizardry.chiseled_basalt_slab":"Chiseled Basalt Slab","block.wwizardry.chiseled_basalt_wall":"Chiseled Basalt Wall","block.wwizardry.basalt_bricks":"Basalt Bricks","block.wwizardry.basalt_brick_stairs":"Basalt Brick Stairs","block.wwizardry.basalt_brick_slab":"Basalt Brick Slab","block.wwizardry.basalt_brick_wall":"Basalt Brick Wall","block.wwizardry.basalt_tiles":"Basalt Tiles","block.wwizardry.basalt_tile_stairs":"Basalt Tile Stairs","block.wwizardry.basalt_tile_slab":"Basalt Tile Slab","block.wwizardry.basalt_tile_wall":"Basalt Tile Wall","item.wwizardry.crystalline_sculk":"Crystalline Sculk","item.wwizardry.rose_quartz":"Rose Quartz","item.wwizardry.denia_boat":"Denia Boat","item.wwizardry.denia_chest_boat":"Denia Boat with Chest","aurorasdeco.wood_type.wwizardry.denia":"Denia","aurorasdeco.wood_type.wwizardry.mycha":"Mycha","architecture_extensions.grouped_block.denia":"Denia","architecture_extensions.grouped_block.mycha":"Mycha","architecture_extensions.grouped_block.basalt_bricks":"Basalt Bricks","architecture_extensions.grouped_block.basalt_tiles":"Basalt Tiles","architecture_extensions.grouped_block.chiseled_basalt":"Chiseled Basalt"} |
1 change: 1 addition & 0 deletions
1
src/main/resources/staticdata/architecture_extensions/basalt_bricks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"base_block":"wwizardry:basalt_bricks","textures":"wwizardry:block/basalt_bricks","recipes":"stonecutting","map_color":"gray","types_to_generate":["arch","octagonal_column","round_arch","roof","wall_column","wall_post","facade","rod"]} |
1 change: 1 addition & 0 deletions
1
src/main/resources/staticdata/architecture_extensions/basalt_tiles.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"base_block":"wwizardry:basalt_tiles","textures":"wwizardry:block/basalt_tiles","recipes":"stonecutting","map_color":"gray","types_to_generate":["arch","octagonal_column","round_arch","roof","wall_column","wall_post","facade","rod"]} |
1 change: 1 addition & 0 deletions
1
src/main/resources/staticdata/architecture_extensions/chiseled_basalt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"base_block":"wwizardry:chiseled_basalt","textures":"wwizardry:block/chiseled_basalt","recipes":"stonecutting","map_color":"gray","types_to_generate":["arch","octagonal_column","round_arch","roof","wall_column","wall_post","facade","rod"]} |
1 change: 1 addition & 0 deletions
1
src/main/resources/staticdata/architecture_extensions/denia.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"denia","base_block":"wwizardry:denia_log","textures":"wood_with_log","recipes":"sawing","map_color":"ice","types_to_generate":["facade","round_fence_post","round_arch","octagonal_column","beam","fence_post","joist","crown_molding","post_cap","post_lantern","lattice","transom"]} |
1 change: 1 addition & 0 deletions
1
src/main/resources/staticdata/architecture_extensions/mycha.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"mycha","base_block":"wwizardry:mycha_stem","textures":"wood_with_stem","recipes":"sawing","map_color":"purple","types_to_generate":["facade","round_fence_post","round_arch","octagonal_column","beam","fence_post","joist","crown_molding","post_cap","post_lantern","lattice","transom"]} |