mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 15:23:00 +00:00
Fix some itemstrings in mobs_mc
This commit is contained in:
parent
d201216fb5
commit
3e5988a853
5 changed files with 10 additions and 10 deletions
|
@ -87,7 +87,7 @@ mobs:register_mob("mobs_mc:chicken", {
|
||||||
end,
|
end,
|
||||||
]]
|
]]
|
||||||
--from mobs_animals
|
--from mobs_animals
|
||||||
follow = {"farming:seed_wheat", "farming:seed_cotton"},
|
follow = {"mcl_farming:wheat_seeds", "mcl_farming:beetroot_seeds", "mcl_farming:pumpkin_seeds", "mcl_farming:melon_seeds"},
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
|
|
|
@ -54,12 +54,12 @@ mobs:register_mob("mobs_mc:enderman", {
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
replace_rate = 1,
|
replace_rate = 1,
|
||||||
replace_what = {"mcl_torches:torch","mcl_core:sand","mcl_core:desert_sand","mcl_core:cobble","mcl_core:dirt","mcl_core:dirt_with_glass","mcl_core:dirt_with_dry_grass","mcl_core:wood","mcl_core:stone","mcl_core:sandstone"},
|
replace_what = {"mcl_torches:torch","mcl_core:sand","mcl_core:desert_sand","mcl_core:cobble","mcl_core:dirt","mcl_core:dirt_with_glass","mcl_core:wood","mcl_core:stone","mcl_core:sandstone"},
|
||||||
replace_with = "air",
|
replace_with = "air",
|
||||||
replace_offset = -1,
|
replace_offset = -1,
|
||||||
|
|
||||||
})
|
})
|
||||||
mobs:register_spawn("mobs_mc:enderman", { "mcl_core:sand", "mcl_core:desert_sand"}, 5, -1, 5000, 4, 31000)
|
mobs:register_spawn("mobs_mc:enderman", { "mcl_core:sand", "mcl_core:redsand"}, 5, -1, 5000, 4, 31000)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ mobs:register_spawn("mobs_mc:ghast", {"mcl_core:lava_flowing", "mcl_nether:nethe
|
||||||
-- Ghast fireball
|
-- Ghast fireball
|
||||||
mobs:register_arrow("mobs_mc:ghast_fireball", {
|
mobs:register_arrow("mobs_mc:ghast_fireball", {
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x = 0.5, y = 0.5},
|
visual_size = {x = 0.8, y = 0.8},
|
||||||
textures = {"mcl_fire_fire_charge.png"},
|
textures = {"mcl_fire_fire_charge.png"},
|
||||||
velocity = 6,
|
velocity = 6,
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ mobs:register_mob("mobs_mc:horse", {
|
||||||
stand_start = 25, stand_end = 75,
|
stand_start = 25, stand_end = 75,
|
||||||
walk_start = 75, walk_end = 100,
|
walk_start = 75, walk_end = 100,
|
||||||
},
|
},
|
||||||
follow = "farming:wheat",
|
follow = "mcl_farming:wheat_item",
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
|
@ -262,7 +262,7 @@ mobs:register_mob("mobs_mc:horse2", {
|
||||||
stand_start = 25, stand_end = 75,
|
stand_start = 25, stand_end = 75,
|
||||||
walk_start = 75, walk_end = 100,
|
walk_start = 75, walk_end = 100,
|
||||||
},
|
},
|
||||||
follow = "farming:wheat",
|
follow = "mcl_farming:wheat_item",
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
|
@ -305,7 +305,7 @@ mobs:register_mob("mobs_mc:horse3", {
|
||||||
stand_start = 25, stand_end = 75,
|
stand_start = 25, stand_end = 75,
|
||||||
walk_start = 75, walk_end = 100,
|
walk_start = 75, walk_end = 100,
|
||||||
},
|
},
|
||||||
follow = "farming:wheat",
|
follow = "mcl_farming:wheat_item",
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
|
|
|
@ -56,12 +56,12 @@ mobs:register_mob("mobs_mc:sheep", {
|
||||||
look_start = 78,
|
look_start = 78,
|
||||||
look_end = 108,
|
look_end = 108,
|
||||||
},
|
},
|
||||||
follow = "farming:wheat",
|
follow = "mcl_farming:wheat_item",
|
||||||
view_range = 5,
|
view_range = 5,
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
if item:get_name() == "farming:wheat" then
|
if item:get_name() == "mcl_farming:wheat_item" then
|
||||||
if not self.tamed then
|
if not self.tamed then
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
item:take_item()
|
item:take_item()
|
||||||
|
@ -84,7 +84,7 @@ mobs:register_mob("mobs_mc:sheep", {
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if item:get_name() == "mobs:shears" and not self.naked then
|
if item:get_name() == "mcl_core:shears" and not self.naked then
|
||||||
self.naked = true
|
self.naked = true
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
minetest.sound_play("shears", {pos = pos})
|
minetest.sound_play("shears", {pos = pos})
|
||||||
|
|
Loading…
Reference in a new issue