mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 05:50:31 +01:00
Fix crash when right-click on turtle
Customize mobs spawning in minetest.conf
This commit is contained in:
parent
5a5221efaf
commit
b732dbe4b5
|
@ -127,6 +127,28 @@ areas.self_protection_max_size = {x=128, y=128, z=128}
|
|||
areas.self_protection_max_areas = 30
|
||||
# MOBS
|
||||
remove_far_mobs = true
|
||||
# MOBS custom spawn chance and number
|
||||
mobs_animal:bee = 9000,2
|
||||
mobs_animal:bunny = 15000,2
|
||||
mobs_animal:chicken = 15000,2
|
||||
mobs_animal:cow = 15000,2
|
||||
mobs_animal:goat = 20000,2
|
||||
mobs_animal:kitten = 122000,2
|
||||
mobs_animal:penguin = 20000,2
|
||||
mobs_animal:rat = 15000,2
|
||||
mobs_animal:sheep_white = 15000,2
|
||||
mobs_animal:pumba = 15000,2
|
||||
pmobs:npc = 500000,1
|
||||
pmobs:npc_female = 500000,1
|
||||
pmobs:wolf = 100000,1
|
||||
pmobs:yeti = 7000,2
|
||||
kpgmobs:deer = 51000,1
|
||||
kpgmobs:jeraf = 51000,1
|
||||
kpgmobs:medved = 100000,1
|
||||
creeper:creeper = 25000,2
|
||||
mob_horse:horse = 60000,1
|
||||
mobs_turtles:turtle = 30000,1
|
||||
mobs_turtles:seaturtle = 30000,1
|
||||
# DROPONDIE MOD - si false, les sacs des joueurs sont vidées à leurs mort
|
||||
keepInventory = false
|
||||
# RANDOM_MESSAGES MOD - paramétrage de l'interval entre deux messages, 30min actuellement
|
||||
|
|
|
@ -1,6 +1,22 @@
|
|||
|
||||
if mobs.mod and mobs.mod == "redo" then
|
||||
|
||||
local sin = math.sin
|
||||
local cos = math.cos
|
||||
|
||||
-- move mob in facing direction
|
||||
local set_velocity = function(self, v)
|
||||
|
||||
local yaw = (self.object:get_yaw() or 0) + self.rotate
|
||||
|
||||
self.object:setvelocity(
|
||||
{
|
||||
x = sin(yaw) * -v,
|
||||
y = self.object:getvelocity().y,
|
||||
z = cos(yaw) * v
|
||||
})
|
||||
end
|
||||
|
||||
local l_colors = {
|
||||
"#604000:175", --brown
|
||||
"#604000:100", --brown2
|
||||
|
|
Loading…
Reference in New Issue
Block a user