1
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 elseif r == 4 then
itemname = "mobs:naming_tag" itemname = "mobs:naming_tag"
elseif r == 5 then elseif r == 5 then
itemname = "flowers:dandelion" itemname = "mcl_mobitems:saddle"
-- TODO itemname = "mobs:saddle"
elseif r == 6 then elseif r == 6 then
itemname = "flowers:waterlily" itemname = "flowers:waterlily"
end end

View File

@ -192,6 +192,13 @@ minetest.register_craftitem("mcl_mobitems:rabbit_foot", {
stack_max = 64, 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 -- 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; 96.078431;
0.500000; 0.500000; 0.500000;; 0.500000; 0.500000; 0.500000;;
0.000000; 0.000000; 0.000000;; 0.000000; 0.000000; 0.000000;;
TextureFilename {"creeper.png";} TextureFilename {"mobs_creeper.png";}
} }
} // End of Creeper material list } // End of Creeper material list
XSkinMeshHeader { XSkinMeshHeader {

View File

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

View File

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

View File

@ -58,7 +58,7 @@ mobs:register_mob("mobs_mc:pig", {
end end
local item = clicker:get_wielded_item() 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({ self.object:set_properties({
textures = {"mobs_pig_with_saddle.png"}, textures = {"mobs_pig_with_saddle.png"},
}) })
@ -69,7 +69,7 @@ mobs:register_mob("mobs_mc:pig", {
chance = 1, chance = 1,
min = 1, min = 1,
max = 3,}, max = 3,},
{name = "mobs:saddle", {name = "mcl_mobitems:saddle",
chance = 1, chance = 1,
min = 1, min = 1,
max = 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