Minor
This commit is contained in:
parent
62689dd0ff
commit
43625aafee
|
@ -2,10 +2,10 @@
|
|||
-- {item_name, minimum, maximum}
|
||||
|
||||
local items_ore = {
|
||||
{"default:diamond", 1, 2},
|
||||
{"default:diamond", 1, 1},
|
||||
{"default:emerald", 1, 2},
|
||||
{"default:gold_ingot", 2, 4},
|
||||
{"default:steel_ingot", 2, 8},
|
||||
{"default:gold_ingot", 2, 3},
|
||||
{"default:steel_ingot", 2, 4},
|
||||
}
|
||||
|
||||
local items_food = {
|
||||
|
@ -38,75 +38,87 @@ local item_spawn = function (pos, node)
|
|||
end
|
||||
|
||||
minetest.register_node("bonusbox:chest", {
|
||||
tiles = {
|
||||
"chest_top.png",
|
||||
"chest_bottom.png",
|
||||
"chest_right.png",
|
||||
"chest_left.png",
|
||||
"chest_back.png",
|
||||
"chest_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.438627, 0.187361}, -- NodeBox1
|
||||
{-0.483652, -0.441532, -0.483652, 0.483652, 0.110383, 0.172837}, -- NodeBox2
|
||||
{-0.5, 0.110383, -0.5, 0.5, 0.249814, 0.187361}, -- NodeBox3
|
||||
{-0.483652, 0.246909, -0.483652, 0.483652, 0.5, 0.169932}, -- NodeBox4
|
||||
}
|
||||
},
|
||||
groups = {choppy = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rightclick = item_spawn,
|
||||
})
|
||||
tiles = {
|
||||
"chest_top.png",
|
||||
"chest_bottom.png",
|
||||
"chest_right.png",
|
||||
"chest_left.png",
|
||||
"chest_back.png",
|
||||
"chest_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.438627, 0.187361}, -- NodeBox1
|
||||
{-0.483652, -0.441532, -0.483652, 0.483652, 0.110383, 0.172837}, -- NodeBox2
|
||||
{-0.5, 0.110383, -0.5, 0.5, 0.249814, 0.187361}, -- NodeBox3
|
||||
{-0.483652, 0.246909, -0.483652, 0.483652, 0.5, 0.169932}, -- NodeBox4
|
||||
}
|
||||
},
|
||||
groups = {choppy = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rightclick = item_spawn,
|
||||
})
|
||||
|
||||
minetest.register_node("bonusbox:chest_open", {
|
||||
tiles = {
|
||||
"chest_open_top.png",
|
||||
"chest_open_bottom.png",
|
||||
"chest_open_riqht.png",
|
||||
"chest_open_left.png",
|
||||
"chest_open_back.png",
|
||||
"chest_open_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.438627, 0.187361}, -- NodeBox1
|
||||
{-0.483652, -0.444437, -0.483652, 0.483652, 0.110383, 0.169932}, -- NodeBox2
|
||||
{-0.5, 0.110383, -0.5, 0.5, 0.188813, 0.187361}, -- NodeBox3
|
||||
{-0.5, 0.188813, 0.172837, 0.5, 0.5, 0.248362}, -- NodeBox4
|
||||
{-0.484478, 0.206242, 0.242552, 0.484478, 0.5, 0.5}, -- NodeBox5
|
||||
}
|
||||
},
|
||||
groups = {choppy = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
tiles = {
|
||||
"chest_open_top.png",
|
||||
"chest_open_bottom.png",
|
||||
"chest_open_riqht.png",
|
||||
"chest_open_left.png",
|
||||
"chest_open_back.png",
|
||||
"chest_open_front.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.438627, 0.187361}, -- NodeBox1
|
||||
{-0.483652, -0.444437, -0.483652, 0.483652, 0.110383, 0.169932}, -- NodeBox2
|
||||
{-0.5, 0.110383, -0.5, 0.5, 0.188813, 0.187361}, -- NodeBox3
|
||||
{-0.5, 0.188813, 0.172837, 0.5, 0.5, 0.248362}, -- NodeBox4
|
||||
{-0.484478, 0.206242, 0.242552, 0.484478, 0.5, 0.5}, -- NodeBox5
|
||||
}
|
||||
},
|
||||
groups = {choppy = 2, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("bonusbox:chest_cap", {
|
||||
tiles = {
|
||||
"chest_open_top.png",
|
||||
"chest_open_bottom.png",
|
||||
"chest_open_right_two.png",
|
||||
"chest_open_left_two.png",
|
||||
"chest_open_back_two.png",
|
||||
"chest_open_front_two.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.172236, 0.5, -0.128775, 0.249501}, -- NodeBox1
|
||||
{-0.485183, -0.5, 0.249501, 0.485183, -0.144871, 0.5}, -- NodeBox2
|
||||
}
|
||||
},
|
||||
groups = {attached_node = 1, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
tiles = {
|
||||
"chest_open_top.png",
|
||||
"chest_open_bottom.png",
|
||||
"chest_open_right_two.png",
|
||||
"chest_open_left_two.png",
|
||||
"chest_open_back_two.png",
|
||||
"chest_open_front_two.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
drop = "",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.172236, 0.5, -0.128775, 0.249501}, -- NodeBox1
|
||||
{-0.485183, -0.5, 0.249501, 0.485183, -0.144871, 0.5}, -- NodeBox2
|
||||
}
|
||||
},
|
||||
groups = {attached_node = 1, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand", "default:dirt_with_snow", "default:gravel",
|
||||
"default:snowblock", "default:dirt_with_grass", "default:redsand",
|
||||
"default:redsandstone", "default:dirt_with_dry_grass"},
|
||||
sidelen = 80,
|
||||
fill_ratio = 0.0002,
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = {"bonusbox:chest"},
|
||||
})
|
||||
|
|
|
@ -7,7 +7,6 @@ return {
|
|||
"default:pick_gold",
|
||||
"default:shovel_gold",
|
||||
"default:axe_steel",
|
||||
"default:pole",
|
||||
"default:shovel_steel",
|
||||
"default:pick_diamond",
|
||||
"default:pick_stone",
|
||||
|
|
|
@ -273,15 +273,6 @@ minetest.register_craft({
|
|||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:pole",
|
||||
recipe = {
|
||||
{'', '', 'default:stick'},
|
||||
{'', 'default:stick', 'farming:string'},
|
||||
{'default:stick', '', 'farming:string'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:chest',
|
||||
recipe = {
|
||||
|
|
|
@ -874,20 +874,6 @@ end
|
|||
|
||||
function default.register_mgv6_decorations()
|
||||
|
||||
-- Bonusbox chest
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand", "default:dirt_with_snow", "default:gravel",
|
||||
"default:snowblock", "default:dirt_with_grass", "default:redsand",
|
||||
"default:redsandstone"},
|
||||
sidelen = 80,
|
||||
fill_ratio = 0.0002,
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
decoration = {"bonusbox:chest"},
|
||||
})
|
||||
|
||||
-- Sugar Cane
|
||||
|
||||
minetest.register_decoration({
|
||||
|
@ -1253,20 +1239,6 @@ function default.register_decorations()
|
|||
-- num_spawn_by = 8,
|
||||
})
|
||||
|
||||
-- Bonusbox chest
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"default:sand", "default:dirt_with_snow", "default:gravel",
|
||||
"default:snowblock", "default:dirt_with_grass", "default:redsand",
|
||||
"default:redsandstone", "default:dirt_with_dry_grass"},
|
||||
sidelen = 80,
|
||||
fill_ratio = 0.0002,
|
||||
y_min = 1,
|
||||
y_max = 31000,
|
||||
decoration = {"bonusbox:chest"},
|
||||
})
|
||||
|
||||
-- Grasses
|
||||
|
||||
minetest.register_decoration({
|
||||
|
|
|
@ -325,11 +325,11 @@ minetest.register_tool("default:sword_diamond", {
|
|||
--
|
||||
|
||||
minetest.register_tool("default:pole", {
|
||||
description = "Fishing Rod",
|
||||
description = "Fishing Pole",
|
||||
groups = {},
|
||||
inventory_image = "default_tool_fishing_pole.png",
|
||||
stack_max = 1,
|
||||
groups = {tools=1},
|
||||
groups = {tools = 1},
|
||||
liquids_pointable = true,
|
||||
on_use = function (itemstack, user, pointed_thing)
|
||||
if pointed_thing and pointed_thing.under then
|
||||
|
|
|
@ -95,5 +95,5 @@ minetest.register_decoration({ -- sponges are found deep in the sea
|
|||
})
|
||||
|
||||
-- Aliases
|
||||
minetest.register_alias("default:sponge", "sponge:sponges")
|
||||
minetest.register_alias("default:sponge", "sponge:sponge")
|
||||
minetest.register_alias("default:sponge_wet", "sponge:wet_sponge")
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
mg_flags = flat
|
||||
water_level = 1
|
||||
mg_name = flat
|
||||
seed = 2
|
||||
[end_of_params]
|
||||
|
|
Loading…
Reference in New Issue