Page 1 of 1

Minecraft to minetest texture pack converter

PostPosted: Sat Dec 07, 2013 21:29
by minermoder27
Here is a minecraft to minetest texture pack converter

It depends on the bash shell, so it will work on mac/linux

EDIT: if you have http://win-bash.sourceforge.net/ it will work on windows

Link:
Github repo
download

It is WIP

PostPosted: Sat Dec 07, 2013 22:21
by i love minetest
can you please make one for windows

PostPosted: Sat Dec 07, 2013 22:32
by kaeza
i love minetest wrote:can you please make one for windows

There's already one for Windows around.

PostPosted: Mon Dec 09, 2013 01:28
by minermoder27
I don't actually know the difference between the old and new texture packs!!!

I tested it with FamousCraft (A fairly new texture pack) (I cannot find it on planetminecraft now!)

And as for windows, I think you may want to look at this

PostPosted: Mon Dec 09, 2013 05:18
by tux_peng
This converts resource packs to minetest texture packs, works too; nicely done!

PostPosted: Mon Dec 09, 2013 08:45
by minermoder27
A resource pack is just the new name for a texture pack, 'cos they can have sounds too.
This texture pack converter does not do sounds.

PostPosted: Mon Dec 09, 2013 18:24
by tux_peng
yea, I was just noting that because the old texture packs were a single tiled image

PostPosted: Wed Dec 11, 2013 03:01
by stormchaser3000
i love minetest wrote:can you please make one for windows


minermoder27 wrote:EDIT: if you have http://win-bash.sourceforge.net/ it will work on windows



hint hint

PostPosted: Mon Dec 30, 2013 18:15
by Forgelander
I'm going to port pixel daydreams to minetest, i'll see how it looks,

+1

Re: Minecraft to minetest texture pack converter

PostPosted: Wed Jul 02, 2014 13:33
by shadowzone
I like it!

Re: Minecraft to minetest texture pack converter

PostPosted: Fri Aug 21, 2015 18:33
by Samson1
How do you use it?

Re: Minecraft to minetest texture pack converter

PostPosted: Sat Sep 05, 2015 23:48
by minermoder27
see the readme

Get minecraft texture pack.
Get "assets" folder from minecraft texture pack.
Move "mc-to-mt-tp-conv" folder to folder with assets folder
Run "conv.sh" (it is inside "mc-to-mt-tp-conv" folder)
The folder "minetest-texture-pack" will be made.
"minetest-texture-pack" is the converted texture pack.

Re: Minecraft to minetest texture pack converter

PostPosted: Tue Nov 17, 2015 13:18
by Sick-D!!
sorry ... but ... doesn't work?
Never? (Linux Mint 17.2)

My Problem: it does...ehm nothing? it creates an empty folder?

Re: Minecraft to minetest texture pack converter

PostPosted: Tue Nov 17, 2015 23:29
by minermoder27
are the "mc-to-mt-tp-conv" and "assets" folders in the same place?

Re: Minecraft to minetest texture pack converter

PostPosted: Fri Nov 20, 2015 19:57
by Sick-D!!
yep... it does really nothing... :/

Re:

PostPosted: Thu May 12, 2016 06:28
by wilkgr76
stormchaser3000 wrote:
i love minetest wrote:can you please make one for windows


minermoder27 wrote:EDIT: if you have http://win-bash.sourceforge.net/ it will work on windows



hint hint

kaeza wrote:
i love minetest wrote:can you please make one for windows

There's already one for Windows around.

hint hint x 2

Re: Minecraft to minetest texture pack converter

PostPosted: Mon Jun 27, 2016 19:42
by Soudon
I had it working at one time with a separate command I ran in win-bash but I cannot find the command and all this does is make three folders all of which are empty and the cmd window says cannot stat then disappears so I didn't let the code run the whole way I just clicked quick to pause and take a screenshot in about three more seconds while keeping it paused it still disappears. but here is the main error.

Image

Re: Minecraft to minetest texture pack converter

PostPosted: Tue Jan 03, 2017 10:28
by kogorek
Soudon wrote:I had it working at one time with a separate command I ran in win-bash but I cannot find the command and all this does is make three folders all of which are empty and the cmd window says cannot stat then disappears so I didn't let the code run the whole way I just clicked quick to pause and take a screenshot in about three more seconds while keeping it paused it still disappears. but here is the main error.

Image


Here's a bit fixed script:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#!/bin/bash
#cd "$(dirname "$0")"
#cd ..
rm -rf minetest-texture-pack
rm -rf uctextures
mkdir textures
mkdir uctextures
cd uctextures
mkdir b
mkdir i
cd ..


FILES=$(dirname "$0")/../assets/minecraft/textures/blocks/*.png
for f in $FILES
do
   cp $f "uctextures/b/"
done

FILES=$(dirname "$0")/../assets/minecraft/textures/items/*.png
for f in $FILES
do
   cp $f "uctextures/i/"
done

cd uctextures

while read p; do
   if [ -n "$p" ]
   then
      if [ -e "trans.png" ]
      then
         mv trans.png "../textures/$p"
      else
         mv "$p" trans.png
      fi
   fi
done < ../transtable.txt


#####################################
convert "b/destroy_stage_0.png" \
   "b/destroy_stage_1.png" \
   "b/destroy_stage_2.png" \
   "b/destroy_stage_3.png" \
   "b/destroy_stage_4.png" \
   "b/destroy_stage_5.png" \
   "b/destroy_stage_6.png" \
   "b/destroy_stage_7.png" \
   "b/destroy_stage_8.png" \
   "b/destroy_stage_9.png" \
         +append "../textures/crack-anylength.png"
#####################################

cd ..

mv textures minetest-texture-pack

Re: Minecraft to minetest texture pack converter

PostPosted: Sun Jan 08, 2017 13:53
by LuLa
Nice!!!
But I think you made a small mistake:
the normal sapling isnĀ“t converted, because the spelling in the .bat file is saping.

LuLa

Re: Minecraft to minetest texture pack converter

PostPosted: Sun Jan 08, 2017 22:15
by minermoder27
Due to the problems with running this on windows, I might just rewrite this in Java. Therefore, cross-platform.