1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2024-11-16 07:40:17 +01:00
bitchange/minecoins.lua

149 lines
3.6 KiB
Lua
Raw Normal View History

2014-01-08 17:02:04 +01:00
--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 = {
max_items = 2,
items = {
{items = {"bitchange:minecoin"}, rarity = 2 },
{items = {"bitchange:minecoin 3"} }
}
},
2014-01-08 17:02:04 +01:00
})
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 = {
max_items = 3,
items = {
{items = {"bitchange:coinbase"}, rarity = 5 },
{items = {"bitchange:coinbase 2"}, rarity = 3 },
{items = {"bitchange:coinbase 6"} }
}
},
2014-01-08 17:02:04 +01:00
})
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,
2014-01-08 17:02:04 +01:00
})
minetest.register_craftitem("bitchange:minecoin", {
description = "MineCoin",
inventory_image = "bitchange_minecoin.png",
stack_max = 30000,
2014-01-08 17:02:04 +01:00
})
minetest.register_craftitem("bitchange:mineninth", {
description = "MineNinth",
inventory_image = "bitchange_mineninth.png",
stack_max = 30000,
2014-01-08 17:02:04 +01:00
})
minetest.register_craftitem("bitchange:coinbase", {
description = "Coin base",
inventory_image = "bitchange_coinbase.png",
})
-- Crafting
minetest.register_craft({
output = "bitchange:minecoinblock",
2014-01-08 17:02:04 +01:00
recipe = {
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
{"bitchange:minecoin", "bitchange:minecoin", "bitchange:minecoin"},
2014-01-08 17:02:04 +01:00
}
})
minetest.register_craft({
output = "bitchange:minecoin 9",
2014-01-08 17:02:04 +01:00
recipe = {
{"bitchange:minecoinblock"},
2014-01-08 17:02:04 +01:00
}
})
minetest.register_craft({
output = "bitchange:minecoin",
2014-01-08 17:02:04 +01:00
recipe = {
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
{"bitchange:mineninth", "bitchange:mineninth", "bitchange:mineninth"},
2014-01-08 17:02:04 +01:00
}
})
minetest.register_craft({
output = "bitchange:mineninth 9",
2014-01-08 17:02:04 +01:00
recipe = {
{"bitchange:minecoin"},
2014-01-08 17:02:04 +01:00
}
})
-- Cooking
minetest.register_craft({
type = "cooking",
2014-01-08 17:02:04 +01:00
recipe = "bitchange:coinbase",
output = "bitchange:mineninth",
})
minetest.register_craft({
type = "cooking",
2014-01-08 17:02:04 +01:00
recipe = "default:goldblock",
output = "bitchange:minecoinblock 2",
})
2014-01-08 17:02:04 +01:00
minetest.register_craft({
type = "cooking",
2014-01-08 17:02:04 +01:00
recipe = "bitchange:minecoinblock",
output = "default:gold_ingot 4",
})
-- Generation
if bitchange.enable_generation then
2014-01-08 17:02:04 +01:00
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,
})
end