mobs_mc: Item names

This commit is contained in:
Wuzzy 2017-01-16 18:20:06 +01:00
parent 0257a4104c
commit 7fa7afba54
5 changed files with 15 additions and 47 deletions

View File

@ -20,11 +20,11 @@ mobs:register_mob("mobs_mc:cow", {
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:beef_raw",
{name = "mcl_mobitems:beef_raw",
chance = 1,
min = 1,
max = 3,},
{name = "mobs:leather",
{name = "mcl_mobitems:leather",
chance = 1,
min = 0,
max = 2,},
@ -107,12 +107,12 @@ mobs:register_mob("mobs_mc:cow", {
inv:remove_item("main", "bucket:bucket_empty")
if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
if inv:room_for_item("main", {name = "mcl_mobitems:milk"}) then
clicker:get_inventory():add_item("main", "mcl_mobitems:milk")
else
local pos = self.object:getpos()
pos.y = pos.y + 0.5
minetest.add_item(pos, {name = "mobs:bucket_milk"})
minetest.add_item(pos, {name = "mcl_mobitems:milk"})
end
self.gotten = true -- milked

View File

@ -35,42 +35,10 @@ mobs:register_mob("mobs_mc:creeper", {
armor = 200,
maxdrops = 3,
drops = {
{name = "tnt:gunpowder",
{name = "default:gunpowder",
chance = 1,
min = 0,
max = 2,},
{name = "default:flint_and_steel",
chance = 1,
min = 0,
max = 1,},
{name = "farorb:farorb",
chance = 1,
min = 0,
max = 1,},
{name = "jdukebox:disc_1",
chance = 10,
min = 0,
max = 1,},
{name = "jdukebox:disc_2",
chance = 10,
min = 0,
max = 1,},
{name = "jdukebox:disc_3",
chance = 10,
min = 0,
max = 1,},
{name = "jdukebox:disc_4",
chance = 10,
min = 0,
max = 1,},
{name = "jdukebox:disc_5",
chance = 10,
min = 0,
max = 1,},
{name = "jdukebox:disc_6",
chance = 10,
min = 0,
max = 1,},
},
animation = {
speed_normal = 24,

View File

@ -37,7 +37,7 @@ mobs:register_mob("mobs_mc:enderman", {
chance = 11,
min = 1,
max = 1,},
{name = "farorb:farorb",
{name = "mcl_ender_pearl:ender_pearl",
chance = 3,
min = 0,
max = 1,},

View File

@ -224,8 +224,8 @@ mobs:register_mob("mobs_mc:horse", {
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
if tool:get_name() == "mcl_mobitems:saddle" then
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horseh1")
@ -267,8 +267,8 @@ mobs:register_mob("mobs_mc:horse2", {
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
if tool:get_name() == "mcl_mobitems:saddle" then
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horsepegh1")
@ -310,8 +310,8 @@ mobs:register_mob("mobs_mc:horse3", {
on_rightclick = function(self, clicker)
local tool = clicker:get_wielded_item()
if tool:get_name() == "mobs:saddle" then
clicker:get_inventory():remove_item("main", "mobs:saddle")
if tool:get_name() == "mcl_mobitems:saddle" then
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
local pos = self.object:getpos()
self.object:remove()
minetest.add_entity(pos, "mobs_mc:horsearah1")

View File

@ -48,7 +48,7 @@ mobs:register_mob("mobs_mc:dog", {
light_damage = 0,
on_rightclick = function(self, clicker)
local item = clicker:get_wielded_item()
if item:get_name() == "mobs:meat_raw" then
if item:get_name() == "mcl_mobitems:meat_raw" then
local hp = self.object:get_hp()
if hp + 4 > self.hp_max then return end
if not minetest.setting_getbool("creative_mode") then
@ -142,7 +142,7 @@ mobs:register_mob("mobs_mc:wolf", {
armor = 200,
attack_type = "dogfight",
drops = {
{name = "mobs:meat_raw",
{name = "mcl_mobitems:meat_raw",
chance = 1,
min = 2,
max = 3,},