fixed climable on ladders before they become ladder

modified hammer texture
added 32 and 64 px shaddow textures
This commit is contained in:
DonBatman 2015-10-26 18:11:56 -07:00
parent 19f13ecd07
commit f7e3fc00c2
8 changed files with 34 additions and 23 deletions

View File

@ -14,6 +14,12 @@ minetest.register_tool( "mymasonhammer:hammer",{
description = "Mason Hammer", description = "Mason Hammer",
inventory_image = "mymasonhammer_hammer.png", inventory_image = "mymasonhammer_hammer.png",
wield_image = "mymasonhammer_hammer.png", wield_image = "mymasonhammer_hammer.png",
tool_capabilities = {
max_drop_level=3,
groupcaps= {
cracky={times={[1]=4.00, [2]=1.50, [3]=1.00}, uses=70, maxlevel=1}
}
},
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return
@ -41,11 +47,15 @@ on_use = function(itemstack, user, pointed_thing)
return return
end end
if mode == "1" then if mode == "1" then
local tuse = 1
if node.name == item then if node.name == item then
tuse = 2
if tuse == 2 then
minetest.set_node(pos,{name = stair, param2=minetest.dir_to_facedir(user:get_look_dir())}) minetest.set_node(pos,{name = stair, param2=minetest.dir_to_facedir(user:get_look_dir())})
parti(pos) parti(pos)
end end
end end
end
if mode == "2" then if mode == "2" then
if node.name == item then if node.name == item then
minetest.set_node(pos,{name = "mymasonhammer:"..mat.."_ladder2", param2=minetest.dir_to_facedir(user:get_look_dir())}) minetest.set_node(pos,{name = "mymasonhammer:"..mat.."_ladder2", param2=minetest.dir_to_facedir(user:get_look_dir())})

View File

@ -1,3 +1,4 @@
mycorners = {}
dofile(minetest.get_modpath("mymasonhammer").."/hammer.lua") dofile(minetest.get_modpath("mymasonhammer").."/hammer.lua")
dofile(minetest.get_modpath("mymasonhammer").."/nodes.lua") dofile(minetest.get_modpath("mymasonhammer").."/nodes.lua")

View File

@ -60,7 +60,7 @@ minetest.register_node("mymasonhammer:"..mat.."_ladder2", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
climbable = true, --climbable = false,
drop = item, drop = item,
groups = gro, groups = gro,
node_box = { node_box = {
@ -90,7 +90,7 @@ minetest.register_node("mymasonhammer:"..mat.."_ladder3", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = true, walkable = true,
climbable = true, --climbable = true,
drop = item, drop = item,
groups = gro, groups = gro,
node_box = { node_box = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 362 B