mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Change over internal name so that /spawn_mob works
This commit is contained in:
parent
a36c6481cb
commit
d2a49799ae
7 changed files with 12 additions and 12 deletions
|
@ -109,7 +109,7 @@ local psdefs = {{
|
||||||
texture = "mcl_portals_particle"..math.random(1, 5)..".png",
|
texture = "mcl_portals_particle"..math.random(1, 5)..".png",
|
||||||
}}
|
}}
|
||||||
|
|
||||||
mcl_mobs.register_mob("mobs_mc:enderman", {
|
mcl_mobs.register_mob("mobs_mc:rover", {
|
||||||
description = S("Rover"),
|
description = S("Rover"),
|
||||||
type = "monster",
|
type = "monster",
|
||||||
spawn_class = "passive",
|
spawn_class = "passive",
|
||||||
|
@ -495,7 +495,7 @@ mcl_mobs.register_mob("mobs_mc:enderman", {
|
||||||
|
|
||||||
-- End spawn
|
-- End spawn
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
"mobs_mc:enderman",
|
"mobs_mc:rover",
|
||||||
"end",
|
"end",
|
||||||
"ground",
|
"ground",
|
||||||
{
|
{
|
||||||
|
@ -515,7 +515,7 @@ mcl_vars.mg_end_min,
|
||||||
mcl_vars.mg_end_max)
|
mcl_vars.mg_end_max)
|
||||||
-- Overworld spawn
|
-- Overworld spawn
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
"mobs_mc:enderman",
|
"mobs_mc:rover",
|
||||||
"overworld",
|
"overworld",
|
||||||
"ground",
|
"ground",
|
||||||
{
|
{
|
||||||
|
@ -664,7 +664,7 @@ mcl_vars.mg_overworld_max)
|
||||||
|
|
||||||
-- Nether spawn (rare)
|
-- Nether spawn (rare)
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
"mobs_mc:enderman",
|
"mobs_mc:rover",
|
||||||
"nether",
|
"nether",
|
||||||
"ground",
|
"ground",
|
||||||
{
|
{
|
||||||
|
@ -681,7 +681,7 @@ mcl_vars.mg_nether_max)
|
||||||
|
|
||||||
-- Warped Forest spawn (common)
|
-- Warped Forest spawn (common)
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
"mobs_mc:enderman",
|
"mobs_mc:rover",
|
||||||
"nether",
|
"nether",
|
||||||
"ground",
|
"ground",
|
||||||
{
|
{
|
||||||
|
@ -696,4 +696,4 @@ mcl_vars.mg_nether_min,
|
||||||
mcl_vars.mg_nether_max)
|
mcl_vars.mg_nether_max)
|
||||||
|
|
||||||
-- spawn eggs
|
-- spawn eggs
|
||||||
mcl_mobs.register_egg("mobs_mc:enderman", S("Rover"), "#252525", "#151515", 0)
|
mcl_mobs.register_egg("mobs_mc:rover", S("Rover"), "#252525", "#151515", 0)
|
||||||
|
|
|
@ -249,7 +249,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Punch target object but avoid hurting enderman.
|
-- Punch target object but avoid hurting enderman.
|
||||||
if not lua or lua.name ~= "mobs_mc:enderman" then
|
if not lua or lua.name ~= "mobs_mc:rover" then
|
||||||
if not self._in_player then
|
if not self._in_player then
|
||||||
damage_particles(vector.add(pos, vector.multiply(self.object:get_velocity(), 0.1)), self._is_critical)
|
damage_particles(vector.add(pos, vector.multiply(self.object:get_velocity(), 0.1)), self._is_critical)
|
||||||
end
|
end
|
||||||
|
|
|
@ -470,7 +470,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Punch target object but avoid hurting enderman.
|
-- Punch target object but avoid hurting enderman.
|
||||||
if not lua or lua.name ~= "mobs_mc:enderman" then
|
if not lua or lua.name ~= "mobs_mc:rover" then
|
||||||
if self._in_player == false then
|
if self._in_player == false then
|
||||||
damage_particles(self.object:get_pos(), self._is_critical)
|
damage_particles(self.object:get_pos(), self._is_critical)
|
||||||
end
|
end
|
||||||
|
|
|
@ -119,7 +119,7 @@ pumpkin_face_base_def.groups.non_combat_armor=1
|
||||||
pumpkin_face_base_def.groups.armor_head=1
|
pumpkin_face_base_def.groups.armor_head=1
|
||||||
pumpkin_face_base_def.groups.non_combat_armor_head=1
|
pumpkin_face_base_def.groups.non_combat_armor_head=1
|
||||||
pumpkin_face_base_def._mcl_armor_mob_range_factor = 0
|
pumpkin_face_base_def._mcl_armor_mob_range_factor = 0
|
||||||
pumpkin_face_base_def._mcl_armor_mob_range_mob = "mobs_mc:enderman"
|
pumpkin_face_base_def._mcl_armor_mob_range_mob = "mobs_mc:rover"
|
||||||
|
|
||||||
pumpkin_face_base_def._mcl_armor_element = "head"
|
pumpkin_face_base_def._mcl_armor_element = "head"
|
||||||
pumpkin_face_base_def._mcl_armor_texture = "mcl_farming_pumpkin_face.png"
|
pumpkin_face_base_def._mcl_armor_texture = "mcl_farming_pumpkin_face.png"
|
||||||
|
|
|
@ -39,7 +39,7 @@ end
|
||||||
local doll_size_overrides = {
|
local doll_size_overrides = {
|
||||||
["mobs_mc:guardian"] = { x = 0.6, y = 0.6 },
|
["mobs_mc:guardian"] = { x = 0.6, y = 0.6 },
|
||||||
["mobs_mc:guardian_elder"] = { x = 0.72, y = 0.72 },
|
["mobs_mc:guardian_elder"] = { x = 0.72, y = 0.72 },
|
||||||
["mobs_mc:enderman"] = { x = 0.8, y = 0.8 },
|
["mobs_mc:rover"] = { x = 0.8, y = 0.8 },
|
||||||
["mobs_mc:iron_golem"] = { x = 0.9, y = 0.9 },
|
["mobs_mc:iron_golem"] = { x = 0.9, y = 0.9 },
|
||||||
["mobs_mc:ghast"] = { x = 1.05, y = 1.05 },
|
["mobs_mc:ghast"] = { x = 1.05, y = 1.05 },
|
||||||
["mobs_mc:wither"] = { x = 1.2, y = 1.2 },
|
["mobs_mc:wither"] = { x = 1.2, y = 1.2 },
|
||||||
|
|
|
@ -266,7 +266,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
|
||||||
|
|
||||||
-- Punch target object but avoid hurting enderman.
|
-- Punch target object but avoid hurting enderman.
|
||||||
if lua then
|
if lua then
|
||||||
if lua.name ~= "mobs_mc:enderman" then
|
if lua.name ~= "mobs_mc:rover" then
|
||||||
obj:punch(self.object, 1.0, {
|
obj:punch(self.object, 1.0, {
|
||||||
full_punch_interval=1.0,
|
full_punch_interval=1.0,
|
||||||
damage_groups={fleshy=self._damage},
|
damage_groups={fleshy=self._damage},
|
||||||
|
|
|
@ -34,7 +34,7 @@ end, function(minp,maxp,blockseed)
|
||||||
table.shuffle(nn)
|
table.shuffle(nn)
|
||||||
if nn and #nn > 0 then
|
if nn and #nn > 0 then
|
||||||
for i=1,pr:next(1,math.min(5,#nn)) do
|
for i=1,pr:next(1,math.min(5,#nn)) do
|
||||||
minetest.add_entity(vector.offset(nn[i],0,1,0),"mobs_mc:enderman")
|
minetest.add_entity(vector.offset(nn[i],0,1,0),"mobs_mc:rover")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end, 15, true)
|
end, 15, true)
|
||||||
|
|
Loading…
Reference in a new issue