merge tenplus1/mobs_monster

This commit is contained in:
Milan* 2017-08-08 17:29:18 +02:00
commit 74f3543bc5
6 changed files with 78 additions and 6 deletions

View File

@ -2,3 +2,4 @@ default
mobs
intllib?
lucky_block?
toolranks?

View File

@ -10,7 +10,8 @@ mobs:register_mob("mobs_monster:dungeon_master", {
damage = 4,
attack_type = "dogshoot",
dogshoot_switch = 1,
dogshoot_count_max = 10,
dogshoot_count_max = 12, -- shoot for 10 seconds
dogshoot_count2_max = 3, -- dogfight for 3 seconds
reach = 3,
shoot_interval = 2.5,
arrow = "mobs_monster:fireball",

View File

@ -3,8 +3,14 @@ local path = minetest.get_modpath("mobs_monster")
-- Intllib
local S
if minetest.get_modpath("intllib") then
if minetest.global_exists("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
S = intllib.make_gettext_pair()
else
-- Old method using text files.
S = intllib.Getter()
end
else
S = function(s) return s end
end

View File

@ -53,7 +53,22 @@ mobs:register_mob("mobs_monster:lava_flan", {
on_die = function(self, pos)
minetest.set_node(pos, {name = "fire:basic_flame"})
self.object:remove()
effect(pos, 20, "fire_basic_flame.png")
minetest.add_particlespawner({
amount = 20,
time = 0.25,
minpos = pos,
maxpos = pos,
minvel = {x = -2, y = -2, z = -2},
maxvel = {x = 2, y = 2, z = 2},
minacc = {x = 0, y = -10, z = 0},
maxacc = {x = 0, y = -10, z = 0},
minexptime = 0.1,
maxexptime = 1,
minsize = 0.5,
maxsize = 1.0,
texture = "fire_basic_flame.png",
})
end,
})
@ -139,7 +154,7 @@ minetest.register_tool(":mobs:pick_lava", {
full_punch_interval = 0.4,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=1.80, [2]=0.90, [3]=0.45}, uses=30, maxlevel=3},
cracky = {times={[1]=1.80, [2]=0.80, [3]=0.40}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=6},
},
@ -280,3 +295,13 @@ local function update_picklight(dtime)
end
minetest.after(picklight_update_interval, update_picklight)
--[[ Add [toolranks] mod support if found
if minetest.get_modpath("toolranks") then
minetest.override_item("mobs:pick_lava", {
original_description = "Lava Pickaxe",
description = toolranks.create_description("Lava Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
end
]]

39
locale/tr.txt Normal file
View File

@ -0,0 +1,39 @@
# Türkçe çeviri by Admicos
# Turkish translation by Admicos
# Son düzenleme: 26 Nisan 2017
# Last edit: 26 April 2017
#dirtmonster.lua
Dirt Monster = Toprak Canavarı
#dungeonmaster.lua
Dungeon Master = Zindan başı
#init.lua
[MOD] Mobs Redo 'Monsters' loaded = [MOD] Mobs Redo 'Canavarlar' yüklendi
#lava_flan.lua
Lava Flan = Lav Flan
Lava orb = Lav küre
Lava Pickaxe = Lav kazması
#mese_monster.lua
Mese Monster = Mese Canavarı
#oerkki.lua
Oerkki = Oerkki
#sandmonster.lua
Sand Monster = Kum Canavarı
#spider.lua
Spider = Örümcek
Cobweb = Örümcek ağı
#stonemonster.lua
Stone Monster = Taş Canavarı
#treemonster.lua
Tree Monster = Ağaç Canavarı

View File

@ -27,7 +27,7 @@ mobs:register_mob("mobs_monster:sand_monster", {
},
walk_velocity = 1.5,
run_velocity = 4,
view_range = 15,
view_range = 8, --15
jump = true,
floats = 0,
drops = {