Put honey out of invo and minor tweaks

This commit is contained in:
jp 2015-08-21 15:47:51 +02:00
parent f4f17cb4fc
commit 5554c0aecf
5 changed files with 7 additions and 5 deletions

View File

@ -201,6 +201,7 @@ minetest.register_craft({
minetest.register_craftitem("xdecor:honey", { minetest.register_craftitem("xdecor:honey", {
description = "Honey", description = "Honey",
inventory_image = "xdecor_honey.png", inventory_image = "xdecor_honey.png",
groups = {not_in_creative_inventory=1},
on_use = minetest.item_eat(2) on_use = minetest.item_eat(2)
}) })

View File

@ -46,7 +46,7 @@ xdecor.register("hive", {
minetest.register_abm({ minetest.register_abm({
nodenames = {"xdecor:hive"}, nodenames = {"xdecor:hive"},
interval = 10, chance = 4, interval = 10, chance = 5,
action = function(pos, _, _, _) action = function(pos, _, _, _)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()

View File

@ -80,7 +80,7 @@ local drop_item = function(pos, node)
end end
xdecor.register("frame", { xdecor.register("frame", {
description = "Item frame", description = "Item Frame",
groups = {choppy=3, snappy=2}, groups = {choppy=3, snappy=2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,

View File

@ -217,7 +217,7 @@ local colors = {"red"} -- Add more curtains colors simply here.
for _, c in pairs(colors) do for _, c in pairs(colors) do
xdecor.register("curtain_"..c, { xdecor.register("curtain_"..c, {
description = "Curtain ("..c..")", description = c:gsub("%l", string.upper, 1).." Curtain",
use_texture_alpha = true, use_texture_alpha = true,
walkable = false, walkable = false,
tiles = {"xdecor_curtain.png^[colorize:"..c..":130"}, tiles = {"xdecor_curtain.png^[colorize:"..c..":130"},
@ -267,7 +267,7 @@ xdecor.register("desertstone_tile", {
drawtype = "normal", drawtype = "normal",
description = "Desert Stone Tile", description = "Desert Stone Tile",
tiles = {"xdecor_desertstone_tile.png"}, tiles = {"xdecor_desertstone_tile.png"},
groups = {cracky=3}, groups = {cracky=3, stone=1},
sounds = sound.stone sounds = sound.stone
}) })
@ -389,7 +389,8 @@ minetest.register_tool("xdecor:flint_steel", {
minetest.register_tool("xdecor:hammer", { minetest.register_tool("xdecor:hammer", {
description = "Hammer", description = "Hammer",
inventory_image = "xdecor_hammer.png" inventory_image = "xdecor_hammer.png",
wield_image = "xdecor_hammer.png"
}) })
xdecor.register("hard_clay", { xdecor.register("hard_clay", {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 264 B