Update 'npc.lua'

This commit is contained in:
thunderdog1138 2020-11-23 20:28:45 +00:00
parent f00ed215c8
commit 8dd029d8ab
1 changed files with 40 additions and 7 deletions

47
npc.lua
View File

@ -13,15 +13,48 @@ normal = {
}
--Skin gen
local normal_skin = {'human_skin-tan1.png', 'human_skin-light1.png', 'human_skin-light2.png', 'human_skin-dark1.png', 'human_skin-dark2.png'}
local normal_hair = {'hair_short-brown.png', 'hair_short-grey.png'}
local normal_shirt = {'shirt_normal-blue.png', 'shirt_normal-red.png'}
local normal_shoes = {'shoes_normal-black.png', 'shoes_normal-yellow.png'}
local normal_pants = {'pants_normal-green.png', 'pants_normal-purple.png'}
local normal_face = {'face-1.png', 'face-2.png'}
local normal_skin = {
'human_skin-tan1.png',
'human_skin-light1.png',
'human_skin-light2.png',
'human_skin-dark1.png',
'human_skin-dark2.png'
}
local normal_hair = {
'hair_short-brown.png',
'hair_short-grey.png'
}
local normal_shirt = {
'shirt_normal-blue.png',
'shirt_normal-red.png'
}
local normal_shoes = {
'shoes_normal-black.png',
'shoes_normal-yellow.png'
}
local normal_pants = {
'pants_normal-green.png',
'pants_normal-purple.png'
}
local normal_face = {
'face-1.png',
'face-2.png'
}
for i = 1, 100 do
table.insert(normal.skins, {normal_skin[math.random(5)]..'^'..normal_face[math.random(2)]..'^'..normal_shirt[math.random(2)]..'^'..normal_shoes[math.random(2)]..'^'..normal_pants[math.random(2)]..'^'..normal_hair[math.random(2)]})
table.insert(normal.skins, {
normal_skin[math.random(5)] .. '^'
.. normal_face[math.random(2)] .. '^'
.. normal_shirt[math.random(2)] .. '^'
.. normal_shoes[math.random(2)] .. '^'
.. normal_pants[math.random(2)] .. '^'
.. normal_hair[math.random(2)]
})
end
mobs:register_mob("mobs_npc:npc", {