full_punch_interval = 1.0,
max_drop_level=0,
groupcaps={
- choppy = {times={[2]=1.40, [3]=0.80}, uses=10, maxlevel=1},
+ choppy = {times={[2]=1.60, [3]=1.20}, uses=10, maxlevel=1},
fleshy = {times={[2]=0.70, [3]=0.50}, uses=5, maxlevel=1}
}
},
full_punch_interval = 1.2,
max_drop_level=0,
groupcaps={
- choppy={times={[1]=3.00, [2]=1.00, [3]=0.60}, uses=20, maxlevel=1},
+ choppy={times={[1]=3.00, [2]=1.40, [3]=1.00}, uses=20, maxlevel=1},
fleshy={times={[2]=0.60, [3]=0.40}, uses=15, maxlevel=1}
}
},
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
- choppy={times={[1]=3.00, [2]=1.60, [3]=1.00}, uses=30, maxlevel=2},
+ choppy={times={[1]=2.60, [2]=1.00, [3]=0.60}, uses=30, maxlevel=2},
fleshy={times={[2]=0.40, [3]=0.25}, uses=25, maxlevel=1}
}
},
}
})
+minetest.register_craft({
+ output = 'default:junglewood 4',
+ recipe = {
+ {'default:jungletree'},
+ }
+})
+
minetest.register_craft({
output = 'default:stick 4',
recipe = {
})
minetest.register_craft({
- output = 'default:mese_block',
+ output = 'default:mese',
recipe = {
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
minetest.register_craft({
output = 'default:mese_crystal 9',
recipe = {
- {'default:mese_block'},
+ {'default:mese'},
}
})
}
})
-minetest.register_craft({
- type = "shapeless",
- output = 'default:mese',
- recipe = {
- 'default:mese_crystal',
- 'default:stone',
- }
-})
-
-
--
-- Crafting (tool repair)
--
minetest.register_craft({
type = "fuel",
- recipe = "default:leaves",
+ recipe = "group:leaves",
burntime = 1,
})
burntime = 7,
})
-minetest.register_craft({
- type = "fuel",
- recipe = "default:mese_crystal",
- burntime = 30,
-})
-
minetest.register_craft({
type = "fuel",
recipe = "default:lava_source",
burntime = 40,
})
+minetest.register_craft({
+ type = "fuel",
+ recipe = "default:junglesapling",
+ burntime = 10,
+})
+
--
-- Node definitions
--
sounds = default.node_sound_stone_defaults(),
})
-minetest.register_node("default:mese", {
+minetest.register_node("default:stone_with_mese", {
description = "Mese Crystals in Stone",
tiles = {"default_stone.png^default_mineral_mese.png"},
is_ground_content = true,
description = "Desert Sand",
tiles = {"default_desert_sand.png"},
is_ground_content = true,
- groups = {sand=1, crumbly=3, falling_node=1, sand=1},
+ groups = {crumbly=3, falling_node=1, sand=1},
sounds = default.node_sound_sand_defaults(),
})
sounds = default.node_sound_wood_defaults(),
})
+minetest.register_node("default:junglewood", {
+ description = "Junglewood Planks",
+ tiles = {"default_junglewood.png"},
+ is_ground_content = true,
+ groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
+ sounds = default.node_sound_wood_defaults(),
+})
+
+minetest.register_node("default:jungleleaves", {
+ description = "Jungle Leaves",
+ drawtype = "allfaces_optional",
+ visual_scale = 1.3,
+ tiles = {"default_jungleleaves.png"},
+ paramtype = "light",
+ groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
+ drop = {
+ max_items = 1,
+ items = {
+ {
+ -- player will get sapling with 1/20 chance
+ items = {'default:junglesapling'},
+ rarity = 20,
+ },
+ {
+ -- player will get leaves only if he get no saplings,
+ -- this is because max_items is 1
+ items = {'default:jungleleaves'},
+ }
+ }
+ },
+ sounds = default.node_sound_leaves_defaults(),
+})
+
+minetest.register_node("default:junglesapling", {
+ description = "Jungle Sapling",
+ drawtype = "plantlike",
+ visual_scale = 1.0,
+ tiles = {"default_junglesapling.png"},
+ inventory_image = "default_junglesapling.png",
+ wield_image = "default_junglesapling.png",
+ paramtype = "light",
+ walkable = false,
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
+ },
+ groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1},
+ sounds = default.node_sound_defaults(),
+})
+-- alias for tree growing abm in content_abm.cpp
+minetest.register_alias("junglesapling", "default:junglesapling")
+
minetest.register_node("default:junglegrass", {
description = "Jungle Grass",
drawtype = "plantlike",
visual_scale = 1.3,
tiles = {"default_leaves.png"},
paramtype = "light",
- groups = {snappy=3, leafdecay=3, flammable=2},
+ groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
drop = {
max_items = 1,
items = {
pointable = false,
diggable = false,
buildable_to = true,
+ drop = "",
liquidtype = "flowing",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
},
special_tiles = {
-- New-style water source material (mostly unused)
- {name="default_water.png", backface_culling=false},
+ {
+ name="default_water_source_animated.png",
+ animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
+ backface_culling = false,
+ }
},
alpha = WATER_ALPHA,
paramtype = "light",
pointable = false,
diggable = false,
buildable_to = true,
+ drop = "",
liquidtype = "source",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
pointable = false,
diggable = false,
buildable_to = true,
+ drop = "",
liquidtype = "flowing",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
},
special_tiles = {
-- New-style lava source material (mostly unused)
- {name="default_lava.png", backface_culling=false},
+ {
+ name="default_lava_source_animated.png",
+ animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0},
+ backface_culling = false,
+ }
},
paramtype = "light",
light_source = LIGHT_MAX - 1,
pointable = false,
diggable = false,
buildable_to = true,
+ drop = "",
liquidtype = "source",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
end,
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
- meta:set_string("formspec",
- "size[8,9]"..
- "list[current_name;main;0,0;8,4;]"..
- "list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", "Locked Chest")
meta:set_string("owner", "")
local inv = meta:get_inventory()
minetest.log("action", player:get_player_name()..
" takes stuff from locked chest at "..minetest.pos_to_string(pos))
end,
+ on_rightclick = function(pos, node, clicker)
+ local meta = minetest.env:get_meta(pos)
+ if has_locked_chest_privilege(meta, clicker) then
+ local pos = pos.x .. "," .. pos.y .. "," ..pos.z
+ minetest.show_formspec(clicker:get_player_name(), "default:chest_locked",
+ "size[8,9]"..
+ "list[nodemeta:".. pos .. ";main;0,0;8,4;]"..
+ "list[current_player;main;0,5;8,4;]")
+ end
+ end,
})
default.furnace_inactive_formspec =
sounds = default.node_sound_stone_defaults(),
})
-minetest.register_node("default:mese_block", {
+minetest.register_node("default:mese", {
description = "Mese Block",
tiles = {"default_mese_block.png"},
is_ground_content = true,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})
+minetest.register_alias("default:mese_block", "default:mese")
minetest.register_node("default:nyancat", {
description = "Nyan Cat",
minetest.register_craftitem("default:clay_brick", {
description = "Clay Brick",
- inventory_image = "default_steel_ingot.png",
inventory_image = "default_clay_brick.png",
})
end
minetest.register_on_punchnode(on_punchnode)
+--
+-- Lavacooling
+--
+
+default.cool_lava_source = function(pos)
+ minetest.env:set_node(pos, {name="default:stone"})
+end
+
+default.cool_lava_flowing = function(pos)
+ minetest.env:set_node(pos, {name="default:cobble"})
+end
+
+minetest.register_abm({
+ nodenames = {"default:lava_flowing"},
+ neighbors = {"group:water"},
+ interval = 1,
+ chance = 1,
+ action = default.cool_lava_flowing,
+})
+
+minetest.register_abm({
+ nodenames = {"default:lava_source"},
+ neighbors = {"group:water"},
+ interval = 1,
+ chance = 1,
+ action = default.cool_lava_source,
+})
+
-- END