plain texture for pick operation
This commit is contained in:
parent
f24627fd18
commit
759d566f32
@ -4,7 +4,7 @@ local pos1 = {}
|
||||
|
||||
minetest.register_tool("pick_and_place:configure", {
|
||||
description = "Placement configuration tool",
|
||||
inventory_image = "pick_and_place_plus.png^[colorize:#ffffff",
|
||||
inventory_image = "pick_and_place.png^[colorize:#ffffff",
|
||||
stack_max = 1,
|
||||
range = 0,
|
||||
on_use = function(_, player)
|
||||
@ -31,10 +31,10 @@ minetest.register_tool("pick_and_place:configure", {
|
||||
|
||||
if pos1[playername] then
|
||||
-- first position already selected
|
||||
pick_and_place.show_preview(playername, "pick_and_place_plus.png", "#ffffff", pointed_pos, pos1[playername])
|
||||
pick_and_place.show_preview(playername, "pick_and_place.png", "#ffffff", pointed_pos, pos1[playername])
|
||||
else
|
||||
-- nothing selected yet
|
||||
pick_and_place.show_preview(playername, "pick_and_place_plus.png", "#ffffff", pointed_pos)
|
||||
pick_and_place.show_preview(playername, "pick_and_place.png", "#ffffff", pointed_pos)
|
||||
end
|
||||
end,
|
||||
on_deselect = function(_, player)
|
||||
|
@ -20,7 +20,7 @@ end
|
||||
|
||||
minetest.register_node("pick_and_place:handle", {
|
||||
description = "Pick and place handle",
|
||||
tiles = {"pick_and_place_plus.png"},
|
||||
tiles = {"pick_and_place.png"},
|
||||
drawtype = "allfaces",
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
|
@ -4,7 +4,7 @@ local pos1 = {}
|
||||
|
||||
minetest.register_tool("pick_and_place:pick", {
|
||||
description = "Pick tool",
|
||||
inventory_image = "pick_and_place_plus.png^[colorize:#00ff00",
|
||||
inventory_image = "pick_and_place.png^[colorize:#00ff00",
|
||||
stack_max = 1,
|
||||
range = 0,
|
||||
on_use = function(_, player)
|
||||
@ -35,10 +35,10 @@ minetest.register_tool("pick_and_place:pick", {
|
||||
|
||||
if pos1[playername] then
|
||||
-- first position already selected
|
||||
pick_and_place.show_preview(playername, "pick_and_place_plus.png", "#00ff00", pointed_pos, pos1[playername])
|
||||
pick_and_place.show_preview(playername, "pick_and_place.png", "#00ff00", pointed_pos, pos1[playername])
|
||||
else
|
||||
-- nothing selected yet
|
||||
pick_and_place.show_preview(playername, "pick_and_place_plus.png", "#00ff00", pointed_pos)
|
||||
pick_and_place.show_preview(playername, "pick_and_place.png", "#00ff00", pointed_pos)
|
||||
end
|
||||
end,
|
||||
on_deselect = function(_, player)
|
||||
|
BIN
textures/pick_and_place.png
Normal file
BIN
textures/pick_and_place.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
Loading…
x
Reference in New Issue
Block a user