fixed invontory images and added some decos

This commit is contained in:
cale 2016-01-03 18:43:02 +01:00
parent 4dfea9ca9c
commit 3581970deb
9 changed files with 80 additions and 20 deletions

View File

@ -17,10 +17,9 @@ classes.register_weapon = function(name,fromLevel,levels, def)
if user == nil then return end
if minetest.registered_tools[itemstack:get_name()].class then print(minetest.registered_tools[itemstack:get_name()].class) end
if classes.selected[user:get_player_name()] == minetest.registered_tools[itemstack:get_name()].class then
print("use")
if pointed_thing.type == "object" then
pointed_thing.ref:punch(user, 10,minetest.registered_tools[itemstack:get_name()].tool_capabilities)
print("hit!!")
print("[info]" .. user:get_player_name() .. " is fighting!")
return nil
end
else

View File

@ -17,10 +17,9 @@ classes.register_weapon = function(name,fromLevel,levels, def)
if user == nil then return end
if minetest.registered_tools[itemstack:get_name()].class then print(minetest.registered_tools[itemstack:get_name()].class) end
if classes.selected[user:get_player_name()] == minetest.registered_tools[itemstack:get_name()].class then
print("use")
if pointed_thing.type == "object" then
pointed_thing.ref:punch(user, 10,minetest.registered_tools[itemstack:get_name()].tool_capabilities)
print("hit!!")
print("")
return nil
end
else

View File

@ -0,0 +1,16 @@
License for Code
----------------
Copyright (C) 2015 cd2 (cdqwertz) <cdqwertz@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
http://www.gnu.org/licenses/lgpl-2.1.html
License for Media
-----------------
CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz)

View File

@ -0,0 +1,26 @@
minetest.register_node("decoration:stalagmite", {
description = "Stalagmite",
tiles = {"decoration_stalagmite.png"},
drawtype = "plantlike",
paramtype = "light",
inventory_image = "decoration_stalagmite.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3},
drop = "default:stone_item",
})
minetest.register_node("decoration:pick", {
description = "Decorative Pick",
tiles = {"decoration_pick.png"},
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
selection_box = {
type = "wallmounted",
},
inventory_image = "decoration_pick.png",
wield_image = "decoration_pick.png",
walkable = false,
groups = {crumbly = 3},
})

View File

@ -0,0 +1,26 @@
minetest.register_node("decoration:stalagmite", {
description = "Stalagmite",
tiles = {"decoration_stalagmite.png"},
drawtype = "plantlike",
paramtype = "light",
inventory_image = "decoration_stalagmite.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3},
drop = "default:stone_item",
})
minetest.register_node("decoration:pick", {
description = "Decorative Pick",
tiles = {"decoration_pick.png"},
drawtype = "signlike",
paramtype = "light",
paramtype2 = "wallmounted",
selection_box = {
type = "wallmounted",
},
inventory_image = "decoration_pick.png",
wield_image = "decoration_pick.png",
walkable = false,
groups = {crumbly = 3},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

View File

@ -286,7 +286,7 @@ minetest.register_node("default:plant_grass", {
tiles = {"default_plant_grass.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_plant_grass.png",
inventory_image = "default_plant_grass.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3, plant = 1},
@ -297,7 +297,7 @@ minetest.register_node("default:flower_1", {
tiles = {"default_flower_1.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_flower_1.png",
inventory_image = "default_flower_1.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3, plant = 1},
@ -308,7 +308,7 @@ minetest.register_node("default:flower_2", {
tiles = {"default_flower_2.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_flower_2.png",
inventory_image = "default_flower_2.png",
light_source = 10,
buildable_to = true,
walkable = false,

View File

@ -286,7 +286,7 @@ minetest.register_node("default:plant_grass", {
tiles = {"default_plant_grass.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_plant_grass.png",
inventory_image = "default_plant_grass.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3, plant = 1},
@ -297,7 +297,7 @@ minetest.register_node("default:flower_1", {
tiles = {"default_flower_1.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_flower_1.png",
inventory_image = "default_flower_1.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3, plant = 1},
@ -308,7 +308,7 @@ minetest.register_node("default:flower_2", {
tiles = {"default_flower_2.png"},
drawtype = "plantlike",
paramtype = "light",
invetory_image = "default_flower_2.png",
inventory_image = "default_flower_2.png",
light_source = 10,
buildable_to = true,
walkable = false,
@ -338,7 +338,7 @@ minetest.register_node("default:frame_with_stonebrick", {
})
minetest.register_node("default:frame_with_log", {
description = "Frame with Stonebrick",
description = "Frame with Log",
tiles = {"default_log.png^default_frame.png"},
groups = {choppy = 3},
})
@ -359,14 +359,8 @@ minetest.register_node("default:glass_with_wood", {
groups = {crumbly = 3},
})
minetest.register_node("default:glass_with_wood", {
description = "Glass with Wood",
tiles = {"default_wood.png^default_glass.png"},
groups = {crumbly = 3},
})
minetest.register_node("default:glass_with_log", {
description = "Glass with Wood",
description = "Glass with Log",
tiles = {"default_log.png^default_glass.png"},
groups = {crumbly = 3},
})