Update in-game gui, new cow model by @stujones11, code tidying and remove unused resources
1
.gitignore
vendored
@ -26,6 +26,7 @@ gtags.files
|
|||||||
.idea/*
|
.idea/*
|
||||||
# Codelite
|
# Codelite
|
||||||
*.project
|
*.project
|
||||||
|
desktop.ini
|
||||||
|
|
||||||
## Files related to minetest development cycle
|
## Files related to minetest development cycle
|
||||||
/*.patch
|
/*.patch
|
||||||
|
@ -22,7 +22,6 @@ minetest.register_node("mesecons:mesecon_on", {
|
|||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
|
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -116,7 +116,6 @@ for zmy=0, 1 do
|
|||||||
},
|
},
|
||||||
groups = groups,
|
groups = groups,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 64,
|
|
||||||
drop = "mesecons:wire_00000000_off",
|
drop = "mesecons:wire_00000000_off",
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.off,
|
state = mesecon.state.off,
|
||||||
@ -145,7 +144,6 @@ for zmy=0, 1 do
|
|||||||
},
|
},
|
||||||
groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1},
|
groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 64,
|
|
||||||
drop = "mesecons:wire_00000000_off",
|
drop = "mesecons:wire_00000000_off",
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
|
@ -152,7 +152,7 @@ end
|
|||||||
doors:register_door("doors:door_wood", {
|
doors:register_door("doors:door_wood", {
|
||||||
description = "Wooden Door",
|
description = "Wooden Door",
|
||||||
inventory_image = "door_wood.png",
|
inventory_image = "door_wood.png",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese = 1},
|
||||||
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
|
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
@ -161,7 +161,7 @@ doors:register_door("doors:door_wood", {
|
|||||||
doors:register_door("doors:door_steel", {
|
doors:register_door("doors:door_steel", {
|
||||||
description = "Steel Door",
|
description = "Steel Door",
|
||||||
inventory_image = "door_steel.png",
|
inventory_image = "door_steel.png",
|
||||||
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1, mese = 1},
|
groups = {snappy = 1,bendy=2,cracky=1,melty=2,level=2,door=1, mese = 1},
|
||||||
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
|
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
|
||||||
tiles_top = {"door_steel_a.png", "door_grey.png"},
|
tiles_top = {"door_steel_a.png", "door_grey.png"},
|
||||||
only_placer_can_open = true,
|
only_placer_can_open = true,
|
||||||
|
@ -48,10 +48,10 @@ local done = false
|
|||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
local groups = {}
|
local groups = {}
|
||||||
if i == 1 and not done then
|
if i == 1 and not done then
|
||||||
groups = {bendy=2,snappy=1,dig_immediate=2, mese = 1}
|
groups = {bendy=2,snappy = 1,dig_immediate=2, mese = 1}
|
||||||
done = true
|
done = true
|
||||||
else
|
else
|
||||||
groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1}
|
groups = {bendy=2,snappy = 1,dig_immediate=2, not_in_creative_inventory=1}
|
||||||
end
|
end
|
||||||
|
|
||||||
local delaytime
|
local delaytime
|
||||||
@ -113,7 +113,6 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
|
||||||
drop = 'mesecons_delayer:delayer_off_1',
|
drop = 'mesecons_delayer:delayer_off_1',
|
||||||
on_punch = function (pos, node)
|
on_punch = function (pos, node)
|
||||||
if node.name=="mesecons_delayer:delayer_off_1" then
|
if node.name=="mesecons_delayer:delayer_off_1" then
|
||||||
@ -168,7 +167,6 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
|
||||||
drop = 'mesecons_delayer:delayer_off_1',
|
drop = 'mesecons_delayer:delayer_off_1',
|
||||||
on_punch = function (pos, node)
|
on_punch = function (pos, node)
|
||||||
if node.name=="mesecons_delayer:delayer_on_1" then
|
if node.name=="mesecons_delayer:delayer_on_1" then
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("mesecons_noteblock:noteblock", {
|
minetest.register_node("mesecons_noteblock:noteblock", {
|
||||||
description = "Noteblock",
|
description = "Noteblock",
|
||||||
tiles = {"mesecons_noteblock.png"},
|
tiles = {"mesecons_noteblock.png"},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mese = 1},
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mese = 1},
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
paramtype="light",
|
paramtype="light",
|
||||||
|
@ -10,7 +10,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
|
|||||||
wield_image = "jeija_solar_panel.png",
|
wield_image = "jeija_solar_panel.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = boxes
|
fixed = boxes
|
||||||
@ -35,7 +34,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
|
|||||||
wield_image = "jeija_solar_panel.png",
|
wield_image = "jeija_solar_panel.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = boxes
|
fixed = boxes
|
||||||
@ -99,7 +97,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
|
|||||||
wield_image = "jeija_solar_panel_inverted.png",
|
wield_image = "jeija_solar_panel_inverted.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = boxes
|
fixed = boxes
|
||||||
@ -124,7 +121,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
|
|||||||
wield_image = "jeija_solar_panel_inverted.png",
|
wield_image = "jeija_solar_panel_inverted.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = boxes
|
fixed = boxes
|
||||||
|
@ -72,7 +72,6 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
|
|||||||
tiles = {"jeija_torches_on.png", "jeija_torches_on_ceiling.png", "jeija_torches_on_side.png"},
|
tiles = {"jeija_torches_on.png", "jeija_torches_on_ceiling.png", "jeija_torches_on_side.png"},
|
||||||
inventory_image = "jeija_torches_on.png",
|
inventory_image = "jeija_torches_on.png",
|
||||||
wield_image = "jeija_torches_on.png",
|
wield_image = "jeija_torches_on.png",
|
||||||
stack_max = 64,
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -90,7 +89,6 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
|
|||||||
minetest.register_node("mesecons_torch:bluestoneblock", {
|
minetest.register_node("mesecons_torch:bluestoneblock", {
|
||||||
description = "Bluestone Block",
|
description = "Bluestone Block",
|
||||||
tiles = {"default_bluestone_block.png"},
|
tiles = {"default_bluestone_block.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1, mese = 1},
|
groups = {cracky=1, mese = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
|
@ -108,7 +108,6 @@ end
|
|||||||
minetest.register_craftitem("bucket:bucket_empty", {
|
minetest.register_craftitem("bucket:bucket_empty", {
|
||||||
description = "Empty Bucket",
|
description = "Empty Bucket",
|
||||||
inventory_image = "bucket.png",
|
inventory_image = "bucket.png",
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
-- Must be pointing to node
|
-- Must be pointing to node
|
||||||
|
@ -214,16 +214,16 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
|
|||||||
bg[name] = "crafting_creative_bg.png"
|
bg[name] = "crafting_creative_bg.png"
|
||||||
if name == "inv" then
|
if name == "inv" then
|
||||||
main_list = "image[-0.2,1.7;11.35,2.33;crafting_creative_bg.png]"..
|
main_list = "image[-0.2,1.7;11.35,2.33;crafting_creative_bg.png]"..
|
||||||
"image[-0.3,0.15;3,4;crafting_inventory_armor2.png]"..
|
"image[-0.3,0.15;3,4.3;crafting_inventory_armor2.png]"..
|
||||||
"list[current_player;main;0,3.75;9,3;9]"..
|
"list[current_player;main;0,3.75;9,3;9]"..
|
||||||
|
|
||||||
"list[detached:"..player_name.."_armor;armor;0,1.55;1,1;]"..
|
"list[detached:"..player_name.."_armor;armor;0.02,1.7;1,1;]"..
|
||||||
"list[detached:"..player_name.."_armor;armor;0,2.55;1,1;1]"..
|
"list[detached:"..player_name.."_armor;armor;0.02,2.7;1,1;1]"..
|
||||||
"list[detached:"..player_name.."_armor;armor;1,1.55;1,1;2]"..
|
"list[detached:"..player_name.."_armor;armor;0.98,1.7;1,1;2]"..
|
||||||
"list[detached:"..player_name.."_armor;armor;1,2.55;1,1;3]"
|
"list[detached:"..player_name.."_armor;armor;0.98,2.7;1,1;3]"
|
||||||
end
|
end
|
||||||
formspec = "size[10,9.3]"..
|
formspec = "size[10,9.3]"..
|
||||||
"image_button_exit[10,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;10.5,9.87;crafting_inventory_creative.png]"..
|
"background[-0.19,-0.25;10.5,9.87;crafting_inventory_creative.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
default.chest_formspec =
|
default.chest_formspec =
|
||||||
"size[9,9.75]"..
|
"size[9,9.75]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
@ -22,7 +22,7 @@ function default.get_locked_chest_formspec(pos)
|
|||||||
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
|
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
|
||||||
local formspec =
|
local formspec =
|
||||||
"size[9,9.75]"..
|
"size[9,9.75]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
|
@ -79,7 +79,7 @@ local function set_inventory(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local form = "size[9,8.75]"..
|
local form = "size[9,8.75]"..
|
||||||
"image_button_exit[8.15,-0.15;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_inv.png]"..
|
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_inv.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
@ -102,42 +102,19 @@ local function set_inventory(player)
|
|||||||
end
|
end
|
||||||
local split_form = ""
|
local split_form = ""
|
||||||
split_form =
|
split_form =
|
||||||
"list[detached:split;main;7.98,3.14;1,1;]"
|
"list[detached:split;main;7.99,3.15;1,1;]"
|
||||||
form = form ..
|
form = form ..
|
||||||
"list[current_player;main;0,4.5;9,3;9]"..
|
"list[current_player;main;0,4.5;9,3;9]"..
|
||||||
"list[current_player;main;0,7.74;9,1;]"..
|
"list[current_player;main;0,7.74;9,1;]"..
|
||||||
"list[current_player;craft;4,1;2,1;1]"..
|
"list[current_player;craft;4,1;2,1;1]"..
|
||||||
"list[current_player;craft;4,2;2,1;4]"..
|
"list[current_player;craft;4,2;2,1;4]"..
|
||||||
"list[current_player;craftpreview;7,1.5;1,1;]"..
|
"list[current_player;craftpreview;7.05,1.54;1,1;]"..
|
||||||
split_form..
|
split_form..
|
||||||
"inv"
|
"inv"
|
||||||
|
|
||||||
player:set_inventory_formspec(form)
|
player:set_inventory_formspec(form)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function set_workbench(player)
|
|
||||||
player:get_inventory():set_width("craft", 3)
|
|
||||||
player:get_inventory():set_size("craft", 9)
|
|
||||||
player:get_inventory():set_size("main", 9*4)
|
|
||||||
|
|
||||||
local split_form = ""
|
|
||||||
split_form =
|
|
||||||
"list[detached:split;main;7.98,3.14;1,1;]"
|
|
||||||
local form = "size[9,8.75]"..
|
|
||||||
"image_button_exit[8.15,-0.15;1,1;;exit;X;true;true;]" ..
|
|
||||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_workbench.png]"..
|
|
||||||
"bgcolor[#080808BB;true]"..
|
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
|
||||||
"list[current_player;main;0,4.5;9,3;9]"..
|
|
||||||
"list[current_player;main;0,7.74;9,1;]"..
|
|
||||||
"list[current_player;craft;1.75,0.5;3,3;]"..
|
|
||||||
"list[current_player;craftpreview;5.75,1.5;1,1;]"..
|
|
||||||
split_form..
|
|
||||||
"wob"
|
|
||||||
|
|
||||||
minetest.show_formspec(player:get_player_name(), "main", form)
|
|
||||||
end
|
|
||||||
|
|
||||||
--drop craf items and reset inventory on closing
|
--drop craf items and reset inventory on closing
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if fields.quit then
|
if fields.quit then
|
||||||
@ -185,26 +162,6 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_node("crafting:workbench", {
|
|
||||||
description = "Workbench",
|
|
||||||
tiles = {"crafting_workbench_top.png", "default_wood.png", "crafting_workbench_side.png",
|
|
||||||
"crafting_workbench_side.png", "crafting_workbench_front.png", "crafting_workbench_front.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=2, decorative = 1},
|
|
||||||
on_rightclick = function(pos, node, clicker, itemstack)
|
|
||||||
set_workbench(clicker)
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "crafting:workbench",
|
|
||||||
recipe = {
|
|
||||||
{"group:wood", "group:wood"},
|
|
||||||
{"group:wood", "group:wood"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
local split_inv = minetest.create_detached_inventory("split", {
|
local split_inv = minetest.create_detached_inventory("split", {
|
||||||
allow_move = function(_, _, _, _, _, count, _)
|
allow_move = function(_, _, _, _, _, count, _)
|
||||||
return count
|
return count
|
||||||
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 86 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 144 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.8 KiB |
@ -3,7 +3,7 @@ if minetest.setting_getbool("creative_mode") then
|
|||||||
minetest.register_item(":", {
|
minetest.register_item(":", {
|
||||||
type = "none",
|
type = "none",
|
||||||
wield_image = "wieldhand.png",
|
wield_image = "wieldhand.png",
|
||||||
wield_scale = {x=0.7,y=2,z=0.0001},
|
wield_scale = {x = 0.7, y = 2, z = 0.0001},
|
||||||
range = 10,
|
range = 10,
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.9,
|
||||||
@ -15,7 +15,7 @@ if minetest.setting_getbool("creative_mode") then
|
|||||||
choppy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
|
choppy = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
|
||||||
oddly_breakable_by_hand = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
|
oddly_breakable_by_hand = {times={[1]=digtime, [2]=digtime, [3]=digtime}, uses=0, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 10},
|
damage_groups = {fleshy = 5},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -72,3 +72,6 @@ minetest.register_alias("default:pinewood", "default:pine_wood")
|
|||||||
minetest.register_alias("default:gold_nugget", "default:gold_ingot")
|
minetest.register_alias("default:gold_nugget", "default:gold_ingot")
|
||||||
-- Sandstone Carved
|
-- Sandstone Carved
|
||||||
minetest.register_alias("default:sandstonecarved", "default:sandstonesmooth")
|
minetest.register_alias("default:sandstonecarved", "default:sandstonesmooth")
|
||||||
|
|
||||||
|
-- Workbench
|
||||||
|
minetest.register_alias("crafting:workbench", "default:workbench")
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
minetest.register_craftitem("default:stick", {
|
minetest.register_craftitem("default:stick", {
|
||||||
description = "Stick",
|
description = "Stick",
|
||||||
inventory_image = "default_stick.png",
|
inventory_image = "default_stick.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -15,91 +14,78 @@ minetest.register_craftitem("default:stick", {
|
|||||||
minetest.register_craftitem("default:paper", {
|
minetest.register_craftitem("default:paper", {
|
||||||
description = "Paper",
|
description = "Paper",
|
||||||
inventory_image = "default_paper.png",
|
inventory_image = "default_paper.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {misc = 1},
|
groups = {misc = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:book", {
|
minetest.register_craftitem("default:book", {
|
||||||
description = "Book",
|
description = "Book",
|
||||||
inventory_image = "default_book.png",
|
inventory_image = "default_book.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {misc = 1},
|
groups = {misc = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:coal_lump", {
|
minetest.register_craftitem("default:coal_lump", {
|
||||||
description = "Coal Lump",
|
description = "Coal Lump",
|
||||||
inventory_image = "default_coal_lump.png",
|
inventory_image = "default_coal_lump.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:charcoal_lump", {
|
minetest.register_craftitem("default:charcoal_lump", {
|
||||||
description = "Charcoal Lump",
|
description = "Charcoal Lump",
|
||||||
inventory_image = "default_charcoal_lump.png",
|
inventory_image = "default_charcoal_lump.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:diamond", {
|
minetest.register_craftitem("default:diamond", {
|
||||||
description = "Diamond",
|
description = "Diamond",
|
||||||
inventory_image = "default_diamond.png",
|
inventory_image = "default_diamond.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:clay_lump", {
|
minetest.register_craftitem("default:clay_lump", {
|
||||||
description = "Clay Lump",
|
description = "Clay Lump",
|
||||||
inventory_image = "default_clay_lump.png",
|
inventory_image = "default_clay_lump.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:steel_ingot", {
|
minetest.register_craftitem("default:steel_ingot", {
|
||||||
description = "Steel Ingot",
|
description = "Steel Ingot",
|
||||||
inventory_image = "default_steel_ingot.png",
|
inventory_image = "default_steel_ingot.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:gold_ingot", {
|
minetest.register_craftitem("default:gold_ingot", {
|
||||||
description = "Gold Ingot",
|
description = "Gold Ingot",
|
||||||
inventory_image = "default_gold_ingot.png",
|
inventory_image = "default_gold_ingot.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:emerald", {
|
minetest.register_craftitem("default:emerald", {
|
||||||
description = "Emerald",
|
description = "Emerald",
|
||||||
inventory_image = "default_emerald.png",
|
inventory_image = "default_emerald.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:clay_brick", {
|
minetest.register_craftitem("default:clay_brick", {
|
||||||
description = "Clay Brick",
|
description = "Clay Brick",
|
||||||
inventory_image = "default_clay_brick.png",
|
inventory_image = "default_clay_brick.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:gunpowder", {
|
minetest.register_craftitem("default:gunpowder", {
|
||||||
description = "Gunpowder",
|
description = "Gunpowder",
|
||||||
inventory_image = "default_gunpowder.png",
|
inventory_image = "default_gunpowder.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:bone", {
|
minetest.register_craftitem("default:bone", {
|
||||||
description = "Bone",
|
description = "Bone",
|
||||||
inventory_image = "default_bone.png",
|
inventory_image = "default_bone.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:glowstone_dust", {
|
minetest.register_craftitem("default:glowstone_dust", {
|
||||||
description = "Glowstone Dust",
|
description = "Glowstone Dust",
|
||||||
inventory_image = "default_glowstone_dust.png",
|
inventory_image = "default_glowstone_dust.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -108,7 +94,6 @@ minetest.register_craftitem("default:fish_raw", {
|
|||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "default_fish.png",
|
inventory_image = "default_fish.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
stack_max = 64,
|
|
||||||
groups = {foodstuffs = 1},
|
groups = {foodstuffs = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -117,21 +102,18 @@ minetest.register_craftitem("default:fish", {
|
|||||||
groups = {},
|
groups = {},
|
||||||
inventory_image = "default_fish_cooked.png",
|
inventory_image = "default_fish_cooked.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
stack_max = 64,
|
|
||||||
groups = {foodstuffs = 1},
|
groups = {foodstuffs = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:sugar", {
|
minetest.register_craftitem("default:sugar", {
|
||||||
description = "Sugar",
|
description = "Sugar",
|
||||||
inventory_image = "default_sugar.png",
|
inventory_image = "default_sugar.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:string",{
|
minetest.register_craftitem("default:string",{
|
||||||
description = "String",
|
description = "String",
|
||||||
inventory_image = "default_string.png",
|
inventory_image = "default_string.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -139,6 +121,5 @@ minetest.register_craftitem("default:string",{
|
|||||||
minetest.register_craftitem("default:quartz_crystal", {
|
minetest.register_craftitem("default:quartz_crystal", {
|
||||||
description = "Quartz Crystal",
|
description = "Quartz Crystal",
|
||||||
inventory_image = "default_quartz_crystal.png",
|
inventory_image = "default_quartz_crystal.png",
|
||||||
stack_max = 64,
|
|
||||||
groups = {materials = 1},
|
groups = {materials = 1},
|
||||||
})
|
})
|
@ -425,8 +425,7 @@ function AddGlass(desc, recipeitem, color)
|
|||||||
tiles = {"xpanes_pane_glass"..color..".png"},
|
tiles = {"xpanes_pane_glass"..color..".png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
stack_max = 64,
|
groups = {cracky=3, oddly_breakable_by_hand = 3, building = 1},
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3, building = 1},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
drop = "",
|
drop = "",
|
||||||
})
|
})
|
||||||
|
@ -6,31 +6,31 @@
|
|||||||
local function active_formspec(fuel_percent, item_percent)
|
local function active_formspec(fuel_percent, item_percent)
|
||||||
local formspec =
|
local formspec =
|
||||||
"size[9,8.75]"..
|
"size[9,8.75]"..
|
||||||
"image_button_exit[8.15,-0.15;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_furnace.png]"..
|
"background[-0.19,-0.25;9.41,9.49;formspec_furnace.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
"list[current_player;main;0,4.5;9,3;9]"..
|
"list[current_player;main;0,4.5;9,3;9]"..
|
||||||
"list[current_player;main;0,7.74;9,1;]"..
|
"list[current_player;main;0,7.74;9,1;]"..
|
||||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
"list[current_name;src;3,0.5;1,1;]"..
|
||||||
"list[current_name;fuel;2.75,2.5;1,1;]"..
|
"list[current_name;fuel;3,2.5;1,1;]"..
|
||||||
"list[current_name;dst;5.75,1.5;1,1;]"..
|
"list[current_name;dst;5,1.5;1,1;]"..
|
||||||
"image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
"image[3,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
||||||
(100-fuel_percent)..":default_furnace_fire_fg.png]"
|
(100-fuel_percent)..":default_furnace_fire_fg.png]"
|
||||||
return formspec
|
return formspec
|
||||||
end
|
end
|
||||||
|
|
||||||
local inactive_formspec =
|
local inactive_formspec =
|
||||||
"size[9,8.75]"..
|
"size[9,8.75]"..
|
||||||
"image_button_exit[8.15,-0.15;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_furnace.png]"..
|
"background[-0.19,-0.25;9.41,9.49;formspec_furnace.png]"..
|
||||||
"bgcolor[#080808BB;true]"..
|
"bgcolor[#080808BB;true]"..
|
||||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||||
"list[current_player;main;0,4.5;9,3;9]"..
|
"list[current_player;main;0,4.5;9,3;9]"..
|
||||||
"list[current_player;main;0,7.74;9,1;]"..
|
"list[current_player;main;0,7.74;9,1;]"..
|
||||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
"list[current_name;src;3,0.5;1,1;]"..
|
||||||
"list[current_name;fuel;2.75,2.5;1,1;]"..
|
"list[current_name;fuel;3,2.5;1,1;]"..
|
||||||
"list[current_name;dst;5.75,1.5;1,1;]"
|
"list[current_name;dst;5,1.5;1,1;]"
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Node callback functions that are the same for active and inactive furnace
|
-- Node callback functions that are the same for active and inactive furnace
|
||||||
|
@ -19,3 +19,4 @@ dofile(minetest.get_modpath("default").."/player.lua")
|
|||||||
dofile(minetest.get_modpath("default").."/trees.lua")
|
dofile(minetest.get_modpath("default").."/trees.lua")
|
||||||
dofile(minetest.get_modpath("default").."/aliases.lua")
|
dofile(minetest.get_modpath("default").."/aliases.lua")
|
||||||
dofile(minetest.get_modpath("default").."/furnace.lua")
|
dofile(minetest.get_modpath("default").."/furnace.lua")
|
||||||
|
dofile(minetest.get_modpath("default").."/workbench.lua")
|
@ -4,137 +4,9 @@
|
|||||||
-- Node definitions
|
-- Node definitions
|
||||||
--
|
--
|
||||||
|
|
||||||
minetest.register_node("default:dirt_with_snow", {
|
|
||||||
description = "Dirt with Snow",
|
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_snow.png", "default_dirt.png",
|
|
||||||
{name = "default_snow_side.png",
|
|
||||||
tileable_vertical = false}},
|
|
||||||
groups = {crumbly = 3, soil = 1},
|
|
||||||
drop = 'default:dirt',
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:snow", {
|
|
||||||
description = "Snow",
|
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_snow.png"},
|
|
||||||
inventory_image = "default_snowball.png",
|
|
||||||
wield_image = "default_snowball.png",
|
|
||||||
paramtype = "light",
|
|
||||||
buildable_to = true,
|
|
||||||
drawtype = "nodebox",
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
|
||||||
dug = {name = "default_snow_footstep", gain = 0.75},
|
|
||||||
}),
|
|
||||||
|
|
||||||
on_construct = function(pos)
|
|
||||||
pos.y = pos.y - 1
|
|
||||||
if minetest.get_node(pos).name == "default:dirt_with_grass" then
|
|
||||||
minetest.set_node(pos, {name = "default:dirt_with_snow"})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:snowblock", {
|
|
||||||
description = "Snow Block",
|
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_snow.png"},
|
|
||||||
groups = {crumbly = 3, puts_out_fire = 1},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name = "default_snow_footstep", gain = 0.25},
|
|
||||||
dug = {name = "default_snow_footstep", gain = 0.75},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:ice", {
|
|
||||||
description = "Ice",
|
|
||||||
tiles = {"default_ice.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {cracky = 3, puts_out_fire = 1},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_tree", {
|
|
||||||
description = "Pine Tree",
|
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
|
|
||||||
"default_pine_tree.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
|
||||||
on_place = minetest.rotate_node
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_wood", {
|
|
||||||
description = "Pine Wood Planks",
|
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_pine_wood.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_needles",{
|
|
||||||
description = "Pine Needles",
|
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "allfaces_optional",
|
|
||||||
visual_scale = 1.3,
|
|
||||||
tiles = {"default_pine_needles.png"},
|
|
||||||
waving = 1,
|
|
||||||
paramtype = "light",
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
|
||||||
drop = {
|
|
||||||
max_items = 1,
|
|
||||||
items = {
|
|
||||||
{items = {"default:pine_sapling"}, rarity = 20},
|
|
||||||
{items = {"default:pine_needles"}}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
|
|
||||||
after_place_node = default.after_place_leaves,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_sapling", {
|
|
||||||
description = "Pine Sapling",
|
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
|
||||||
visual_scale = 1.0,
|
|
||||||
tiles = {"default_pine_sapling.png"},
|
|
||||||
inventory_image = "default_pine_sapling.png",
|
|
||||||
wield_image = "default_pine_sapling.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
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, sapling = 1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("default:stone", {
|
minetest.register_node("default:stone", {
|
||||||
description = "Stone",
|
description = "Stone",
|
||||||
tiles = {"default_stone.png"},
|
tiles = {"default_stone.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
||||||
drop = 'default:cobble',
|
drop = 'default:cobble',
|
||||||
legacy_mineral = true,
|
legacy_mineral = true,
|
||||||
@ -144,8 +16,6 @@ minetest.register_node("default:stone", {
|
|||||||
minetest.register_node("default:stone_with_coal", {
|
minetest.register_node("default:stone_with_coal", {
|
||||||
description = "Coal Ore",
|
description = "Coal Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_coal.png"},
|
tiles = {"default_stone.png^default_mineral_coal.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, building = 1},
|
groups = {cracky=3, building = 1},
|
||||||
drop = 'default:coal_lump',
|
drop = 'default:coal_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -154,8 +24,6 @@ minetest.register_node("default:stone_with_coal", {
|
|||||||
minetest.register_node("default:stone_with_iron", {
|
minetest.register_node("default:stone_with_iron", {
|
||||||
description = "Iron Ore",
|
description = "Iron Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_iron.png"},
|
tiles = {"default_stone.png^default_mineral_iron.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
drop = 'default:stone_with_iron',
|
drop = 'default:stone_with_iron',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -165,8 +33,6 @@ minetest.register_node("default:stone_with_iron", {
|
|||||||
minetest.register_node("default:stone_with_gold", {
|
minetest.register_node("default:stone_with_gold", {
|
||||||
description = "Gold Ore",
|
description = "Gold Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_gold.png"},
|
tiles = {"default_stone.png^default_mineral_gold.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
drop = "default:stone_with_gold",
|
drop = "default:stone_with_gold",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -176,8 +42,6 @@ minetest.register_node("default:stone_with_gold", {
|
|||||||
minetest.register_node("default:stone_with_bluestone", {
|
minetest.register_node("default:stone_with_bluestone", {
|
||||||
description = "Bluestone Ore",
|
description = "Bluestone Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_bluestone.png"},
|
tiles = {"default_stone.png^default_mineral_bluestone.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
drop = "mesecons:wire_00000000_off 5",
|
drop = "mesecons:wire_00000000_off 5",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -186,8 +50,6 @@ minetest.register_node("default:stone_with_bluestone", {
|
|||||||
minetest.register_node("default:stone_with_lapis", {
|
minetest.register_node("default:stone_with_lapis", {
|
||||||
description = "Lapis Lazuli Ore",
|
description = "Lapis Lazuli Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_lapis.png"},
|
tiles = {"default_stone.png^default_mineral_lapis.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 2,
|
max_items = 2,
|
||||||
@ -205,8 +67,6 @@ minetest.register_node("default:stone_with_lapis", {
|
|||||||
minetest.register_node("default:stone_with_emerald", {
|
minetest.register_node("default:stone_with_emerald", {
|
||||||
description = "Emerald Ore",
|
description = "Emerald Ore",
|
||||||
tiles = {"default_stone.png^default_mineral_emerald.png"},
|
tiles = {"default_stone.png^default_mineral_emerald.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
drop = "default:emerald",
|
drop = "default:emerald",
|
||||||
-- drop = {
|
-- drop = {
|
||||||
@ -222,8 +82,6 @@ minetest.register_node("default:stone_with_emerald", {
|
|||||||
minetest.register_node("default:stone_with_diamond", {
|
minetest.register_node("default:stone_with_diamond", {
|
||||||
description = "Diamonds in Stone",
|
description = "Diamonds in Stone",
|
||||||
tiles = {"default_stone.png^default_mineral_diamond.png"},
|
tiles = {"default_stone.png^default_mineral_diamond.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1, building = 1},
|
groups = {cracky=1, building = 1},
|
||||||
drop = "default:diamond",
|
drop = "default:diamond",
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -232,7 +90,6 @@ minetest.register_node("default:stone_with_diamond", {
|
|||||||
minetest.register_node("default:stonebrick", {
|
minetest.register_node("default:stonebrick", {
|
||||||
description = "Stone Brick",
|
description = "Stone Brick",
|
||||||
tiles = {"default_stone_brick.png"},
|
tiles = {"default_stone_brick.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -240,7 +97,6 @@ minetest.register_node("default:stonebrick", {
|
|||||||
minetest.register_node("default:stonebrickcarved", {
|
minetest.register_node("default:stonebrickcarved", {
|
||||||
description = "Stone Brick Carved",
|
description = "Stone Brick Carved",
|
||||||
tiles = {"default_stonebrick_carved.png"},
|
tiles = {"default_stonebrick_carved.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -248,7 +104,6 @@ minetest.register_node("default:stonebrickcarved", {
|
|||||||
minetest.register_node("default:stonebrickcracked", {
|
minetest.register_node("default:stonebrickcracked", {
|
||||||
description = "Stone Brick Cracked",
|
description = "Stone Brick Cracked",
|
||||||
tiles = {"default_stonebrick_cracked.png"},
|
tiles = {"default_stonebrick_cracked.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -256,7 +111,6 @@ minetest.register_node("default:stonebrickcracked", {
|
|||||||
minetest.register_node("default:stonebrickmossy", {
|
minetest.register_node("default:stonebrickmossy", {
|
||||||
description = "Mossy Stone Brick",
|
description = "Mossy Stone Brick",
|
||||||
tiles = {"default_stonebrick_mossy.png"},
|
tiles = {"default_stonebrick_mossy.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
groups = {cracky=3, stone=1, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -264,9 +118,7 @@ minetest.register_node("default:stonebrickmossy", {
|
|||||||
minetest.register_node("default:dirt_with_grass", {
|
minetest.register_node("default:dirt_with_grass", {
|
||||||
description = "Dirt with Grass",
|
description = "Dirt with Grass",
|
||||||
tiles = {"default_grass.png", "default_dirt.png", "default_grass_side.png"},
|
tiles = {"default_grass.png", "default_dirt.png", "default_grass_side.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, soil=1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, soil=1, building = 1},
|
|
||||||
drop = 'default:dirt',
|
drop = 'default:dirt',
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
@ -277,9 +129,7 @@ minetest.register_node("default:dirt_with_dry_grass", {
|
|||||||
description = "Dirt with Dry Grass",
|
description = "Dirt with Dry Grass",
|
||||||
tiles = {"default_dry_grass.png", "default_dirt.png",
|
tiles = {"default_dry_grass.png", "default_dirt.png",
|
||||||
"default_dry_grass_side.png"},
|
"default_dry_grass_side.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, soil=1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, soil=1, building = 1},
|
|
||||||
drop = "default:dirt",
|
drop = "default:dirt",
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.6},
|
footstep = {name="default_grass_footstep", gain=0.6},
|
||||||
@ -289,9 +139,7 @@ minetest.register_node("default:dirt_with_dry_grass", {
|
|||||||
minetest.register_node("default:dirt_with_grass_footsteps", {
|
minetest.register_node("default:dirt_with_grass_footsteps", {
|
||||||
description = "Dirt with Grass and Footsteps",
|
description = "Dirt with Grass and Footsteps",
|
||||||
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, not_in_creative_inventory=1, soil=1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, not_in_creative_inventory=1, soil=1},
|
|
||||||
drop = 'default:dirt',
|
drop = 'default:dirt',
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
@ -300,22 +148,20 @@ minetest.register_node("default:dirt_with_grass_footsteps", {
|
|||||||
|
|
||||||
minetest.register_node("default:dirt_with_snow", {
|
minetest.register_node("default:dirt_with_snow", {
|
||||||
description = "Dirt with Snow",
|
description = "Dirt with Snow",
|
||||||
tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"},
|
tiles = {"default_snow.png", "default_dirt.png",
|
||||||
is_ground_content = true,
|
{name = "default_snow_side.png",
|
||||||
stack_max = 64,
|
tileable_vertical = false}},
|
||||||
groups = {crumbly=3, building = 1},
|
groups = {crumbly = 3, soil = 1, building = 1},
|
||||||
drop = 'default:dirt',
|
drop = 'default:dirt',
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name = "default_snow_footstep", gain = 0.4},
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:dirt", {
|
minetest.register_node("default:dirt", {
|
||||||
description = "Dirt",
|
description = "Dirt",
|
||||||
tiles = {"default_dirt.png"},
|
tiles = {"default_dirt.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, soil=1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, soil=1, building = 1},
|
|
||||||
sounds = default.node_sound_dirt_defaults(),
|
sounds = default.node_sound_dirt_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -323,9 +169,7 @@ minetest.register_node("default:dirt", {
|
|||||||
minetest.register_node("default:gravel", {
|
minetest.register_node("default:gravel", {
|
||||||
description = "Gravel",
|
description = "Gravel",
|
||||||
tiles = {"default_gravel.png"},
|
tiles = {"default_gravel.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2, falling_node = 1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2, falling_node=1, building = 1},
|
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
items = {
|
items = {
|
||||||
@ -342,27 +186,21 @@ minetest.register_node("default:gravel", {
|
|||||||
minetest.register_node("default:sand", {
|
minetest.register_node("default:sand", {
|
||||||
description = "Sand",
|
description = "Sand",
|
||||||
tiles = {"default_sand.png"},
|
tiles = {"default_sand.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, falling_node = 1, sand=1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, falling_node=1, sand=1, building = 1},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
sounds = default.node_sound_sand_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:sandstone", {
|
minetest.register_node("default:sandstone", {
|
||||||
description = "Sandstone",
|
description = "Sandstone",
|
||||||
tiles = {"default_sandstone_top.png", "default_sandstone_bottom.png", "default_sandstone_normal.png"},
|
tiles = {"default_sandstone_top.png", "default_sandstone_bottom.png", "default_sandstone_normal.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2,cracky=2, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2,cracky=2, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:sandstonesmooth", {
|
minetest.register_node("default:sandstonesmooth", {
|
||||||
description = "Sandstone Smooth",
|
description = "Sandstone Smooth",
|
||||||
tiles = {"default_sandstone_top.png", "default_sandstone_bottom.png", "default_sandstone_smooth.png"},
|
tiles = {"default_sandstone_top.png", "default_sandstone_bottom.png", "default_sandstone_smooth.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2,cracky=2, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2,cracky=2, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -371,36 +209,28 @@ minetest.register_node("default:sandstonesmooth", {
|
|||||||
minetest.register_node("default:redsand", {
|
minetest.register_node("default:redsand", {
|
||||||
description = "Red Sand",
|
description = "Red Sand",
|
||||||
tiles = {"default_red_sand.png"},
|
tiles = {"default_red_sand.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, falling_node = 1, redsand=1, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, falling_node=1, redsand=1, building = 1},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
sounds = default.node_sound_sand_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:redsandstone", {
|
minetest.register_node("default:redsandstone", {
|
||||||
description = "Red SandStone",
|
description = "Red SandStone",
|
||||||
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_normal.png"},
|
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_normal.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2,cracky=2, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2,cracky=2, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:redsandstonesmooth", {
|
minetest.register_node("default:redsandstonesmooth", {
|
||||||
description = "Red SandStone Smooth",
|
description = "Red SandStone Smooth",
|
||||||
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_smooth.png"},
|
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_smooth.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2,cracky=2, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2,cracky=2, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:redsandstonecarved", {
|
minetest.register_node("default:redsandstonecarved", {
|
||||||
description = "Red SandStone Carved",
|
description = "Red SandStone Carved",
|
||||||
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_carved.png"},
|
tiles = {"default_redsandstone_top.png", "default_redsandstone_bottom.png", "default_redsandstone_carved.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 2,cracky=2, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=2,cracky=2, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -409,9 +239,7 @@ minetest.register_node("default:redsandstonecarved", {
|
|||||||
minetest.register_node("default:clay", {
|
minetest.register_node("default:clay", {
|
||||||
description = "Clay",
|
description = "Clay",
|
||||||
tiles = {"default_clay.png"},
|
tiles = {"default_clay.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, building = 1},
|
|
||||||
drop = 'default:clay_lump 4',
|
drop = 'default:clay_lump 4',
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = "",
|
footstep = "",
|
||||||
@ -421,7 +249,6 @@ minetest.register_node("default:clay", {
|
|||||||
minetest.register_node("default:brick", {
|
minetest.register_node("default:brick", {
|
||||||
description = "Brick Block",
|
description = "Brick Block",
|
||||||
tiles = {"default_brick.png"},
|
tiles = {"default_brick.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, building = 1},
|
groups = {cracky=3, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -429,11 +256,10 @@ minetest.register_node("default:brick", {
|
|||||||
minetest.register_node("default:haybale", {
|
minetest.register_node("default:haybale", {
|
||||||
description = "Hay Bale",
|
description = "Hay Bale",
|
||||||
tiles = {"default_hayblock_top.png", "default_hayblock_top.png", "default_hayblock_side.png"},
|
tiles = {"default_hayblock_top.png", "default_hayblock_top.png", "default_hayblock_side.png"},
|
||||||
stack_max = 64,
|
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, building = 1},
|
groups = {tree=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, building = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -444,7 +270,6 @@ minetest.register_node("default:haybale", {
|
|||||||
|
|
||||||
minetest.register_node("default:tree", {
|
minetest.register_node("default:tree", {
|
||||||
description = "Tree",
|
description = "Tree",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -456,7 +281,6 @@ minetest.register_node("default:tree", {
|
|||||||
|
|
||||||
minetest.register_node("default:wood", {
|
minetest.register_node("default:wood", {
|
||||||
description = "Wooden Planks",
|
description = "Wooden Planks",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
material = "default:wood",
|
material = "default:wood",
|
||||||
@ -466,7 +290,6 @@ minetest.register_node("default:wood", {
|
|||||||
|
|
||||||
minetest.register_node("default:sapling", {
|
minetest.register_node("default:sapling", {
|
||||||
description = "Sapling",
|
description = "Sapling",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {"default_sapling.png"},
|
tiles = {"default_sapling.png"},
|
||||||
@ -486,7 +309,6 @@ minetest.register_node("default:sapling", {
|
|||||||
|
|
||||||
minetest.register_node("default:leaves", {
|
minetest.register_node("default:leaves", {
|
||||||
description = "Leaves",
|
description = "Leaves",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
@ -514,37 +336,8 @@ minetest.register_node("default:leaves", {
|
|||||||
after_place_node = default.after_place_leaves,
|
after_place_node = default.after_place_leaves,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:apple", {
|
|
||||||
description = "Apple",
|
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
|
||||||
visual_scale = 1.0,
|
|
||||||
tiles = {"default_apple.png"},
|
|
||||||
inventory_image = "default_apple.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
walkable = false,
|
|
||||||
is_ground_content = false,
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
|
||||||
},
|
|
||||||
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
|
||||||
leafdecay = 3, leafdecay_drop = 1},
|
|
||||||
on_use = minetest.item_eat(2),
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
|
||||||
if placer:is_player() then
|
|
||||||
minetest.set_node(pos, {name = "default:apple", param2 = 1})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:jungletree", {
|
minetest.register_node("default:jungletree", {
|
||||||
description = "Jungle Tree",
|
description = "Jungle Tree",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
|
tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
|
||||||
"default_jungletree.png"},
|
"default_jungletree.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -557,7 +350,6 @@ minetest.register_node("default:jungletree", {
|
|||||||
|
|
||||||
minetest.register_node("default:junglewood", {
|
minetest.register_node("default:junglewood", {
|
||||||
description = "Junglewood Planks",
|
description = "Junglewood Planks",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_junglewood.png"},
|
tiles = {"default_junglewood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||||
@ -566,7 +358,6 @@ minetest.register_node("default:junglewood", {
|
|||||||
|
|
||||||
minetest.register_node("default:jungleleaves", {
|
minetest.register_node("default:jungleleaves", {
|
||||||
description = "Jungle Leaves",
|
description = "Jungle Leaves",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
@ -588,7 +379,6 @@ minetest.register_node("default:jungleleaves", {
|
|||||||
|
|
||||||
minetest.register_node("default:junglesapling", {
|
minetest.register_node("default:junglesapling", {
|
||||||
description = "Jungle Sapling",
|
description = "Jungle Sapling",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {"default_junglesapling.png"},
|
tiles = {"default_junglesapling.png"},
|
||||||
@ -606,10 +396,8 @@ minetest.register_node("default:junglesapling", {
|
|||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_tree", {
|
minetest.register_node("default:pine_tree", {
|
||||||
description = "Pine Tree",
|
description = "Pine Tree",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
|
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
|
||||||
"default_pine_tree.png"},
|
"default_pine_tree.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -622,16 +410,15 @@ minetest.register_node("default:pine_tree", {
|
|||||||
|
|
||||||
minetest.register_node("default:pine_wood", {
|
minetest.register_node("default:pine_wood", {
|
||||||
description = "Pine Wood Planks",
|
description = "Pine Wood Planks",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_pine_wood.png"},
|
tiles = {"default_pine_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:pine_needles",{
|
minetest.register_node("default:pine_needles",{
|
||||||
description = "Pine Needles",
|
description = "Pine Needles",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
tiles = {"default_pine_needles.png"},
|
tiles = {"default_pine_needles.png"},
|
||||||
@ -653,7 +440,6 @@ minetest.register_node("default:pine_needles",{
|
|||||||
|
|
||||||
minetest.register_node("default:pine_sapling", {
|
minetest.register_node("default:pine_sapling", {
|
||||||
description = "Pine Sapling",
|
description = "Pine Sapling",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {"default_pine_sapling.png"},
|
tiles = {"default_pine_sapling.png"},
|
||||||
@ -671,10 +457,8 @@ minetest.register_node("default:pine_sapling", {
|
|||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:acacia_tree", {
|
minetest.register_node("default:acacia_tree", {
|
||||||
description = "Acacia Tree",
|
description = "Acacia Tree",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
|
tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
|
||||||
"default_acacia_tree.png"},
|
"default_acacia_tree.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -687,7 +471,6 @@ minetest.register_node("default:acacia_tree", {
|
|||||||
|
|
||||||
minetest.register_node("default:acacia_wood", {
|
minetest.register_node("default:acacia_wood", {
|
||||||
description = "Acacia Wood Planks",
|
description = "Acacia Wood Planks",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_acacia_wood.png"},
|
tiles = {"default_acacia_wood.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||||
@ -696,7 +479,6 @@ minetest.register_node("default:acacia_wood", {
|
|||||||
|
|
||||||
minetest.register_node("default:acacia_leaves", {
|
minetest.register_node("default:acacia_leaves", {
|
||||||
description = "Acacia Leaves",
|
description = "Acacia Leaves",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
tiles = {"default_acacia_leaves.png"},
|
tiles = {"default_acacia_leaves.png"},
|
||||||
@ -718,7 +500,6 @@ minetest.register_node("default:acacia_leaves", {
|
|||||||
|
|
||||||
minetest.register_node("default:acacia_sapling", {
|
minetest.register_node("default:acacia_sapling", {
|
||||||
description = "Acacia Tree Sapling",
|
description = "Acacia Tree Sapling",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {"default_acacia_sapling.png"},
|
tiles = {"default_acacia_sapling.png"},
|
||||||
@ -740,7 +521,6 @@ minetest.register_node("default:acacia_sapling", {
|
|||||||
|
|
||||||
minetest.register_node("default:junglegrass", {
|
minetest.register_node("default:junglegrass", {
|
||||||
description = "Jungle Grass",
|
description = "Jungle Grass",
|
||||||
stack_max = 64,
|
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
@ -763,9 +543,7 @@ minetest.register_node("default:cactus", {
|
|||||||
description = "Cactus",
|
description = "Cactus",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = {"default_cactus_top.png", "default_cactus_bottom.png", "default_cactus_side.png","default_cactus_side.png","default_cactus_side.png","default_cactus_side.png"},
|
tiles = {"default_cactus_top.png", "default_cactus_bottom.png", "default_cactus_side.png","default_cactus_side.png","default_cactus_side.png","default_cactus_side.png"},
|
||||||
is_ground_content = true,
|
groups = {snappy = 1, choppy = 3, flammable = 2, decorative = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {snappy=1,choppy=3,flammable=2, decorative = 1},
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -817,7 +595,6 @@ minetest.register_node("default:reeds", {
|
|||||||
wield_image = "default_sugar_cane.png",
|
wield_image = "default_sugar_cane.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -834,15 +611,13 @@ minetest.register_node("default:reeds", {
|
|||||||
{-7/16, -8/16, -7/16, 7/16, 8/16, 7/16},
|
{-7/16, -8/16, -7/16, 7/16, 8/16, 7/16},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
groups = {snappy = 3, flammable = 2, materials=1},
|
||||||
groups = {snappy=3,flammable=2, materials=1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:quartz_ore", {
|
minetest.register_node("default:quartz_ore", {
|
||||||
description = "Quartz Ore",
|
description = "Quartz Ore",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_quartz_ore.png"},
|
tiles = {"default_quartz_ore.png"},
|
||||||
groups = {cracky=3, stone=1, building = 1},
|
groups = {cracky=3, stone=1, building = 1},
|
||||||
drop = 'default:quartz_crystal',
|
drop = 'default:quartz_crystal',
|
||||||
@ -851,43 +626,38 @@ minetest.register_node("default:quartz_ore", {
|
|||||||
|
|
||||||
minetest.register_node("default:quartz_block", {
|
minetest.register_node("default:quartz_block", {
|
||||||
description = "Quartz Block",
|
description = "Quartz Block",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_quartz_block_top.png", "default_quartz_block_bottom.png", "default_quartz_block_side.png"},
|
tiles = {"default_quartz_block_top.png", "default_quartz_block_bottom.png", "default_quartz_block_side.png"},
|
||||||
groups = {snappy=1,bendy=2,cracky=1,level=2, building = 1},
|
groups = {snappy = 1,bendy=2,cracky=1,level=2, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:quartz_chiseled", {
|
minetest.register_node("default:quartz_chiseled", {
|
||||||
description = "Chiseled Quartz",
|
description = "Chiseled Quartz",
|
||||||
stack_max = 64,
|
|
||||||
tiles = {"default_quartz_chiseled_top.png", "default_quartz_chiseled_top.png", "default_quartz_chiseled_side.png"},
|
tiles = {"default_quartz_chiseled_top.png", "default_quartz_chiseled_top.png", "default_quartz_chiseled_side.png"},
|
||||||
groups = {snappy=1,bendy=2,cracky=1,level=2, building = 1},
|
groups = {snappy = 1,bendy=2,cracky=1,level=2, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:quartz_pillar", {
|
minetest.register_node("default:quartz_pillar", {
|
||||||
description = "Quartz Pillar",
|
description = "Quartz Pillar",
|
||||||
stack_max = 64,
|
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
tiles = {"default_quartz_pillar_top.png", "default_quartz_pillar_top.png", "default_quartz_pillar_side.png"},
|
tiles = {"default_quartz_pillar_top.png", "default_quartz_pillar_top.png", "default_quartz_pillar_side.png"},
|
||||||
groups = {snappy=1,bendy=2,cracky=1,level=2, building = 1},
|
groups = {snappy = 1,bendy=2,cracky=1,level=2, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:bedrock", {
|
minetest.register_node("default:bedrock", {
|
||||||
description = "Bedrock",
|
description = "Bedrock",
|
||||||
tiles = {"default_bedrock.png"},
|
tiles = {"default_bedrock.png"},
|
||||||
stack_max = 64,
|
groups = {oddly_breakable_by_hand = 5, building = 1},
|
||||||
groups = {oddly_breakable_by_hand=5, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:bookshelf", {
|
minetest.register_node("default:bookshelf", {
|
||||||
description = "Bookshelf",
|
description = "Bookshelf",
|
||||||
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
||||||
stack_max = 64,
|
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3, building = 1},
|
||||||
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3, building = 1},
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -906,8 +676,7 @@ minetest.register_node("default:slimeblock", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
stack_max = 64,
|
groups = {oddly_breakable_by_hand = 3,dig_immediate=2,bouncy=70,disable_jump=1, fall_damage_add_percent=-100, building = 1},
|
||||||
groups = {oddly_breakable_by_hand=3,dig_immediate=2,bouncy=70,disable_jump=1, fall_damage_add_percent=-100, building = 1},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:glass", {
|
minetest.register_node("default:glass", {
|
||||||
@ -916,8 +685,7 @@ minetest.register_node("default:glass", {
|
|||||||
tiles = {"default_glass.png"},
|
tiles = {"default_glass.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
stack_max = 64,
|
groups = {cracky=3, oddly_breakable_by_hand = 3, building = 1},
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3, building = 1},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
drop = "",
|
drop = "",
|
||||||
})
|
})
|
||||||
@ -955,8 +723,7 @@ minetest.register_node("default:ladder", {
|
|||||||
--wall_bottom = = <default>
|
--wall_bottom = = <default>
|
||||||
--wall_side = = <default>
|
--wall_side = = <default>
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2, decorative = 1},
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2, decorative = 1},
|
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
@ -974,8 +741,7 @@ minetest.register_node("default:vine", {
|
|||||||
selection_box = {
|
selection_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2, decorative = 1},
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=3,flammable=2, decorative = 1},
|
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
drop = "",
|
drop = "",
|
||||||
@ -1002,9 +768,9 @@ minetest.register_node("default:vine", {
|
|||||||
minetest.register_node("default:cloud", {
|
minetest.register_node("default:cloud", {
|
||||||
description = "Cloud",
|
description = "Cloud",
|
||||||
tiles = {"default_cloud.png"},
|
tiles = {"default_cloud.png"},
|
||||||
stack_max = 64,
|
is_ground_content = false,
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
--
|
||||||
@ -1370,8 +1136,7 @@ minetest.register_node("default:chest", {
|
|||||||
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
|
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
|
||||||
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
|
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
stack_max = 64,
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, decorative = 1},
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=2, decorative = 1},
|
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
@ -1382,7 +1147,7 @@ minetest.register_node("default:chest", {
|
|||||||
local p = get_chest_neighborpos(pos, param2, "right")
|
local p = get_chest_neighborpos(pos, param2, "right")
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,0;9,3;]"..
|
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,0;9,3;]"..
|
||||||
"list[current_name;main;0,3;9,3;]"..
|
"list[current_name;main;0,3;9,3;]"..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_player;main;0,7;9,3;9]"..
|
||||||
@ -1392,7 +1157,7 @@ minetest.register_node("default:chest", {
|
|||||||
local m = minetest.env:get_meta(p)
|
local m = minetest.env:get_meta(p)
|
||||||
m:set_string("formspec",
|
m:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"list[current_name;main;0,0;9,3;]"..
|
||||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3;9,3;]"..
|
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3;9,3;]"..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_player;main;0,7;9,3;9]"..
|
||||||
@ -1403,7 +1168,7 @@ minetest.register_node("default:chest", {
|
|||||||
local p = get_chest_neighborpos(pos, param2, "left")
|
local p = get_chest_neighborpos(pos, param2, "left")
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"list[current_name;main;0,0;9,3;]"..
|
||||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,3;9,3;]"..
|
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,3;9,3;]"..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_player;main;0,7;9,3;9]"..
|
||||||
@ -1413,7 +1178,7 @@ minetest.register_node("default:chest", {
|
|||||||
local m = minetest.env:get_meta(p)
|
local m = minetest.env:get_meta(p)
|
||||||
m:set_string("formspec",
|
m:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0;9,3;]"..
|
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0;9,3;]"..
|
||||||
"list[current_name;main;0,3;9,3;]"..
|
"list[current_name;main;0,3;9,3;]"..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_player;main;0,7;9,3;9]"..
|
||||||
@ -1422,7 +1187,7 @@ minetest.register_node("default:chest", {
|
|||||||
else
|
else
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,8.5]"..
|
"size[9,8.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"list[current_name;main;0,0;9,3;]"..
|
||||||
"list[current_player;main;0,4;9,3;9]"..
|
"list[current_player;main;0,4;9,3;9]"..
|
||||||
"list[current_player;main;0,7.5.5;9,1;]")
|
"list[current_player;main;0,7.5.5;9,1;]")
|
||||||
@ -1470,7 +1235,7 @@ minetest.register_node("default:chest_left", {
|
|||||||
tiles = {"default_chest_top_big.png", "default_chest_top_big.png", "default_chest_side.png",
|
tiles = {"default_chest_top_big.png", "default_chest_top_big.png", "default_chest_side.png",
|
||||||
"default_chest_side.png", "default_chest_side_big.png^[transformFX", "default_chest_front_big.png"},
|
"default_chest_side.png", "default_chest_side_big.png^[transformFX", "default_chest_front_big.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2,not_in_creative_inventory=1},
|
||||||
drop = "default:chest",
|
drop = "default:chest",
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
@ -1486,7 +1251,7 @@ minetest.register_node("default:chest_left", {
|
|||||||
local meta = minetest.env:get_meta(p)
|
local meta = minetest.env:get_meta(p)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,8.5]"..
|
"size[9,8.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"list[current_name;main;0,0;9,3;]"..
|
||||||
"list[current_player;main;0,4;9,3;9]"..
|
"list[current_player;main;0,4;9,3;9]"..
|
||||||
"list[current_player;main;0,7.5.5;9,1;]")
|
"list[current_player;main;0,7.5.5;9,1;]")
|
||||||
@ -1525,7 +1290,7 @@ minetest.register_node("default:chest_right", {
|
|||||||
tiles = {"default_chest_top_big.png^[transformFX", "default_chest_top_big.png^[transformFX", "default_chest_side.png",
|
tiles = {"default_chest_top_big.png^[transformFX", "default_chest_top_big.png^[transformFX", "default_chest_side.png",
|
||||||
"default_chest_side.png", "default_chest_side_big.png", "default_chest_front_big.png^[transformFX"},
|
"default_chest_side.png", "default_chest_side_big.png", "default_chest_front_big.png^[transformFX"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=2,not_in_creative_inventory=1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2,not_in_creative_inventory=1},
|
||||||
drop = "default:chest",
|
drop = "default:chest",
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
@ -1541,7 +1306,7 @@ minetest.register_node("default:chest_right", {
|
|||||||
local meta = minetest.env:get_meta(p)
|
local meta = minetest.env:get_meta(p)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,8.5]"..
|
"size[9,8.5]"..
|
||||||
"image_button_exit[9,0;1,1;;exit;X;true;true;]"..
|
"image_button_exit[9,0;1,1;close.png;exit;;true;true;]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"list[current_name;main;0,0;9,3;]"..
|
||||||
"list[current_player;main;0,4;9,3;9]"..
|
"list[current_player;main;0,4;9,3;9]"..
|
||||||
"list[current_player;main;0,7.5.5;9,1;]")
|
"list[current_player;main;0,7.5.5;9,1;]")
|
||||||
@ -1580,8 +1345,6 @@ minetest.register_node("default:chest_right", {
|
|||||||
minetest.register_node("default:cobble", {
|
minetest.register_node("default:cobble", {
|
||||||
description = "Cobblestone",
|
description = "Cobblestone",
|
||||||
tiles = {"default_cobble.png"},
|
tiles = {"default_cobble.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, stone=2, building = 1, decorative = 1},
|
groups = {cracky=3, stone=2, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1589,8 +1352,6 @@ minetest.register_node("default:cobble", {
|
|||||||
minetest.register_node("default:mossycobble", {
|
minetest.register_node("default:mossycobble", {
|
||||||
description = "Mossy Cobblestone",
|
description = "Mossy Cobblestone",
|
||||||
tiles = {"default_mossycobble.png"},
|
tiles = {"default_mossycobble.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, building = 1, decorative = 1},
|
groups = {cracky=3, building = 1, decorative = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1598,8 +1359,6 @@ minetest.register_node("default:mossycobble", {
|
|||||||
minetest.register_node("default:steelblock", {
|
minetest.register_node("default:steelblock", {
|
||||||
description = "Steel Block",
|
description = "Steel Block",
|
||||||
tiles = {"default_steel_block.png"},
|
tiles = {"default_steel_block.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1,level=2, building = 1},
|
groups = {cracky=1,level=2, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1607,8 +1366,6 @@ minetest.register_node("default:steelblock", {
|
|||||||
minetest.register_node("default:goldblock", {
|
minetest.register_node("default:goldblock", {
|
||||||
description = "Gold Block",
|
description = "Gold Block",
|
||||||
tiles = {"default_gold_block.png"},
|
tiles = {"default_gold_block.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1, building = 1},
|
groups = {cracky=1, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1616,16 +1373,13 @@ minetest.register_node("default:goldblock", {
|
|||||||
minetest.register_node("default:diamondblock", {
|
minetest.register_node("default:diamondblock", {
|
||||||
description = "Diamond Block",
|
description = "Diamond Block",
|
||||||
tiles = {"default_diamond_block.png"},
|
tiles = {"default_diamond_block.png"},
|
||||||
is_ground_content = true,
|
groups = {cracky=1, level=3, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1,level=3, building = 1},
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:lapisblock", {
|
minetest.register_node("default:lapisblock", {
|
||||||
description = "Lapis Lazul Block",
|
description = "Lapis Lazul Block",
|
||||||
tiles = {"default_lapis_block.png"},
|
tiles = {"default_lapis_block.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1, building = 1},
|
groups = {cracky=1, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1633,7 +1387,6 @@ minetest.register_node("default:lapisblock", {
|
|||||||
minetest.register_node("default:emeraldblock", {
|
minetest.register_node("default:emeraldblock", {
|
||||||
description = "Emerald Block",
|
description = "Emerald Block",
|
||||||
tiles = {"default_emerald_block.png"},
|
tiles = {"default_emerald_block.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=1, building = 1},
|
groups = {cracky=1, building = 1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
@ -1641,29 +1394,32 @@ minetest.register_node("default:emeraldblock", {
|
|||||||
minetest.register_node("default:obsidian", {
|
minetest.register_node("default:obsidian", {
|
||||||
description = "Obsidian",
|
description = "Obsidian",
|
||||||
tiles = {"default_obsidian.png"},
|
tiles = {"default_obsidian.png"},
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
stack_max = 64,
|
groups = {cracky=4, level=2, oddly_breakable_by_hand = 4, building = 1},
|
||||||
groups = {cracky=4,level=2,oddly_breakable_by_hand=4, building = 1},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:apple", {
|
minetest.register_node("default:apple", {
|
||||||
description = "Apple",
|
description = "Apple",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
visual_scale = 1.0,
|
visual_scale = 0.75,
|
||||||
tiles = {"default_apple.png"},
|
tiles = {"default_apple.png"},
|
||||||
inventory_image = "default_apple.png",
|
inventory_image = "default_apple.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
is_ground_content = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
|
||||||
groups = {fleshy=3,dig_immediate=3,flammable=2, foodstuffs = 1},
|
leafdecay = 3, leafdecay_drop = 1, foodstuffs = 1},
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(2),
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
|
||||||
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
minetest.set_node(pos, {name = "default:apple", param2 = 1})
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("default:apple_gold", {
|
minetest.register_node("default:apple_gold", {
|
||||||
@ -1679,8 +1435,7 @@ minetest.register_node("default:apple_gold", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
groups = {fleshy=3,dig_immediate=3, flammable = 2, foodstuffs = 1},
|
||||||
groups = {fleshy=3,dig_immediate=3,flammable=2, foodstuffs = 1},
|
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
@ -1694,8 +1449,7 @@ minetest.register_node("default:dry_shrub", {
|
|||||||
wield_image = "default_dry_shrub.png",
|
wield_image = "default_dry_shrub.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
stack_max = 64,
|
groups = {snappy = 3, flammable = 3,attached_node=1, decorative = 1},
|
||||||
groups = {snappy=3,flammable=3,attached_node=1, decorative = 1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -1727,8 +1481,7 @@ minetest.register_node("default:grass", {
|
|||||||
-- }
|
-- }
|
||||||
--},
|
--},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
groups = {snappy = 3, flammable = 3,attached_node=1,dig_immediate=3, decorative=1, grass=1},
|
||||||
groups = {snappy=3,flammable=3,attached_node=1,dig_immediate=3, decorative=1, grass=1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
||||||
local item = user:get_wielded_item()
|
local item = user:get_wielded_item()
|
||||||
@ -1747,8 +1500,7 @@ minetest.register_node("default:dry_grass", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
groups = {snappy = 3, flammable = 3, attached_node=1, dig_immediate=3, decorative=1, grass=1},
|
||||||
groups = {snappy=3,flammable=3,attached_node=1,dig_immediate=3, decorative=1, grass=1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
||||||
local item = user:get_wielded_item()
|
local item = user:get_wielded_item()
|
||||||
@ -1761,8 +1513,6 @@ minetest.register_node("default:dry_grass", {
|
|||||||
minetest.register_node("default:glowstone", {
|
minetest.register_node("default:glowstone", {
|
||||||
description = "Glowstone",
|
description = "Glowstone",
|
||||||
tiles = {"default_glowstone.png"},
|
tiles = {"default_glowstone.png"},
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=3, building = 1},
|
groups = {cracky=3, building = 1},
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
@ -1786,8 +1536,7 @@ minetest.register_node("default:sponge", {
|
|||||||
pointable = true,
|
pointable = true,
|
||||||
diggable = true,
|
diggable = true,
|
||||||
buildable_to = false,
|
buildable_to = false,
|
||||||
stack_max = 64,
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3, building = 1},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3, building = 1},
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local pn = placer:get_player_name()
|
local pn = placer:get_player_name()
|
||||||
if pointed_thing.type ~= "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
@ -1865,20 +1614,17 @@ minetest.register_node("default:sponge_wet", {
|
|||||||
pointable = true,
|
pointable = true,
|
||||||
diggable = true,
|
diggable = true,
|
||||||
buildable_to = false,
|
buildable_to = false,
|
||||||
stack_max = 64,
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, not_in_creative_inventory = 1},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("default:ice", {
|
minetest.register_node("default:ice", {
|
||||||
description = "Ice",
|
description = "Ice",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"default_ice.png"},
|
tiles = {"default_ice.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = false,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
stack_max = 64,
|
groups = {cracky = 3, puts_out_fire = 1, oddly_breakable_by_hand = 2, building = 1},
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=2, building = 1},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1886,10 +1632,8 @@ minetest.register_node("default:packedice", {
|
|||||||
description = "Packed Ice",
|
description = "Packed Ice",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tiles = {"default_ice_packed.png"},
|
tiles = {"default_ice_packed.png"},
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky=2, building = 1},
|
groups = {cracky=2, building = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -1899,7 +1643,6 @@ minetest.register_node("default:snow", {
|
|||||||
tiles = {"default_snow.png"},
|
tiles = {"default_snow.png"},
|
||||||
inventory_image = "default_snowball.png",
|
inventory_image = "default_snowball.png",
|
||||||
wield_image = "default_snowball.png",
|
wield_image = "default_snowball.png",
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -1910,9 +1653,10 @@ minetest.register_node("default:snow", {
|
|||||||
{-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5},
|
{-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
groups = {crumbly=3,falling_node=1, misc = 1},
|
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1, misc = 1},
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
|
dug = {name = "default_snow_footstep", gain = 0.75},
|
||||||
}),
|
}),
|
||||||
on_use = snow_shoot_snowball,
|
on_use = snow_shoot_snowball,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
@ -1926,11 +1670,10 @@ minetest.register_node("default:snow", {
|
|||||||
minetest.register_node("default:snowblock", {
|
minetest.register_node("default:snowblock", {
|
||||||
description = "Snow Block",
|
description = "Snow Block",
|
||||||
tiles = {"default_snow.png"},
|
tiles = {"default_snow.png"},
|
||||||
is_ground_content = true,
|
groups = {crumbly = 3, building = 1},
|
||||||
stack_max = 64,
|
|
||||||
groups = {crumbly=3, building = 1},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name = "default_snow_footstep", gain = 0.4},
|
||||||
|
dug = {name = "default_snow_footstep", gain = 0.75},
|
||||||
}),
|
}),
|
||||||
drop = "default:snow 4",
|
drop = "default:snow 4",
|
||||||
})
|
})
|
||||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 903 B After Width: | Height: | Size: 840 B |
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 403 B |
BIN
games/default/files/default/textures/formspec_furnace.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
games/default/files/default/textures/formspec_workbench.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 583 B After Width: | Height: | Size: 583 B |
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
@ -183,7 +183,7 @@ minetest.register_tool("default:axe_stone", {
|
|||||||
full_punch_interval = 1.2,
|
full_punch_interval = 1.2,
|
||||||
max_drop_level=0,
|
max_drop_level=0,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
|
choppy = {times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=3},
|
damage_groups = {fleshy=3},
|
||||||
},
|
},
|
||||||
@ -196,7 +196,7 @@ minetest.register_tool("default:axe_steel", {
|
|||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2},
|
choppy = {times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
@ -209,7 +209,7 @@ minetest.register_tool("default:axe_gold", {
|
|||||||
full_punch_interval = 1.2,
|
full_punch_interval = 1.2,
|
||||||
max_drop_level=0,
|
max_drop_level=0,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
|
choppy = {times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=3},
|
damage_groups = {fleshy=3},
|
||||||
},
|
},
|
||||||
@ -222,7 +222,7 @@ minetest.register_tool("default:axe_diamond", {
|
|||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.9,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2},
|
choppy = {times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=6},
|
damage_groups = {fleshy=6},
|
||||||
},
|
},
|
||||||
@ -237,7 +237,7 @@ minetest.register_tool("default:sword_wood", {
|
|||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
max_drop_level=0,
|
max_drop_level=0,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
|
snappy = {times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=2},
|
damage_groups = {fleshy=2},
|
||||||
},
|
},
|
||||||
@ -250,7 +250,7 @@ minetest.register_tool("default:sword_stone", {
|
|||||||
full_punch_interval = 1.2,
|
full_punch_interval = 1.2,
|
||||||
max_drop_level=0,
|
max_drop_level=0,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
|
snappy = {times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
@ -263,7 +263,7 @@ minetest.register_tool("default:sword_steel", {
|
|||||||
full_punch_interval = 0.8,
|
full_punch_interval = 0.8,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
|
snappy = {times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=6},
|
damage_groups = {fleshy=6},
|
||||||
},
|
},
|
||||||
@ -276,7 +276,7 @@ minetest.register_tool("default:sword_gold", {
|
|||||||
full_punch_interval = 1.2,
|
full_punch_interval = 1.2,
|
||||||
max_drop_level=0,
|
max_drop_level=0,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
|
snappy = {times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
@ -289,7 +289,7 @@ minetest.register_tool("default:sword_diamond", {
|
|||||||
full_punch_interval = 0.7,
|
full_punch_interval = 0.7,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
|
snappy = {times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=7},
|
damage_groups = {fleshy=7},
|
||||||
},
|
},
|
||||||
|
56
games/default/files/default/workbench.lua
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
|
||||||
|
--
|
||||||
|
-- Workbench
|
||||||
|
--
|
||||||
|
|
||||||
|
local function set_workbench(player)
|
||||||
|
|
||||||
|
local split_form = ""
|
||||||
|
local workbench = "size[9,8.75]" ..
|
||||||
|
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||||
|
"background[-0.19,-0.25;9.41,9.49;formspec_workbench.png]" ..
|
||||||
|
"bgcolor[#080808BB;true]" ..
|
||||||
|
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]" ..
|
||||||
|
"list[detached:split;main;8,3.15;1,1;]"..
|
||||||
|
"list[current_player;main;0,4.5;9,3;9]" ..
|
||||||
|
"list[current_player;main;0,7.74;9,1;]" ..
|
||||||
|
"list[current_player;craft;2,0.5;3,3;]" ..
|
||||||
|
"list[current_player;craftpreview;6.05,1.5;1,1;]" ..
|
||||||
|
split_form..
|
||||||
|
"wob"
|
||||||
|
|
||||||
|
minetest.show_formspec(player:get_player_name(), "main", workbench)
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_node("default:workbench", {
|
||||||
|
description = "Workbench",
|
||||||
|
tiles = {"workbench_top.png", "workbench_top.png", "workbench_side.png",
|
||||||
|
"workbench_side.png", "workbench_front.png", "workbench_front.png"},
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||||
|
on_rightclick = function (pos, node, clicker, itemstack)
|
||||||
|
set_workbench(clicker)
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'default:workbench',
|
||||||
|
recipe = {
|
||||||
|
{'group:wood', 'group:wood'},
|
||||||
|
{'group:wood', 'group:wood'}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
local split_inv = minetest.create_detached_inventory("split", {
|
||||||
|
allow_move = function(_, _, _, _, _, count, _)
|
||||||
|
return count
|
||||||
|
end,
|
||||||
|
allow_put = function(_, _, _, stack, _)
|
||||||
|
return stack:get_count() / 2
|
||||||
|
end,
|
||||||
|
allow_take = function(_, _, _, stack, _)
|
||||||
|
return stack:get_count()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
split_inv:set_size("main", 1)
|
@ -296,7 +296,7 @@ doors:register_door("doors:door_wood", {
|
|||||||
description = "Wooden Door",
|
description = "Wooden Door",
|
||||||
inventory_image = "door_wood.png",
|
inventory_image = "door_wood.png",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese = 1},
|
||||||
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
|
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
||||||
})
|
})
|
||||||
@ -315,7 +315,7 @@ doors:register_door("doors:door_acacia", {
|
|||||||
description = "Wooden Acacia Door",
|
description = "Wooden Acacia Door",
|
||||||
inventory_image = "door_acacia.png",
|
inventory_image = "door_acacia.png",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese=1},
|
||||||
tiles_bottom = {"door_acacia_b.png", "door_brown.png"},
|
tiles_bottom = {"door_acacia_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_acacia_a.png", "door_brown.png"},
|
tiles_top = {"door_acacia_a.png", "door_brown.png"},
|
||||||
})
|
})
|
||||||
@ -334,7 +334,7 @@ doors:register_door("doors:door_birch", {
|
|||||||
description = "Wooden Birch Door",
|
description = "Wooden Birch Door",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
inventory_image = "door_birch.png",
|
inventory_image = "door_birch.png",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese = 1},
|
||||||
tiles_bottom = {"door_birch_b.png", "door_brown.png"},
|
tiles_bottom = {"door_birch_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_birch_a.png", "door_brown.png"},
|
tiles_top = {"door_birch_a.png", "door_brown.png"},
|
||||||
})
|
})
|
||||||
@ -344,7 +344,7 @@ doors:register_door("doors:door_dark_oak", {
|
|||||||
description = "Wooden Dark Oak Door",
|
description = "Wooden Dark Oak Door",
|
||||||
inventory_image = "door_dark_oak.png",
|
inventory_image = "door_dark_oak.png",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese=1},
|
||||||
tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"},
|
tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
|
tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
|
||||||
})
|
})
|
||||||
@ -354,7 +354,7 @@ doors:register_door("doors:door_jungle", {
|
|||||||
description = "Wooden Jungle Door",
|
description = "Wooden Jungle Door",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
inventory_image = "door_jungle.png",
|
inventory_image = "door_jungle.png",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1, mese=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,door=1, mese=1},
|
||||||
tiles_bottom = {"door_jungle_b.png", "door_brown.png"},
|
tiles_bottom = {"door_jungle_b.png", "door_brown.png"},
|
||||||
tiles_top = {"door_jungle_a.png", "door_brown.png"},
|
tiles_top = {"door_jungle_a.png", "door_brown.png"},
|
||||||
})
|
})
|
||||||
@ -374,7 +374,7 @@ doors:register_door("doors:door_steel", {
|
|||||||
description = "Steel Door",
|
description = "Steel Door",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
inventory_image = "door_steel.png",
|
inventory_image = "door_steel.png",
|
||||||
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1,mesecon_effector_on=1, mese=1},
|
groups = {snappy = 1,bendy=2,cracky=1,melty=2,level=2,door=1,mesecon_effector_on=1, mese=1},
|
||||||
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
|
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
|
||||||
tiles_top = {"door_steel_a.png", "door_grey.png"},
|
tiles_top = {"door_steel_a.png", "door_grey.png"},
|
||||||
only_placer_can_open = true,
|
only_placer_can_open = true,
|
||||||
@ -434,7 +434,7 @@ minetest.register_node("doors:trapdoor", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1,mese=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2,mesecon_effector_on=1, flammable = 2,door=1,mese=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
drop = "doors:trapdoor",
|
drop = "doors:trapdoor",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -480,7 +480,7 @@ minetest.register_node("doors:trapdoor_open", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
pointable = true,
|
pointable = true,
|
||||||
stack_max = 0,
|
stack_max = 0,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2,mesecon_effector_on=1, flammable = 2,door=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
drop = "doors:trapdoor",
|
drop = "doors:trapdoor",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -551,7 +551,7 @@ minetest.register_node("doors:iron_trapdoor", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=0,door=1, mese=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2,mesecon_effector_on=1, flammable = 0,door=1, mese=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
drop = "doors:iron_trapdoor",
|
drop = "doors:iron_trapdoor",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -594,7 +594,7 @@ minetest.register_node("doors:iron_trapdoor_open", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
pointable = true,
|
pointable = true,
|
||||||
stack_max = 0,
|
stack_max = 0,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=0,door=1,mesecon_effector_on=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 0,door=1,mesecon_effector_on=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
drop = "doors:iron_trapdoor",
|
drop = "doors:iron_trapdoor",
|
||||||
node_box = {
|
node_box = {
|
||||||
|
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 563 B After Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 409 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 384 B |
@ -99,9 +99,8 @@ minetest.register_node("fences:fence_wood", {
|
|||||||
inventory_image = "default_fence.png",
|
inventory_image = "default_fence.png",
|
||||||
wield_image = "default_fence.png",
|
wield_image = "default_fence.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1, decorative = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1, decorative = 1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
stack_max = 64,
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -130,7 +129,7 @@ minetest.register_node("fences:fence_wood", {
|
|||||||
minetest.register_node("fences:fence_wood_1", {
|
minetest.register_node("fences:fence_wood_1", {
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -157,7 +156,7 @@ minetest.register_node("fences:fence_wood_1", {
|
|||||||
minetest.register_node("fences:fence_wood_2", {
|
minetest.register_node("fences:fence_wood_2", {
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -184,7 +183,7 @@ minetest.register_node("fences:fence_wood_2", {
|
|||||||
minetest.register_node("fences:fence_wood_3", { --left+right(3)
|
minetest.register_node("fences:fence_wood_3", { --left+right(3)
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -211,7 +210,7 @@ minetest.register_node("fences:fence_wood_3", { --left+right(3)
|
|||||||
minetest.register_node("fences:fence_wood_11", { --top
|
minetest.register_node("fences:fence_wood_11", { --top
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -238,7 +237,7 @@ minetest.register_node("fences:fence_wood_11", { --top
|
|||||||
minetest.register_node("fences:fence_wood_21", { --bottom
|
minetest.register_node("fences:fence_wood_21", { --bottom
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -266,7 +265,7 @@ minetest.register_node("fences:fence_wood_21", { --bottom
|
|||||||
minetest.register_node("fences:fence_wood_32", { --top+bottom(32)
|
minetest.register_node("fences:fence_wood_32", { --top+bottom(32)
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -293,7 +292,7 @@ minetest.register_node("fences:fence_wood_32", { --top+bottom(32)
|
|||||||
minetest.register_node("fences:fence_wood_14", { --left+right(3)+ top(11) =14
|
minetest.register_node("fences:fence_wood_14", { --left+right(3)+ top(11) =14
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -320,7 +319,7 @@ minetest.register_node("fences:fence_wood_14", { --left+right(3)+ top(11) =14
|
|||||||
minetest.register_node("fences:fence_wood_24", { --left+right(3)+ bottom(21) =24
|
minetest.register_node("fences:fence_wood_24", { --left+right(3)+ bottom(21) =24
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -347,7 +346,7 @@ minetest.register_node("fences:fence_wood_24", { --left+right(3)+ bottom(21) =2
|
|||||||
minetest.register_node("fences:fence_wood_35", { --left+right(3)+top+bottom(32) = 35
|
minetest.register_node("fences:fence_wood_35", { --left+right(3)+top+bottom(32) = 35
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -374,7 +373,7 @@ minetest.register_node("fences:fence_wood_35", { --left+right(3)+top+bottom(32)
|
|||||||
minetest.register_node("fences:fence_wood_12", { --left(1)+top(11)=12
|
minetest.register_node("fences:fence_wood_12", { --left(1)+top(11)=12
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -401,7 +400,7 @@ minetest.register_node("fences:fence_wood_12", { --left(1)+top(11)=12
|
|||||||
minetest.register_node("fences:fence_wood_22", { --left(1)+bottom(21)=22
|
minetest.register_node("fences:fence_wood_22", { --left(1)+bottom(21)=22
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -428,7 +427,7 @@ minetest.register_node("fences:fence_wood_22", { --left(1)+bottom(21)=22
|
|||||||
minetest.register_node("fences:fence_wood_33", { --left(1)+top+bottom(32)=33
|
minetest.register_node("fences:fence_wood_33", { --left(1)+top+bottom(32)=33
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -455,7 +454,7 @@ minetest.register_node("fences:fence_wood_33", { --left(1)+top+bottom(32)=33
|
|||||||
minetest.register_node("fences:fence_wood_34", { --right(2)+top+bottom(32)=34
|
minetest.register_node("fences:fence_wood_34", { --right(2)+top+bottom(32)=34
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -482,7 +481,7 @@ minetest.register_node("fences:fence_wood_34", { --right(2)+top+bottom(32)=34
|
|||||||
minetest.register_node("fences:fence_wood_23", { --right(2)+bottom(21)=23
|
minetest.register_node("fences:fence_wood_23", { --right(2)+bottom(21)=23
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -509,7 +508,7 @@ minetest.register_node("fences:fence_wood_23", { --right(2)+bottom(21)=23
|
|||||||
minetest.register_node("fences:fence_wood_13", { --right(2)+top(11)=13
|
minetest.register_node("fences:fence_wood_13", { --right(2)+top(11)=13
|
||||||
tiles = {"default_wood.png"},
|
tiles = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1},
|
||||||
drop = 'fences:fence_wood',
|
drop = 'fences:fence_wood',
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -586,7 +585,7 @@ minetest.register_node("fences:fencegate_open", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,fences=1,not_in_inventory=1,mesecon_effector_on=1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,fences=1,not_in_inventory=1,mesecon_effector_on=1},
|
||||||
drop = 'fences:fencegate',
|
drop = 'fences:fencegate',
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -632,7 +631,7 @@ minetest.register_node("fences:fencegate", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,mesecon_effector_on=1,fences=1, mese = 1},
|
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2,mesecon_effector_on=1,fences=1, mese = 1},
|
||||||
drop = 'fences:fencegate',
|
drop = 'fences:fencegate',
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = {
|
node_box = {
|
||||||
|
@ -47,7 +47,6 @@ local function add_simple_flower(name, desc, box, f_groups)
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
stack_max = 99,
|
|
||||||
groups = f_groups,
|
groups = f_groups,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -21,7 +21,6 @@ clay.dyes = {
|
|||||||
minetest.register_node("hardened_clay:hardened_clay", {
|
minetest.register_node("hardened_clay:hardened_clay", {
|
||||||
description = "Hardened Clay",
|
description = "Hardened Clay",
|
||||||
tiles = {"hardened_clay.png"},
|
tiles = {"hardened_clay.png"},
|
||||||
stack_max = 64,
|
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
legacy_mineral = true,
|
legacy_mineral = true,
|
||||||
groups = {buliding = 1},
|
groups = {buliding = 1},
|
||||||
@ -43,7 +42,6 @@ for _, row in ipairs(clay.dyes) do
|
|||||||
description = desc.." Hardened Clay",
|
description = desc.." Hardened Clay",
|
||||||
tiles = {"hardened_clay_stained_"..name..".png"},
|
tiles = {"hardened_clay_stained_"..name..".png"},
|
||||||
groups = {cracky = 3,hardened_clay=1, buliding = 1},
|
groups = {cracky = 3,hardened_clay=1, buliding = 1},
|
||||||
stack_max = 64,
|
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
if craft_color_group then
|
if craft_color_group then
|
||||||
|
@ -99,7 +99,7 @@ minetest.register_node("itemframes:frame",{
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = { choppy=2,dig_immediate=2, decorative = 1 },
|
groups = { choppy = 2,dig_immediate=2, decorative = 1 },
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
-- Bear
|
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:bear", {
|
mobs:register_mob("mobs_animal:bear", {
|
||||||
type = "npc",
|
type = "npc",
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_bear.x",
|
mesh = "mobs_bear.b3d",
|
||||||
rotate = 0,
|
rotate = 0,
|
||||||
collisionbox = {-0.5, -0.01, -0.5, 0.5, 1.49, 0.5},
|
collisionbox = {-0.5, -0.01, -0.5, 0.5, 1.49, 0.5},
|
||||||
animation = {
|
animation = {
|
||||||
@ -79,7 +77,17 @@
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
mobs:capture_mob(self, clicker, 0, 0, 80, false, nil)
|
mobs:capture_mob(self, clicker, 0, 0, 80, false, nil)
|
||||||
|
end,
|
||||||
|
after_activate = function(self, staticdata, def, dtime)
|
||||||
|
-- replace bear using the old directx model
|
||||||
|
if self.mesh == "mobs_bear.x" then
|
||||||
|
local pos = self.object:get_pos()
|
||||||
|
if pos then
|
||||||
|
minetest.add_entity(pos, self.name)
|
||||||
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
-- Bunny by ExeterDad
|
-- Bunny by ExeterDad
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:bunny", {
|
mobs:register_mob("mobs_animal:bunny", {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
-- Chicken by JK Murray
|
-- Chicken by JK Murray
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:chicken", {
|
mobs:register_mob("mobs_animal:chicken", {
|
||||||
@ -217,7 +216,6 @@ minetest.register_node(":mobs:egg", {
|
|||||||
wield_image = "mobs_chicken_egg.png",
|
wield_image = "mobs_chicken_egg.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
-- Cow by Krupnovpavel
|
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:cow", {
|
mobs:register_mob("mobs_animal:cow", {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = false,
|
passive = false,
|
||||||
@ -10,12 +7,13 @@ mobs:register_mob("mobs_animal:cow", {
|
|||||||
hp_min = 8,
|
hp_min = 8,
|
||||||
hp_max = 12,
|
hp_max = 12,
|
||||||
armor = 100,
|
armor = 100,
|
||||||
collisionbox = {-0.8, -0.01, -0.8, 0.8, 1.3, 0.8},
|
collisionbox = {-0.9, -0.01, -0.9, 0.9, 1.65, 0.9},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_cow.x",
|
mesh = "mobs_cow.b3d",
|
||||||
textures = {
|
textures = {
|
||||||
{"mobs_cow.png"},
|
{"mobs_cow.png"},
|
||||||
{"mobs_cow2.png"},
|
{"mobs_cow2.png"},
|
||||||
|
{"mobs_cow3.png"},
|
||||||
},
|
},
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
@ -97,7 +95,17 @@ mobs:register_mob("mobs_animal:cow", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
after_activate = function(self, staticdata, def, dtime)
|
||||||
|
-- replace cow using the old directx model
|
||||||
|
if self.mesh == "mobs_cow.x" then
|
||||||
|
local pos = self.object:get_pos()
|
||||||
|
if pos then
|
||||||
|
minetest.add_entity(pos, self.name)
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
name = "mobs_animal:cow",
|
name = "mobs_animal:cow",
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
-- Wolf
|
|
||||||
mobs:register_mob("mobs_animal:wolf", {
|
mobs:register_mob("mobs_animal:wolf", {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
-- Kitten by Jordach / BFD
|
-- Kitten by Jordach / BFD
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:kitten", {
|
mobs:register_mob("mobs_animal:kitten", {
|
||||||
|
BIN
games/default/files/mobs_animal/models/mobs_bear.b3d
Normal file
BIN
games/default/files/mobs_animal/models/mobs_cow.b3d
Normal file
@ -1,5 +1,6 @@
|
|||||||
-- Warthog(Boar) by KrupnoPavel (MIT)
|
-- Warthog(Boar) by KrupnoPavel (MIT)
|
||||||
-- Changed to Boar and tweaked by Kaadmy (WTFPL) and MoNTE48 (LGPLv3)
|
-- Changed to Boar and tweaked by Kaadmy (WTFPL) and MoNTE48 (LGPLv3)
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:pig", {
|
mobs:register_mob("mobs_animal:pig", {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = false,
|
passive = false,
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.9 KiB |