How to no choose recipe for assembling mashine?
Posted: Mon Mar 21, 2016 4:20 pm
Hi, I continue work on my mod - Zorio and have another problem, I add some ore subproducts like in IC from Minecraft, so firstly I mashing ore, than I need to washing ore, for washing entity I use chemical-plant, because I need to input water and mashed ore and output washed ore, so I use this code
When I click on new washer first time I need to choose recipe, and it show me all avaliable recipes, as it should be I can choose only recipe from "washing" category, how I can skip this and use it like furnace, just put in coal, shredded ore, some water and get hutched ore at end?
Code: Select all
-- Ore washing
{
type = "assembling-machine",
name = "zwasher",
icon = "__base__/graphics/icons/chemical-plant.png",
flags = {"placeable-neutral","placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "zwasher"},
max_health = 300,
corpse = "big-remnants",
dying_explosion = "medium-explosion",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
--[[ module_specification =
{
module_slots = 2
},
allowed_effects = {"consumption", "speed", "productivity", "pollution"}, ]]--
-- animation and sound sections are miss for this post
crafting_speed = 1.25,
energy_source =
{
type = "burner",
effectivity = 1,
fuel_inventory_size = 1,
emissions = 0.01,
smoke =
{
{
name = "smoke",
deviation = {0.1, 0.1},
frequency = 5,
position = {0.0, -0.8},
starting_vertical_speed = 0.08,
starting_frame_deviation = 60
}
}
},
energy_usage = "250kW",
ingredient_count = 2,
crafting_categories = {"washing"},
fluid_boxes =
{
{
production_type = "input",
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = -1,
pipe_connections = {{ type="input", position = {-1, -2} }}
},
{
production_type = "input",
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = -1,
pipe_connections = {{ type="input", position = {1, -2} }}
},
--[[{
production_type = "output",
pipe_covers = pipecoverspictures(),
base_level = 1,
pipe_connections = {{ position = {-1, 2} }}
},
{
production_type = "output",
pipe_covers = pipecoverspictures(),
base_level = 1,
pipe_connections = {{ position = {1, 2} }}
}]]--
}
},