Local changes

master
Ciaran Gultnieks 2015-01-19 14:39:04 +00:00
parent 15759c719c
commit aa4a4d083f
4 changed files with 33 additions and 10 deletions

View File

@ -989,9 +989,9 @@ minetest.register_node("default:furnace", {
end
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
if minetest.is_protected(pos, player:get_player_name()) then
return 0
end
--if minetest.is_protected(pos, player:get_player_name()) then
-- return 0
--end
return stack:get_count()
end,
})
@ -1087,9 +1087,9 @@ minetest.register_node("default:furnace_active", {
end
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
if minetest.is_protected(pos, player:get_player_name()) then
return 0
end
--if minetest.is_protected(pos, player:get_player_name()) then
-- return 0
--end
return stack:get_count()
end,
})

View File

@ -19,7 +19,7 @@ end
minetest.register_abm({
nodenames = {"default:sapling"},
interval = 10,
interval = 60,
chance = 50,
action = function(pos, node)
if not can_grow(pos) then
@ -33,7 +33,7 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:junglesapling"},
interval = 10,
interval = 60,
chance = 50,
action = function(pos, node)
if not can_grow(pos) then

View File

@ -37,7 +37,11 @@ farming.hoe_on_use = function(itemstack, user, pointed_thing, uses)
if regN[under.name].soil == nil or regN[under.name].soil.wet == nil or regN[under.name].soil.dry == nil then
return
end
if minetest.is_protected(pt.under, user:get_player_name()) then
return
end
-- turn the node into soil, wear out item and play sound
minetest.set_node(pt.under, {name = regN[under.name].soil.dry})
minetest.sound_play("default_dig_crumbly", {
@ -225,7 +229,7 @@ farming.register_plant = function(name, def)
minetest.register_abm({
nodenames = {"group:" .. pname, "group:seed"},
neighbors = {"group:soil"},
interval = 90,
interval = 600,
chance = 2,
action = function(pos, node)
local plant_height = minetest.get_item_group(node.name, pname)

19
mods/wool/mapinfo.json Normal file
View File

@ -0,0 +1,19 @@
{
"nodes": {
"wool:white": {"textures": ["wool_white.png"]},
"wool:grey": {"textures": ["wool_grey.png"]},
"wool:black": {"textures": ["wool_black.png"]},
"wool:red": {"textures": ["wool_red.png"]},
"wool:yellow": {"textures": ["wool_yellow.png"]},
"wool:green": {"textures": ["wool_green.png"]},
"wool:cyan": {"textures": ["wool_cyan.png"]},
"wool:blue": {"textures": ["wool_blue.png"]},
"wool:magenta": {"textures": ["wool_magenta.png"]},
"wool:orange": {"textures": ["wool_orange.png"]},
"wool:brown": {"textures": ["wool_brown.png"]},
"wool:pink": {"textures": ["wool_pink.png"]},
"wool:dark_grey": {"textures": ["wool_dark_grey.png"]},
"wool:dark_green": {"textures": ["wool_dark_green.png"]}
}
}