Convert MC resource/texture packs to Minetest!

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Convert MC resource/texture packs to Minetest!

by sofar » Thu Mar 24, 2016 07:20

I've created a simple shell script that will convert all your MC resource and texture packs to Minetest Texture packs.

Download: https://github.com/sofar/mcresconvert
License: X11

You will need to have bash, ImageMagick, and unzip, to run the script. These are fairly standard on all Linux machines, but may be difficult to get for other OS's.

As of right now, it can convert about 380 textures from MC resource packs to Minetest. This covers almost all basic in-world blocks, and should be very pleasing to most players. If you spot a missing block, please ask in this forum thread or post an issue on github.

Unlike other converters, this converter can handle doors, grass colors and biome coloring, and leaves!

After the conversion is done, the converter prints out all found MC texture and resource packs, and displays how well the conversion went:

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
$ ./mcresconvert.sh
Automatically converting resourcepacks and texturepacks found...
Scanning for texture/resourcepacks...
Found: /home/sofar/.minecraft/resourcepacks/LegoPak_3.zip
   - Importing as LegoPak_3
   - Conversion quality: 188 / 378
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/PixelDaydreams1.7.zip
   - Importing as PixelDaydreams17
   - Conversion quality: 238 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/ravands32.zip
   - Importing as ravands32
   - Conversion quality: 348 / 378
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/Pixel_Perfection_V2.0.zip
   - Importing as Pixel_Perfection_V20
   - Conversion quality: 332 / 378
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Lodecraft-Survival-V017d.zip
   - Importing as Lodecraft-Survival-V017d
   - Conversion quality: 354 / 380
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/LIFE 128x (Vers. 81).zip
   - Importing as LIFE128xVers81
   - Conversion quality: 248 / 362
   - Pixel size: 128px
Found: /home/sofar/.minecraft/resourcepacks/Wayukian_pack_v63.zip
   - Importing as Wayukian_pack_v63
   - Conversion quality: 352 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Tiny Pixel's - Pavo's Edit - 25th October.zip
   - Importing as TinyPixels-PavosEdit-25thOctober
   - Conversion quality: 354 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/[1.6] Dokucraft TSC Light.zip
   - Importing as 16DokucraftTSCLight
   - Conversion quality: 340 / 378
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/lithos.zip
   - Importing as lithos
   - Conversion quality: 282 / 378
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/PIXIE.zip
   - Importing as PIXIE
   - Conversion quality: 354 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/MorayHills-v12.zip
   - Importing as MorayHills-v12
   - Conversion quality: 316 / 362
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/Sanity.zip
   - Importing as Sanity
   - Conversion quality: 354 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Dandelion-v11.zip
   - Importing as Dandelion-v11
   - Conversion quality: 340 / 370
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Isabella_II_1.7c.zip
   - Importing as Isabella_II_17c
   - Conversion quality: 354 / 380
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/ElvelandLight_v1.6.3.zip
   - Importing as ElvelandLight_v163
   - Conversion quality: 354 / 380
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/Dtipack.zip
   - Importing as Dtipack
   - Conversion quality: 354 / 380
   - Pixel size: 32px
Found: /home/sofar/.minecraft/resourcepacks/OCD-pack-172.zip
   - Importing as OCD-pack-172
   - Conversion quality: 222 / 362
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Pixel Perfection V3.3.zip
   - Importing as PixelPerfectionV33
   - Conversion quality: 388 / 396
   - Pixel size: 16px
Found: /home/sofar/.minecraft/resourcepacks/Architects-Dream-32x32-172.zip
   - Importing as Architects-Dream-32x32-172
   - Conversion quality: 176 / 366
   - Pixel size: 32px



Example of a converted Texture Pack:

Image
Image

(As always, patches and fixes welcome in github!)
Last edited by sofar on Fri Mar 25, 2016 08:20, edited 4 times in total.
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Convert MC resource/texture packs to Minetest!

by burli » Thu Mar 24, 2016 08:28

Nice, THX
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Convert MC resource/texture packs to Minetest!

by ExeterDad » Thu Mar 24, 2016 12:45

I love shell scripts :)
I was looking at the script and a possible typo jumped out at me. I could be wrong as I don't play Minecraft and certainly don't know the texturenames. But in RENAMES on line 180....
"wool_colored_while.png wool_white.png" , should colored_while be colored_white?
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Thu Mar 24, 2016 17:22

ExeterDad wrote:I love shell scripts :)
I was looking at the script and a possible typo jumped out at me. I could be wrong as I don't play Minecraft and certainly don't know the texturenames. But in RENAMES on line 180....
"wool_colored_while.png wool_white.png" , should colored_while be colored_white?


ack! yes, that's a typo :)
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Thu Mar 24, 2016 23:08

I'm working on code to convert leaves and grass atm. Progress is looking good!
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Fri Mar 25, 2016 06:16

I've added tonight:

- flowing liquids (lava and water)
- tall grasses
- all leaves
- fences
- bricks
- fire
- iron bars
- wheat seeds
- torches (not animating them)
- desert stone, bricks
- fixed pickaxes
- papyrus
- fixed beds
- doors
- screenshot/logo
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Fri Mar 25, 2016 08:21

Main Forum thread will be in the /Textures/ subforum, not this one. Please visit the thread here:

https://forum.minetest.net/viewtopic.php?f=4&t=14283
 


Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 3 guests

cron