lots of fixes, new textures, clean-up code

master
juraj 2016-02-20 21:39:18 +01:00
parent 616834c279
commit a19db6655b
16 changed files with 41 additions and 43 deletions

View File

@ -7,24 +7,23 @@
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
minetest.register_node( "diamonds:diamond_in_ground", {
description = "Diamond Ore",
tile_images = { "default_stone.png^diamond_in_ground.png" },
is_ground_content = true,
groups = {cracky=3},
description = "Super Diamond Ore",
tiles = { "default_stone.png^diamond_in_ground.png" },
groups = {cracky=1},
drop = "diamonds:diamond",
sounds = default.node_sound_stone_defaults(),
drop = 'craft "diamonds:diamond" 1',
})
minetest.register_node( "diamonds:block", {
description = "Diamond Block",
tile_images = { "diamond_block.png" },
description = "Super Diamond Block",
tiles = { "diamond_block.png" },
is_ground_content = true,
groups = {cracky=3},
groups = {cracky = 1, level = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem( "diamonds:diamond", {
description = "Diamond",
description = "Super Diamond",
inventory_image = "diamonds_diamond.png",
on_place_on_ground = minetest.craftitem_place_item,
})
@ -34,53 +33,53 @@ minetest.register_craftitem( "diamonds:diamond", {
--
minetest.register_tool("diamonds:sword", {
description = "Diamond Sword",
description = "Super Diamond Sword",
inventory_image = "diamond_sword.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=500, maxlevel=2},
snappy={times={[2]=0.70, [3]=0.30}, uses=450, maxlevel=1},
choppy={times={[3]=0.70}, uses=400, maxlevel=0}
fleshy={times={[1]=2.00, [2]=0.65, [3]=0.25}, uses=500, maxlevel=3},
snappy={times={[1]=1.90, [2]=0.70, [3]=0.25}, uses=450, maxlevel=3},
choppy={times={[3]=0.65}, uses=400, maxlevel=0}
},
damage_groups = {fleshy=8},
damage_groups = {fleshy=9},
}
})
minetest.register_tool("diamonds:axe", {
description = "Diamond Axe",
description = "Super Diamond Axe",
inventory_image = "diamond_axe.png",
tool_capabilities = {
max_drop_level=1,
groupcaps={
choppy={times={[1]=3.00, [2]=1.60, [3]=1.00}, uses=500, maxlevel=2},
fleshy={times={[2]=1.10, [3]=0.60}, uses=600, maxlevel=1}
choppy={times={[1]=1.75, [2]=0.45, [3]=0.45}, uses=500, maxlevel=2},
fleshy={times={[2]=0.95, [3]=0.30}, uses=600, maxlevel=2}
},
damage_groups = {fleshy=7},
},
})
minetest.register_tool("diamonds:shovel", {
description = "Diamond Shovel",
description = "Super Diamond Shovel",
inventory_image = "diamond_shovel.png",
tool_capabilities = {
max_drop_level=1,
groupcaps={
crumbly={times={[1]=1.50, [2]=0.70, [3]=0.60}, uses=500, maxlevel=2}
crumbly={times = {[1]=0.70, [2]=0.35, [3]=0.20}, uses=500, maxlevel=3}
},
damage_groups = {fleshy=4},
},
})
minetest.register_tool("diamonds:pick", {
description = "Diamond Pickaxe",
description = "Super Diamond Pickaxe",
inventory_image = "diamond_pick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=3,
groupcaps={
cracky={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=500, maxlevel=3},
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=500, maxlevel=3},
crumbly={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=600, maxlevel=3},
snappy={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=550, maxlevel=3}
},
@ -94,16 +93,15 @@ minetest.register_tool("diamonds:pick", {
--
minetest.register_craftitem( "diamonds:ingot", {
description = "Diamond and Steel Ingot",
description = "Super Diamond and Steel Ingot",
inventory_image = "diamonds_ingot.png",
on_place_on_ground = minetest.craftitem_place_item,
})
minetest.register_node( "diamonds:steelblock", {
description = "Diamond and Steel Block",
tile_images = { "diamond_steel_block.png" },
is_ground_content = true,
groups = {cracky=3},
description = "Super Diamond and Steel Block",
tiles = { "diamond_steel_block.png" },
groups = {cracky = 1, level = 3},
sounds = default.node_sound_stone_defaults(),
})
@ -112,53 +110,53 @@ minetest.register_node( "diamonds:steelblock", {
--
minetest.register_tool("diamonds:steelsword", {
description = "Diamond and Steel Sword",
description = "Super Diamond and Steel Sword",
inventory_image = "diamond_steel_sword.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=700, maxlevel=2},
snappy={times={[2]=0.70, [3]=0.30}, uses=650, maxlevel=1},
choppy={times={[3]=0.70}, uses=600, maxlevel=0}
fleshy={times={[1]=2.00, [2]=0.65, [3]=0.25}, uses=700, maxlevel=3},
snappy={times={[1]=1.90, [2]=0.70, [3]=0.25}, uses=650, maxlevel=3},
choppy={times={[3]=0.65}, uses=600, maxlevel=0}
},
damage_groups = {fleshy=8},
damage_groups = {fleshy=9},
}
})
minetest.register_tool("diamonds:steelaxe", {
description = "Diamond and Steel Axe",
description = "Super Diamond and Steel Axe",
inventory_image = "diamond_steel_axe.png",
tool_capabilities = {
max_drop_level=1,
groupcaps={
choppy={times={[1]=3.00, [2]=1.60, [3]=1.00}, uses=700, maxlevel=2},
fleshy={times={[2]=1.10, [3]=0.60}, uses=800, maxlevel=1}
choppy={times={[1]=1.75, [2]=0.45, [3]=0.50}, uses=700, maxlevel=2},
fleshy={times={[2]=0.95, [3]=0.30}, uses=800, maxlevel=2}
},
damage_groups = {fleshy=7},
},
})
minetest.register_tool("diamonds:steelshovel", {
description = "Diamond and Steel Shovel",
description = "Super Diamond and Steel Shovel",
inventory_image = "diamond_steel_shovel.png",
tool_capabilities = {
max_drop_level=1,
groupcaps={
crumbly={times={[1]=1.50, [2]=0.70, [3]=0.60}, uses=700, maxlevel=2}
crumbly={times={[1]=0.70, [2]=0.35, [3]=0.20}, uses=700, maxlevel=3}
},
damage_groups = {fleshy=4},
},
})
minetest.register_tool("diamonds:steelpick", {
description = "Diamond and Steel Pickaxe",
description = "Super Diamond and Steel Pickaxe",
inventory_image = "diamond_steel_pick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=3,
groupcaps={
cracky={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=700, maxlevel=3},
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=700, maxlevel=3},
crumbly={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=800, maxlevel=3},
snappy={times={[1]=2.0, [2]=1.0, [3]=0.5}, uses=750, maxlevel=3}
},
@ -174,17 +172,17 @@ minetest.register_tool("diamonds:steelpick", {
--
minetest.register_node( "diamonds:garden_block", {
description = "Diamond Showcase",
tile_images = { "diamond_showcase_block.png" },
description = "Super Diamond Showcase",
tiles = { "diamond_showcase_block.png" },
is_ground_content = true,
groups = {cracky=3},
groups = {cracky = 1, level = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node( "diamonds:garden", {
drawtype = "plantlike",
description = "Diamond Showcase",
tile_images = { "diamond_showcase.png" },
description = "Super Diamond Showcase",
tiles = { "diamond_showcase.png" },
is_ground_content = true,
paramtype = "light",
visual_scale = 1.0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 644 B