Added new items
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
BIN
mods/default/textures/items/diamond.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
mods/default/textures/items/diamond_axe.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/default/textures/items/diamond_hoe.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
mods/default/textures/items/diamond_pickaxe.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/default/textures/items/diamond_shovel.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
mods/default/textures/items/diamond_sword.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
mods/default/textures/items/gold_ingot.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
mods/default/textures/items/golden_axe.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
mods/default/textures/items/golden_hoe.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
mods/default/textures/items/golden_pickaxe.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/default/textures/items/golden_shovel.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/default/textures/items/golden_sword.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
mods/default/textures/items/iron_axe.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
mods/default/textures/items/iron_hoe.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
mods/default/textures/items/iron_pickaxe.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
mods/default/textures/items/iron_shovel.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
mods/default/textures/items/iron_sword.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
mods/default/textures_mc/items/diamond.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
mods/default/textures_mc/items/diamond_axe.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
mods/default/textures_mc/items/diamond_hoe.png
Normal file
After Width: | Height: | Size: 154 B |
BIN
mods/default/textures_mc/items/diamond_pickaxe.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
mods/default/textures_mc/items/diamond_shovel.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
mods/default/textures_mc/items/diamond_sword.png
Normal file
After Width: | Height: | Size: 198 B |
BIN
mods/default/textures_mc/items/gold_ingot.png
Normal file
After Width: | Height: | Size: 203 B |
BIN
mods/default/textures_mc/items/golden_axe.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
mods/default/textures_mc/items/golden_hoe.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
mods/default/textures_mc/items/golden_pickaxe.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
mods/default/textures_mc/items/golden_shovel.png
Normal file
After Width: | Height: | Size: 159 B |
BIN
mods/default/textures_mc/items/golden_sword.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
mods/default/textures_mc/items/iron_axe.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
mods/default/textures_mc/items/iron_hoe.png
Normal file
After Width: | Height: | Size: 150 B |
BIN
mods/default/textures_mc/items/iron_pickaxe.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
mods/default/textures_mc/items/iron_shovel.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
mods/default/textures_mc/items/iron_sword.png
Normal file
After Width: | Height: | Size: 196 B |