mirror of
https://github.com/SmallJoker/bitchange.git
synced 2024-11-15 07:10:18 +01:00
133 lines
3.3 KiB
Lua
133 lines
3.3 KiB
Lua
--bitcoins by MilesDyson@DistroGeeks.com
|
|
--Modified by Krock
|
|
--License: WTFPL
|
|
|
|
-- Node definitions
|
|
minetest.register_node("bitchange:minecoin_in_ground", {
|
|
description = "MineCoin Ore",
|
|
tile_images = { "default_stone.png^bitchange_minecoin_in_ground.png" },
|
|
is_ground_content = true,
|
|
groups = {cracky=2},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
drop = 'bitchange:minecoin',
|
|
})
|
|
|
|
minetest.register_node("bitchange:mineninth_in_ground", {
|
|
description = "MineNinth Ore",
|
|
tile_images = { "default_stone.png^bitchange_mineninth_in_ground.png" },
|
|
is_ground_content = true,
|
|
groups = {cracky=3},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
drop = 'bitchange:coinbase',
|
|
})
|
|
|
|
minetest.register_node("bitchange:minecoinblock", {
|
|
description = "MineCoin Block",
|
|
tile_images = { "bitchange_minecoinblock.png" },
|
|
is_ground_content = true,
|
|
groups = {cracky=2},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
stack_max = 30000,
|
|
})
|
|
|
|
minetest.register_craftitem("bitchange:minecoin", {
|
|
description = "MineCoin",
|
|
inventory_image = "bitchange_minecoin.png",
|
|
stack_max = 30000,
|
|
})
|
|
|
|
minetest.register_craftitem("bitchange:mineninth", {
|
|
description = "MineNinth",
|
|
inventory_image = "bitchange_mineninth.png",
|
|
stack_max = 30000,
|
|
})
|
|
|
|
minetest.register_craftitem("bitchange:coinbase", {
|
|
description = "Coin base",
|
|
inventory_image = "bitchange_coinbase.png",
|
|
})
|
|
|
|
-- Crafting
|
|
minetest.register_craft({
|
|
output = 'bitchange:minecoinblock',
|
|
recipe = {
|
|
{'bitchange:minecoin', 'bitchange:minecoin', 'bitchange:minecoin'},
|
|
{'bitchange:minecoin', 'bitchange:minecoin', 'bitchange:minecoin'},
|
|
{'bitchange:minecoin', 'bitchange:minecoin', 'bitchange:minecoin'},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = 'bitchange:minecoin 9',
|
|
recipe = {
|
|
{'bitchange:minecoinblock'},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = 'bitchange:minecoin',
|
|
recipe = {
|
|
{'bitchange:mineninth', 'bitchange:mineninth', 'bitchange:mineninth'},
|
|
{'bitchange:mineninth', 'bitchange:mineninth', 'bitchange:mineninth'},
|
|
{'bitchange:mineninth', 'bitchange:mineninth', 'bitchange:mineninth'},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = 'bitchange:mineninth 9',
|
|
recipe = {
|
|
{'bitchange:minecoin'},
|
|
}
|
|
})
|
|
|
|
-- Cooking
|
|
minetest.register_craft({
|
|
type = 'cooking',
|
|
recipe = "bitchange:coinbase",
|
|
output = "bitchange:mineninth",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = 'cooking',
|
|
recipe = "default:goldblock",
|
|
output = "bitchange:minecoinblock 2",
|
|
})
|
|
minetest.register_craft({
|
|
type = 'cooking',
|
|
recipe = "bitchange:minecoinblock",
|
|
output = "default:gold_ingot 4",
|
|
})
|
|
|
|
-- Generation
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "bitchange:minecoin_in_ground",
|
|
wherein = "default:stone",
|
|
clust_scarcity = 15*15*15,
|
|
clust_num_ores = 3,
|
|
clust_size = 7,
|
|
height_max = -512,
|
|
height_min = -18000,
|
|
})
|
|
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "bitchange:mineninth_in_ground",
|
|
wherein = "default:stone",
|
|
clust_scarcity = 12*12*12,
|
|
clust_num_ores = 5,
|
|
clust_size = 8,
|
|
height_max = -256,
|
|
height_min = -511,
|
|
})
|
|
|
|
minetest.register_ore({
|
|
ore_type = "scatter",
|
|
ore = "bitchange:mineninth_in_ground",
|
|
wherein = "default:stone",
|
|
clust_scarcity = 13*13*13,
|
|
clust_num_ores = 3,
|
|
clust_size = 7,
|
|
height_max = 28000,
|
|
height_min = -255,
|
|
}) |