Belt Switchers
This mod allows you to craft belt switchers, these belts switch the items coming in on either lane.

 
 

Code: Select all
data:extend(
{
	{
		type = "transport-belt",
		name = "beltswitcher",
		icon = "__BeltSwitchers__/graphics/icons/beltswitcher.png",
		flags = {"placeable-neutral", "player-creation"},
		minable = {hardness = 0.2, mining_time = 0.3, result = "beltswitcher"},
		max_health = 50,
		corpse = "small-remnants",
		resistances =
		{
			{
				type = "fire",
				percent = 50
			}
		},
		collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
		selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
		working_sound =
		{
			sound =
			{
				filename = "__base__/sound/express-transport-belt.ogg",
				volume = 0.4
			},
			max_sounds_per_type = 3
		},
		animation_speed_coefficient = 32,
		animations =
		{
			filename = "__base__/graphics/entity/express-transport-belt/express-transport-belt.png",
			priority = "extra-high",
			frame_width = 40,
			frame_height = 40,
			frame_count = 32,
			direction_count = 12
		},
    belt_horizontal = express_belt_horizontal, -- specified in transport-belt-pictures.lua
    belt_vertical = express_belt_vertical,
    ending_top = express_belt_ending_top,
    ending_bottom = express_belt_ending_bottom,
    ending_side = express_belt_ending_side,
    starting_top = express_belt_starting_top,
    starting_bottom = express_belt_starting_bottom,
    starting_side = express_belt_starting_side,
		ending_patch = ending_patch_prototype,
		speed = 0.09375
	}
}
)

Hey AartBluestroke, think you could fix the same issue with the TeleBelts? Thanks. See here for TeleBelts mod.AartBluestoke wrote:in 10.8 there is an "error while loading enitiy prototype "beltswitcher" (transport-belt): No such node (belt_horizontal)"
I was able to resolve this by copying a couple of tags from the definition of the normal express belt :
entities.lua:
~ snip ~
 
  


 Can u Edit your Title then that its Updated
 Can u Edit your Title then that its Updated 

elmi wrote:hi
i have the mod updated
BeltSwitch_0.0.1.zip
works with 0.11.5 but multiplayer i dont know

Ne kann ich nichtberni1212 wrote:Thanks sirCan u Edit your Title then that its Updated
 ich hab denn thread nicht eröffnet. Ich kann das item in mein mod übernehmen ^^ passen würde es
 ich hab denn thread nicht eröffnet. Ich kann das item in mein mod übernehmen ^^ passen würde es 

Welcher Mod ist dein Mod ? meinst du Logistic Modelmi wrote:Ne kann ich nichtberni1212 wrote:Thanks sirCan u Edit your Title then that its Updated
ich hab denn thread nicht eröffnet. Ich kann das item in mein mod übernehmen ^^ passen würde es




 i hope thats better
 i hope thats better