1 aetherportalSchematic = {
2 size = {x = 4, y = 5, z = 3},
4 -- The side of the bush, with the air on top
5 {name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},
6 {name = "air"},{name = "air"},{name = "air"},{name = "air"},
7 {name = "air"},{name = "air"},{name = "air"},{name = "air"},
8 {name = "air"},{name = "air"},{name = "air"},{name = "air"},-- lower layer
9 {name = "air"},{name = "air"},{name = "air"},{name = "air"}, -- top layer
10 -- The center of the bush, with stem at the base and a pointy leave 2 nodes above
11 {name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},
12 {name = "nether:glowstone"},{name = "aether:portal"},{name = "aether:portal"},{name = "nether:glowstone"},
13 {name = "nether:glowstone"},{name = "aether:portal"},{name = "aether:portal"},{name = "nether:glowstone"},
14 {name = "nether:glowstone"},{name = "aether:portal"},{name = "aether:portal"},{name = "nether:glowstone"},-- lower layer
15 {name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"}, -- top layer
16 -- The other side of the bush, same as first side
17 {name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},{name = "nether:glowstone"},
18 {name = "air"},{name = "air"},{name = "air"},{name = "air"},
19 {name = "air"},{name = "air"},{name = "air"},{name = "air"},
20 {name = "air"},{name = "air"},{name = "air"},{name = "air"},-- lower layer
21 {name = "air"},{name = "air"},{name = "air"},{name = "air"}, -- top layer
24 minetest.register_chatcommand("aether", {
26 description = "Spawn x amount of a mob, used as /spawn 'mob' 10 or /spawn 'mob' for one",
27 privs = {server = true},
28 func = function( name, mob)
29 local player = minetest.get_player_by_name(name)
30 local pos = player:get_pos()
32 minetest.place_schematic(pos, aetherportalSchematic,"0",nil,true,"place_center_x, place_center_z")