texture updated. recipe added, adjustments

This commit is contained in:
Alexander Weber 2016-09-27 20:19:41 +02:00
parent cf270b4e9e
commit 2b6b8f55fc
2 changed files with 16 additions and 4 deletions

View File

@ -27,7 +27,7 @@ subspacewalker.ssw_is_enabled = function(user)
if not user then -- if user leave the game, disable them if not user then -- if user leave the game, disable them
return false return false
end end
local item = user:get_wielded_item() local item = user:get_wielded_item()
if not item or item:get_name() ~= "subspacewalker:walker" then if not item or item:get_name() ~= "subspacewalker:walker" then
return false return false
@ -77,7 +77,7 @@ subspacewalker.hide_blocks = function(dtime)
subspacewalker.hide_node({x=x,y=y,z=z}) subspacewalker.hide_node({x=x,y=y,z=z})
end end
end end
end end
end end
end end
end end
@ -119,8 +119,8 @@ end
-- tool definition -- tool definition
minetest.register_tool("subspacewalker:walker", { minetest.register_tool("subspacewalker:walker", {
description = "Subspace Walker", description = "Subspace Walker",
inventory_image = "default_torch_on_floor.png", inventory_image = "subspace_walker.png",
wield_image = "default_torch_on_floor.png", wield_image = "subspace_walker.png",
tool_capabilities = {}, tool_capabilities = {},
range = 0, range = 0,
on_use = subspacewalker.enable_ssw, on_use = subspacewalker.enable_ssw,
@ -142,6 +142,8 @@ minetest.register_node("subspacewalker:subspace", {
diggable = false, diggable = false,
walkable = false, walkable = false,
groups = {not_in_creative_inventory=1}, groups = {not_in_creative_inventory=1},
pointable = false,
drop = ""
}) })
@ -152,3 +154,13 @@ minetest.register_abm({
chance = 1, chance = 1,
action = subspacewalker.restore_blocks action = subspacewalker.restore_blocks
}) })
minetest.register_craft({
output = "subspacewalker:walker",
width = 1,
recipe = {
{"default:diamond"},
{"default:mese_crystal"},
{"group:stick"}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B