Add longsticks

master
migdyn 2019-01-24 22:22:56 +00:00
parent 6b4e970eb8
commit 7d22ddb0fe
3 changed files with 7 additions and 3 deletions

View File

@ -18,6 +18,7 @@ minetest.register_item(":", {
minetest.register_item("main:pickaxe_steel", {
type = "none",
wield_image = "main_pickaxe_steel.png",
inventory_image = "main_pickaxe_steel.png",
tool_capabilities = {
max_drop_level = 1,
full_punch_interval = 0.8,

View File

@ -215,15 +215,18 @@ minetest.register_node("quicksand:quicksand", {
-----------
minetest.register_item("quicksand:longstick", {
type = "none",
wield_image = "main_pickaxe_steel.png",
inventory_image = "main_pickaxe_steel.png",
wield_scale = {x=1, y=4, z=1},
wield_image = "quicksand_stick.png",
inventory_image = "quicksand_stick.png",
wield_scale = {x=1, y=6, z=1},
range = 2,
on_use = function(itemstack, player, pointed_thing)
local rand = math.random(1)
if rand == 0 then
local newpos = pointed_thing.above
if newpos ~= nil then
player:set_pos(newpos)
end
end
end
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B