Repository navigation
Expand file tree
/
Copy pathdata.lua
More file actions
53 lines (52 loc) · 1.49 KB
/
Copy pathdata.lua
File metadata and controls
53 lines (52 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local tool_name = "factorio-janitor-tool"
local icon = "__factorio-janitor__/janitor-icon.png"
data:extend({
{
type = "selection-tool",
name = tool_name,
icon = icon,
icon_size = 64,
flags = {"only-in-cursor", "not-stackable", "spawnable"},
auto_recycle = false,
hidden = true,
subgroup = "tool",
order = "c[automated-construction]-z[factorio-janitor]",
stack_size = 1,
draw_label_for_cursor_render = true,
select = {
border_color = {0.25, 1, 0.35},
mode = {"nothing"},
cursor_box_type = "copy",
started_sound = {filename = "__core__/sound/blueprint-select.ogg"},
ended_sound = {filename = "__core__/sound/blueprint-create.ogg"}
},
alt_select = {
border_color = {0.25, 1, 0.35},
mode = {"nothing"},
cursor_box_type = "copy",
started_sound = {filename = "__core__/sound/blueprint-select.ogg"},
ended_sound = {filename = "__core__/sound/blueprint-create.ogg"}
}
},
{
type = "custom-input",
name = "factorio-janitor-give-tool",
key_sequence = "ALT + J",
consuming = "game-only",
action = "spawn-item",
item_to_spawn = tool_name
},
{
type = "shortcut",
name = "factorio-janitor-give-tool",
order = "b[blueprints]-z[factorio-janitor]",
action = "spawn-item",
item_to_spawn = tool_name,
associated_control_input = "factorio-janitor-give-tool",
style = "red",
icon = icon,
icon_size = 64,
small_icon = icon,
small_icon_size = 64
}
})