mirror of
https://github.com/Sokomine/markers.git
synced 2025-07-14 04:00:21 +02:00
Version MFF.
This commit is contained in:
14
land_title_register.lua
Normal file → Executable file
14
land_title_register.lua
Normal file → Executable file
@ -3,7 +3,7 @@
|
||||
minetest.register_tool( "markers:land_title_register",
|
||||
{
|
||||
description = "Land title register. Left-click with it to get information about who owns the land you clicked on.",
|
||||
groups = {},
|
||||
groups = {},
|
||||
inventory_image = "default_book.png", -- TODO
|
||||
wield_image = "",
|
||||
wield_scale = {x=1,y=1,z=1},
|
||||
@ -14,9 +14,9 @@ minetest.register_tool( "markers:land_title_register",
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
fleshy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
|
||||
snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
|
||||
choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
|
||||
fleshy={times={[2]=0.80, [3]=0.40}, uses = 1/0.05, maxlevel=1},
|
||||
snappy={times={[2]=0.80, [3]=0.40}, uses = 1/0.05, maxlevel=1},
|
||||
choppy={times={[3]=0.90}, uses = 1/0.05, maxlevel=0}
|
||||
}
|
||||
},
|
||||
node_placement_prediction = nil,
|
||||
@ -30,7 +30,7 @@ minetest.register_tool( "markers:land_title_register",
|
||||
|
||||
-- the position is what we're actually looking for
|
||||
local pos = minetest.get_pointed_thing_position( pointed_thing, false ); -- not above
|
||||
|
||||
|
||||
if( not( pos ) or not( pos.x )) then
|
||||
minetest.chat_send_player( name, "Position not found.");
|
||||
return itemstack;
|
||||
@ -41,7 +41,7 @@ minetest.register_tool( "markers:land_title_register",
|
||||
|
||||
return itemstack; -- nothing consumed, nothing changed
|
||||
end,
|
||||
|
||||
|
||||
|
||||
on_use = function(itemstack, placer, pointed_thing)
|
||||
|
||||
@ -51,7 +51,7 @@ minetest.register_tool( "markers:land_title_register",
|
||||
local name = placer:get_player_name();
|
||||
|
||||
local pos = minetest.get_pointed_thing_position( pointed_thing, false ); -- not above
|
||||
|
||||
|
||||
if( not( pos ) or not( pos.x )) then
|
||||
minetest.chat_send_player( name, "Position not found.");
|
||||
return itemstack;
|
||||
|
Reference in New Issue
Block a user