summaryrefslogtreecommitdiff
path: root/3dmushrooms/init.lua
blob: 369da9c376173571a0369f563f45fbf0c68a5d8e (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
57
58
59
60
61
62
63
64
65
66
67
68

-- 3D Mushroom mod by VanessaE
--
-- License:  WTFPL for everything.

mushroom = {}

minetest.override_item("flowers:mushroom_fertile_brown", {
	drawtype = "mesh",
	mesh = "3dmushrooms.obj",
	tiles = {"3dmushrooms_brown.png"},
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
	},
	inventory_image = "3dmushrooms_brown_inv.png"
})

minetest.override_item("flowers:mushroom_brown", {
	drawtype = "mesh",
	mesh = "3dmushrooms.obj",
	tiles = {"3dmushrooms_brown.png"},
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
	},
	inventory_image = "3dmushrooms_brown_inv.png"
})

minetest.override_item("flowers:mushroom_fertile_red", {
	drawtype = "mesh",
	mesh = "3dmushrooms.obj",
	tiles = {"3dmushrooms_red.png"},
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
	},
	inventory_image = "3dmushrooms_red_inv.png"
})

minetest.override_item("flowers:mushroom_red", {
	drawtype = "mesh",
	mesh = "3dmushrooms.obj",
	tiles = {"3dmushrooms_red.png"},
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
	},
	inventory_image = "3dmushrooms_red_inv.png"
})

-- aliases to the default mushrooms

minetest.register_alias("mushroom:brown", "flowers:mushroom_brown")
minetest.register_alias("mushroom:brown_natural", "flowers:mushroom_fertile_brown")
minetest.register_alias("mushroom:spore_brown", "flowers:mushroom_spores_brown")
minetest.register_alias("mushroom:spore2", "flowers:mushroom_spores_brown")
minetest.register_alias("mushroom:brown_essence", "flowers:mushroom_brown")

minetest.register_alias("mushroom:red", "flowers:mushroom_red")
minetest.register_alias("mushroom:red_natural", "flowers:mushroom_fertile_red")
minetest.register_alias("mushroom:spore_red", "flowers:mushroom_spores_red")
minetest.register_alias("mushroom:spore1", "flowers:mushroom_spores_red")
minetest.register_alias("mushroom:poison", "flowers:mushroom_red")

minetest.register_alias("mushroom:identifier", "default:mese_crystal_fragment")

print("[3D Mushrooms] loaded.")