unlist buttons from crafting guide
This commit is contained in:
parent
74ef01e14b
commit
bb71554cc6
10
commands.lua
10
commands.lua
@ -567,7 +567,7 @@ local register_robot_button = function(R,G,B,type)
|
|||||||
wield_image = "robot_button.png^[colorize:#"..R..G..B..":180",
|
wield_image = "robot_button.png^[colorize:#"..R..G..B..":180",
|
||||||
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,not_in_craft_guide=1},
|
||||||
on_punch = function(pos, node, player)
|
on_punch = function(pos, node, player)
|
||||||
local name = player:get_player_name(); if name==nil then return end
|
local name = player:get_player_name(); if name==nil then return end
|
||||||
local round = math.floor;
|
local round = math.floor;
|
||||||
@ -591,7 +591,7 @@ minetest.register_node("basic_robot:button"..number,
|
|||||||
wield_image = "robot_button".. number .. ".png",
|
wield_image = "robot_button".. number .. ".png",
|
||||||
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,not_in_craft_guide=1},
|
||||||
on_punch = function(pos, node, player)
|
on_punch = function(pos, node, player)
|
||||||
local name = player:get_player_name(); if name==nil then return end
|
local name = player:get_player_name(); if name==nil then return end
|
||||||
local round = math.floor;
|
local round = math.floor;
|
||||||
@ -614,7 +614,7 @@ minetest.register_node("basic_robot:button_"..number,
|
|||||||
inventory_image = string.format("%03d",number).. ".png",
|
inventory_image = string.format("%03d",number).. ".png",
|
||||||
wield_image = string.format("%03d",number).. ".png",
|
wield_image = string.format("%03d",number).. ".png",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,not_in_craft_guide=1},
|
||||||
on_punch = function(pos, node, player)
|
on_punch = function(pos, node, player)
|
||||||
local name = player:get_player_name(); if name==nil then return end
|
local name = player:get_player_name(); if name==nil then return end
|
||||||
local round = math.floor;
|
local round = math.floor;
|
||||||
@ -636,7 +636,7 @@ minetest.register_node("basic_robot:button_"..number,
|
|||||||
inventory_image = texture .. ".png",
|
inventory_image = texture .. ".png",
|
||||||
wield_image = texture .. ".png",
|
wield_image = texture .. ".png",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,not_in_craft_guide=1},
|
||||||
on_punch = function(pos, node, player)
|
on_punch = function(pos, node, player)
|
||||||
local name = player:get_player_name(); if name==nil then return end
|
local name = player:get_player_name(); if name==nil then return end
|
||||||
local round = math.floor;
|
local round = math.floor;
|
||||||
@ -1353,4 +1353,4 @@ basic_robot.commands.puzzle = {
|
|||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user