Rename end portal room to end portal shrine
parent
664c24ce7d
commit
810357f81a
|
@ -86,7 +86,7 @@ local generate_strongholds = function(minp, maxp)
|
||||||
pos.z = maxp.z - 7
|
pos.z = maxp.z - 7
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_structures.call_struct(pos, "end_portal_room")
|
mcl_structures.call_struct(pos, "end_portal_shrine")
|
||||||
strongholds[s].generated = true
|
strongholds[s].generated = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -40,8 +40,8 @@ mcl_structures.call_struct = function(pos, struct_style, rotation)
|
||||||
return mcl_structures.generate_fossil(pos, rotation)
|
return mcl_structures.generate_fossil(pos, rotation)
|
||||||
elseif struct_style == "end_exit_portal" then
|
elseif struct_style == "end_exit_portal" then
|
||||||
return mcl_structures.generate_end_exit_portal(pos, rotation)
|
return mcl_structures.generate_end_exit_portal(pos, rotation)
|
||||||
elseif struct_style == "end_portal_room" then
|
elseif struct_style == "end_portal_shrine" then
|
||||||
return mcl_structures.generate_end_portal_room(pos, rotation)
|
return mcl_structures.generate_end_portal_shrine(pos, rotation)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ mcl_structures.generate_end_exit_portal = function(pos)
|
||||||
return minetest.place_schematic(pos, path, "0", nil, true)
|
return minetest.place_schematic(pos, path, "0", nil, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_structures.generate_end_portal_room = function(pos)
|
mcl_structures.generate_end_portal_shrine = function(pos)
|
||||||
local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_end_portal_room_simple.mts"
|
local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_end_portal_room_simple.mts"
|
||||||
local offset = {x=6, y=8, z=6}
|
local offset = {x=6, y=8, z=6}
|
||||||
local size = {x=13, y=8, z=13}
|
local size = {x=13, y=8, z=13}
|
||||||
|
@ -317,7 +317,7 @@ end
|
||||||
|
|
||||||
-- Debug command
|
-- Debug command
|
||||||
minetest.register_chatcommand("spawnstruct", {
|
minetest.register_chatcommand("spawnstruct", {
|
||||||
params = "desert_temple | desert_well | igloo | village | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_room",
|
params = "desert_temple | desert_well | igloo | village | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_shrine",
|
||||||
description = "Generate a pre-defined structure near your position.",
|
description = "Generate a pre-defined structure near your position.",
|
||||||
privs = {debug = true},
|
privs = {debug = true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
|
@ -356,9 +356,9 @@ minetest.register_chatcommand("spawnstruct", {
|
||||||
elseif param == "end_exit_portal" then
|
elseif param == "end_exit_portal" then
|
||||||
mcl_structures.generate_end_exit_portal(pos)
|
mcl_structures.generate_end_exit_portal(pos)
|
||||||
minetest.chat_send_player(name, "End exit portal placed.")
|
minetest.chat_send_player(name, "End exit portal placed.")
|
||||||
elseif param == "end_portal_room" then
|
elseif param == "end_portal_shrine" then
|
||||||
mcl_structures.generate_end_portal_room(pos)
|
mcl_structures.generate_end_portal_shrine(pos)
|
||||||
minetest.chat_send_player(name, "End portal room placed.")
|
minetest.chat_send_player(name, "End portal shrine placed.")
|
||||||
elseif param == "" then
|
elseif param == "" then
|
||||||
minetest.chat_send_player(name, "Error: No structure type given. Please use “/spawnstruct <type>”.")
|
minetest.chat_send_player(name, "Error: No structure type given. Please use “/spawnstruct <type>”.")
|
||||||
errord = true
|
errord = true
|
||||||
|
|
Loading…
Reference in New Issue