summaryrefslogtreecommitdiff
path: root/display_blocks/uranium.lua
blob: 10a004bd7ff879020e734c9aeae5655a0cf30d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
minetest.register_node( "display_blocks:uranium_ore", {
	description = "Uranium Ore",
	tiles = { "default_stone.png^uranium_ore.png" },
	is_ground_content = true,
	groups = {cracky=3},
	drop = 'craft "display_blocks:uranium_dust" 3',
})

minetest.register_craftitem( "display_blocks:uranium_dust", {
	description = "Uranium Dust",
	inventory_image = "uranium_dust.png",
	on_place_on_ground = minetest.craftitem_place_item,
})

minetest.register_node( "display_blocks:uranium_block", {
	description = "Uranium Block",
	tiles = { "uranium_block.png" },
	light_propagates = true,
	paramtype = "light",
	sunlight_propagates = true,
	light_source = 15,
	is_ground_content = true,
	groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
})


minetest.register_craft( {
	output = 'node "display_blocks:uranium_block" 1',
	recipe = {
		{ 'display_blocks:uranium_dust', 'display_blocks:uranium_dust', 'display_blocks:uranium_dust' },
		{ 'display_blocks:uranium_dust', 'display_blocks:uranium_dust', 'display_blocks:uranium_dust' },
		{ 'display_blocks:uranium_dust', 'display_blocks:uranium_dust', 'display_blocks:uranium_dust' },
	}
})

minetest.register_ore({
	ore_type = "scatter",
	ore = "display_blocks:uranium_ore",
	wherein = "default:stone",
	clust_scarcity = 10*10*10,
	clust_num_ores =18,
	clust_size = 3,
	y_min = -3000,
	y_max = -2000,
})

minetest.register_ore({
	ore_type = "scatter",
	ore = "display_blocks:uranium_ore",
	wherein = "default:stone",
	clust_scarcity =20*20*20,
	clust_num_ores =40,
	clust_size = 4,
	y_min = -7000,
	y_max = -5000,
})