mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +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",
|
||||
}}
|
||||
|
||||
mcl_mobs.register_mob("mobs_mc:enderman", {
|
||||
mcl_mobs.register_mob("mobs_mc:rover", {
|
||||
description = S("Rover"),
|
||||
type = "monster",
|
||||
spawn_class = "passive",
|
||||
|
@ -495,7 +495,7 @@ mcl_mobs.register_mob("mobs_mc:enderman", {
|
|||
|
||||
-- End spawn
|
||||
mcl_mobs:spawn_specific(
|
||||
"mobs_mc:enderman",
|
||||
"mobs_mc:rover",
|
||||
"end",
|
||||
"ground",
|
||||
{
|
||||
|
@ -515,7 +515,7 @@ mcl_vars.mg_end_min,
|
|||
mcl_vars.mg_end_max)
|
||||
-- Overworld spawn
|
||||
mcl_mobs:spawn_specific(
|
||||
"mobs_mc:enderman",
|
||||
"mobs_mc:rover",
|
||||
"overworld",
|
||||
"ground",
|
||||
{
|
||||
|
@ -664,7 +664,7 @@ mcl_vars.mg_overworld_max)
|
|||
|
||||
-- Nether spawn (rare)
|
||||
mcl_mobs:spawn_specific(
|
||||
"mobs_mc:enderman",
|
||||
"mobs_mc:rover",
|
||||
"nether",
|
||||
"ground",
|
||||
{
|
||||
|
@ -681,7 +681,7 @@ mcl_vars.mg_nether_max)
|
|||
|
||||
-- Warped Forest spawn (common)
|
||||
mcl_mobs:spawn_specific(
|
||||
"mobs_mc:enderman",
|
||||
"mobs_mc:rover",
|
||||
"nether",
|
||||
"ground",
|
||||
{
|
||||
|
@ -696,4 +696,4 @@ mcl_vars.mg_nether_min,
|
|||
mcl_vars.mg_nether_max)
|
||||
|
||||
-- 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
|
||||
|
||||
-- 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
|
||||
damage_particles(vector.add(pos, vector.multiply(self.object:get_velocity(), 0.1)), self._is_critical)
|
||||
end
|
||||
|
|
|
@ -470,7 +470,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
|||
end
|
||||
|
||||
-- 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
|
||||
damage_particles(self.object:get_pos(), self._is_critical)
|
||||
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.non_combat_armor_head=1
|
||||
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_texture = "mcl_farming_pumpkin_face.png"
|
||||
|
|
|
@ -39,7 +39,7 @@ end
|
|||
local doll_size_overrides = {
|
||||
["mobs_mc:guardian"] = { x = 0.6, y = 0.6 },
|
||||
["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:ghast"] = { x = 1.05, y = 1.05 },
|
||||
["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.
|
||||
if lua then
|
||||
if lua.name ~= "mobs_mc:enderman" then
|
||||
if lua.name ~= "mobs_mc:rover" then
|
||||
obj:punch(self.object, 1.0, {
|
||||
full_punch_interval=1.0,
|
||||
damage_groups={fleshy=self._damage},
|
||||
|
|
|
@ -34,7 +34,7 @@ end, function(minp,maxp,blockseed)
|
|||
table.shuffle(nn)
|
||||
if nn and #nn > 0 then
|
||||
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, 15, true)
|
||||
|
|
Loading…
Reference in a new issue