1 minetest.register_plant("cactus", {
2 description = "Cactus",
4 tiles = {"cactus_top.png", "cactus_bottom.png", "cactus_side.png"},
6 groups = {dig_immediate=1,flammable=1,touch_hurt=1},
8 sounds = main.dirtSound(),
12 sunlight_propagates = true,
19 --inventory_image = def.inventory_image,
20 --walkable = def.walkable,
21 --climbable = def.climbable,
22 --paramtype2 = def.paramtype2,
23 --buildable_to = def.buildable_to,
24 --selection_box = def.selection_box,
30 {-7/16, -8/16, -7/16, 7/16, 8/16, 7/16}, -- Main body
31 {-8/16, -8/16, -7/16, 8/16, 8/16, -7/16}, -- Spikes
32 {-8/16, -8/16, 7/16, 8/16, 8/16, 7/16}, -- Spikes
33 {-7/16, -8/16, -8/16, -7/16, 8/16, 8/16}, -- Spikes
34 {7/16, -8/16, 8/16, 7/16, 8/16, -8/16}, -- Spikes
39 minetest.register_plant("sugarcane", {
40 description = "Sugarcane",
42 inventory_image = "sugarcane.png",
44 tiles = {"sugarcane.png"},
46 groups = {dig_immediate=1,flammable=1},
48 sounds = main.grassSound(),
52 sunlight_propagates = true,
54 drawtype = "plantlike",
61 --inventory_image = def.inventory_image,
62 --walkable = def.walkable,
63 --climbable = def.climbable,
64 --paramtype2 = def.paramtype2,
65 --buildable_to = def.buildable_to,
66 --selection_box = def.selection_box,
71 fixed = {-7 / 16, -0.5, -7 / 16, 7 / 16, 0.5, 7 / 16}
75 minetest.register_plant("grass", {
76 description = "Tall Grass",
77 drawtype = "plantlike",
79 inventory_image = "tallgrass.png",
83 is_ground_content = false,
84 tiles = {"tallgrass.png"},
85 paramtype2 = "degrotate",
87 groups = {dig_immediate=1,attached_node=1,flammable=1},
88 sounds = main.grassSound(),
91 fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 4 / 16, 4 / 16}
98 items = {"farming:seeds"},
104 minetest.register_plant("wheat", {
105 description = "Wheat",
106 drawtype = "plantlike",
111 is_ground_content = false,
112 tiles = {"wheat_stage"}, --automatically adds _X.png
113 paramtype2 = "degrotate",
116 groups = {leaves = 1, plant = 1, axe = 1, hand = 0,dig_immediate=1,attached_node=1,crops=1},
117 sounds = main.grassSound(),
120 fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 4 / 16, 4 / 16}
128 -- Only drop if using a tool whose name is identical to one
131 items = {"farming:wheat"},
132 -- Whether all items in the dropped item list inherit the
133 -- hardware coloring palette color from the dug node.
134 -- Default is 'false'.
135 --inherit_color = true,
138 -- Only drop if using a tool whose name is identical to one
141 items = {"farming:seeds"},
142 -- Whether all items in the dropped item list inherit the
143 -- hardware coloring palette color from the dug node.
144 -- Default is 'false'.
145 --inherit_color = true,
151 minetest.register_decoration({
152 name = "farming:sugarcane",
153 deco_type = "simple",
154 place_on = {"main:dirt","main:grass","main:sand"},
159 spread = {x = 100, y = 100, z = 100},
166 decoration = "farming:sugarcane",
169 spawn_by = "main:water",
174 minetest.register_decoration({
175 name = "farming:cactus",
176 deco_type = "simple",
177 place_on = {"main:sand"},
182 spread = {x = 100, y = 100, z = 100},
189 decoration = "farming:cactus",
195 minetest.register_decoration({
196 deco_type = "simple",
197 place_on = "main:grass",
200 --biomes = {"grassland"},
201 decoration = "farming:grass",