Added new items

This commit is contained in:
Nikola Schrodinger 2020-02-29 03:27:04 +01:00 committed by Quentin Bazin
parent 319101c94c
commit 5d7e5158e8
37 changed files with 411 additions and 1 deletions

View File

@ -64,7 +64,10 @@ function init(player)
player_inv:add_stack("default:stone_shovel", 1);
player_inv:add_stack("default:iron_ore", 64);
player_inv:add_stack("default:coal", 64);
player_inv:add_stack("default:clay", 64);
player_inv:add_stack("default:iron_ingot", 64);
player_inv:add_stack("default:gold_ingot", 64);
player_inv:add_stack("default:diamond", 64);
end
function show_inventory(client, screen_width, screen_height, gui_scale)

View File

@ -136,3 +136,124 @@ mod:item {
name = "Clay",
tiles = "clay_ball.png"
}
mod:item {
id = "diamond",
name = "Diamond",
tiles = "diamond.png"
}
mod:item {
id = "gold_ingot",
name = "Gold Ingot",
tiles = "gold_ingot.png"
}
mod:item {
id = "iron_pickaxe",
name = "Iron Pickaxe",
tiles = "iron_pickaxe.png",
mining_speed = 6,
harvest_capability = 1
}
mod:item {
id = "iron_sword",
name = "Iron Sword",
tiles = "iron_sword.png"
}
mod:item {
id = "iron_axe",
name = "Iron Axe",
tiles = "iron_axe.png",
mining_speed = 6,
harvest_capability = 4
}
mod:item {
id = "iron_hoe",
name = "Iron Hoe",
tiles = "iron_hoe.png"
}
mod:item {
id = "iron_shovel",
name = "Iron Shovel",
tiles = "iron_shovel.png",
mining_speed = 6,
harvest_capability = 2
}
mod:item {
id = "diamond_pickaxe",
name = "Diamond Pickaxe",
tiles = "diamond_pickaxe.png",
mining_speed = 8,
harvest_capability = 1
}
mod:item {
id = "diamond_sword",
name = "Diamond Sword",
tiles = "diamond_sword.png"
}
mod:item {
id = "diamond_axe",
name = "Diamond Axe",
tiles = "diamond_axe.png",
mining_speed = 8,
harvest_capability = 4
}
mod:item {
id = "diamond_hoe",
name = "Diamond Hoe",
tiles = "diamond_hoe.png"
}
mod:item {
id = "diamond_shovel",
name = "Diamond Shovel",
tiles = "diamond_shovel.png",
mining_speed = 8,
harvest_capability = 2
}
mod:item {
id = "golden_pickaxe",
name = "Golden Pickaxe",
tiles = "golden_pickaxe.png",
mining_speed = 10,
harvest_capability = 1
}
mod:item {
id = "golden_sword",
name = "Golden Sword",
tiles = "golden_sword.png"
}
mod:item {
id = "golden_axe",
name = "Golden Axe",
tiles = "golden_axe.png",
mining_speed = 10,
harvest_capability = 4
}
mod:item {
id = "golden_hoe",
name = "Golden Hoe",
tiles = "golden_hoe.png"
}
mod:item {
id = "golden_shovel",
name = "Golden Shovel",
tiles = "golden_shovel.png",
mining_speed = 10,
harvest_capability = 2
}

View File

@ -215,6 +215,292 @@ mod:crafting_recipe {
}
}
-- Gold Axe
mod:crafting_recipe {
result = {
id = "default:golden_axe",
amount = 1
},
pattern = {
"##",
"#|",
" |"
},
keys = {
['#'] = "default:gold_ingot",
['|'] = "default:stick",
}
}
-- Gold Hoe
mod:crafting_recipe {
result = {
id = "default:golden_hoe",
amount = 1
},
pattern = {
"##",
" |",
" |"
},
keys = {
['#'] = "default:gold_ingot",
['|'] = "default:stick",
}
}
-- Gold Pickaxe
mod:crafting_recipe {
result = {
id = "default:golden_pickaxe",
amount = 1
},
pattern = {
"###",
" | ",
" | "
},
keys = {
['#'] = "default:gold_ingot",
['|'] = "default:stick",
}
}
-- Gold Shovel
mod:crafting_recipe {
result = {
id = "default:golden_shovel",
amount = 1
},
pattern = {
"#",
"|",
"|"
},
keys = {
['#'] = "default:gold_ingot",
['|'] = "default:stick",
}
}
-- Gold Sword
mod:crafting_recipe {
result = {
id = "default:golden_sword",
amount = 1
},
pattern = {
"#",
"#",
"|"
},
keys = {
['#'] = "default:gold_ingot",
['|'] = "default:stick",
}
}
-- Iron Axe
mod:crafting_recipe {
result = {
id = "default:iron_axe",
amount = 1
},
pattern = {
"##",
"#|",
" |"
},
keys = {
['#'] = "default:iron_ingot",
['|'] = "default:stick",
}
}
-- Iron Hoe
mod:crafting_recipe {
result = {
id = "default:iron_hoe",
amount = 1
},
pattern = {
"##",
" |",
" |"
},
keys = {
['#'] = "default:iron_ingot",
['|'] = "default:stick",
}
}
-- Iron Pickaxe
mod:crafting_recipe {
result = {
id = "default:iron_pickaxe",
amount = 1
},
pattern = {
"###",
" | ",
" | "
},
keys = {
['#'] = "default:iron_ingot",
['|'] = "default:stick",
}
}
-- Iron Shovel
mod:crafting_recipe {
result = {
id = "default:iron_shovel",
amount = 1
},
pattern = {
"#",
"|",
"|"
},
keys = {
['#'] = "default:iron_ingot",
['|'] = "default:stick",
}
}
-- Iron Sword
mod:crafting_recipe {
result = {
id = "default:iron_sword",
amount = 1
},
pattern = {
"#",
"#",
"|"
},
keys = {
['#'] = "default:iron_ingot",
['|'] = "default:stick",
}
}
-- Diamond Axe
mod:crafting_recipe {
result = {
id = "default:diamond_axe",
amount = 1
},
pattern = {
"##",
"#|",
" |"
},
keys = {
['#'] = "default:diamond",
['|'] = "default:stick",
}
}
-- Diamond Hoe
mod:crafting_recipe {
result = {
id = "default:diamond_hoe",
amount = 1
},
pattern = {
"##",
" |",
" |"
},
keys = {
['#'] = "default:diamond",
['|'] = "default:stick",
}
}
-- Diamond Pickaxe
mod:crafting_recipe {
result = {
id = "default:diamond_pickaxe",
amount = 1
},
pattern = {
"###",
" | ",
" | "
},
keys = {
['#'] = "default:diamond",
['|'] = "default:stick",
}
}
-- Diamond Shovel
mod:crafting_recipe {
result = {
id = "default:diamond_shovel",
amount = 1
},
pattern = {
"#",
"|",
"|"
},
keys = {
['#'] = "default:diamond",
['|'] = "default:stick",
}
}
-- Diamond Sword
mod:crafting_recipe {
result = {
id = "default:diamond_sword",
amount = 1
},
pattern = {
"#",
"#",
"|"
},
keys = {
['#'] = "default:diamond",
['|'] = "default:stick",
}
}
-- Stick
mod:crafting_recipe {
result = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B