forked from MineClone5/MineClone5
Remove legacy village schematic
This commit is contained in:
parent
a25f7652f6
commit
15f2960e34
|
@ -36,9 +36,7 @@ mcl_structures.call_struct = function(pos, struct_style, rotation)
|
|||
if not rotation then
|
||||
rotation = "random"
|
||||
end
|
||||
if struct_style == "village" then
|
||||
return mcl_structures.generate_village(pos, rotation)
|
||||
elseif struct_style == "desert_temple" then
|
||||
if struct_style == "desert_temple" then
|
||||
return mcl_structures.generate_desert_temple(pos, rotation)
|
||||
elseif struct_style == "desert_well" then
|
||||
return mcl_structures.generate_desert_well(pos, rotation)
|
||||
|
@ -61,14 +59,6 @@ mcl_structures.call_struct = function(pos, struct_style, rotation)
|
|||
end
|
||||
end
|
||||
|
||||
mcl_structures.generate_village = function(pos)
|
||||
-- No generating for the moment, only place it :D
|
||||
-- TODO: Do complete overhaul of the algorithm
|
||||
local newpos = {x=pos.x,y=pos.y-1,z=pos.z}
|
||||
local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_village.mts"
|
||||
return minetest.place_schematic(newpos, path, "random", nil, true)
|
||||
end
|
||||
|
||||
mcl_structures.generate_desert_well = function(pos)
|
||||
local newpos = {x=pos.x,y=pos.y-2,z=pos.z}
|
||||
local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_desert_well.mts"
|
||||
|
@ -482,7 +472,7 @@ end
|
|||
|
||||
-- Debug command
|
||||
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_shrine",
|
||||
params = "desert_temple | desert_well | igloo | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_shrine",
|
||||
description = S("Generate a pre-defined structure near your position."),
|
||||
privs = {debug = true},
|
||||
func = function(name, param)
|
||||
|
@ -493,10 +483,7 @@ minetest.register_chatcommand("spawnstruct", {
|
|||
pos = vector.round(pos)
|
||||
local errord = false
|
||||
local message = S("Structure placed.")
|
||||
if param == "village" then
|
||||
mcl_structures.generate_village(pos)
|
||||
message = S("Village built. WARNING: Villages are experimental and might have bugs.")
|
||||
elseif param == "desert_temple" then
|
||||
if param == "desert_temple" then
|
||||
mcl_structures.generate_desert_temple(pos)
|
||||
elseif param == "desert_well" then
|
||||
mcl_structures.generate_desert_well(pos)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# textdomain: mcl_structures
|
||||
Generate a pre-defined structure near your position.=Erzeugt ein vordefiniertes Gebäude in Ihrer Nähe.
|
||||
Structure placed.=Gebäude platziert.
|
||||
Village built. WARNING: Villages are experimental and might have bugs.=Dorf gebaut. ACHTUNG: Dörfer sind experimentell und können fehlerhaft sein.
|
||||
Error: No structure type given. Please use “/spawnstruct <type>”.=Fehler: Kein Gebäudetyp angegeben. Bitte benutzen Sie „/spawnstruct <Typ>“.
|
||||
Error: Unknown structure type. Please use “/spawnstruct <type>”.=Fehler: Unbekannter Gebäudetyp. Bitte benutzen Sie „/spawnstruct <Typ>“.
|
||||
Use /help spawnstruct to see a list of avaiable types.=Benutzen Sie „/help spawnstruct“, um eine Liste der vorhandenen Typen zu sehen.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# textdomain: mcl_structures
|
||||
Generate a pre-defined structure near your position.=Genere una estructura predefinida cerca de su posición.
|
||||
Structure placed.=Estructura colocada.
|
||||
Village built. WARNING: Villages are experimental and might have bugs.=Pueblo construido. ADVERTENCIA: los pueblos son experimentales y pueden tener errores.
|
||||
Error: No structure type given. Please use “/spawnstruct <type>”.=Error: no se especifica ningún tipo de estructura. Utilice "/spawnstruct <Tipo>".
|
||||
Error: Unknown structure type. Please use “/spawnstruct <type>”.=Error: tipo de estructura desconocido. Utilice "/spawnstruct <Tipo>".
|
||||
Use /help spawnstruct to see a list of avaiable types.=Utiliza "/help spawnstruct" para ver una lista de los tipos disponibles.
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# textdomain: mcl_structures
|
||||
Generate a pre-defined structure near your position.=Générez une structure prédéfinie près de votre position.
|
||||
Structure placed.=Structure placée.
|
||||
Village built. WARNING: Villages are experimental and might have bugs.=Village construit. AVERTISSEMENT: les villages sont expérimentaux et peuvent avoir des bugs.
|
||||
Error: No structure type given. Please use “/spawnstruct <type>”.=Erreur: Aucun type de structure indiqué. Veuillez utiliser "/spawnstruct <type>".
|
||||
Error: Unknown structure type. Please use “/spawnstruct <type>”.=Erreur: Type de structure inconnu. Veuillez utiliser "/spawnstruct <type>".
|
||||
Use /help spawnstruct to see a list of avaiable types.=Utilisez /help spawnstruct pour voir une liste des types disponibles.
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue