Page 1 of 2

[Mod] Clothing [WIP] [clothing]

PostPosted: Sun Mar 01, 2015 21:33
by stu
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 ;-)

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

PostPosted: Sun Mar 01, 2015 22:20
by philipbenr
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)

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

PostPosted: Sun Mar 01, 2015 22:42
by stu
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 :-)

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

PostPosted: Mon Mar 02, 2015 04:44
by TG-MyinaWD
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)

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

PostPosted: Mon Mar 02, 2015 05:01
by Don
Awesome! +1

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

PostPosted: Tue Mar 17, 2015 23:29
by Sokomine
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.

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

PostPosted: Wed Mar 18, 2015 03:09
by ExeterDad
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!

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

PostPosted: Wed Mar 18, 2015 11:12
by Minetestforfun
Really great idea, it gives many more clothing possibilities !

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

PostPosted: Wed Mar 18, 2015 19:33
by stu
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.

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

PostPosted: Wed Mar 18, 2015 20:16
by Don
Did you need help making a loom?

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

PostPosted: Wed Mar 18, 2015 20:21
by stu
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 ;-)

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

PostPosted: Wed Mar 18, 2015 20:40
by Don
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.

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

PostPosted: Sun May 10, 2015 15:36
by stu
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.

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

PostPosted: Mon May 18, 2015 21:17
by Sokomine
The loom looks very nice. Hopefully the mod will be available on servers soon.

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

PostPosted: Wed May 20, 2015 15:47
by tinoesroho
This is what we've all been waiting for. You're awesome, stu! ;-)

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

PostPosted: Wed May 20, 2015 16:15
by oleastre
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 ?

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

PostPosted: Sat May 23, 2015 04:34
by Sokomine
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.

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

PostPosted: Sat May 23, 2015 05:07
by tinoesroho
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.

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

PostPosted: Wed Dec 02, 2015 16:29
by Nathan.S
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.

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

PostPosted: Wed Dec 02, 2015 18:04
by stu
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.

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

PostPosted: Wed Dec 02, 2015 21:12
by Nathan.S
Sweetsauce, I'll probably be doing a mod review video on this next week. Wanted to today but couldn't get it to work.

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

PostPosted: Thu Dec 24, 2015 13:36
by amadin
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).

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

PostPosted: Thu Dec 24, 2015 13:52
by stu
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 ;-)

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

PostPosted: Thu Dec 24, 2015 14:33
by amadin
I don't know lua so i don't undestand how to do this for xdecor or other mod

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

PostPosted: Thu Dec 24, 2015 15:02
by stu
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.