From ed72fb2466c5fcb32fb258ed0036b31228b2c91e Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 4 Sep 2024 05:05:10 +0200 Subject: [PATCH] Enable Quark's experimental Variant Selector - Variants can be built using the base block and holding R (by default) to select a variant. - Variants drop the base block when broken. - Variants are removed from recipe viewer. - Any recipes involving variants are removed. - Enabled for the following types of blocks: Slab, stair, fence, gate, wall, carpet, pane, wood, trapdoor, post, hollow log, seat, palisade, beam, support. --- config/quark-common.toml | 278 +++++++++++++++++++++- kubejs/server_scripts/variant_selector.js | 27 +++ 2 files changed, 298 insertions(+), 7 deletions(-) create mode 100644 kubejs/server_scripts/variant_selector.js diff --git a/config/quark-common.toml b/config/quark-common.toml index 1e03b0d..c48eb5e 100644 --- a/config/quark-common.toml +++ b/config/quark-common.toml @@ -1678,7 +1678,7 @@ "Overlay Shader" = false "Spawner Replacer" = false #Allows placing variant blocks automatically via a selector menu triggered from a keybind - "Variant Selector" = false + "Variant Selector" = true "Villager Rerolling Rework" = true [experimental.adjustable_chat] @@ -1766,9 +1766,9 @@ #Allows placing variant blocks automatically via a selector menu triggered from a keybind [experimental.variant_selector] #Set this to true to automatically convert any dropped variant items into their originals. Do this ONLY if you intend to take control of every recipe via a data pack or equivalent, as this will introduce dupes otherwise. - "Convert Variant Items" = false + "Convert Variant Items" = true #Enable the hammer, allowing variants to be swapped between eachother, including the original block. Do this ONLY under the same circumstances as Convert Variant Items. - "Enable Hammer" = false + "Enable Hammer" = true "Show Tooltip" = true "Align Hud To Hotbar" = false "Show Simple Hud" = false @@ -1785,17 +1785,281 @@ [experimental.variant_selector.variants] #The list of all variant types available for players to use. Values are treated as suffixes to block IDs for scanning. #Prefix any variant type with ! to make it show up for Manual Variants but not be automatically scanned for. (e.g. '!polish') - "Variant Types" = ["slab", "stairs", "wall", "fence", "fence_gate", "vertical_slab"] + "Variant Types" = ["slab", "vertical_slab", "stairs", "fence", "unique1", "unique2", "unique3"] #By default, only a mod's namespace is scanned for variants for its items (e.g. if coolmod adds coolmod:fun_block, it'll search only for coolmod:fun_block_stairs). # Mods in this list are also scanned for variants if none are found in itself (e.g. if quark is in the list and coolmod:fun_block_stairs doesn't exist, it'll try to look for quark:fun_block_stairs next) - "Tested Mods" = ["quark", "everycomp", "v_slab_compat"] + "Tested Mods" = ["quark", "everycomp", "v_slab_compat", "decorative_blocks"] "Print Variant Map To Log" = false #Format is 'alias=original' in each value (e.g. 'wall=fence' means that a failed search for, minecraft:cobblestone_fence will try cobblestone_wall next) - Aliases = ["carpet=slab", "pane=fence"] + Aliases = [ + "carpet=slab", + "wall=fence", "pane=fence", + "fence_gate=unique1", + "trapdoor=unique2", + "support=unique3", + ] #Ends of block IDs to try and remove when looking for variants. (e.g. minecraft:oak_planks goes into minecraft:oak_stairs, so we have to include '_planks' in this list for it to find them or else it'll only look for minecraft:oak_planks_stairs) "Strip Candidates" = ["_planks", "_wool", "_block", "s"] #Add manual variant overrides here, the format is 'type,block,output' (e.g. polish,minecraft:stone_bricks,minecraft:chiseled_stone_bricks). The type must be listed in Variant Types - "Manual Variants" = [] + "Manual Variants" = [ + # Planks => Support + "unique3,quark:ancient_planks,everycomp:db/quark/ancient_support", + "unique3,quark:azalea_planks,everycomp:db/quark/azalea_support", + "unique3,quark:blossom_planks,everycomp:db/quark/blossom_support", + "unique3,biomesoplenty:dead_planks,everycomp:db/biomesoplenty/dead_support", + "unique3,biomesoplenty:fir_planks,everycomp:db/biomesoplenty/fir_support", + "unique3,biomesoplenty:hellbark_planks,everycomp:db/biomesoplenty/hellbark_support", + "unique3,biomesoplenty:jacaranda_planks,everycomp:db/biomesoplenty/jacaranda_support", + "unique3,biomesoplenty:magic_planks,everycomp:db/biomesoplenty/magic_support", + "unique3,biomesoplenty:mahogany_planks,everycomp:db/biomesoplenty/mahogany_support", + "unique3,biomesoplenty:palm_planks,everycomp:db/biomesoplenty/palm_support", + "unique3,biomesoplenty:redwood_planks,everycomp:db/biomesoplenty/redwood_support", + "unique3,biomesoplenty:umbran_planks,everycomp:db/biomesoplenty/umbran_support", + "unique3,biomesoplenty:willow_planks,everycomp:db/biomesoplenty/willow_support", + + # Log => Post + "unique1,minecraft:acacia_log,quark:acacia_post", + "unique1,minecraft:bamboo_block,quark:bamboo_post", + "unique1,minecraft:birch_log,quark:birch_post", + "unique1,minecraft:cherry_log,quark:cherry_post", + "unique1,minecraft:crimson_stem,quark:crimson_post", + "unique1,minecraft:dark_oak_log,quark:dark_oak_post", + "unique1,minecraft:jungle_log,quark:jungle_post", + "unique1,minecraft:mangrove_log,quark:mangrove_post", + "unique1,minecraft:oak_log,quark:oak_post", + "unique1,minecraft:spruce_log,quark:spruce_post", + "unique1,minecraft:warped_stem,quark:warped_post", + "unique1,quark:ancient_log,quark:ancient_post", + "unique1,quark:azalea_log,quark:azalea_post", + "unique1,quark:blossom_log,quark:blossom_post", + "unique1,biomesoplenty:dead_log,everycomp:q/biomesoplenty/dead_post", + "unique1,biomesoplenty:fir_log,everycomp:q/biomesoplenty/fir_post", + "unique1,biomesoplenty:hellbark_log,everycomp:q/biomesoplenty/hellbark_post", + "unique1,biomesoplenty:jacaranda_log,everycomp:q/biomesoplenty/jacaranda_post", + "unique1,biomesoplenty:magic_log,everycomp:q/biomesoplenty/magic_post", + "unique1,biomesoplenty:mahogany_log,everycomp:q/biomesoplenty/mahogany_post", + "unique1,biomesoplenty:palm_log,everycomp:q/biomesoplenty/palm_post", + "unique1,biomesoplenty:redwood_log,everycomp:q/biomesoplenty/redwood_post", + "unique1,biomesoplenty:umbran_log,everycomp:q/biomesoplenty/umbran_post", + "unique1,biomesoplenty:willow_log,everycomp:q/biomesoplenty/willow_post", + + # Log => Hollow Log + "unique2,minecraft:acacia_log,quark:hollow_acacia_log", + "unique2,minecraft:birch_log,quark:hollow_birch_log", + "unique2,minecraft:cherry_log,quark:hollow_cherry_log", + "unique2,minecraft:crimson_stem,quark:hollow_crimson_stem", + "unique2,minecraft:dark_oak_log,quark:hollow_dark_oak_log", + "unique2,minecraft:jungle_log,quark:hollow_jungle_log", + "unique2,minecraft:mangrove_log,quark:hollow_mangrove_log", + "unique2,minecraft:oak_log,quark:hollow_oak_log", + "unique2,minecraft:spruce_log,quark:hollow_spruce_log", + "unique2,minecraft:warped_stem,quark:hollow_warped_stem", + "unique2,quark:ancient_log,quark:hollow_ancient_log", + "unique2,quark:azalea_log,quark:hollow_azalea_log", + "unique2,quark:blossom_log,quark:hollow_blossom_log", + "unique2,biomesoplenty:dead_log,everycomp:q/biomesoplenty/hollow_dead_log", + "unique2,biomesoplenty:fir_log,everycomp:q/biomesoplenty/hollow_fir_log", + "unique2,biomesoplenty:hellbark_log,everycomp:q/biomesoplenty/hollow_hellbark_log", + "unique2,biomesoplenty:jacaranda_log,everycomp:q/biomesoplenty/hollow_jacaranda_log", + "unique2,biomesoplenty:magic_log,everycomp:q/biomesoplenty/hollow_magic_log", + "unique2,biomesoplenty:mahogany_log,everycomp:q/biomesoplenty/hollow_mahogany_log", + "unique2,biomesoplenty:palm_log,everycomp:q/biomesoplenty/hollow_palm_log", + "unique2,biomesoplenty:redwood_log,everycomp:q/biomesoplenty/hollow_redwood_log", + "unique2,biomesoplenty:umbran_log,everycomp:q/biomesoplenty/hollow_umbran_log", + "unique2,biomesoplenty:willow_log,everycomp:q/biomesoplenty/hollow_willow_log", + + # Log => Wood + "unique3,minecraft:acacia_log,minecraft:acacia_wood", + "unique3,minecraft:birch_log,minecraft:birch_wood", + "unique3,minecraft:cherry_log,minecraft:cherry_wood", + "unique3,minecraft:crimson_stem,minecraft:crimson_hyphae", + "unique3,minecraft:dark_oak_log,minecraft:dark_oak_wood", + "unique3,minecraft:jungle_log,minecraft:jungle_wood", + "unique3,minecraft:mangrove_log,minecraft:mangrove_wood", + "unique3,minecraft:oak_log,minecraft:oak_wood", + "unique3,minecraft:spruce_log,minecraft:spruce_wood", + "unique3,minecraft:warped_stem,minecraft:warped_hyphae", + "unique3,quark:ancient_log,quark:ancient_wood", + "unique3,quark:azalea_log,quark:azalea_wood", + "unique3,quark:blossom_log,quark:blossom_wood", + "unique3,biomesoplenty:dead_log,biomesoplenty:dead_wood", + "unique3,biomesoplenty:fir_log,biomesoplenty:fir_wood", + "unique3,biomesoplenty:hellbark_log,biomesoplenty:hellbark_wood", + "unique3,biomesoplenty:jacaranda_log,biomesoplenty:jacaranda_wood", + "unique3,biomesoplenty:magic_log,biomesoplenty:magic_wood", + "unique3,biomesoplenty:mahogany_log,biomesoplenty:mahogany_wood", + "unique3,biomesoplenty:palm_log,biomesoplenty:palm_wood", + "unique3,biomesoplenty:redwood_log,biomesoplenty:redwood_wood", + "unique3,biomesoplenty:umbran_log,biomesoplenty:umbran_wood", + "unique3,biomesoplenty:willow_log,biomesoplenty:willow_wood", + + # Stripped Log => Seat + "slab,minecraft:stripped_acacia_log,decorative_blocks:acacia_seat", + "slab,minecraft:stripped_bamboo_block,decorative_blocks:bamboo_seat", + "slab,minecraft:stripped_birch_log,decorative_blocks:birch_seat", + "slab,minecraft:stripped_cherry_log,decorative_blocks:cherry_seat", + "slab,minecraft:stripped_crimson_stem,decorative_blocks:crimson_seat", + "slab,minecraft:stripped_dark_oak_log,decorative_blocks:dark_oak_seat", + "slab,minecraft:stripped_jungle_log,decorative_blocks:jungle_seat", + "slab,minecraft:stripped_mangrove_log,decorative_blocks:mangrove_seat", + "slab,minecraft:stripped_oak_log,decorative_blocks:oak_seat", + "slab,minecraft:stripped_spruce_log,decorative_blocks:spruce_seat", + "slab,minecraft:stripped_warped_stem,decorative_blocks:warped_seat", + "slab,quark:stripped_ancient_log,everycomp:db/quark/ancient_seat", + "slab,quark:stripped_azalea_log,everycomp:db/quark/azalea_seat", + "slab,quark:stripped_blossom_log,everycomp:db/quark/blossom_seat", + "slab,biomesoplenty:stripped_dead_log,everycomp:db/biomesoplenty/dead_seat", + "slab,biomesoplenty:stripped_fir_log,everycomp:db/biomesoplenty/fir_seat", + "slab,biomesoplenty:stripped_hellbark_log,everycomp:db/biomesoplenty/hellbark_seat", + "slab,biomesoplenty:stripped_jacaranda_log,everycomp:db/biomesoplenty/jacaranda_seat", + "slab,biomesoplenty:stripped_magic_log,everycomp:db/biomesoplenty/magic_seat", + "slab,biomesoplenty:stripped_mahogany_log,everycomp:db/biomesoplenty/mahogany_seat", + "slab,biomesoplenty:stripped_palm_log,everycomp:db/biomesoplenty/palm_seat", + "slab,biomesoplenty:stripped_redwood_log,everycomp:db/biomesoplenty/redwood_seat", + "slab,biomesoplenty:stripped_umbran_log,everycomp:db/biomesoplenty/umbran_seat", + "slab,biomesoplenty:stripped_willow_log,everycomp:db/biomesoplenty/willow_seat", + + # Stripped Log => Pallisade + "fence,minecraft:stripped_acacia_log,decorative_blocks:acacia_palisade", + "fence,minecraft:stripped_bamboo_block,decorative_blocks:bamboo_palisade", + "fence,minecraft:stripped_birch_log,decorative_blocks:birch_palisade", + "fence,minecraft:stripped_cherry_log,decorative_blocks:cherry_palisade", + "fence,minecraft:stripped_crimson_stem,decorative_blocks:crimson_palisade", + "fence,minecraft:stripped_dark_oak_log,decorative_blocks:dark_oak_palisade", + "fence,minecraft:stripped_jungle_log,decorative_blocks:jungle_palisade", + "fence,minecraft:stripped_mangrove_log,decorative_blocks:mangrove_palisade", + "fence,minecraft:stripped_oak_log,decorative_blocks:oak_palisade", + "fence,minecraft:stripped_spruce_log,decorative_blocks:spruce_palisade", + "fence,minecraft:stripped_warped_stem,decorative_blocks:warped_palisade", + "fence,quark:stripped_ancient_log,everycomp:db/quark/ancient_palisade", + "fence,quark:stripped_azalea_log,everycomp:db/quark/azalea_palisade", + "fence,quark:stripped_blossom_log,everycomp:db/quark/blossom_palisade", + "fence,biomesoplenty:stripped_dead_log,everycomp:db/biomesoplenty/dead_palisade", + "fence,biomesoplenty:stripped_fir_log,everycomp:db/biomesoplenty/fir_palisade", + "fence,biomesoplenty:stripped_hellbark_log,everycomp:db/biomesoplenty/hellbark_palisade", + "fence,biomesoplenty:stripped_jacaranda_log,everycomp:db/biomesoplenty/jacaranda_palisade", + "fence,biomesoplenty:stripped_magic_log,everycomp:db/biomesoplenty/magic_palisade", + "fence,biomesoplenty:stripped_mahogany_log,everycomp:db/biomesoplenty/mahogany_palisade", + "fence,biomesoplenty:stripped_palm_log,everycomp:db/biomesoplenty/palm_palisade", + "fence,biomesoplenty:stripped_redwood_log,everycomp:db/biomesoplenty/redwood_palisade", + "fence,biomesoplenty:stripped_umbran_log,everycomp:db/biomesoplenty/umbran_palisade", + "fence,biomesoplenty:stripped_willow_log,everycomp:db/biomesoplenty/willow_palisade", + + # Stripped Log => Stripped Post + "unique1,minecraft:stripped_acacia_log,quark:stripped_acacia_post", + "unique1,minecraft:stripped_bamboo_block,quark:stripped_bamboo_post", + "unique1,minecraft:stripped_birch_log,quark:stripped_birch_post", + "unique1,minecraft:stripped_cherry_log,quark:stripped_cherry_post", + "unique1,minecraft:stripped_crimson_stem,quark:stripped_crimson_post", + "unique1,minecraft:stripped_dark_oak_log,quark:stripped_dark_oak_post", + "unique1,minecraft:stripped_jungle_log,quark:stripped_jungle_post", + "unique1,minecraft:stripped_mangrove_log,quark:stripped_mangrove_post", + "unique1,minecraft:stripped_oak_log,quark:stripped_oak_post", + "unique1,minecraft:stripped_spruce_log,quark:stripped_spruce_post", + "unique1,minecraft:stripped_warped_stem,quark:stripped_warped_post", + "unique1,quark:stripped_ancient_log,quark:stripped_ancient_post", + "unique1,quark:stripped_azalea_log,quark:stripped_azalea_post", + "unique1,quark:stripped_blossom_log,quark:stripped_blossom_post", + "unique1,biomesoplenty:stripped_dead_log,everycomp:q/biomesoplenty/stripped_dead_post", + "unique1,biomesoplenty:stripped_fir_log,everycomp:q/biomesoplenty/stripped_fir_post", + "unique1,biomesoplenty:stripped_hellbark_log,everycomp:q/biomesoplenty/stripped_hellbark_post", + "unique1,biomesoplenty:stripped_jacaranda_log,everycomp:q/biomesoplenty/stripped_jacaranda_post", + "unique1,biomesoplenty:stripped_magic_log,everycomp:q/biomesoplenty/stripped_magic_post", + "unique1,biomesoplenty:stripped_mahogany_log,everycomp:q/biomesoplenty/stripped_mahogany_post", + "unique1,biomesoplenty:stripped_palm_log,everycomp:q/biomesoplenty/stripped_palm_post", + "unique1,biomesoplenty:stripped_redwood_log,everycomp:q/biomesoplenty/stripped_redwood_post", + "unique1,biomesoplenty:stripped_umbran_log,everycomp:q/biomesoplenty/stripped_umbran_post", + "unique1,biomesoplenty:stripped_willow_log,everycomp:q/biomesoplenty/stripped_willow_post", + + # Stripped Log => Beam + "unique2,minecraft:stripped_acacia_log,decorative_blocks:acacia_beam", + "unique2,minecraft:stripped_birch_log,decorative_blocks:birch_beam", + "unique2,minecraft:stripped_cherry_log,decorative_blocks:cherry_beam", + "unique2,minecraft:stripped_crimson_stem,decorative_blocks:crimson_beam", + "unique2,minecraft:stripped_dark_oak_log,decorative_blocks:dark_oak_beam", + "unique2,minecraft:stripped_jungle_log,decorative_blocks:jungle_beam", + "unique2,minecraft:stripped_mangrove_log,decorative_blocks:mangrove_beam", + "unique2,minecraft:stripped_oak_log,decorative_blocks:oak_beam", + "unique2,minecraft:stripped_spruce_log,decorative_blocks:spruce_beam", + "unique2,minecraft:stripped_warped_stem,decorative_blocks:warped_beam", + "unique2,quark:stripped_ancient_log,everycomp:db/quark/ancient_beam", + "unique2,quark:stripped_azalea_log,everycomp:db/quark/azalea_beam", + "unique2,quark:stripped_blossom_log,everycomp:db/quark/blossom_beam", + "unique2,biomesoplenty:stripped_dead_log,everycomp:db/biomesoplenty/dead_beam", + "unique2,biomesoplenty:stripped_fir_log,everycomp:db/biomesoplenty/fir_beam", + "unique2,biomesoplenty:stripped_hellbark_log,everycomp:db/biomesoplenty/hellbark_beam", + "unique2,biomesoplenty:stripped_jacaranda_log,everycomp:db/biomesoplenty/jacaranda_beam", + "unique2,biomesoplenty:stripped_magic_log,everycomp:db/biomesoplenty/magic_beam", + "unique2,biomesoplenty:stripped_mahogany_log,everycomp:db/biomesoplenty/mahogany_beam", + "unique2,biomesoplenty:stripped_palm_log,everycomp:db/biomesoplenty/palm_beam", + "unique2,biomesoplenty:stripped_redwood_log,everycomp:db/biomesoplenty/redwood_beam", + "unique2,biomesoplenty:stripped_umbran_log,everycomp:db/biomesoplenty/umbran_beam", + "unique2,biomesoplenty:stripped_willow_log,everycomp:db/biomesoplenty/willow_beam", + + # Stripped Log => Stripped Wood + "unique3,minecraft:stripped_acacia_log,minecraft:stripped_acacia_wood", + "unique3,minecraft:stripped_birch_log,minecraft:stripped_birch_wood", + "unique3,minecraft:stripped_cherry_log,minecraft:stripped_cherry_wood", + "unique3,minecraft:stripped_crimson_stem,minecraft:stripped_crimson_hyphae", + "unique3,minecraft:stripped_dark_oak_log,minecraft:stripped_dark_oak_wood", + "unique3,minecraft:stripped_jungle_log,minecraft:stripped_jungle_wood", + "unique3,minecraft:stripped_mangrove_log,minecraft:stripped_mangrove_wood", + "unique3,minecraft:stripped_oak_log,minecraft:stripped_oak_wood", + "unique3,minecraft:stripped_spruce_log,minecraft:stripped_spruce_wood", + "unique3,minecraft:stripped_warped_stem,minecraft:stripped_warped_hyphae", + "unique3,quark:stripped_ancient_log,quark:stripped_ancient_wood", + "unique3,quark:stripped_azalea_log,quark:stripped_azalea_wood", + "unique3,quark:stripped_blossom_log,quark:stripped_blossom_wood", + "unique3,biomesoplenty:stripped_dead_log,biomesoplenty:stripped_dead_wood", + "unique3,biomesoplenty:stripped_fir_log,biomesoplenty:stripped_fir_wood", + "unique3,biomesoplenty:stripped_hellbark_log,biomesoplenty:stripped_hellbark_wood", + "unique3,biomesoplenty:stripped_jacaranda_log,biomesoplenty:stripped_jacaranda_wood", + "unique3,biomesoplenty:stripped_magic_log,biomesoplenty:stripped_magic_wood", + "unique3,biomesoplenty:stripped_mahogany_log,biomesoplenty:stripped_mahogany_wood", + "unique3,biomesoplenty:stripped_palm_log,biomesoplenty:stripped_palm_wood", + "unique3,biomesoplenty:stripped_redwood_log,biomesoplenty:stripped_redwood_wood", + "unique3,biomesoplenty:stripped_umbran_log,biomesoplenty:stripped_umbran_wood", + "unique3,biomesoplenty:stripped_willow_log,biomesoplenty:stripped_willow_wood", + + # Leaves => Leaf Carpet + "slab,minecraft:acacia_leaves,quark:acacia_leaf_carpet", + "slab,minecraft:azalea_leaves,quark:azalea_leaf_carpet", + "slab,minecraft:birch_leaves,quark:birch_leaf_carpet", + "slab,minecraft:cherry_leaves,quark:cherry_leaf_carpet", + "slab,minecraft:dark_oak_leaves,quark:dark_oak_leaf_carpet", + "slab,minecraft:flowering_azalea_leaves,quark:flowering_azalea_leaf_carpet", + "slab,minecraft:jungle_leaves,quark:jungle_leaf_carpet", + "slab,minecraft:mangrove_leaves,quark:mangrove_leaf_carpet", + "slab,minecraft:oak_leaves,quark:oak_leaf_carpet", + "slab,minecraft:spruce_leaves,quark:spruce_leaf_carpet", + "slab,quark:ancient_leaves,quark:ancient_leaf_carpet", + "slab,quark:blue_blossom_leaves,quark:blue_blossom_leaf_carpet", + "slab,quark:lavender_blossom_leaves,quark:lavender_blossom_leaf_carpet", + "slab,quark:orange_blossom_leaves,quark:orange_blossom_leaf_carpet", + "slab,quark:pink_blossom_leaves,quark:pink_blossom_leaf_carpet", + "slab,quark:red_blossom_leaves,quark:red_blossom_leaf_carpet", + "slab,quark:yellow_blossom_leaves,quark:yellow_blossom_leaf_carpet", + "slab,biomesoplenty:dead_leaves,everycomp:q/biomesoplenty/dead_leaf_carpet", + "slab,biomesoplenty:fir_leaves,everycomp:q/biomesoplenty/fir_leaf_carpet", + "slab,biomesoplenty:flowering_oak_leaves,everycomp:q/biomesoplenty/flowering_oak_leaf_carpet", + "slab,biomesoplenty:hellbark_leaves,everycomp:q/biomesoplenty/hellbark_leaf_carpet", + "slab,biomesoplenty:jacaranda_leaves,everycomp:q/biomesoplenty/jacaranda_leaf_carpet", + "slab,biomesoplenty:magic_leaves,everycomp:q/biomesoplenty/magic_leaf_carpet", + "slab,biomesoplenty:mahogany_leaves,everycomp:q/biomesoplenty/mahogany_leaf_carpet", + "slab,biomesoplenty:maple_leaves,everycomp:q/biomesoplenty/maple_leaf_carpet", + "slab,biomesoplenty:orange_autumn_leaves,everycomp:q/biomesoplenty/orange_autumn_leaf_carpet", + "slab,biomesoplenty:origin_leaves,everycomp:q/biomesoplenty/origin_leaf_carpet", + "slab,biomesoplenty:palm_leaves,everycomp:q/biomesoplenty/palm_leaf_carpet", + "slab,biomesoplenty:rainbow_birch_leaves,everycomp:q/biomesoplenty/rainbow_birch_leaf_carpet", + "slab,biomesoplenty:redwood_leaves,everycomp:q/biomesoplenty/redwood_leaf_carpet", + "slab,biomesoplenty:snowblossom_leaves,everycomp:q/biomesoplenty/snowblossom_leaf_carpet", + "slab,biomesoplenty:umbran_leaves,everycomp:q/biomesoplenty/umbran_leaf_carpet", + "slab,biomesoplenty:willow_leaves,everycomp:q/biomesoplenty/willow_leaf_carpet", + "slab,biomesoplenty:yellow_autumn_leaves,everycomp:q/biomesoplenty/yellow_autumn_leaf_carpet", + + # Create + "unique2,create:railway_casing,create:train_trapdoor", + ] # A list of block IDs and mappings to be excluded from variant selection. #To exclude a block from being turned into other blocks, just include the block ID (e.g. minecraft:cobblestone). #To exclude a block from having other blocks turned into it, suffix it with = (e.g. =minecraft:cobblestone_stairs) diff --git a/kubejs/server_scripts/variant_selector.js b/kubejs/server_scripts/variant_selector.js new file mode 100644 index 0000000..e5d1dec --- /dev/null +++ b/kubejs/server_scripts/variant_selector.js @@ -0,0 +1,27 @@ +// See also: config/quark-common.toml +// experimental.variant_selector.variants +global.yeet([ "viewers", "recipes" ], + + // ==== Common ==== + /_slab$/, // Includes vertical slab. + /_stairs$/, + /_fence$/, + /_gate$/, + /(?!_paper)_wall$/, // Don't include Quark paper wall. + /_carpet$/, // Includes leaf carpet. + /_pane$/, + + // ==== Wooden ==== + /_wood$/, // Includes stripped wood. + /_hyphae$/, // Includes stripped hyphae. + /_trapdoor$/, // Includes Create's train trapdoor. + // Quark + /_post$/, // Includes stripped post. + /hollow_\w+(log|stem)/, + // Decorative Blocks + /^(?!create:).+_seat$/, // Don't include Create seats. + /_palisade$/, + /_beam$/, + /_support$/, + +);