Bug fix in new mobs
This commit is contained in:
parent
0ab8ead3b4
commit
062ee21f09
@ -1,7 +1,7 @@
|
|||||||
nssm:register_mob("nssm:giant_sandworm", {
|
nssm:register_mob("nssm:giant_sandworm", {
|
||||||
type = "monster",
|
type = "monster",
|
||||||
hp_max = 120,
|
hp_max = 130,
|
||||||
hp_min = 130,
|
hp_min = 120,
|
||||||
collisionbox = {-1.2, 0, -1.2, 1.2, 4.5, 1.2},
|
collisionbox = {-1.2, 0, -1.2, 1.2, 4.5, 1.2},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "giant_sandworm.x",
|
mesh = "giant_sandworm.x",
|
||||||
|
@ -742,7 +742,7 @@ minetest.register_craftitem("nssm:".. name .."_egg", {
|
|||||||
description = descr .. " Egg",
|
description = descr .. " Egg",
|
||||||
image = name .. "_egg.png",
|
image = name .. "_egg.png",
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local pos1=minetest.get_pointed_thing_position(pointed_thing, above)
|
local pos1=minetest.get_pointed_thing_position(pointed_thing, true)
|
||||||
pos1.y=pos1.y+1.5
|
pos1.y=pos1.y+1.5
|
||||||
core.after(0.1, function()
|
core.after(0.1, function()
|
||||||
minetest.add_entity(pos1, "nssm:".. name)
|
minetest.add_entity(pos1, "nssm:".. name)
|
||||||
@ -806,7 +806,7 @@ minetest.register_craftitem("nssm:mese_egg", {
|
|||||||
description = "Mese Egg",
|
description = "Mese Egg",
|
||||||
image = "mese_egg.png",
|
image = "mese_egg.png",
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local pos1=minetest.get_pointed_thing_position(pointed_thing, above)
|
local pos1=minetest.get_pointed_thing_position(pointed_thing, true)
|
||||||
pos1.y=pos1.y+1.5
|
pos1.y=pos1.y+1.5
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 1000,
|
amount = 1000,
|
||||||
|
@ -51,7 +51,7 @@ nssm:register_mob("nssm:sandworm", {
|
|||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
local v = self.object:getvelocity()
|
local v = self.object:getvelocity()
|
||||||
for dx = -c*(math.abs(v.x))-1 , c*(math.abs(v.x))+1 do
|
for dx = -c*(math.abs(v.x))-1 , c*(math.abs(v.x))+1 do
|
||||||
for dy=0,2 do
|
for dy=0,4 do
|
||||||
for dz = -c*(math.abs(v.z))-1 , c*(math.abs(v.z))+1 do
|
for dz = -c*(math.abs(v.z))-1 , c*(math.abs(v.z))+1 do
|
||||||
local p = {x=pos.x+dx, y=pos.y, z=pos.z+dz}
|
local p = {x=pos.x+dx, y=pos.y, z=pos.z+dz}
|
||||||
local t = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
|
local t = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
|
||||||
|
@ -27,9 +27,9 @@ nssm:spawn_specific("nssm:octopus", {"default:water_source"}, {"default:water_so
|
|||||||
|
|
||||||
-- DESERT
|
-- DESERT
|
||||||
--nssm:spawn_specific("nssm:dahaka", {"default:desert_sand", "default:desert_stone"}, {"air"}, 0, 20, 1200, 20000, 1, -31000, 31000)
|
--nssm:spawn_specific("nssm:dahaka", {"default:desert_sand", "default:desert_stone"}, {"air"}, 0, 20, 1200, 20000, 1, -31000, 31000)
|
||||||
nssm:spawn_specific("nssm:sandworm", {"default:desert_sand", "default:desert_stone"}, {"default:sand"}, 0, 20, 20, 3000, 1, -31000, 31000)
|
nssm:spawn_specific("nssm:sandworm", {"default:desert_sand", "default:desert_stone"}, {"air"}, 0, 20, 20, 30000, 1, -31000, 31000)
|
||||||
nssm:spawn_specific("nssm:giant_sandworm", {"default:desert_sand", "default:desert_stone"}, {"default:sand"}, 0, 20, 1200, 40000, 1, -31000, 31000)
|
nssm:spawn_specific("nssm:giant_sandworm", {"default:desert_sand", "default:desert_stone"}, {"air"}, 0, 20, 1200, 40000, 1, -31000, 31000)
|
||||||
nssm:spawn_specific("nssm:sand_bloco", {"default:desert_sand", "default:desert_stone"}, {"default:sand"}, 0, 20, 20, 1000, 1, -31000, 31000)
|
nssm:spawn_specific("nssm:sand_bloco", {"default:desert_sand", "default:desert_stone"}, {"air"}, 0, 20, 20, 30000, 1, -31000, 31000)
|
||||||
|
|
||||||
-- DUCKS
|
-- DUCKS
|
||||||
nssm:spawn_specific("nssm:duck", {"default:dirt_with_grass"}, {"group:flora"}, 10, 20, 20, 200, 1, -31000, 31000)
|
nssm:spawn_specific("nssm:duck", {"default:dirt_with_grass"}, {"group:flora"}, 10, 20, 20, 200, 1, -31000, 31000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user