Wiki

Webseiten-Werkzeuge


technisches:block_swap

Block Swap

Kurz gesagt ist Block Swap eine kleine aber sehr nützliche Mod um Blöcke, welche durch Mod Updates fehlen oder durch Mods doppelt hinzugekommen sind, zu ersetzen. Die Mod ist sehr leichtgewichtig und kann daher bedenkenlos jedem empfohlen werden. Heruntergeladen werden kann sie hier: https://modrinth.com/mod/block-swap.

Block Swap bietet eine simple aber sehr mächtige Konfiguration. Diese besteht aus zwei Dateien, die block_swap.json5 und die missing_block_ids.json5. Ein Ordner known_states enthält alle dem Spiel bekannten Blockzustände und ist nützlich um die genauen Namen der Blöcke, welche man tauschen oder ersetzen will, zu ermitteln.

block_swap.json5

Diese Datei tauscht Blöcke von einer Mod mit denen einer anderen aus. Sie ist zu nutzen wenn man zwei Mods mit gleichen Blöcken im Spiel hat. Exemplarisch kann eine Konfiguration so aussehen:

{
	generate_all_known_states: true,
	retro_gen: true,
	/* A map of states that specifies what the "old" block state is and what its "new" block state is.
	   See "known_states" folder("generate_all_known_states" must be set to true in this config) to see all known block states available for all blocks available in the registry.
	   Example:
	    "state_swapper": [
	    	{
	    		"new": {
	    			"Name": "minecraft:birch_log",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"axis": "x"
	    			}
	    		},
	    		"old": {
	    			"Name": "minecraft:oak_log",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"axis": "z"
	    			}
	    		}
	    	},
	    	{
	    		"new": {
	    			"Name": "minecraft:birch_leaves",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"distance": "7",
	    				"persistent": "true"
	    			}
	    		},
	    		"old": {
	    			"Name": "minecraft:acacia_log",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"axis": "z"
	    			}
	    		}
	    	},
	    	{
	    		"new": {
	    			"Name": "minecraft:jungle_log",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"axis": "x"
	    			}
	    		},
	    		"old": {
	    			"Name": "minecraft:birch_log",
	    			// Properties define the state of this block/fluid.
	    			"Properties": {
	    				"axis": "z"
	    			}
	    		}
	    	},
	    	{
	    		"new": {
	    			"Name": "minecraft:jungle_planks",
	    		},
	    		"old": {
	    			"Name": "minecraft:acacia_planks",
	    			}
	    		}
	    	}
	    ]
	*/
	state_swapper: [],
        /* Replace Candlelights crops with the ones from Farmer's Delight */
	swapper: {
		"candlelight:tomato_crop": "farmersdelight:tomatoes",
		"candlelight:tomato_crate": "farmersdelight:tomato_crate",
		"candlelight:carrot_crate": "farmersdelight:carrot_crate",
		"candlelight:potato_crate": "farmersdelight:potato_crate",
		"candlelight:beetroot_crate": "farmersdelight:beetroot_crate",
	},
}

missing_block_ids.json5

Diese Datei kann die Id's in der level.dat und den entsprechenden Region dateien überschreiben. Das kann genutzt werden um Blöcke von entfernten Mods zu ersetzen oder aber die der die entfernt werden sollen und noch da sind. Für alle anderen Zwecke ist die block_swap.json5 zu nutzen. Exemplarisch kann diese Datei so aussehen:

{
	id_remapper: {
		"atmospheric:aspen_planks": "byg:aspen_planks",
		"atmospheric:aspen_leaves": "quark:ancient_leaves",
		"atmospheric:aspen_wood": "byg:aspen_wood",
		"atmospheric:aspen_vertical_slab": "quark:birch_vertical_slab",
		"atmospheric:aspen_log": "byg:aspen_log",
		"atmospheric:aspen_fence": "byg:aspen_fence",
		"atmospheric:gilia": "byg:angelica",
		"atmospheric:grimwood_vertical_slab": "quark:dark_oak_vertical_slab",
		"atmospheric:grimwood_slab": "minecraft:dark_oak_slab",
		"atmospheric:grimwood_stairs": "minecraft:dark_oak_stairs",
		"atmospheric:grimwood_trapdoor": "minecraft:dark_oak_trapdoor",
		"atmospheric:grimwood_planks": "minecraft:dark_oak_planks",
		"atmospheric:stripped_grimwood_post": "quark:stripped_spruce_post",
		"atmospheric:kousa_planks": "byg:cypress_planks",
		"atmospheric:kousa_stairs": "byg:cypress_stairs",
		"atmospheric:kousa_slab": "byg:cypress_slab",
		"atmospheric:kousa_vertical_slab": "quark:birch_vertical_slab",
		"atmospheric:kousa_door": "byg:green_enchanted_door",
		"atmospheric:kousa_trapdoor": "byg:green_enchanted_trapdoor",
		"atmospheric:stripped_aspen_post": "quark:stripped_azalea_post",
		"atmospheric:stripped_kousa_post": "quark:stripped_birch_post",
		"atmospheric:tall_yucca_flower": "byg:tall_prairie_grass",
		"atmospheric:yucca_leaves": "byg:baobab_leaves",
		"atmospheric:yucca_vertical_slab": "quark:birch_vertical_slab",
		"atmospheric:yucca_stairs": "minecraft:birch_stairs",
		"atmospheric:yucca_planks": "minecraft:birch_planks",
		"atmospheric:yucca_wood": "minecraft:birch_wood",
		"atmospheric:yucca_fence": "minecraft:birch_fence",
		"atmospheric:yucca_door": "minecraft:birch_door",
		"atmospheric:yucca_trapdoor": "minecraft:birch_trapdoor",
		"atmospheric:yucca_post": "quark:birch_post",
		"atmospheric:stripped_yucca_log": "minecraft:stripped_birch_log",
		"atmospheric:rosewood_stairs": "byg:cherry_stairs",
		"atmospheric:rosewood_door": "byg:cherry_door",
		"atmospheric:rosewood_trapdoor": "byg:cherry_trapdoor",
		"atmospheric:stripped_rosewood": "byg:stripped_cherry_wood",
		"atmospheric:rosewood_post": "quark:stripped_crimson_post",
		"atmospheric:stripped_rosewood_post": "quark:stripped_crimson_post",
		"atmospheric:rosewood_slab": "minecraft:crimson_slab",
		"atmospheric:rosewood_planks": "minecraft:crimson_planks",
		"atmospheric:morado_stairs": "byg:cherry_stairs",
		"atmospheric:morado_planks": "byg:cherry_planks",
		"atmospheric:saffron_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:saffron_travertine_wall": "quark:red_sandstone_bricks_wall",
		"atmospheric:saffron_travertine_slab": "minecraft:waxed_cut_copper_slab",
		"atmospheric:saffron_travertine_vertical_slab": "quark:waxed_cut_copper_vertical_slab",
		"atmospheric:saffron_travertine_stairs": "minecraft:waxed_cut_copper_stairs",
		"atmospheric:cut_saffron_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:peach_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:peach_travertine_slab": "minecraft:waxed_cut_copper_slab",
		"atmospheric:peach_travertine_vertical_slab": "quark:waxed_cut_copper_vertical_slab",
		"atmospheric:peach_travertine_stairs": "minecraft:waxed_cut_copper_stairs",
		"atmospheric:cut_peach_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:chiseled_peach_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:ivory_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:ivory_travertine_slab": "minecraft:waxed_cut_copper_slab",
		"atmospheric:ivory_travertine_vertical_slab": "quark:waxed_cut_copper_vertical_slab",
		"atmospheric:ivory_travertine_stairs": "minecraft:waxed_cut_copper_stairs",
		"atmospheric:cut_ivory_travertine": "minecraft:waxed_cut_copper",
		"atmospheric:stripped_yucca_wood": "regions_unexplored:stripped_palm_wood",
		"atmospheric:smooth_arid_sandstone": "minecraft:smooth_sandstone",
		"atmospheric:smooth_arid_sandstone_vertical_slab": "quark:smooth_sandstone_vertical_slab",
		"atmospheric:smooth_red_arid_sandstone": "minecraft:smooth_red_sandstone",
		"atmospheric:smooth_red_arid_sandstone_slab": "minecraft:smooth_red_sandstone_slab",
		"atmospheric:smooth_red_arid_sandstone_vertical_slab": "quark:smooth_red_sandstone_vertical_slab",
		"atmospheric:smooth_red_arid_sandstone_stairs": "minecraft:smooth_red_sandstone_stairs",
		"atmospheric:red_arid_sandstone_stairs": "minecraft:red_sandstone_stairs",
		"atmospheric:red_arid_sandstone_slab": "minecraft:red_sandstone_slab",
		"atmospheric:morado_wood": "minecraft:spruce_wood",
		"atmospheric:morado_door": "minecraft:crimson_door",
		"atmospheric:morado_trapdoor": "minecraft:crimson_trapdoor",
		"atmospheric:morado_vertical_slab": "quark:red_shingles_vertical_slab",
		"atmospheric:aspen_hedge": "quark:ancient_hedge",
		"atmospheric:water_hyacinth": "minecraft:air",
		"environmental:bluebell": "minecraft:air",
		"environmental:cattail": "byg:cattail",
		"environmental:tall_cattail": "byg:cattail",
		"pamhc2crops:pamtomatocrop": "farmersdelight:tomatoes",
		"pamhc2crops:pamcauliflowercrop": "farmersdelight:cabbages",
		"pamhc2crops:pamcabbagecrop": "farmersdelight:cabbages",
		"pamhc2crops:pamstrawberrycrop": "bakery:strawberry_crop",
		"pamhc2crops:pamgingercrop": "candlelight:broccoli_crop",
		"pamhc2crops:pambroccolicrop": "candlelight:broccoli_crop",
		"pamhc2crops:pambarleycrop": "farmersdelight:onions",
		"pamhc2crops:pamkohlrabicrop": "farmersdelight:cabbages",
		"pamhc2crops:pamcucumbercrop": "culturaldelights:cucumbers",
		"pamhc2crops:pamspinachcrop": "culturaldelights:corn",
		"pamhc2crops:pamcorncrop": "culturaldelights:corn",
		"pamhc2crops:pamonioncrop": "farmersdelight:onions",
		"pamhc2crops:pamblueberrycrop": "culturaldelights:eggplants",
		"pamhc2crops:pamrutabagacrop": "minecraft:beetroots",
		"quark:marble": "minecraft:calcite",
		"quark:marble_bricks": "quark:calcite_bricks",
		"quark:marble_bricks_slab": "quark:calcite_bricks_slab",
		"quark:marble_bricks_vertical_slab": "quark:calcite_bricks_vertical_slab",
		"quark:marble_bricks_stairs": "quark:calcite_bricks_stairs",
		"quark:marble_bricks_wall": "quark:calcite_bricks_wall",
		"quark:marble_pavement": "quark:chiseled_calcite_bricks",
		"quark:marble_pillar": "quark:calcite_pillar",
		"quark:marble_slab": "quark:calcite_slab",
		"quark:marble_vertical_slab": "quark:calcite_vertical_slab",
		"quark:marble_stairs": "quark:calcite_stairs",
		"quark:marble_wall": "quark:calcite_wall",
		"upgrade_aquatic:ochre_kelp_plant": "minecraft:kelp_plant",
		"upgrade_aquatic:tongue_kelp_plant": "minecraft:kelp_plant",
		"upgrade_aquatic:thorny_kelp_plant": "minecraft:kelp_plant",
		"vehicle:blaze_juice": "minecraft:air",
		"vehicle:ender_sap": "minecraft:air",
		"vehicle:fluid_extractor": "minecraft:air",
		"vehicle:fluid_mixer": "minecraft:air",
		"vehicle:fluid_pipe": "minecraft:air",
		"vehicle:fluid_pump": "minecraft:air",
		"vehicle:fuel_drum": "minecraft:air",
		"vehicle:fuelium": "minecraft:air",
		"vehicle:gas_pump": "minecraft:air",
		"vehicle:industrial_fuel_drum": "minecraft:air",
		"vehicle:jack": "minecraft:air",
		"vehicle:traffic_cone": "minecraft:air",
		"vehicle:vehicle_crate": "minecraft:air",
		"vehicle:workstation": "minecraft:air",
	},
}
technisches/block_swap.txt · Zuletzt geändert: 2024/07/16 18:31 von Sharky009

Seiten-Werkzeuge