mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
mobs_mc: Item names
This commit is contained in:
parent
0257a4104c
commit
7fa7afba54
@ -20,11 +20,11 @@ mobs:register_mob("mobs_mc:cow", {
|
|||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
armor = 200,
|
armor = 200,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:beef_raw",
|
{name = "mcl_mobitems:beef_raw",
|
||||||
chance = 1,
|
chance = 1,
|
||||||
min = 1,
|
min = 1,
|
||||||
max = 3,},
|
max = 3,},
|
||||||
{name = "mobs:leather",
|
{name = "mcl_mobitems:leather",
|
||||||
chance = 1,
|
chance = 1,
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 2,},
|
max = 2,},
|
||||||
@ -107,12 +107,12 @@ mobs:register_mob("mobs_mc:cow", {
|
|||||||
|
|
||||||
inv:remove_item("main", "bucket:bucket_empty")
|
inv:remove_item("main", "bucket:bucket_empty")
|
||||||
|
|
||||||
if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then
|
if inv:room_for_item("main", {name = "mcl_mobitems:milk"}) then
|
||||||
clicker:get_inventory():add_item("main", "mobs:bucket_milk")
|
clicker:get_inventory():add_item("main", "mcl_mobitems:milk")
|
||||||
else
|
else
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
pos.y = pos.y + 0.5
|
pos.y = pos.y + 0.5
|
||||||
minetest.add_item(pos, {name = "mobs:bucket_milk"})
|
minetest.add_item(pos, {name = "mcl_mobitems:milk"})
|
||||||
end
|
end
|
||||||
|
|
||||||
self.gotten = true -- milked
|
self.gotten = true -- milked
|
||||||
|
@ -35,42 +35,10 @@ mobs:register_mob("mobs_mc:creeper", {
|
|||||||
armor = 200,
|
armor = 200,
|
||||||
maxdrops = 3,
|
maxdrops = 3,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "tnt:gunpowder",
|
{name = "default:gunpowder",
|
||||||
chance = 1,
|
chance = 1,
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 2,},
|
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 = {
|
animation = {
|
||||||
speed_normal = 24,
|
speed_normal = 24,
|
||||||
|
@ -37,7 +37,7 @@ mobs:register_mob("mobs_mc:enderman", {
|
|||||||
chance = 11,
|
chance = 11,
|
||||||
min = 1,
|
min = 1,
|
||||||
max = 1,},
|
max = 1,},
|
||||||
{name = "farorb:farorb",
|
{name = "mcl_ender_pearl:ender_pearl",
|
||||||
chance = 3,
|
chance = 3,
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 1,},
|
max = 1,},
|
||||||
|
@ -224,8 +224,8 @@ mobs:register_mob("mobs_mc:horse", {
|
|||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local tool = clicker:get_wielded_item()
|
local tool = clicker:get_wielded_item()
|
||||||
if tool:get_name() == "mobs:saddle" then
|
if tool:get_name() == "mcl_mobitems:saddle" then
|
||||||
clicker:get_inventory():remove_item("main", "mobs:saddle")
|
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
minetest.add_entity(pos, "mobs_mc:horseh1")
|
minetest.add_entity(pos, "mobs_mc:horseh1")
|
||||||
@ -267,8 +267,8 @@ mobs:register_mob("mobs_mc:horse2", {
|
|||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local tool = clicker:get_wielded_item()
|
local tool = clicker:get_wielded_item()
|
||||||
if tool:get_name() == "mobs:saddle" then
|
if tool:get_name() == "mcl_mobitems:saddle" then
|
||||||
clicker:get_inventory():remove_item("main", "mobs:saddle")
|
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
minetest.add_entity(pos, "mobs_mc:horsepegh1")
|
minetest.add_entity(pos, "mobs_mc:horsepegh1")
|
||||||
@ -310,8 +310,8 @@ mobs:register_mob("mobs_mc:horse3", {
|
|||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local tool = clicker:get_wielded_item()
|
local tool = clicker:get_wielded_item()
|
||||||
if tool:get_name() == "mobs:saddle" then
|
if tool:get_name() == "mcl_mobitems:saddle" then
|
||||||
clicker:get_inventory():remove_item("main", "mobs:saddle")
|
clicker:get_inventory():remove_item("main", "mcl_mobitems:saddle")
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
minetest.add_entity(pos, "mobs_mc:horsearah1")
|
minetest.add_entity(pos, "mobs_mc:horsearah1")
|
||||||
|
@ -48,7 +48,7 @@ mobs:register_mob("mobs_mc:dog", {
|
|||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
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() == "mobs:meat_raw" then
|
if item:get_name() == "mcl_mobitems:meat_raw" then
|
||||||
local hp = self.object:get_hp()
|
local hp = self.object:get_hp()
|
||||||
if hp + 4 > self.hp_max then return end
|
if hp + 4 > self.hp_max then return end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
@ -142,7 +142,7 @@ mobs:register_mob("mobs_mc:wolf", {
|
|||||||
armor = 200,
|
armor = 200,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
drops = {
|
drops = {
|
||||||
{name = "mobs:meat_raw",
|
{name = "mcl_mobitems:meat_raw",
|
||||||
chance = 1,
|
chance = 1,
|
||||||
min = 2,
|
min = 2,
|
||||||
max = 3,},
|
max = 3,},
|
||||||
|
Loading…
Reference in New Issue
Block a user