[Mod] Clothing [WIP] [clothing]

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

[Mod] Clothing [WIP] [clothing]

by stu » Post

Adds coloured clothing to Minetest Game.

Image
Image

Depends: multiskin (available as part of the minetest-3d_armor 0.5.0-dev branch)

Recommends: inventory_plus or unified_inventory (use only one), the wool mod is required for craft registration.

Download: ZIP archive

Browse Code: GitHub

This is a work in progress and something of an experiment, you will need to install the development branch of the minetest-3d_armor modpack to satisfy the dependency, although you can now disable the 3d_armor and/or wieldview mods if don't wish to use those.

Other mods can register additional clothing by simply adding a clothing=1 group element, the craftitem definition should also include an invertory_image, and a uv_image. (see init.lua)

Updated: 10 May, 2015

Add loom machine by Don (Batman)

Simple clothing can be made from coloured wools using the loom.

TODO:

While I do like the simplicity of the current crafting system, I would eventually like to add a few more levels (and machines) to the process.

Spinning Machine

Produces white yarn from a number of possible substrates. (cotton, wool, etc.)

Loom

Produces white fabric from the white yarn.

Dye Machine (possibly)
Otherwise, white fabric can simply be mixed with dye to produce coloured fabric.

Sewing Machine

Produces clothing from the coloured fabric in much the same way as the loom does currently.

It would also be nice if the machines could be automated using mesecons, for example.

Opinions and models are welcomed ;-)
Last edited by stu on Wed May 11, 2016 20:14, edited 19 times in total.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Wool Clothing - Wool Clothing [WIP] [clothing]

by philipbenr » Post

Looks pretty good. If there were to be better textures, then it would be similar to others, but this so far looks like the best of all (doesn't switch skins)

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: Wool Clothing - Wool Clothing [WIP] [clothing]

by stu » Post

philipbenr wrote:Looks pretty good. If there were to be better textures, then it would be similar to others, but this so far looks like the best of all (doesn't switch skins)
As I hinted at in the top post, i am already thinking it might be better to just add a sh*t load of textures that would allow for a much greater level of detail.

The problem for me the is drawing them all, but then this is on github and pull requests are always welcomed :-)

TG-MyinaWD
Member
Posts: 356
Joined: Thu May 08, 2014 21:22
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .
Location: Far Eden

Re: Wool Clothing - Wool Clothing [WIP] [clothing]

by TG-MyinaWD » Post

Wow neat. I just got a idea for this be used as. Or remix to be used for long ok with you. Don't worry everyone mod I plan add into the whole thing is credit for. even if say didn't need credit but I do.

Anyway, so is it cool i use this mod and try turn it into a Robe kinda thing for The first ever maybe Team Made Subgame HarryPotterTest?

Just might need make the right colors etc. And if can make it so turn play invisible as if wearing the invisible cloak be cool to.

Anyway, I hope can somehow make an Witch/Wizard Hat.

But I Hope it work the robe idea.

Now I think maybe crafting can be maybe like so for the wool part. Idk change to for HPT.

Code: Select all

>Crafting Blueprints<

Hat:
CCC
CDC
XXX

Shirt:
CCC
CDC
CXC

Pants:
XDX
CCC
CXC

C: Cotton
X: Nothing
D: Dye (Whatever color use will get you that color like red be red etc)
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Wool Clothing - Wool Clothing [WIP] [clothing]

by Don » Post

Awesome! +1
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Clothing [WIP] [clothing]

by Sokomine » Post

Very nice! Finally something to wear that's not armor! As for crafting: A loom would be nice. It could turn wool and dye into clothes.
A list of my mods can be found here.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Clothing [WIP] [clothing]

by ExeterDad » Post

Sokomine wrote:Very nice! Finally something to wear that's not armor! As for crafting: A loom would be nice. It could turn wool and dye into clothes.
Clever idea!

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Clothing [WIP] [clothing]

by Minetestforfun » Post

Really great idea, it gives many more clothing possibilities !

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

Alt. Tester wrote:Anyway, so is it cool i use this mod and try turn it into a Robe kinda thing for The first ever maybe Team Made Subgame HarryPotterTest?
Sorry for the late reply, you are welcome to use the mod under the terms of LGPL v2.1 (so yes)
Thank you for the crafting suggestions, I have now incorporated them in the mod (with a few minor changes)
Sokomine wrote:A loom would be nice. It could turn wool and dye into clothes.
Yes, that is the sort of thing I was thinking about, just not quite sure how it should work.

There has been some updates made to ths mod since I first posted and to 3d_armor multiskin.
If you are updating from an earlier version you will also need to use the updated multiskin mod.

Thank you to all for the kind and encouraging comments.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Clothing [WIP] [clothing]

by Don » Post

Did you need help making a loom?
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

Don wrote:Did you need help making a loom?
If you have some idea (better still some code) I would be very happy to include it ;-)

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Clothing [WIP] [clothing]

by Don » Post

stu wrote:
Don wrote:Did you need help making a loom?
If you have some idea (better still some code) I would be very happy to include it ;-)
I will put something together for a loom.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

Don wrote:
stu wrote:
Don wrote:Did you need help making a loom?
If you have some idea (better still some code) I would be very happy to include it ;-)
I will put something together for a loom.
I finally got a chance to add this, awesome job with the loom model, btw.
See updated screenshot in the top post.

Note that the multiskin branch of 3d_armor has recently been re-based and updated, you will need to install the most recent version to avoid problems.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Clothing [WIP] [clothing]

by Sokomine » Post

The loom looks very nice. Hopefully the mod will be available on servers soon.
A list of my mods can be found here.

tinoesroho
Member
Posts: 570
Joined: Fri Feb 17, 2012 21:55
Location: Canada

Re: [Mod] Clothing [WIP] [clothing]

by tinoesroho » Post

This is what we've all been waiting for. You're awesome, stu! ;-)

User avatar
oleastre
Member
Posts: 81
Joined: Wed Aug 13, 2014 21:39
GitHub: oleastre
In-game: oleastre

Re: [Mod] Clothing [WIP] [clothing]

by oleastre » Post

First, I really like this mod... creating your clothes in game is a lot more fun than just changing a skin.

I just have a simple question about the current loom machine recipe: would you consider a pull request that replace the current default:pinewood with group:wood to simplify the use of your mod in old worlds ?

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Clothing [WIP] [clothing]

by Sokomine » Post

MirceaKitsune just showed in his Creatures mod that skins can now be composed of diffrent textures, with color just beeing a modifier string added to the texture name. That could be very helpful for this mod as well and allow for even more diverse clothing with a minimum of textures.

The clothing mod is now supported by my colormachine as well.
A list of my mods can be found here.

tinoesroho
Member
Posts: 570
Joined: Fri Feb 17, 2012 21:55
Location: Canada

Re: [Mod] Clothing [WIP] [clothing]

by tinoesroho » Post

Sokomine wrote:MirceaKitsune just showed in his Creatures mod that skins can now be composed of diffrent textures, with color just beeing a modifier string added to the texture name.
That's awesome. No, seriously: that is awesome.

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Clothing [WIP] [clothing]

by Nathan.S » Post

Multiskin doesn't seem to be a part of the 3d_armor, even in the multiskin branch. Am I just missing something, I'd really like to give this mod a try, it looks pretty nice.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

Nathan.S wrote:Multiskin doesn't seem to be a part of the 3d_armor, even in the multiskin branch. Am I just missing something, I'd really like to give this mod a try, it looks pretty nice.
Funny enough I just noticed this myself barely 30 mins ago, obviously a borked rebase :/
I have since force pushed a backup copy I made prior the rebase but thanks for reporting it all the same.

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod] Clothing [WIP] [clothing]

by Nathan.S » Post

Sweetsauce, I'll probably be doing a mod review video on this next week. Wanted to today but couldn't get it to work.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Clothing [WIP] [clothing]

by amadin » Post

Multiskin branch last edited on 8 August but 3d_armor mod which i use now updated 5 days ago. If i replace 3d_armor mod by multiskin branch I'm afraid the other mods which using 3d_armor will work incorrect (for example enchantment table from xdecor mod).

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

amadin wrote:Multiskin branch last edited on 8 August but 3d_armor mod which i use now updated 5 days ago. If i replace 3d_armor mod by multiskin branch I'm afraid the other mods which using 3d_armor will work incorrect (for example enchantment table from xdecor mod).
You are right, the multiskin branch is a little bit out of date and needs to be rebased against current master. Unfortunately there are now a large number of merge conflicts so it is no longer a straightforward exercise. You could try to cherry-pick any specific features you require, for example the xdecor support is just a one liner after all ;-)

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Clothing [WIP] [clothing]

by amadin » Post

I don't know lua so i don't undestand how to do this for xdecor or other mod

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: [Mod] Clothing [WIP] [clothing]

by stu » Post

amadin wrote:I don't know lua so i don't undestand how to do this for xdecor or other mod
For xdecor simply find this line in armor.lua

Code: Select all

local texture = item:gsub("%:", "_")
and replace it with

Code: Select all

local texture = def.texture or item:gsub("%:", "_")
The rest of the changes should not cause any real problems for now. I will rebase the multiskin branch when I get time.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests