Add textures for all professions
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_armorer.png
Normal file
After Width: | Height: | Size: 971 B |
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 989 B |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_cartographer.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 1.1 KiB |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_fisherman.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_fletcher.png
Normal file
After Width: | Height: | Size: 950 B |
After Width: | Height: | Size: 933 B |
Before Width: | Height: | Size: 896 B After Width: | Height: | Size: 1.1 KiB |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_nitwit.png
Normal file
After Width: | Height: | Size: 1008 B |
Before Width: | Height: | Size: 768 B After Width: | Height: | Size: 921 B |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_sheperd.png
Normal file
After Width: | Height: | Size: 983 B |
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 941 B |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_toolsmith.png
Normal file
After Width: | Height: | Size: 964 B |
BIN
mods/ENTITIES/mobs_mc/textures/mobs_mc_villager_weaponsmith.png
Normal file
After Width: | Height: | Size: 967 B |
|
@ -126,8 +126,8 @@ local professions = {
|
||||||
fisherman = {
|
fisherman = {
|
||||||
name = N("Fisherman"),
|
name = N("Fisherman"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_fisherman.png",
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_fisherman.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_barrels:barrel_closed",
|
jobsite = "mcl_barrels:barrel_closed",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -164,8 +164,8 @@ local professions = {
|
||||||
fletcher = {
|
fletcher = {
|
||||||
name = N("Fletcher"),
|
name = N("Fletcher"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_fletcher.png",
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_fletcher.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_fletching_table:fletching_table",
|
jobsite = "mcl_fletching_table:fletching_table",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -206,8 +206,8 @@ local professions = {
|
||||||
shepherd ={
|
shepherd ={
|
||||||
name = N("Shepherd"),
|
name = N("Shepherd"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_sheperd.png",
|
||||||
"mobs_mc_villager_farmer.png",
|
"mobs_mc_villager_sheperd.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_loom:loom",
|
jobsite = "mcl_loom:loom",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -277,8 +277,8 @@ local professions = {
|
||||||
cartographer = {
|
cartographer = {
|
||||||
name = N("Cartographer"),
|
name = N("Cartographer"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_librarian.png",
|
"mobs_mc_villager_cartographer.png",
|
||||||
"mobs_mc_villager_librarian.png",
|
"mobs_mc_villager_cartographer.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_cartography_table:cartography_table",
|
jobsite = "mcl_cartography_table:cartography_table",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -323,8 +323,8 @@ local professions = {
|
||||||
armorer = {
|
armorer = {
|
||||||
name = N("Armorer"),
|
name = N("Armorer"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_armorer.png",
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_armorer.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_blast_furnace:blast_furnace",
|
jobsite = "mcl_blast_furnace:blast_furnace",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -363,8 +363,8 @@ local professions = {
|
||||||
leatherworker = {
|
leatherworker = {
|
||||||
name = N("Leatherworker"),
|
name = N("Leatherworker"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_butcher.png",
|
"mobs_mc_villager_leatherworker.png",
|
||||||
"mobs_mc_villager_butcher.png",
|
"mobs_mc_villager_leatherworker.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_cauldrons:cauldron",
|
jobsite = "mcl_cauldrons:cauldron",
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -428,8 +428,8 @@ local professions = {
|
||||||
weapon_smith = {
|
weapon_smith = {
|
||||||
name = N("Weapon Smith"),
|
name = N("Weapon Smith"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_weaponsmith.png",
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_weaponsmith.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_furnaces:furnace", --FIXME: grindstone
|
jobsite = "mcl_furnaces:furnace", --FIXME: grindstone
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -459,8 +459,8 @@ local professions = {
|
||||||
tool_smith = {
|
tool_smith = {
|
||||||
name = N("Tool Smith"),
|
name = N("Tool Smith"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_toolsmith.png",
|
||||||
"mobs_mc_villager_smith.png",
|
"mobs_mc_villager_toolsmith.png",
|
||||||
},
|
},
|
||||||
jobsite = "mcl_anvils:anvil", --FIXME: smithing table
|
jobsite = "mcl_anvils:anvil", --FIXME: smithing table
|
||||||
trades = {
|
trades = {
|
||||||
|
@ -528,8 +528,8 @@ local professions = {
|
||||||
nitwit = {
|
nitwit = {
|
||||||
name = N("Nitwit"),
|
name = N("Nitwit"),
|
||||||
textures = {
|
textures = {
|
||||||
"mobs_mc_villager.png",
|
"mobs_mc_villager_nitwit.png",
|
||||||
"mobs_mc_villager.png",
|
"mobs_mc_villager_nitwit.png",
|
||||||
},
|
},
|
||||||
-- No trades for nitwit
|
-- No trades for nitwit
|
||||||
trades = nil,
|
trades = nil,
|
||||||
|
@ -1357,6 +1357,9 @@ mobs:register_mob("mobs_mc:villager", {
|
||||||
end
|
end
|
||||||
self._id=minetest.sha1(minetest.get_gametime()..minetest.pos_to_string(self.object:get_pos())..tostring(math.random()))
|
self._id=minetest.sha1(minetest.get_gametime()..minetest.pos_to_string(self.object:get_pos())..tostring(math.random()))
|
||||||
self._profession = "unemployed"
|
self._profession = "unemployed"
|
||||||
|
if math.random(100) == 1 then
|
||||||
|
self._profession = "nitwit"
|
||||||
|
end
|
||||||
set_textures(self)
|
set_textures(self)
|
||||||
end,
|
end,
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
|
|