master
root 2021-01-17 11:10:57 +01:00
parent 4109e38567
commit 2b884e4897
15 changed files with 91 additions and 1 deletions

83
ccloth/init.lua Normal file
View File

@ -0,0 +1,83 @@
--
-- ccloth
-- License:GPLv3
--
--
-- Cool Cloth
--
local S = minetest.get_translator("ccloth")
--Gray Hoodie
player_api.register_cloth("ccloth:gray_hoodie", {
description = S("Gray Hoodie"),
texture = "ccloth_gray_hoodie.png",
inventory_image = "ccloth_gray_hoodie_inv.png",
wield_image = "ccloth_gray_hoodie_inv.png",
preview = "ccloth_gray_hoodie_preview.png",
gender = "unisex",
groups = {cloth = 2},
attach = "ccloth:gray_hoodie_hood",
})
player_api.register_cloth("ccloth:gray_hoodie_hood", {
attached = true,
texture = "ccloth_gray_hoodie_hood.png",
groups = {cloth = 1},
})
minetest.register_craft({
output = "ccloth:gray_hoodie",
type = "shaped",
recipe = {
{"fabric:grey", "", "fabric:grey"},
{"fabric:dark_grey", "fabric:white", "fabric:grey"},
{"fabric:dark_grey", "fabric:grey", "fabric:dark_grey"},
}
})
--Blue Jeans
player_api.register_cloth("ccloth:blue_jeans", {
description = S("Blue Jeans"),
texture = "ccloth_blue_jeans.png",
inventory_image = "ccloth_blue_jeans_inv.png",
wield_image = "ccloth_blue_jeans_inv.png",
preview = "ccloth_blue_jeans_preview.png",
gender = "unisex",
groups = {cloth = 3},
})
minetest.register_craft({
output = "ccloth:blue_jeans",
type = "shaped",
recipe = {
{"fabric:blue", "fabric:blue", "fabric:blue"},
{"fabric:white", "", "fabric:white"},
{"fabric:blue", "", "fabric:blue"},
}
})
--Black Sneakers
player_api.register_cloth("ccloth:black_sneakers", {
description = S("Black Sneakers"),
texture = "ccloth_black_sneakers.png",
inventory_image = "ccloth_black_sneakers_inv.png",
wield_image = "ccloth_black_sneakers_inv.png",
preview = "ccloth_black_sneakers_preview.png",
gender = "unisex",
groups = {cloth = 4},
})
minetest.register_craft({
output = "ccloth:black_sneakers",
type = "shaped",
recipe = {
{"farming:string", "", "farming:string"},
{"fabric:black", "", "fabric:black"},
{"", "", ""},
}
})

View File

@ -0,0 +1,4 @@
# textdomain: ccloth
Gray Hoodie=Sudadera gris con capucha
Blue Jeans=Pantalones vaqueros azules
Black Sneakers=Zapatillas deporte negras

3
ccloth/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = ccloth
description = More cool clothes
depends = player_api, fabric, farming

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -7,7 +7,7 @@ Hair=Color
Color=de pelo
Dark-haired=Moreno
Gray-haired=Canoso
Brown=Moreno
Brown=Castaño
Red-haired=Pelirrojo
Blonde=Rubio