0
0
Fork 0

Add saddle, fix mob texture names

This commit is contained in:
Wuzzy 2017-01-20 21:09:29 +01:00
parent 7ac1d3ec35
commit 709079f407
12 changed files with 13 additions and 7 deletions

View File

@ -412,8 +412,7 @@ minetest.register_tool("default:pole", {
elseif r == 4 then
itemname = "mobs:naming_tag"
elseif r == 5 then
itemname = "flowers:dandelion"
-- TODO itemname = "mobs:saddle"
itemname = "mcl_mobitems:saddle"
elseif r == 6 then
itemname = "flowers:waterlily"
end

View File

@ -192,6 +192,13 @@ minetest.register_craftitem("mcl_mobitems:rabbit_foot", {
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:saddle", {
description = "Saddle",
wield_image = "mcl_mobitems_saddle.png",
inventory_image = "mcl_mobitems_saddle.png",
stack_max = 1,
})
-----------
-- Crafting
-----------

View File

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

View File

@ -543,7 +543,7 @@ Frame Root {
96.078431;
0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;;
TextureFilename {"creeper.png";}
TextureFilename {"mobs_creeper.png";}
}
} // End of Creeper material list
XSkinMeshHeader {

View File

@ -551,7 +551,7 @@ Frame Root {
96.078431;
0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;;
TextureFilename {"skeleton.png";}
TextureFilename {"mobs_skeleton.png";}
}
} // End of Cube_001 material list
XSkinMeshHeader {

View File

@ -556,7 +556,7 @@ Frame Root {
96.078431;
0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;;
TextureFilename {"farmer.png";}
TextureFilename {"mobs_farmer.png";}
}
} // End of Cube_001 material list
XSkinMeshHeader {

View File

@ -58,7 +58,7 @@ mobs:register_mob("mobs_mc:pig", {
end
local item = clicker:get_wielded_item()
if item:get_name() == "mobs:saddle" and self.saddle ~= "yes" then
if item:get_name() == "mcl_mobitems:saddle" and self.saddle ~= "yes" then
self.object:set_properties({
textures = {"mobs_pig_with_saddle.png"},
})
@ -69,7 +69,7 @@ mobs:register_mob("mobs_mc:pig", {
chance = 1,
min = 1,
max = 3,},
{name = "mobs:saddle",
{name = "mcl_mobitems:saddle",
chance = 1,
min = 1,
max = 1,},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B