Page 3 of 3

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Jul 12, 2017 18:30
by sofar
texmex wrote:It's hard to organize them as is, yes. :)
The goal of this project is to make an easy to use texture pack that works well for all users, including novice users. It does not exist to enable your OCD ;)

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Jul 12, 2017 18:47
by texmex
You're absolutely right.

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Jul 19, 2017 21:02
by Wuzzy
FYI: Today I have worked on a Python converter script to convert textures from Minecraft to MineClone 2.

It can be found in the MineClone 2 repository under “tools/”.
It's stilly very rough (I am not proud of the coding style and all those system calls) and is able to create (incomplete) texture packs and even update the MineClone 2 files, in case I want to switch the default textures in future. Eventually I may switch to rely entirey on the CSV data, so the script does not contain any hardcoded file name at all.

I used Python because I think it is more portable than horrible Shell scripting, it's easy to do “everyday tasks” (like parsing a CSV), and I am simply very bad at Shell scripting and I just hate the language.

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Jul 19, 2017 21:46
by sofar
Wuzzy wrote:FYI: Today I have worked on a Python converter script to convert textures from Minecraft to MineClone 2.

It can be found in the MineClone 2 repository under “tools/”.
It's stilly very rough (I am not proud of the coding style and all those system calls) and is able to create (incomplete) texture packs and even update the MineClone 2 files, in case I want to switch the default textures in future. Eventually I may switch to rely entirey on the CSV data, so the script does not contain any hardcoded file name at all.

I used Python because I think it is more portable than horrible Shell scripting, it's easy to do “everyday tasks” (like parsing a CSV), and I am simply very bad at Shell scripting and I just hate the language.

Code: Select all

resp = {"pffffff", "really?", "ewwww"}
print(resp[math.random(3)])
If this is not applicable for minetest_game texture packs, and it does not relate to the original project, then you're just advertising your own self-admitted shoddy project.

If you are actually interested in making a reasonable project that could work for both minetest_game and mineclone2, and do a platform independent solution that doesn't require a scripting language to be installed separately, then maybe I'll be up for doing this. E.g. `go` would be an excellent language to do a project like that into, since it is incredibly easy to create cross platform binaries (just like how I made mtmediasrv) right from e.g. Linux for e.g. Windows.

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Jul 29, 2017 15:39
by captpete
Is it possible for you, if time allows, to add conversion to some of the popular mods out there - such as the ones in VanessaE's Dreambuilder Modpack (anvil, bedrock, boost_cart, mesecons, moreblocks, moretrees, quartz, stained_glass, etc ), bakedclay, beacon, lapis, nether, xdecor, etc.

I know only some MineCraft blocks could be converted to MineTest mods but that would allow more MineCraft blocks to be used.

Re: Convert MC resource/texture packs to Minetest!

Posted: Mon Jul 31, 2017 19:37
by sofar
captpete wrote:Is it possible for you, if time allows, to add conversion to some of the popular mods out there - such as the ones in VanessaE's Dreambuilder Modpack (anvil, bedrock, boost_cart, mesecons, moreblocks, moretrees, quartz, stained_glass, etc ), bakedclay, beacon, lapis, nether, xdecor, etc.

I know only some MineCraft blocks could be converted to MineTest mods but that would allow more MineCraft blocks to be used.
yes, it's totally all possible, except that it's a huge time sink and I don't generally use most of these mods, so I'd be wasting my time - at least that's how I feel about it.

But, if someone else adds good conversions for things like technic, mesecons and other popular minetest mods, then I'll merge it. Someone just needs to do this.

Re: Convert MC resource/texture packs to Minetest!

Posted: Tue Aug 01, 2017 21:22
by captpete
Unfortunately, I don't know Lua but I'll take a look at some of the code and see how simple assignment works for the simpler building blocks - the "technical" blocks would probably be beyond me - if I can find the time to sink into it.

Re: Convert MC resource/texture packs to Minetest!

Posted: Fri Aug 31, 2018 21:58
by Enrikoo
Can you please convert this?

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Sep 01, 2018 03:47
by sofar
Enrikoo wrote:Can you please convert this?
Not interested. Please convert it yourself.

There is no license posted so it may not even be legal to redistribute a converted texture pack, plus, because it's PVP focused it likely doesn't have any of the normal survival textures redone. At 17mb for 256px, It probably doesn't have any real coverage over the basics.

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Sep 01, 2018 10:18
by Enrikoo
sofar wrote:
Enrikoo wrote:Can you please convert this?
Not interested. Please convert it yourself.

There is no license posted so it may not even be legal to redistribute a converted texture pack, plus, because it's PVP focused it likely doesn't have any of the normal survival textures redone. At 17mb for 256px, It probably doesn't have any real coverage over the basics.
I already tried to convert but I always fail at converting. I need to know how to convert textures on Windows 10.

Isn't there any way to convert it on Windows 10, maybe a link?

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Sep 01, 2018 11:29
by texmex
Did you really try? ;P

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Sep 01, 2018 15:31
by Enrikoo
texmex wrote:Did you really try? ;P
Thank you, linux guy (IIRC) :P

Re: Convert MC resource/texture packs to Minetest!

Posted: Sun Sep 02, 2018 04:07
by sofar
Enrikoo wrote:Isn't there any way to convert it on Windows 10, maybe a link?
I'm not interested in supporting windows. I neither use it nor do I have any energy making code work on it.

Re: Convert MC resource/texture packs to Minetest!

Posted: Tue Sep 04, 2018 18:50
by captpete
Enrikoo wrote: I already tried to convert but I always fail at converting. I need to know how to convert textures on Windows 10.

Isn't there any way to convert it on Windows 10, maybe a link?
For those of you using Winblows(intentional) install "Cygwin" on Windows. Go to http://www.cygwin.com and scroll down to "Installing Cygwin" and follow the directions for the base install. Then run the setup file again and select "All" from the dropdown. Search for "wget", "unzip" and "imagemagic" successively and click on the "skip" for each package to select it, it will change to a version number. Complete the install. Then run the "Cygwin Terminal" from the icon on your Desktop and follow the directions in the original post in this topic.

If you feel adventurous you can install "X-Windows" (goto the "Cygwin/X" section on the website) and then "zenity" for the GUI.

Hope this helps.

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Sep 05, 2018 14:11
by captpete
Is it possible to add some of the new default textures (I'm thinking Desert and Silver Sandstone) to the converter? Might it be simple like modifying Sandstone images via a palette or using Red Sandstone and changing the saturation? It seems your Desert Stone could be used for Desert Sandstone and maybe up the saturation for a new Desert Stone? Not to sure about Silver Sandstone but maybe a conversion to grey scale?

Jut a thought since I don't really know ImageMagic that well.

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Sep 05, 2018 16:59
by sofar
Honestly the script is something I'd like to replace with e.g. a golang implementation, since that would allow me to (trivially) create binaries that work on Windows and Linux. If anyone feels like starting a rewrite in Go, please let me know, and I can help out.

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Sep 05, 2018 18:01
by captpete
Well I'm not a programmer but I wonder if this would work in your current script to add silver_sandstone to it and not break anything:

Code: Select all

# attempt to make silver sand(stone)
		echo -e "." >> _n/_tot
		if [ -f _n/blocks/sandstone_normal.png ]; then
			convert _n/blocks/sand.png  -colorspace Gray default_silver_sand.png
			convert _n/blocks/sandstone_top.png  -colorspace Gray default_silver_sandstone.png
			convert _n/blocks/sandstone_carved.png  -colorspace Gray default_silver_sandstone_block.png
			convert _n/blocks/sandstone_normal.png  -colorspace Gray default_silver_sandstone_brick.png
			echo -e "." >> _n/_counter
		fi
Is that correct usage or do I need to check if all sand/sandstone variants exist individually?

Re: Convert MC resource/texture packs to Minetest!

Posted: Wed Sep 05, 2018 22:51
by sofar
captpete wrote:Well I'm not a programmer but I wonder if this would work in your current script to add silver_sandstone to it and not break anything:

...

Is that correct usage or do I need to check if all sand/sandstone variants exist individually?
Nope, that looks fine. Why don't you try making a git pull request, so we can do code review?

Re: Convert MC resource/texture packs to Minetest!

Posted: Sat Sep 08, 2018 15:09
by captpete
I'm not a programmer or a developer and I don't have a developer setup for github/lib so I'm not sure how to go about that. Since I don't have a project to host I'm not sure of the steps to get an account. I don't really want to have more online accounts to maintain if I can help it. I'm just a very poor script jockey only kicking and screaming when my family or close friends want something. I know just enough to get into trouble quite frequently [Grin].

Re: Convert MC resource/texture packs to Minetest!

Posted: Sun Sep 09, 2018 18:52
by sofar
captpete wrote:I'm not a programmer or a developer and I don't have a developer setup for github/lib so I'm not sure how to go about that. Since I don't have a project to host I'm not sure of the steps to get an account. I don't really want to have more online accounts to maintain if I can help it. I'm just a very poor script jockey only kicking and screaming when my family or close friends want something. I know just enough to get into trouble quite frequently [Grin].
lol

I understand. But, if you want to learn how to be able to do more trouble, it may help to learn how to use git and github!

Re: Convert MC resource/texture packs to Minetest!

Posted: Fri Jan 31, 2020 15:35
by Miniontoby
Could you also convert a ".mcpack" to a minetest texture pack??

Re: Convert MC resource/texture packs to Minetest!

Posted: Fri Jan 31, 2020 16:03
by texmex
Miniontoby wrote:Could you also convert a ".mcpack" to a minetest texture pack??
An MCPACK file contains resource files that modify Minecraft (Bedrock Edition), a popular block-building game. It stores multiple resource files, such as . PNG and . JSON files compressed with ZIP compression.
It's just a zip, so probably.