mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-20 09:10:22 +02:00
Compare commits
38 Commits
245128f9e6
...
d12576f0c8
Author | SHA1 | Date | |
---|---|---|---|
d12576f0c8 | |||
7f4d473fee | |||
f7a1b27ea4 | |||
f14050ad3c | |||
b6fb1948e8 | |||
67e4ede31b | |||
3009da0efe | |||
bd8be0905a | |||
89523195d5 | |||
c6dffd1390 | |||
499d43a9aa | |||
39002cf4e7 | |||
477148962f | |||
497ff7241f | |||
9f02777f14 | |||
ae62b1410d | |||
81b5e40d09 | |||
565c0851eb | |||
cb465559a1 | |||
469e35d6e0 | |||
1271570780 | |||
ec3c6fb518 | |||
c4f56f4204 | |||
4814f53885 | |||
f033cd401c | |||
903e81bdab | |||
81dd3d75c0 | |||
804f8b9a0c | |||
edf0469009 | |||
d20ea74890 | |||
ee8c19ce21 | |||
296fad85ca | |||
d65b80fa51 | |||
48bfa284d0 | |||
b17a5bfe77 | |||
dfdd55848d | |||
e63b1b478e | |||
ec122aa6de |
69
api.txt
69
api.txt
@ -31,13 +31,15 @@ functions needed for the mob to work properly which contains the following:
|
||||
'hp_max' has the maximum health value the mob can spawn with.
|
||||
'armor' holds strength of mob, 100 is normal, lower is more powerful
|
||||
and needs more hits and better weapons to kill.
|
||||
'passive' when true allows animals to defend themselves when hit,
|
||||
'passive' when false allows animals to defend themselves when hit,
|
||||
otherwise they amble onwards.
|
||||
'walk_velocity' is the speed that your mob can walk around.
|
||||
'run_velocity' is the speed your mob can run with, usually when attacking.
|
||||
'stand_chance' has a 0-100 chance value your mob will stand from walking.
|
||||
'walk_chance' has a 0-100 chance value your mob will walk from standing,
|
||||
set to 0 for jumping mobs only.
|
||||
'randomly_turn' if set to false then mob will not turn to face player or
|
||||
randomly turn while walking or standing.
|
||||
'jump' when true allows your mob to jump updwards.
|
||||
'jump_height' holds the height your mob can jump, 0 to disable jumping.
|
||||
'stepheight' height of a block that your mob can easily walk up onto,
|
||||
@ -197,7 +199,8 @@ functions needed for the mob to work properly which contains the following:
|
||||
'double_melee_attack' when true has the api choose between 'punch' and
|
||||
'punch2' animations. [DEPRECATED]
|
||||
|
||||
'animation' holds a table containing animation names and settings for use with mesh models:
|
||||
'animation' holds a table containing animation names and settings for use with
|
||||
mesh models:
|
||||
'stand_start' start frame for when mob stands still.
|
||||
'stand_end' end frame of stand animation.
|
||||
'stand_speed' speed of animation in frames per second.
|
||||
@ -293,7 +296,8 @@ enhance mob functionality and have them do many interesting things:
|
||||
'custom_attack' when set this function is called instead of the normal mob
|
||||
melee attack, parameters are (self, to_attack) and if true
|
||||
is returned normal attack function continued.
|
||||
'on_die' a function that is called when mob is killed (self, pos)
|
||||
'on_die' a function that is called when mob is killed (self, pos), also
|
||||
has access to self.cause_of_death table.
|
||||
'do_custom' a custom function that is called every tick while mob is
|
||||
active and which has access to all of the self.* variables
|
||||
e.g. (self.health for health or self.standing_in for node
|
||||
@ -327,6 +331,29 @@ for each mob.
|
||||
'self.nametag' contains the name of the mob which it can show above
|
||||
|
||||
|
||||
Adding Mobs in World
|
||||
--------------------
|
||||
|
||||
mobs:add_mob(pos, {
|
||||
name = "mobs_animal:chicken",
|
||||
child = true,
|
||||
owner = "singleplayer",
|
||||
nametag = "Bessy",
|
||||
ignore_count = true -- ignores mob count per map area
|
||||
})
|
||||
|
||||
Returns false if mob could not be added, returns mob object if spawned ok.
|
||||
|
||||
|
||||
Removing Mob from World
|
||||
-----------------------
|
||||
|
||||
mobs:remove(self, decrease)
|
||||
|
||||
Removes mob 'self' from the world and if 'decrease' is true then the mob counter
|
||||
will also be decreased by one.
|
||||
|
||||
|
||||
Spawning Mobs in World
|
||||
----------------------
|
||||
|
||||
@ -356,6 +383,9 @@ default setting and can be omitted:
|
||||
anytime
|
||||
'on_spawn' is a custom function which runs after mob has spawned
|
||||
and gives self and pos values.
|
||||
'on_map_load' when true mobs will have a chance of spawning only
|
||||
when new areas of map are loaded, interval will not be
|
||||
used.
|
||||
|
||||
The older spawn functions are still active and working but have no defaults like
|
||||
the mobs:spawn, so it is recommended to use the above instead.
|
||||
@ -387,6 +417,24 @@ true the mob will not spawn.
|
||||
'name' is the name of the animal/monster
|
||||
|
||||
|
||||
Particle Effects
|
||||
----------------
|
||||
|
||||
mobs:effect(pos, amount, texture, min_size, max_size, radius, gravity, glow, fall)
|
||||
|
||||
This function provides a quick way to spawn particles as an effect.
|
||||
|
||||
'pos' center position of particle effect.
|
||||
'amount' how many particles.
|
||||
'texture' texture filename to use for effect.
|
||||
'min_size' smallest particle size.
|
||||
'max_size' largest particle size.
|
||||
'radius' how far particles spread outward from center.
|
||||
'gravity' gravity applied to particles once they spawn.
|
||||
'glow' number between 1 and 15 for glowing particles.
|
||||
'fall' when true particles fall, false has them rising, nil has them scatter.
|
||||
|
||||
|
||||
Making Arrows
|
||||
-------------
|
||||
|
||||
@ -422,7 +470,9 @@ This function registers a arrow for mobs with the attack type shoot.
|
||||
'on_step' is a custom function when arrow is active, nil for
|
||||
default.
|
||||
'on_punch' is a custom function when arrow is punched, nil by default
|
||||
'collisionbox' is hitbox table for arrow, {0,0,0,0,0,0} by default.
|
||||
'collisionbox' is hitbox table for arrow, {-.1,-.1,-.1,.1,.1,.1} by default.
|
||||
'lifetime' contains float value for how many seconds arrow exists in
|
||||
world before being removed (default is 4.5 seconds).
|
||||
|
||||
|
||||
Spawn Eggs
|
||||
@ -610,6 +660,13 @@ Use this instead:
|
||||
mob_class:line_of_sight(pos1, pos2, stepsize)
|
||||
|
||||
|
||||
mobs:can_spawn(pos, name)
|
||||
|
||||
This function checks the surrounding area at [pos] to see if there is enough empty
|
||||
space to spawn mob [name], if so then a new position is returned for use,
|
||||
otherwise nil is returned.
|
||||
|
||||
|
||||
External Settings for "minetest.conf"
|
||||
------------------------------------
|
||||
|
||||
@ -651,8 +708,8 @@ mobs_monster:sand_monster 100
|
||||
...you can also change how many of a certain mob appear in an active mapblock by
|
||||
adding a comma and then a new value e.g.
|
||||
|
||||
mobs_animal:cow 8000,4 <-- 4 cows per mapblock at 8000 spawn chance
|
||||
mobs_monster:dirt_monster ,20 <-- 20 dirt monsters per mapblock
|
||||
mobs_animal:cow = 8000,4 <-- 4 cows per mapblock at 8000 spawn chance
|
||||
mobs_monster:dirt_monster = ,20 <-- 20 dirt monsters per mapblock
|
||||
|
||||
|
||||
Rideable Horse Example Mob
|
||||
|
22
crafts.lua
22
crafts.lua
@ -331,3 +331,25 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
tex_obj = nil
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
-- Meat Block (thanks to painterlypack.net for allowing me to use these textures)
|
||||
minetest.register_node("mobs:meatblock", {
|
||||
description = S("Meat Block"),
|
||||
tiles = {"mobs_meat_top.png", "mobs_meat_bottom.png", "mobs_meat_side.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
on_use = minetest.item_eat(20),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mobs:meatblock",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
"group:food_meat", "group:food_meat", "group:food_meat",
|
||||
"group:food_meat", "group:food_meat", "group:food_meat",
|
||||
"group:food_meat", "group:food_meat", "group:food_meat"
|
||||
}
|
||||
})
|
||||
|
46
intllib.lua
46
intllib.lua
@ -1,45 +1,3 @@
|
||||
-- Support for the old multi-load method
|
||||
dofile(minetest.get_modpath("intllib").."/init.lua")
|
||||
|
||||
-- Fallback functions for when `intllib` is not installed.
|
||||
-- Code released under Unlicense <http://unlicense.org>.
|
||||
|
||||
-- Get the latest version of this file at:
|
||||
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
|
||||
|
||||
local function format(str, ...)
|
||||
local args = { ... }
|
||||
local function repl(escape, open, num, close)
|
||||
if escape == "" then
|
||||
local replacement = tostring(args[tonumber(num)])
|
||||
if open == "" then
|
||||
replacement = replacement..close
|
||||
end
|
||||
return replacement
|
||||
else
|
||||
return "@"..open..num..close
|
||||
end
|
||||
end
|
||||
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
|
||||
end
|
||||
|
||||
local gettext, ngettext
|
||||
if minetest.get_modpath("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
gettext, ngettext = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
gettext = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
-- Fill in missing functions.
|
||||
|
||||
gettext = gettext or function(msgid, ...)
|
||||
return format(msgid, ...)
|
||||
end
|
||||
|
||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
|
||||
return format(n==1 and msgid or msgid_plural, ...)
|
||||
end
|
||||
|
||||
return gettext, ngettext
|
||||
|
23
locale/fr.po
23
locale/fr.po
@ -3,20 +3,19 @@
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-29 09:13+0200\n"
|
||||
"PO-Revision-Date: 2017-07-29 09:20+0200\n"
|
||||
"PO-Revision-Date: 2020-08-13 21:20+0500\n"
|
||||
"Last-Translator: Olivier Dragon <odragon@protonmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.12\n"
|
||||
"Last-Translator: fat115 <fat115@framasoft.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"Language: fr\n"
|
||||
|
||||
#: api.lua
|
||||
msgid "** Peaceful Mode Active - No Monsters Will Spawn"
|
||||
@ -64,7 +63,7 @@ msgstr "Renommer"
|
||||
|
||||
#: crafts.lua
|
||||
msgid "Name Tag"
|
||||
msgstr "Étiquette pour collier"
|
||||
msgstr "Étiquette de collier"
|
||||
|
||||
#: crafts.lua
|
||||
msgid "Leather"
|
||||
@ -102,18 +101,26 @@ msgstr "Selle"
|
||||
msgid "Mob Fence"
|
||||
msgstr "Clôture à animaux"
|
||||
|
||||
#: crafts.lua
|
||||
msgid "Mob Fence Top"
|
||||
msgstr "Haut de clôture à animaux"
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Mob Spawner"
|
||||
msgstr "Générateur de mob"
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Mob MinLight MaxLight Amount PlayerDist"
|
||||
msgstr "Mob MinLumière MaxLumière Quantité DistanceJoueur"
|
||||
msgid "(mob name) (min light) (max light) (amount) (player distance) (Y offset)"
|
||||
msgstr "(Nom) (MinLumière) (MaxLumière) (Quantité) (Distance du Joueur) (Décalage en Y)"
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Spawner Not Active (enter settings)"
|
||||
msgstr "Générateur non actif (entrez les paramètres)"
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Command:"
|
||||
msgstr "Commande:"
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Spawner Active (@1)"
|
||||
msgstr "Générateur actif (@1)"
|
||||
|
34
locale/mobs.de_DE.tr
Normal file
34
locale/mobs.de_DE.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
#** Peaceful Mode Active - No Monsters Will Spawn=
|
||||
@1 (Tamed)=@1 (Gezähmt)
|
||||
@1 at full health (@2)=@1 bei voller Gesundheit (@2)
|
||||
@1 has been tamed!=@1 wurde gezähmt!
|
||||
@1 is owner!=@1 ist der Besitzer!
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=Bereits geschützt!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Namen eingeben:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Lasso (Rechtsklick auf Tier, um es zu nehmen)
|
||||
Leather=Leder
|
||||
Meat=Fleisch
|
||||
Missed!=Daneben!
|
||||
Mob Fence=Kreaturen Zaun
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Kreaturschutzrune
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Kreaturenspawner-Einstellungen gescheitert!
|
||||
Mob has been protected!=Kreatur wurde geschützt!
|
||||
Name Tag=Namensschild
|
||||
Net (right-click animal to put in inventory)=Netz (Rechtsklick auf Tier, um es zu nehmen)
|
||||
Not tamed!=Nicht gezähmt!
|
||||
Raw Meat=Rohes Fleisch
|
||||
Rename=Umbenennen
|
||||
Saddle=Sattel
|
||||
Spawner Active (@1)=Spawner aktiv (@1)
|
||||
Spawner Not Active (enter settings)=Nicht aktiv (Einstellungen eingeben)
|
||||
Steel Shears (right-click to shear)=Stahlschere (Rechtsklick zum Scheren)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.en.tr
Normal file
34
locale/mobs.en.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
#** Peaceful Mode Active - No Monsters Will Spawn=
|
||||
#@1 (Tamed)=
|
||||
#@1 at full health (@2)=
|
||||
#@1 has been tamed!=
|
||||
#@1 is owner!=
|
||||
#Active Mob Limit Reached!=
|
||||
#Already protected!=
|
||||
#Change=
|
||||
#Command:=
|
||||
#Enter name:=
|
||||
#Enter texture:=
|
||||
#Lasso (right-click animal to put in inventory)=
|
||||
#Leather=
|
||||
#Meat=
|
||||
#Missed!=
|
||||
#Mob Fence=
|
||||
#Mob Fence Top=
|
||||
#Mob Protection Rune=
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
#Mob Spawner settings failed!=
|
||||
#Mob has been protected!=
|
||||
#Name Tag=
|
||||
#Net (right-click animal to put in inventory)=
|
||||
#Not tamed!=
|
||||
#Raw Meat=
|
||||
#Rename=
|
||||
#Saddle=
|
||||
#Spawner Active (@1)=
|
||||
#Spawner Not Active (enter settings)=
|
||||
#Steel Shears (right-click to shear)=
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.es.tr
Normal file
34
locale/mobs.es.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
#** Peaceful Mode Active - No Monsters Will Spawn=
|
||||
@1 (Tamed)=@1 (Domesticado)
|
||||
@1 at full health (@2)=@1 con salud llena (@2)
|
||||
@1 has been tamed!=@1 ha sido domesticado!
|
||||
@1 is owner!=@1 es el dueño!
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=Ya está protegido!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Ingrese nombre:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Lazo (click derecho en animal para colocar en inventario)
|
||||
Leather=Cuero
|
||||
Meat=Carne
|
||||
Missed!=Perdido!
|
||||
#Mob Fence=
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Runa de protección de Mob
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Configuracion de generador de Mob falló!
|
||||
Mob has been protected!=El mob ha sido protegido!
|
||||
Name Tag=Nombrar etiqueta
|
||||
Net (right-click animal to put in inventory)=Red (click derecho en animal para colocar en inventario)
|
||||
Not tamed!=No domesticado!
|
||||
Raw Meat=Carne cruda
|
||||
Rename=Renombrar
|
||||
Saddle=Montura
|
||||
Spawner Active (@1)=Generador activo (@1)
|
||||
Spawner Not Active (enter settings)=Generador no activo (ingrese config)
|
||||
Steel Shears (right-click to shear)=Tijera de acero (click derecho para esquilar)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.fr.tr
Normal file
34
locale/mobs.fr.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** Mode pacifique activé - aucun monstre ne sera généré
|
||||
@1 (Tamed)=@1 (apprivoisé)
|
||||
@1 at full health (@2)=@1 est en pleine forme (@2)
|
||||
@1 has been tamed!=@1 a été apprivoisé !
|
||||
@1 is owner!=Appartient à @1 !
|
||||
Active Mob Limit Reached!=Limite atteinte du nombre des êtres vivants actifs !
|
||||
Already protected!=Déjà protégé !
|
||||
Change=Changer
|
||||
Command:=Commande :
|
||||
Enter name:=Saisissez un nom :
|
||||
Enter texture:=Saisissez une texture :
|
||||
Lasso (right-click animal to put in inventory)=Lasso (clic droit sur l'animal pour le mettre dans l'inventaire)
|
||||
Leather=Cuir
|
||||
Meat=Viande
|
||||
Missed!=Raté !
|
||||
Mob Fence= Clôture à animaux
|
||||
Mob Fence Top=Haut de clôture à animaux
|
||||
Mob Protection Rune=Rune de protection des animaux
|
||||
Mob Reset Stick=Baguette de réinitialisation des êtres vivants
|
||||
Mob Spawner=Créateur d'êtres vivants
|
||||
Mob Spawner settings failed!=Échec des paramètres du créateur d'être vivants !
|
||||
Mob has been protected!=L'animal a été protégé !
|
||||
Name Tag=Étiquette de collier
|
||||
Net (right-click animal to put in inventory)=Filet (clic droit sur l'animal pour le mettre dans l'inventaire)
|
||||
Not tamed!=Non-apprivoisé !
|
||||
Raw Meat=Viande crue
|
||||
Rename=Renommer
|
||||
Saddle=Selle
|
||||
Spawner Active (@1)=Créateur actif (@1)
|
||||
Spawner Not Active (enter settings)=Créateur non actif (entrez les paramètres)
|
||||
Steel Shears (right-click to shear)=Ciseaux à laine (clic droit pour tondre)
|
||||
Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=Syntaxe : «name min_lumière[0-14] max_lumière[0-14] max_être_vivant_dans_région[0 pour désactiver] distance_joueur[1-20] décalage_y[-10 to 10]»
|
||||
lifetimer expired, removed @1=Être immortel expiré ; @1 retiré
|
34
locale/mobs.it.tr
Normal file
34
locale/mobs.it.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** Modalità pacifica attiva - non comparirà nessun mostro
|
||||
@1 (Tamed)=@1 (Addomesticato)
|
||||
@1 at full health (@2)=@1 in piena salute (@2)
|
||||
@1 has been tamed!=@1 è stato addomesticato!
|
||||
@1 is owner!=Il padrone è @1!
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=Già protetto!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Inserire il nome:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Lazo (click di destro per mettere l'animale nell'inventario)
|
||||
Leather=Pelle
|
||||
Meat=Carne
|
||||
Missed!=Mancato!
|
||||
Mob Fence=Recinzione per mob
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Runa di protezione per mob
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Impostazioni del generatore di mob fallite!
|
||||
Mob has been protected!=Il mob è stato protetto!
|
||||
Name Tag=Targhetta
|
||||
Net (right-click animal to put in inventory)=Rete (click destro per mettere l'animale nell'inventario)
|
||||
Not tamed!=Non addomesticato!
|
||||
Raw Meat=Carne cruda
|
||||
Rename=Rinomina
|
||||
Saddle=Sella
|
||||
Spawner Active (@1)=Generatore attivo (@1)
|
||||
Spawner Not Active (enter settings)=Generatore inattivo (inserire le impostazioni)
|
||||
Steel Shears (right-click to shear)=Cesoie d'acciaio (click destro per tosare)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.ms.tr
Normal file
34
locale/mobs.ms.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** Mod Aman Diaktifkan - Tiada Raksasa Akan Muncul
|
||||
@1 (Tamed)=@1 (Jinak)
|
||||
@1 at full health (@2)=Mata kesihatan @1 telah penuh (@2)
|
||||
@1 has been tamed!=@1 telah dijinakkan!
|
||||
@1 is owner!=Ini hak milik @1!
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=Telah dilindungi!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Masukkan nama:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Tanjul (klik-kanan haiwan untuk masukkan ke inventori)
|
||||
Leather=Kulit
|
||||
Meat=Daging Bakar
|
||||
Missed!=Terlepas!
|
||||
Mob Fence=Pagar Mob
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Rune Perlindungan Mob
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Penetapan Pewujud Mob gagal!
|
||||
Mob has been protected!=Mob telah pun dilindungi!
|
||||
Name Tag=Tanda Nama
|
||||
Net (right-click animal to put in inventory)=Jaring (klik-kanan haiwan untuk masukkan ke inventori)
|
||||
Not tamed!=Belum dijinakkan!
|
||||
Raw Meat=Daging Mentah
|
||||
Rename=Namakan semula
|
||||
Saddle=Pelana
|
||||
Spawner Active (@1)=Pewujud Mob Aktif (@1)
|
||||
Spawner Not Active (enter settings)=Pewujud Mob Tidak Aktif (masukkan tetapan)
|
||||
Steel Shears (right-click to shear)=Ketam Keluli (klik-kanan untuk mengetam bulu biri-biri)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.pt.tr
Normal file
34
locale/mobs.pt.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
#** Peaceful Mode Active - No Monsters Will Spawn=
|
||||
#@1 (Tamed)=
|
||||
@1 at full health (@2)=@1 em plena saude (@2)
|
||||
@1 has been tamed!=@1 foi domesticado!
|
||||
@1 is owner!=Dono @1!
|
||||
#Active Mob Limit Reached!=
|
||||
#Already protected!=
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Insira um nome:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Laço (clique-direito no animal para por no inventario)
|
||||
Leather=Couro
|
||||
Meat=Carne
|
||||
Missed!=Faltou!
|
||||
#Mob Fence=
|
||||
#Mob Fence Top=
|
||||
#Mob Protection Rune=
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Configuraçao de Spawnador do Mob falhou!
|
||||
#Mob has been protected!=
|
||||
Name Tag=Etiqueta
|
||||
Net (right-click animal to put in inventory)=Net (clique-direito no animal para por no inventario)
|
||||
Not tamed!=Indomesticado!
|
||||
Raw Meat=Carne crua
|
||||
Rename=Renomear
|
||||
#Saddle=
|
||||
Spawner Active (@1)=Spawnador Ativo (@1)
|
||||
Spawner Not Active (enter settings)=Spawnador Inativo (configurar)
|
||||
Steel Shears (right-click to shear)=Tesoura de Aço (clique-direito para tosquiar)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.ru.tr
Normal file
34
locale/mobs.ru.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** Мирный модус активирован - монстры не спаунятся
|
||||
@1 (Tamed)=@1 (Прирученный)
|
||||
@1 at full health (@2)=@1 при полном здоровье (@2)
|
||||
@1 has been tamed!=@1 приручен
|
||||
@1 is owner!=@1 владелец
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=Уже защищен!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=Введите имя:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Лассо (Правый клик - положить животное в инвентарь)
|
||||
Leather=Кожа
|
||||
Meat=Мясо
|
||||
Missed!=Промазал!
|
||||
Mob Fence=Забор от мобов
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Защитная руна мобов
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Настройки спаунера моба провалились
|
||||
Mob has been protected!=Моб защищен!
|
||||
Name Tag=Новый тэг
|
||||
Net (right-click animal to put in inventory)=Сеть (Правый клик - положить животное в инвентарь)
|
||||
Not tamed!=Не прирученный
|
||||
Raw Meat=Сырое мясо
|
||||
Rename=Переименовать
|
||||
Saddle=Седло
|
||||
Spawner Active (@1)=Активные спаунер (@1)
|
||||
Spawner Not Active (enter settings)=Спаунер не активен (введите настройки)
|
||||
Steel Shears (right-click to shear)=Ножницы (Правый клик - подстричь)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.tr.tr
Normal file
34
locale/mobs.tr.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
#** Peaceful Mode Active - No Monsters Will Spawn=
|
||||
#@1 (Tamed)=
|
||||
@1 at full health (@2)=@1 tam canında (@2)
|
||||
@1 has been tamed!=@1 tamamen evcilleştirilmiştir!
|
||||
@1 is owner!=Sahibi @1!
|
||||
#Active Mob Limit Reached!=
|
||||
#Already protected!=
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=İsim gir:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=Kement (hayvana sağ tıklayarak envantere koy)
|
||||
Leather=Deri
|
||||
Meat=Et
|
||||
Missed!=Kaçırdın!
|
||||
Mob Fence=Canavar Yaratıcı
|
||||
#Mob Fence Top=
|
||||
#Mob Protection Rune=
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Yaratıcı ayarları uygulanamadı.
|
||||
#Mob has been protected!=
|
||||
Name Tag=İsim etiketi
|
||||
Net (right-click animal to put in inventory)=Ağ (hayvana sağ tıklayarak envantere koy)
|
||||
Not tamed!=Evcil değil!
|
||||
Raw Meat=Çiğ et
|
||||
Rename=Yeniden adlandır
|
||||
#Saddle=
|
||||
Spawner Active (@1)=Yaratıcı aktif (@1)
|
||||
Spawner Not Active (enter settings)=Yaratıcı aktif değil (ayarlara gir)
|
||||
Steel Shears (right-click to shear)=Çelik makas (sağ tıklayarak kes)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.zh_CN.tr
Normal file
34
locale/mobs.zh_CN.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** 和平模式已激活——没有怪物会产生
|
||||
@1 (Tamed)=@1(已驯服)
|
||||
@1 at full health (@2)=@1已经满血(@2)
|
||||
@1 has been tamed!=@1已经被驯服!
|
||||
@1 is owner!=@1 是主人
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=已经被保护!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=输入名称:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=套索(右键单击动物以放入物品栏)
|
||||
Leather=皮革
|
||||
Meat=肉
|
||||
Missed!=没抓住!
|
||||
Mob Fence=Mob 栅栏
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Mob 保护符文
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Mob 孵化器设置失败!
|
||||
Mob has been protected!=Mob 已经被保护了!
|
||||
Name Tag=名称标签
|
||||
Net (right-click animal to put in inventory)=网(右键单击动物以放入物品栏)
|
||||
Not tamed!=没有驯服!
|
||||
Raw Meat=生肉
|
||||
Rename=重新命名
|
||||
Saddle=鞍
|
||||
Spawner Active (@1)=孵化器正在运转(@1)
|
||||
Spawner Not Active (enter settings)=孵化器未使用(输入设置)
|
||||
Steel Shears (right-click to shear)=钢剪(右键单击以剪切)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
34
locale/mobs.zh_TW.tr
Normal file
34
locale/mobs.zh_TW.tr
Normal file
@ -0,0 +1,34 @@
|
||||
# textdomain:mobs
|
||||
** Peaceful Mode Active - No Monsters Will Spawn=** 和平模式已激活——沒有怪物會產生
|
||||
@1 (Tamed)=@1(已馴服)
|
||||
@1 at full health (@2)=@1已經滿血(@2)
|
||||
@1 has been tamed!=@1已經被馴服!
|
||||
@1 is owner!=@1 是主人
|
||||
#Active Mob Limit Reached!=
|
||||
Already protected!=已經被保護!
|
||||
#Change=
|
||||
#Command:=
|
||||
Enter name:=輸入名稱:
|
||||
#Enter texture:=
|
||||
Lasso (right-click animal to put in inventory)=套索(右鍵單擊動物以放入物品欄)
|
||||
Leather=皮革
|
||||
Meat=肉
|
||||
Missed!=沒抓住!
|
||||
Mob Fence=Mob 柵欄
|
||||
#Mob Fence Top=
|
||||
Mob Protection Rune=Mob 保護符文
|
||||
#Mob Reset Stick=
|
||||
#Mob Spawner=
|
||||
Mob Spawner settings failed!=Mob 孵化器設置失敗!
|
||||
Mob has been protected!=Mob 已經被保護了!
|
||||
Name Tag=名稱標籤
|
||||
Net (right-click animal to put in inventory)=網(右鍵單擊動物以放入物品欄)
|
||||
Not tamed!=沒有馴服!
|
||||
Raw Meat=生肉
|
||||
Rename=重新命名
|
||||
Saddle=鞍
|
||||
Spawner Active (@1)=孵化器正在運轉(@1)
|
||||
Spawner Not Active (enter settings)=孵化器未使用(輸入設置)
|
||||
Steel Shears (right-click to shear)=鋼剪(右鍵單擊以剪切)
|
||||
#Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”=
|
||||
#lifetimer expired, removed @1=
|
@ -101,18 +101,26 @@ msgstr ""
|
||||
msgid "Mob Fence"
|
||||
msgstr ""
|
||||
|
||||
#: crafts.lua
|
||||
msgid "Mob Fence Top"
|
||||
msgstr ""
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Mob Spawner"
|
||||
msgstr ""
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Mob MinLight MaxLight Amount PlayerDist"
|
||||
msgid "(mob name) (min light) (max light) (amount) (player distance) (Y offset)"
|
||||
msgstr ""
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Spawner Not Active (enter settings)"
|
||||
msgstr ""
|
||||
|
||||
#@ spawner.lua
|
||||
msgid "Command:"
|
||||
msgstr ""
|
||||
|
||||
#: spawner.lua
|
||||
msgid "Spawner Active (@1)"
|
||||
msgstr ""
|
||||
|
@ -84,7 +84,7 @@ local function force_detach(player)
|
||||
|
||||
local entity = attached_to:get_luaentity()
|
||||
|
||||
if entity.driver
|
||||
if entity and entity.driver
|
||||
and entity.driver == player then
|
||||
|
||||
entity.driver = nil
|
||||
|
@ -23,8 +23,9 @@ Lucky Blocks: 9
|
||||
|
||||
|
||||
Changelog:
|
||||
- 1.52 - Added 'mob_active_limit' in settings to set number of mobs in game
|
||||
(default is 0 for unlimited), removed {immortal} from mob armor
|
||||
- 1.53 - Added 'on_map_load' settings to mobs:spawn so that mobs will only spawn when new areas of map are loaded.
|
||||
- 1.52 - Added 'mob_active_limit' in settings to set number of mobs in game,
|
||||
(default is 0 for unlimited), removed {immortal} from mob armor, fluid viscocity slows mobs
|
||||
- 1.51 - Added some node checks for dangerous nodes, jumping and falling tweaks, spawn area check (thx for idea wuzzy), re-enabled mob suffocation, add 'mob_nospawn_range' setting
|
||||
- 1.50 - Added new line_of_sight function that uses raycasting if mt5.0 is found, (thanks Astrobe), dont spawn mobs if world anchor nearby (technic or simple_anchor mods), chinese local added
|
||||
- 1.49- Added mobs:force_capture(self, player) function, api functions now use metatables thanks to bell07
|
||||
|
17
spawner.lua
17
spawner.lua
@ -3,7 +3,7 @@ local S = mobs.intllib
|
||||
|
||||
-- mob spawner
|
||||
|
||||
local spawner_default = "mobs_animal:pumba 10 15 0 0"
|
||||
local spawner_default = "mobs_animal:pumba 10 15 0 0 0"
|
||||
|
||||
minetest.register_node("mobs:spawner", {
|
||||
tiles = {"mob_spawner.png"},
|
||||
@ -17,10 +17,17 @@ minetest.register_node("mobs:spawner", {
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
-- setup formspec
|
||||
local head = S("(mob name) (min light) (max light) (amount)"
|
||||
.. " (player distance) (Y offset)")
|
||||
|
||||
-- text entry formspec
|
||||
meta:set_string("formspec",
|
||||
"field[text;" .. S("Mob MinLight MaxLight Amount PlayerDist")
|
||||
"size[9,3.5]"
|
||||
.. "label[0.15,0.5;" .. minetest.formspec_escape(head) .. "]"
|
||||
.. "field[1,2.5;7.5,0.8;text;" .. S("Command:")
|
||||
.. ";${command}]")
|
||||
|
||||
meta:set_string("infotext", S("Spawner Not Active (enter settings)"))
|
||||
meta:set_string("command", spawner_default)
|
||||
end,
|
||||
@ -54,11 +61,11 @@ minetest.register_node("mobs:spawner", {
|
||||
local pla = tonumber(comm[5]) -- player distance (0 to disable)
|
||||
local yof = tonumber(comm[6]) or 0 -- Y offset to spawn mob
|
||||
|
||||
if mob and mob ~= "" and mobs.spawning_mobs[mob] == true
|
||||
if mob and mob ~= "" and mobs.spawning_mobs[mob]
|
||||
and num and num >= 0 and num <= 10
|
||||
and mlig and mlig >= 0 and mlig <= 15
|
||||
and xlig and xlig >= 0 and xlig <= 15
|
||||
and pla and pla >=0 and pla <= 20
|
||||
and pla and pla >= 0 and pla <= 20
|
||||
and yof and yof > -10 and yof < 10 then
|
||||
|
||||
meta:set_string("command", fields.text)
|
||||
@ -67,7 +74,7 @@ minetest.register_node("mobs:spawner", {
|
||||
else
|
||||
minetest.chat_send_player(name, S("Mob Spawner settings failed!"))
|
||||
minetest.chat_send_player(name,
|
||||
S("Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] distance[1-20] y_offset[-10 to 10]”"))
|
||||
S("Syntax: “name min_light[0-14] max_light[0-14] max_mobs_in_area[0 to disable] player_distance[1-20] y_offset[-10 to 10]”"))
|
||||
end
|
||||
end
|
||||
})
|
||||
|
BIN
textures/mobs_meat_bottom.png
Normal file
BIN
textures/mobs_meat_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 253 B |
BIN
textures/mobs_meat_side.png
Normal file
BIN
textures/mobs_meat_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 271 B |
BIN
textures/mobs_meat_top.png
Normal file
BIN
textures/mobs_meat_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 287 B |
Reference in New Issue
Block a user