From 39d60c6657154f9f8e4b6733e4b1989263da2409 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 10 Nov 2018 23:49:42 +0200 Subject: [PATCH] Longer attack distance. Wooden pick burns. --- LICENSE | 0 README.txt | 0 depends.txt | 0 init.lua | 10 ++++++++-- 4 files changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 LICENSE mode change 100755 => 100644 README.txt mode change 100755 => 100644 depends.txt mode change 100755 => 100644 init.lua diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.txt b/README.txt old mode 100755 new mode 100644 diff --git a/depends.txt b/depends.txt old mode 100755 new mode 100644 diff --git a/init.lua b/init.lua old mode 100755 new mode 100644 index f24dda5..53b6218 --- a/init.lua +++ b/init.lua @@ -32,7 +32,7 @@ climbing_pick.pick_on_use = function(itemstack, user, pointed_thing) if user and pt.type == "object" and pt.ref and pt.ref:is_player() then local pos = user:getpos() local target_pos = pt.ref:get_pos() - if pos and target_pos and vector.distance(pos, target_pos) < 2 then + if pos and target_pos and vector.distance(pos, target_pos) < 5 then local tmp_dir = vector.direction(pos, target_pos) local damage = 1 if math.random(1, 100) > 33 then @@ -59,7 +59,7 @@ climbing_pick.pick_on_use = function(itemstack, user, pointed_thing) elseif user and pt.type == "object" and pt.ref then local pos = user:getpos() local target_pos = pt.ref:get_pos() - if pos and target_pos and vector.distance(pos, target_pos) < 2 then + if pos and target_pos and vector.distance(pos, target_pos) < 5 then local tmp_dir = vector.direction(pos, target_pos) local damage = 5 if math.random(1, 100) > 33 then @@ -252,6 +252,12 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + type = "fuel", + recipe = "climbing_pick:pick_wood", + burntime = 20, +}) + minetest.register_craft({ output = "climbing_pick:pick_stone", recipe = {