mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-22 17:00:26 +01:00
lil tweaks
This commit is contained in:
parent
5c956edfe3
commit
1a576f2bb1
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
-- transpation and drops
|
-- translation and drops
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_monster")
|
local S = minetest.get_translator("mobs_monster")
|
||||||
|
|
||||||
|
5
init.lua
5
init.lua
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
-- transpation and get mod path
|
-- translation and mod path
|
||||||
|
|
||||||
local S = minetest.get_translator("mobs_monster")
|
local S = minetest.get_translator("mobs_monster")
|
||||||
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
||||||
|
|
||||||
@ -51,4 +52,4 @@ if minetest.get_modpath("lucky_block") then
|
|||||||
dofile(path .. "lucky_block.lua")
|
dofile(path .. "lucky_block.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
print ("[MOD] Mobs Monster loaded")
|
print ("[MOD] Mobs Redo Monsters loaded")
|
||||||
|
@ -270,6 +270,7 @@ mobs:register_mob("mobs_monster:obsidian_flan", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- spawn egg
|
-- spawn egg
|
||||||
|
|
||||||
mobs:register_egg("mobs_monster:obsidian_flan", S("Obsidian Flan"),
|
mobs:register_egg("mobs_monster:obsidian_flan", S("Obsidian Flan"),
|
||||||
"default_obsidian.png", 1)
|
"default_obsidian.png", 1)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ local S = minetest.get_translator("mobs_monster")
|
|||||||
|
|
||||||
-- custom particle effects
|
-- custom particle effects
|
||||||
|
|
||||||
local effect = function(pos, amount, texture, min_size, max_size, radius, gravity, glow)
|
local function effect(pos, amount, texture, min_size, max_size, radius, gravity, glow)
|
||||||
|
|
||||||
radius = radius or 2
|
radius = radius or 2
|
||||||
min_size = min_size or 0.5
|
min_size = min_size or 0.5
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
-- Translation support
|
|
||||||
local S = minetest.get_translator("mobs_monster")
|
local S = minetest.get_translator("mobs_monster")
|
||||||
|
|
||||||
-- helper function
|
-- helper function
|
||||||
|
|
||||||
local get_velocity = function(self)
|
local function get_velocity(self)
|
||||||
|
|
||||||
local v = self.object:get_velocity()
|
local v = self.object:get_velocity()
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ if not mobs.custom_spawn_monster then
|
|||||||
max_light = 8,
|
max_light = 8,
|
||||||
chance = 7000,
|
chance = 7000,
|
||||||
active_object_count = 1,
|
active_object_count = 1,
|
||||||
min_height = 25,
|
min_height = 2,
|
||||||
max_height = 31000
|
max_height = 31000
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user