2014-01-08 17:02:04 +01:00
|
|
|
-- Node definitions
|
|
|
|
minetest.register_node("bitchange:minecoin_in_ground", {
|
2017-11-25 11:38:52 +01:00
|
|
|
description = "you hacker!",
|
2016-11-09 15:48:15 +01:00
|
|
|
tiles = { "default_stone.png^bitchange_minecoin_in_ground.png" },
|
2014-01-08 17:02:04 +01:00
|
|
|
is_ground_content = true,
|
2017-11-25 11:38:52 +01:00
|
|
|
groups = {cracky=2, not_in_creative_inventory=1},
|
2014-01-08 17:02:04 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2014-02-23 17:33:26 +01:00
|
|
|
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", {
|
2017-11-25 11:38:52 +01:00
|
|
|
description = "you hacker!",
|
2016-11-09 15:48:15 +01:00
|
|
|
tiles = { "default_stone.png^bitchange_mineninth_in_ground.png" },
|
2014-01-08 17:02:04 +01:00
|
|
|
is_ground_content = true,
|
2017-11-25 11:38:52 +01:00
|
|
|
groups = {cracky=3, not_in_creative_inventory=1},
|
2014-01-08 17:02:04 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2014-02-23 17:33:26 +01:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
2017-11-25 11:38:52 +01:00
|
|
|
{items = {"bitchange:mineninth 4"}, rarity = 3 },
|
|
|
|
{items = {"bitchange:mineninth 6"} }
|
2014-02-23 17:33:26 +01:00
|
|
|
}
|
|
|
|
},
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("bitchange:minecoinblock", {
|
|
|
|
description = "MineCoin Block",
|
2016-11-09 15:48:15 +01:00
|
|
|
tiles = { "bitchange_minecoinblock.png" },
|
2014-01-08 17:02:04 +01:00
|
|
|
groups = {cracky=2},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-04-16 15:06:02 +02:00
|
|
|
stack_max = 30000,
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("bitchange:minecoin", {
|
|
|
|
description = "MineCoin",
|
|
|
|
inventory_image = "bitchange_minecoin.png",
|
2015-04-16 15:06:02 +02:00
|
|
|
stack_max = 30000,
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("bitchange:mineninth", {
|
|
|
|
description = "MineNinth",
|
|
|
|
inventory_image = "bitchange_mineninth.png",
|
2015-04-16 15:06:02 +02:00
|
|
|
stack_max = 30000,
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
2017-11-25 11:38:52 +01:00
|
|
|
minetest.register_alias("bitchange:coinbase", "bitchange:mineninth")
|
2014-01-08 17:02:04 +01:00
|
|
|
|
|
|
|
-- Crafting
|
|
|
|
minetest.register_craft({
|
2015-04-16 15:06:02 +02:00
|
|
|
output = "bitchange:minecoinblock",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = {
|
2015-04-16 15:06:02 +02:00
|
|
|
{"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({
|
2015-04-16 15:06:02 +02:00
|
|
|
output = "bitchange:minecoin 9",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = {
|
2015-04-16 15:06:02 +02:00
|
|
|
{"bitchange:minecoinblock"},
|
2014-01-08 17:02:04 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-04-16 15:06:02 +02:00
|
|
|
output = "bitchange:minecoin",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = {
|
2015-04-16 15:06:02 +02:00
|
|
|
{"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({
|
2015-04-16 15:06:02 +02:00
|
|
|
output = "bitchange:mineninth 9",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = {
|
2015-04-16 15:06:02 +02:00
|
|
|
{"bitchange:minecoin"},
|
2014-01-08 17:02:04 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Cooking
|
|
|
|
minetest.register_craft({
|
2015-04-16 15:06:02 +02:00
|
|
|
type = "cooking",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = "default:goldblock",
|
|
|
|
output = "bitchange:minecoinblock 2",
|
|
|
|
})
|
2015-04-16 15:06:02 +02:00
|
|
|
|
2014-01-08 17:02:04 +01:00
|
|
|
minetest.register_craft({
|
2015-04-16 15:06:02 +02:00
|
|
|
type = "cooking",
|
2014-01-08 17:02:04 +01:00
|
|
|
recipe = "bitchange:minecoinblock",
|
|
|
|
output = "default:gold_ingot 4",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Generation
|
2015-04-16 15:06:02 +02:00
|
|
|
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,
|
2016-11-09 15:48:15 +01:00
|
|
|
y_max = -512,
|
|
|
|
y_min = -18000,
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
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,
|
2016-11-09 15:48:15 +01:00
|
|
|
y_max = -256,
|
|
|
|
y_min = -511,
|
2014-01-08 17:02:04 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
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,
|
2016-11-09 15:48:15 +01:00
|
|
|
y_max = 28000,
|
|
|
|
y_min = -255,
|
2015-04-16 15:06:02 +02:00
|
|
|
})
|
2016-11-09 15:48:15 +01:00
|
|
|
end
|