This commit is contained in:
Kotolegokot 2012-10-30 21:10:03 +06:00
parent c549905c27
commit 93dea62ffc
30 changed files with 77 additions and 221 deletions

View File

@ -1,32 +1,18 @@
minetest.register_node("realistic_add_blocks:stone_flat", {
description = "Flat stone",
tiles = {"realistic_add_blocks_stone_flat.png"},
--
-- Malachite
--
minetest.register_node("decorations:malachite_block", {
description = "Malachite Block",
tiles = {"decorations_malachite.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:desert_stone_flat", {
description = "Desert flat stone",
tiles = {"realistic_add_blocks_desert_stone_flat.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:malachite_block", {
description = "Malachite block",
tiles = {"realistic_add_blocks_malachite.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:malachite_pyramid", {
description = "Malachite pyramid",
minetest.register_node("decorations:malachite_pyramid", {
description = "Malachite Pyramid",
drawtype = "nodebox",
paramtype = "light",
node_box = {
@ -39,39 +25,45 @@ minetest.register_node("realistic_add_blocks:malachite_pyramid", {
{-0.1, 0.3, -0.1, 0.1, 0.5, 0.1},
},
},
tiles = {"realistic_add_blocks_malachite.png"},
tiles = {"decorations_malachite.png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky = 3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:malachite_table", {
description = "Malachite table",
minetest.register_node("decorations:malachite_table", {
description = "Malachite Table",
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, 0.35, -0.5, 0.5, 0.5, 0.5},
{-0.4, -0.5, -0.4, -0.25, 0.35, -0.25},
{-0.4, -0.5, 0.25, -0.25, 0.35, 0.4},
{0.25, -0.5, -0.4, 0.4, 0.35, -0.25},
{0.25, -0.5, 0.25, 0.4, 0.35, 0.4},
{-0.5, 0.245, -0.5, 0.5, 0.4375, 0.5},
{-0.4375, -0.5, -0.4375, -0.25, 0.25, -0.25},
{-0.4375, -0.5, 0.25, -0.25, 0.25, 0.4375},
{0.25, -0.5, -0.4375, 0.4375, 0.25, -0.25},
{0.25, -0.5, 0.25, 0.4375, 0.25, 0.4375},
},
},
tiles = {"realistic_add_blocks_malachite.png", "default_wood.png"},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.4375, 0.5},
},
},
tiles = {"decorations_malachite.png", "default_wood.png^decorations_malachite_table_bottom.png", "default_wood.png^decorations_malachite_table_side.png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky=3, oddly_breakable_by_hand = 2},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:casket", {
description = "Cacket",
minetest.register_node("decorations:casket", {
description = "Casket",
drawtype = "nodebox",
tiles = {"realistic_add_blocks_cacket_top.png", "realistic_add_blocks_cacket_top.png", "realistic_add_blocks_cacket_side.png",
"realistic_add_blocks_cacket_side.png", "realistic_add_blocks_cacket_side.png", "realistic_add_blocks_cacket_front.png"},
tiles = {"decorations_casket_top.png", "decorations_casket_top.png", "decorations_casket_side.png",
"decorations_casket_side.png", "decorations_casket_side.png", "decorations_casket_front.png"},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
@ -88,7 +80,7 @@ minetest.register_node("realistic_add_blocks:casket", {
{-0.3, 0, -0.2, 0.3, 0.1, 0.2},
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
groups = {snappy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
@ -97,7 +89,7 @@ minetest.register_node("realistic_add_blocks:casket", {
"size[8,8]"..
"list[current_name;main;1,0;6,3;]"..
"list[current_player;main;0,4;8,4;]")
meta:set_string("infotext", "Cacket")
meta:set_string("infotext", "Casket")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
@ -108,12 +100,12 @@ minetest.register_node("realistic_add_blocks:casket", {
end,
})
minetest.register_node("realistic_add_blocks:malachite_chest", {
minetest.register_node("decorations:malachite_chest", {
description = "Chest",
tiles = {"realistic_add_blocks_malachite_chest_top.png", "realistic_add_blocks_malachite_chest_top.png", "realistic_add_blocks_malachite_chest_side.png",
"realistic_add_blocks_malachite_chest_side.png", "realistic_add_blocks_malachite_chest_side.png", "realistic_add_blocks_malachite_chest_front.png"},
tiles = {"decorations_malachite_chest_top.png", "decorations_malachite_chest_top.png", "decorations_malachite_chest_side.png",
"decorations_malachite_chest_side.png", "decorations_malachite_chest_side.png", "decorations_malachite_chest_front.png"},
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
groups = {snappy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
@ -122,7 +114,7 @@ minetest.register_node("realistic_add_blocks:malachite_chest", {
"size[8,9]"..
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]")
meta:set_string("infotext", "Chest")
meta:set_string("infotext", "Malachite Chest")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
@ -133,8 +125,8 @@ minetest.register_node("realistic_add_blocks:malachite_chest", {
end,
})
minetest.register_node("realistic_add_blocks:malachite_cylinder", {
description = "Malachite cylinder",
minetest.register_node("decorations:malachite_cylinder", {
description = "Malachite Cylinder",
drawtype = "nodebox",
paramtype = "light",
node_box = {
@ -155,15 +147,15 @@ minetest.register_node("realistic_add_blocks:malachite_cylinder", {
{-0.2, -0.5, -0.5, 0.2, 0.5, 0.5},
},
},
tiles = {"realistic_add_blocks_malachite.png"},
tiles = {"decorations_malachite.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("realistic_add_blocks:malachite_vase", {
description = "Malachite cylinder",
minetest.register_node("decorations:malachite_vase", {
description = "Malachite Vase",
drawtype = "nodebox",
paramtype = "light",
node_box = {
@ -178,9 +170,9 @@ minetest.register_node("realistic_add_blocks:malachite_vase", {
{-0.4, -0.5, -0.4, 0.4, -0.4, 0.4},
},
},
tiles = {"realistic_add_blocks_malachite.png"},
tiles = {"decorations_malachite.png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky=3, oddly_breakable_by_hand = 2},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
@ -188,25 +180,24 @@ minetest.register_node("realistic_add_blocks:malachite_vase", {
------CRAFT RECIPES------
minetest.register_craft({
output = "realistic_add_blocks:casket",
output = "decorations:casket",
recipe = {
{"minerals:malachite","minerals:malachite","minerals:malachite"},
{"minerals:malachite","default:wood","minerals:malachite"},
{"minerals:malachite","minerals:malachite","minerals:malachite"},
}
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_chest",
output = "decorations:malachite_chest",
recipe = {
{"minerals:malachite","minerals:malachite","minerals:malachite"},
{"minerals:malachite","default:chest","minerals:malachite"},
{"minerals:malachite","","minerals:malachite"},
{"minerals:malachite","minerals:malachite","minerals:malachite"},
}
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_block",
output = "decorations:malachite_block",
recipe = {
{"minerals:malachite","minerals:malachite"},
{"minerals:malachite","minerals:malachite"},
@ -215,12 +206,12 @@ minetest.register_craft({
minetest.register_craft({
output = "minerals:malachite 4",
recipe = {
{"realistic_add_blocks:malachite_block"},
{"decorations:malachite_block"},
}
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_pyramid",
output = "decorations:malachite_pyramid",
recipe = {
{"","minerals:malachite",""},
{"minerals:malachite","minerals:malachite","minerals:malachite"},
@ -228,16 +219,16 @@ minetest.register_craft({
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_table",
output = "decorations:malachite_table",
recipe = {
{"minerals:malachite","minerals:malachite","minerals:malachite"},
{"default:wood","default:wood","default:wood"},
{"default:wood","","default:wood"},
{"default:wood","","default:wood"},
}
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_cylinder",
output = "decorations:malachite_cylinder",
recipe = {
{"","minerals:malachite",""},
{"minerals:malachite","minerals:malachite","minerals:malachite"},
@ -246,7 +237,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "realistic_add_blocks:malachite_vase",
output = "decorations:malachite_vase",
recipe = {
{"minerals:malachite","","minerals:malachite"},
{"","minerals:malachite",""},

View File

Before

Width:  |  Height:  |  Size: 915 B

After

Width:  |  Height:  |  Size: 915 B

View File

Before

Width:  |  Height:  |  Size: 900 B

After

Width:  |  Height:  |  Size: 900 B

View File

Before

Width:  |  Height:  |  Size: 944 B

After

Width:  |  Height:  |  Size: 944 B

View File

Before

Width:  |  Height:  |  Size: 944 B

After

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 898 B

View File

@ -564,6 +564,24 @@ minetest.register_node("default:desert_stone", {
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_flat", {
description = "Flat Stone",
tiles = {"default_stone_flat.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stone_flat", {
description = "Desert Flat Stone",
tiles = {"default_desert_stone_flat.png"},
is_ground_content = true,
groups = {cracky=3},
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},

View File

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 692 B

View File

Before

Width:  |  Height:  |  Size: 706 B

After

Width:  |  Height:  |  Size: 706 B

View File

@ -1,12 +0,0 @@
minetest.register_on_newplayer(function(player)
print("on_newplayer")
if minetest.setting_getbool("give_initial_stuff") then
print("giving give_initial_stuff to player")
player:get_inventory():add_item('main', 'default:pick_steel')
player:get_inventory():add_item('main', 'default:torch 99')
player:get_inventory():add_item('main', 'default:axe_steel')
player:get_inventory():add_item('main', 'default:shovel_steel')
player:get_inventory():add_item('main', 'default:cobble 99')
end
end)

View File

@ -1,3 +1,5 @@
--Mod by PilzAdam
function minetest.handle_node_drops(pos, drops, digger)
for _,item in ipairs(drops) do
local count, name
@ -25,7 +27,3 @@ function minetest.handle_node_drops(pos, drops, digger)
end
end
end
if minetest.setting_get("log_mods") then
minetest.log("action", "item_drop loaded")
end

View File

@ -1,2 +0,0 @@
default

View File

@ -1,133 +0,0 @@
-- legacy (Minetest 0.4 mod)
-- Provides as much backwards-compatibility as feasible
--
-- Aliases to support loading 0.3 and old 0.4 worlds and inventories
--
minetest.register_alias("stone", "default:stone")
minetest.register_alias("stone_with_coal", "default:stone_with_coal")
minetest.register_alias("stone_with_iron", "default:stone_with_iron")
minetest.register_alias("dirt_with_grass", "default:dirt_with_grass")
minetest.register_alias("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps")
minetest.register_alias("dirt", "default:dirt")
minetest.register_alias("sand", "default:sand")
minetest.register_alias("gravel", "default:gravel")
minetest.register_alias("sandstone", "default:sandstone")
minetest.register_alias("clay", "default:clay")
minetest.register_alias("brick", "default:brick")
minetest.register_alias("tree", "default:tree")
minetest.register_alias("jungletree", "default:jungletree")
minetest.register_alias("junglegrass", "default:junglegrass")
minetest.register_alias("leaves", "default:leaves")
minetest.register_alias("cactus", "default:cactus")
minetest.register_alias("papyrus", "default:papyrus")
minetest.register_alias("bookshelf", "default:bookshelf")
minetest.register_alias("glass", "default:glass")
minetest.register_alias("wooden_fence", "default:fence_wood")
minetest.register_alias("rail", "default:rail")
minetest.register_alias("ladder", "default:ladder")
minetest.register_alias("wood", "default:wood")
minetest.register_alias("mese", "default:mese")
minetest.register_alias("cloud", "default:cloud")
minetest.register_alias("water_flowing", "default:water_flowing")
minetest.register_alias("water_source", "default:water_source")
minetest.register_alias("lava_flowing", "default:lava_flowing")
minetest.register_alias("lava_source", "default:lava_source")
minetest.register_alias("torch", "default:torch")
minetest.register_alias("sign_wall", "default:sign_wall")
minetest.register_alias("furnace", "default:furnace")
minetest.register_alias("chest", "default:chest")
minetest.register_alias("locked_chest", "default:chest_locked")
minetest.register_alias("cobble", "default:cobble")
minetest.register_alias("mossycobble", "default:mossycobble")
minetest.register_alias("steelblock", "default:steelblock")
minetest.register_alias("nyancat", "default:nyancat")
minetest.register_alias("nyancat_rainbow", "default:nyancat_rainbow")
minetest.register_alias("sapling", "default:sapling")
minetest.register_alias("apple", "default:apple")
minetest.register_alias("WPick", "default:pick_wood")
minetest.register_alias("STPick", "default:pick_stone")
minetest.register_alias("SteelPick", "default:pick_steel")
minetest.register_alias("MesePick", "default:pick_mese")
minetest.register_alias("WShovel", "default:shovel_wood")
minetest.register_alias("STShovel", "default:shovel_stone")
minetest.register_alias("SteelShovel", "default:shovel_steel")
minetest.register_alias("WAxe", "default:axe_wood")
minetest.register_alias("STAxe", "default:axe_stone")
minetest.register_alias("SteelAxe", "default:axe_steel")
minetest.register_alias("WSword", "default:sword_wood")
minetest.register_alias("STSword", "default:sword_stone")
minetest.register_alias("SteelSword", "default:sword_steel")
minetest.register_alias("Stick", "default:stick")
minetest.register_alias("paper", "default:paper")
minetest.register_alias("book", "default:book")
minetest.register_alias("lump_of_coal", "default:coal_lump")
minetest.register_alias("lump_of_iron", "default:iron_lump")
minetest.register_alias("lump_of_clay", "default:clay_lump")
minetest.register_alias("steel_ingot", "default:steel_ingot")
minetest.register_alias("clay_brick", "default:clay_brick")
minetest.register_alias("scorched_stuff", "default:scorched_stuff")
--
-- Old items
--
minetest.register_craftitem(":rat", {
description = "Rat",
inventory_image = "rat.png",
on_drop = function(item, dropper, pos)
minetest.env:add_rat(pos)
item:take_item()
return item
end,
on_place = function(item, dropped, pointed)
pos = minetest.get_pointed_thing_position(pointed, true)
if pos ~= nil then
minetest.env:add_rat(pos)
item:take_item()
return item
end
end
})
minetest.register_craftitem(":cooked_rat", {
description = "Cooked rat",
inventory_image = "cooked_rat.png",
on_use = minetest.item_eat(6),
})
minetest.register_craftitem(":firefly", {
description = "Firefly",
inventory_image = "firefly.png",
groups = {not_in_creative_inventory=1},
on_drop = function(item, dropper, pos)
minetest.env:add_firefly(pos)
item:take_item()
return item
end,
on_place = function(item, dropped, pointed)
pos = minetest.get_pointed_thing_position(pointed, true)
if pos ~= nil then
minetest.env:add_firefly(pos)
item:take_item()
return item
end
end
})
minetest.register_craft({
type = "cooking",
output = "cooked_rat",
recipe = "rat",
})
minetest.register_craft({
type = "cooking",
output = "scorched_stuff",
recipe = "cooked_rat",
})
-- END

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 920 B

View File

@ -159,10 +159,10 @@ for i=1, #metals.list do
return
end
if minetest.env:get_node(pointed_thing.under).name == "default:stone" then
minetest.env:add_node(pointed_thing.under, {name="realistic_add_blocks:stone_flat"})
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat"})
end
if minetest.env:get_node(pointed_thing.under).name == "default:desert_stone" then
minetest.env:add_node(pointed_thing.under, {name="realistic_add_blocks:desert_stone_flat"})
minetest.env:add_node(pointed_thing.under, {name="default:desert_stone_flat"})
end
item:add_wear(65535/10)
return item

View File

@ -1 +0,0 @@
default

View File

@ -1,6 +1,4 @@
DISABLE_BLOCKS={
--"default:desert_sand",
--"default:desert_stone",
}
for i=1, #DISABLE_BLOCKS do
@ -15,4 +13,4 @@ for i=1, #DISABLE_BLOCKS do
buildable_to = true,
air_equivalent = true,
})
end
end