Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 100 B |
|
@ -25,27 +25,13 @@ for i in ipairs(source_list) do
|
|||
local red = source_list[i][4]
|
||||
local green = source_list[i][5]
|
||||
local blue = source_list[i][6]
|
||||
|
||||
if wieldskin == "white" then
|
||||
|
||||
wieldskin2 = "color_handwhite.png^(color_handwhite2.png^[colorize:#"..colour..":70)"
|
||||
|
||||
elseif wieldskin == "black" then
|
||||
|
||||
wieldskin2 = "color_handblack.png^(color_handwhite2.png^[colorize:#"..colour..":70)"
|
||||
|
||||
else
|
||||
|
||||
wieldskin2 = "color_handwhite.png^(color_handwhite2.png^[colorize:#"..colour..":70)"
|
||||
|
||||
end
|
||||
|
||||
minetest.register_node("color:" .. name, {
|
||||
|
||||
description = desc .. " color",
|
||||
inventory_image = "blocks.png^[colorize:#"..colour..":70",
|
||||
tiles = {"color_white.png^[colorize:#"..colour..":70"},
|
||||
wield_image = wieldskin2,
|
||||
wield_image = "color_handwhite.png^(color_handwhite2.png^[colorize:#"..colour..":70)",
|
||||
wield_scale = {x=1,y=1,z=0.5},
|
||||
is_ground_content = true,
|
||||
groups = {snappy = 2, choppy = 2, wool = 2},
|
||||
|
|
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 282 KiB |
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 459 B |
|
@ -53,33 +53,33 @@ local formspec = "size[8,7.5]"
|
|||
|
||||
-- Skin
|
||||
|
||||
.. "image_button[3.5,1;1,1;gui_hotbar_selected.png^".. skins_array.skin[indexes.skin]..";skin;]"
|
||||
.. "image_button[1.5,1;1,1;gui_hotbar_selected.png^gauche.png;skin_back;]"
|
||||
.. "image_button[5.5,1;1,1;gui_hotbar_selected.png^droite.png;skin_next;]"
|
||||
-- .. "image_button[3.5,1;1,1;gui_hotbar_selected.png^".. skins_array.skin[indexes.skin]..";skin;]"
|
||||
-- .. "image_button[1.5,1;1,1;gui_hotbar_selected.png^gauche.png;skin_back;]"
|
||||
-- .. "image_button[5.5,1;1,1;gui_hotbar_selected.png^droite.png;skin_next;]"
|
||||
|
||||
-- Eyes
|
||||
|
||||
.. "image_button[3.5,2;1,1;gui_hotbar_selected.png^".. skins_array.face[indexes.face]..";face;]"
|
||||
.. "image_button[1.5,2;1,1;gui_hotbar_selected.png^gauche.png;face_back;]"
|
||||
.. "image_button[5.5,2;1,1;gui_hotbar_selected.png^droite.png;face_next;]"
|
||||
.. "image_button[3.5,1.5;1,1;gui_hotbar_selected.png^".. skins_array.face[indexes.face]..";face;]"
|
||||
.. "image_button[1.5,1.5;1,1;gui_hotbar_selected.png^gauche.png;face_back;]"
|
||||
.. "image_button[5.5,1.5;1,1;gui_hotbar_selected.png^droite.png;face_next;]"
|
||||
|
||||
-- T-Shirt
|
||||
|
||||
.. "image_button[3.5,3;1,1;gui_hotbar_selected.png^".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
|
||||
.. "image_button[1.5,3;1,1;gui_hotbar_selected.png^gauche.png;tshirt_back;]"
|
||||
.. "image_button[5.5,3;1,1;gui_hotbar_selected.png^droite.png;tshirt_next;]"
|
||||
.. "image_button[3.5,2.5;1,1;gui_hotbar_selected.png^".. skins_array.tshirt[indexes.tshirt]..";tshirt;]"
|
||||
.. "image_button[1.5,2.5;1,1;gui_hotbar_selected.png^gauche.png;tshirt_back;]"
|
||||
.. "image_button[5.5,2.5;1,1;gui_hotbar_selected.png^droite.png;tshirt_next;]"
|
||||
|
||||
-- Pants
|
||||
|
||||
.. "image_button[3.5,4;1,1;gui_hotbar_selected.png^".. skins_array.pants[indexes.pants]..";pants;]"
|
||||
.. "image_button[1.5,4;1,1;gui_hotbar_selected.png^gauche.png;pants_back;]"
|
||||
.. "image_button[5.5,4;1,1;gui_hotbar_selected.png^droite.png;pants_next;]"
|
||||
.. "image_button[3.5,3.5;1,1;gui_hotbar_selected.png^".. skins_array.pants[indexes.pants]..";pants;]"
|
||||
.. "image_button[1.5,3.5;1,1;gui_hotbar_selected.png^gauche.png;pants_back;]"
|
||||
.. "image_button[5.5,3.5;1,1;gui_hotbar_selected.png^droite.png;pants_next;]"
|
||||
|
||||
-- Shoes
|
||||
|
||||
.. "image_button[3.5,5;1,1;gui_hotbar_selected.png^".. skins_array.shoes[indexes.shoes]..";shoes;]"
|
||||
.. "image_button[1.5,5;1,1;gui_hotbar_selected.png^gauche.png;shoes_back;]"
|
||||
.. "image_button[5.5,5;1,1;gui_hotbar_selected.png^droite.png;shoes_next;]"
|
||||
.. "image_button[3.5,4.5;1,1;gui_hotbar_selected.png^".. skins_array.shoes[indexes.shoes]..";shoes;]"
|
||||
.. "image_button[1.5,4.5;1,1;gui_hotbar_selected.png^gauche.png;shoes_back;]"
|
||||
.. "image_button[5.5,4.5;1,1;gui_hotbar_selected.png^droite.png;shoes_next;]"
|
||||
|
||||
-- Done
|
||||
|
||||
|
@ -173,22 +173,6 @@ local function change_skin(player)
|
|||
})
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
wieldskin3 = player:get_attribute("character_creator:skin")
|
||||
|
||||
if wieldskin3 == "skinwhite.png" then
|
||||
|
||||
wieldskin = "white"
|
||||
|
||||
elseif wieldskin3 == "skinblack.png" then
|
||||
|
||||
wieldskin = "black"
|
||||
|
||||
else
|
||||
|
||||
wieldskin = "white"
|
||||
|
||||
end
|
||||
|
||||
if minetest.get_modpath("multiskin") then
|
||||
multiskin.layers[name].skin = texture
|
||||
|
|
|
@ -3,7 +3,6 @@ return {
|
|||
skin = {
|
||||
|
||||
["skinwhite.png"] = "cc_skin_white.png",
|
||||
["skinblack.png"] = "cc_skin_black.png",
|
||||
|
||||
},
|
||||
|
||||
|
|
Before Width: | Height: | Size: 764 B |
|
@ -2,7 +2,7 @@
|
|||
-- Aliases for map generators
|
||||
--
|
||||
|
||||
minetest.register_alias("mapgen_stone","comboblock:slab_black_onc_slab_black")
|
||||
minetest.register_alias("mapgen_stone","color:black")
|
||||
|
||||
minetest.register_alias("mapgen_dirt","comboblock:slab_orange_onc_slab_orange")
|
||||
|
||||
|
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 277 B |