创新互联MinecraftWiki教程:Extraction[]

This article is about creating custom texture packs. For programs to simplify the process of creating texture packs, see Programs and editors/Resource pack creators.

This page describes content that exists only in outdated versions of Minecraft.  In Java Edition 1.6.1 the feature was replaced by Resource pack.

The purpose of this article is to teach you how to create a custom texture pack. It focuses on the extraction of appropriate files from the game Java Archive minecraft.jar, their editing, packing the newly created textures, and putting them back into the game.

Contents

  • 1 Extraction
    • 1.1 Windows
    • 1.2 MacOS
    • 1.3 GNU/Linux
  • 2 Editing textures
  • 3 Packing and installation
    • 3.1 Windows
    • 3.2 Mac OS
    • 3.3 Ubuntu/GNOME
  • 4 External links

Extraction[ ]

The original textures are located in the game Java Archive file minecraft.jar. Any zip archiver should be able to extract files from it as the Java Archive format is just a subset of the common zip format. The exact procedure for locating the game archive and extracting the files from it varies by the operating system. Below is a list of files and subfolders of interest while creating a new texture pack:

File Description Notes
pack.png Thumbnail of the pack in the texture selection list. Size should be 128×128 pixels.
pack.txt Optional description of texture in the pack selection list. The text shouldn't be too long or it will not appear.
particles.png All particles The Redstone particle's color cannot be changed.
terrain.png All blocks Since Beta 1.8, the chest has its texture located in item/chest.png, (and item/largechest.png) similar to that of mobs, however, the textures in the terrain file are still used for the particle effects when breaking a chest.

The water and lava textures can only be changed with the HD Texture pack patch.

> All blocks and items are now individual files found in the "texture" folder instead.[1.5 update]

achievement/ The Achievements screen GUI.
armor/ All armor in-game. This also contains the overlay for a charged creeper and protected Wither.
art/ All paintings in-game.
environment/ Snow, rain, and clouds.
font/ In-game font.
gui/ Item Hotbar, inventory screens, item thumbnails, Minecraft logo, and menu background.
item/ In-game models for items such as signs, minecarts, boats, arrows, and chests. The doors file is used as a template representing the right and left sides of doors placed from right to left.
misc/ Biome grass/foliage color, overlay for pumpkin helmets, the clock dial, footprint, and the Map Background.
mob/ All mobs in-game.
terrain/ Sun and Moon. The image is horizontally flipped in the game. (any words drawn will be backward)
title/ panorama pics, mclogo, black.png, Mojang, and splashes.
title/bg/ Minecraft main menu background Named panorama0 - panorama5

Windows[ ]

To extract the editable files for a texture pack, first download a compression program, such as 7-Zip or WinRAR, and make a folder on your desktop for texture pack storage. For Windows Vista/7, go to the "start" menu on your desktop and search %appdata%. On Windows XP, go to "start" menu, click "run", and type in %appdata%. There may be a file called roaming, if so open it, and one of the folders inside should be called .minecraft, unless the roaming folder was not existent. Open this, and inside open the folder titled bin. (If you have a newer launcher there may not be a bin file. If that is so just open the folder versions and select the newest version's folder) Then go to the minecraft.jar file or a file with the current version with .jar at the end (for example, 1.11.2.jar) and right-click on it. In the menu of options should be either "7-Zip" or "WinRAR". Follow the arrow from that option to the menu of actions, and choose "Extract to 'Minecraft/'". (It is best that your folder for texture packs have the word Minecraft in it. For example, mine is "Minecraft-desktop"). Find the extracted files. They should have been extracted to your desktop folder and be in a sub-folder titled "Minecraft". Open this file, and there will be 1,335 .class files. Delete every one of these. An easy way to select them all is to type .class in the search bar and press ctrl+A then delete (be sure not to delete the "splash" file, which will be selected because of the splash 'best in class). Now you are ready to edit.

  • Note: Microsoft Paint ("Paint" on the Windows Start menu) does not support saving transparent PNG files, any "blank" areas will simply come out as white, and MS Paint is therefore not recommended for this.

MacOS[ ]

The Mac comes with a program called Archive Utility. First, open Finder and go to Finder>Library>Application Support>minecraft>bin. If the folder is not there, check Finder>(User)>Library>Application Support>minecraft>bin Find minecraft.jar and right-click (or control+left click) and click "Open With" and "Archive Utility". Archive Utility will create a new folder called "Minecraft". Notice that this is a new folder, and that minecraft.jar is still intact. You can therefore modify and delete the new folder without altering your minecraft.jar. Create a new folder on your desktop, and drag all the necessary files into it. Now you are ready to edit.

If using Archive Utility results in a file called Minecraft.jar.cpgz, try instead changing the file extension from .jar to .zip to achieve the desired effect.

GNU/Linux[ ]

On GNU/Linux-based systems, the game archive is usually located at ~/.minecraft/bin/Minecraft.jar where "~" is the user's home folder, usually located in /home/. Many desktop GNU/Linux distributions come with graphical archiver utilities that integrate with the desktop environment. If the zip and unzip command-line programs are available, the files can be simply extracted to a folder on the desktop using the following command in the terminal:

unzip -d ~/Desktop/my_texture_pack ~/.minecraft/bin/minecraft.jar pack.png pack.txt particles.png terrain.png achievement/* armor/* art/* environment/* font/* gui/* item/* misc/* mob/* terrain/* title/*

Editing textures[ ]

terrain.png in 13w01b, the last version to actually use this file.

The textures are in the Portable Network Graphics (PNG) format and can be edited with any image editing program that can handle the format including transparency. Many different programs support this, some free ones include Paint.net (Windows) (which even Notch uses), GIMP (Windows, Mac, Linux), Paintbrush (Mac), and many more. Edit each PNG file as desired and save them with 32-bit color depth to preserve transparency.

Although Microsoft Paint does not handle transparency, it can still be used to make/edit textures. If you open a PNG image in Windows XP, a window should pop up showing transparency as a white and gray checkered pattern [does not work Win7 - no options of this type available]. There is a tool located on the toolbar that should have a screen tip with 'Change to transparent' or something similar. Go into Microsoft Paint and create/edit your texture(s). Find a color not used in the texture, and fill in the white space with it. Then, select the area desired to copy and paste it onto the PNG image. Paste it onto your PNG image and make sure to cover it completely. Simply change your unwanted color to transparent using the tool mentioned earlier, and every last pixel of that color on the current document will be changed to transparent. Beware, make sure that you do not click the wrong color, as this may mess up all textures in the document.

Packing and installation[ ]

Once you are done editing, create a zip file of the files modified (or, in Minecraft 1.3, you can use a folder with the files too), preserving all folder hierarchy. The root folder of the zip must have the files and folders listed below, or else they will not be changed. If you find that nothing changes when you select your texture pack, make sure that the files are in the root of the zip and not one folder in.

Windows[ ]

Select all the files (edited or not) Then choose the 7-Zip or WinRAR option after right-clicking and select "Add to archive...". The archive will open, and you can name the file. Then hit "OK", and the program will make all the files into a zip archive. To put it into Minecraft, simply start the launcher, log in, and at the title screen go to the button "texture packs". In the lower-left, click the Open Folder button and drag your ZIP into the folder. Select your texture pack, and view it on your computer.

Mac OS[ ]

Highlight all the files in your folder, right-click, and click "compress (#) items". A new file called "Archive.zip" should appear. Rename the file to your liking. Go to Finder>Library>Application Support>minecraft>Texture Packs, and drag your .zip in. Now you can use your texture pack by selecting the button "mods and texture packs" in the main menu of Minecraft, and clicking on your pack.

Ubuntu/GNOME[ ]

Folder Layout ~/appdata/roaming/.minecraft/resourcepacks/MyPack/(assets etc.)

In Terminal, run this command...

cd ~/.minecraft/resourcepacks/ && zip -r MyPack.zip MyPack

...then launch Minecraft and enable the resource pack.

External links[ ]

  • [1]
  • Unmodified Minecraft game file
  • "Unstitcher" tool which converts old texture packs into 1.5 format.
  • direct link Enhanced version
Tutorials
Introductory
  • Menu screen
  • Game terms
Newcomer survival
  • The first day/beginner's guide
  • The second day
  • The third day
  • Hunger management
  • Things not to do
  • Simple tips and tricks
  • Your first ten minutes
Shelters
  • Best biomes for homes
  • Best building materials
  • Building and construction
  • Navigation
  • Shelters
  • Shelter types
General
  • Achievement guide
  • Advancement guide
  • Best enchantments guide
  • Breaking bedrock
  • Combat
  • Complete main adventure
  • Creating a village
  • Downgrading
  • Dual wielding
  • End survival
  • Exploring caverns
  • Gathering resources on peaceful difficulty
  • Getting food quickly
  • Headless pistons
  • Hitboxes
  • Horses
  • Indestructible end crystals
  • Mapping
  • Measuring distance
  • Minecraft in education
  • Mining
    • Diamonds
    • Fossils
    • Ancient Debris
  • Nether hub
  • Nether portals
  • Nether survival
  • Organization
  • Pillar jumping
  • PvP
    • PvP bases
  • Spawn-proofing
  • Summoning jockeys
  • The Void
  • Time-saving tips
  • Thunderstorm survival
  • Units of measure
  • Village mechanics
    • Trading
  • X-ray glitches
Challenges
  • Acquiring a conduit
  • Curing a zombie villager
  • Defeating temples
  • Defeating a village raid
  • Defeating a Nether fortress
  • Defeating a bastion remnant
  • Defeating a monster room
  • Defeating a pillager outpost
  • Defeating a woodland mansion
  • Defeating a monument
  • Defeating an End city
  • Defeating the Ender dragon
  • Defeating the Wither
  • Exploring an ancient city
  • Obtaining every music disc
Non-standard
survival
  • Adventure survival
  • Half hearted hardcore
  • Hardcore mode
  • Surviving in a single area indefinitely
  • Infinite desert survival
  • Island survival
  • Manhunt
  • Mob switch
  • Nomadic experience
  • Skywars survival
  • Superflat survival
  • Flat survival
  • Ultra hardcore survival
Challenge maps
  • Beating a challenge map
  • Creating a challenge map
Constructions
  • Adding beauty to constructions
  • Airlock
  • Architectural terms
  • Building a cruise ship
  • Building a metropolis
  • Building a rollercoaster
  • Building safe homes
  • Building water features
  • Color palette
  • Creating shapes
  • Defense
  • Desert shelter
  • Elevators
  • Endless circling pool
  • Furniture
  • Glazed terracotta patterns
  • Making nice floors
  • Pixel art
  • Ranches
  • Roof types
    • Curved roofs
    • Roof construction guidelines
    • Roof decorations
  • Secret door
  • Settlement guide
  • Underwater home
  • Walls and buttresses
  • Water gate
  • Water-powered boat transportation
Farming
Blocks and items
  • Amethyst
  • Armor
  • Azalea
  • Bamboo
  • Basalt
  • Bedrock
  • Blaze rod
  • Bone meal
  • Cactus
  • Chorus fruit
  • Clay and mud
  • Cobblestone
  • Cocoa bean
  • Copper
  • Crops (Beetroot, Carrot, Potato, Wheat)
  • Dirt
  • Dragon's breath
  • Dripstone
  • Egg
  • Fern
  • Fish
  • Flower
  • Froglight
  • Glow berries
  • Glow ink sac
  • Glow lichen
  • Goat horn
  • Gold
  • Hanging roots
  • Honey
  • Ice
  • Iron
  • Kelp
  • Lava
  • Meat
  • Moss block
  • Mushroom
  • Music disc
  • Nautilus shell
  • Nether growth
  • Nether vine
  • Nether wart
  • Obsidian
  • Powder snow
  • Pumpkin, Melon
  • Rooted dirt
  • Sculk growths
  • Scute
  • Seagrass
  • Sea pickle
  • Snow
  • Soul soil
  • Sugar cane
  • Sweet berries
  • Tree
  • Trident
  • Vine
  • Villager trading hall
  • Wither rose
  • Wool
  • Duplication
Mobs
  • Mob farming
  • Mob grinding
  • Monster spawner traps
  • Allay
  • Animals
  • Axolotl
  • Blaze
  • Cat
  • Cave spider
  • Creeper
  • Drowned
  • Ender dragon
  • Enderman
  • Frog
  • Goat
  • Guardian
  • Hoglin
  • Iron golem
  • Magma cube
  • Phantom
  • Piglin bartering farm
  • Raid
  • Shulker
  • Slime
  • Squid
  • Turtle
  • Villager
  • Wandering trader
  • Warden
  • Witch
  • Wither
  • Wither skeleton
  • Zombie
  • Zombie villager
  • Zombified piglin
OP farms
  • End of light mob farms
Enchanting
and smelting
  • Enchantment mechanics
  • Anvil mechanics
  • Automatic smelting
  • Manual smelting
Blockbreaking
  • Blast chamber
  • Igniting TNT underwater
  • Wither cage
Mechanisms
Basic redstone
  • Automatic respawn anchor recharger
  • Basic logic gates
  • Combination locks
  • Command block
  • Flying machines
  • Hopper
  • Item sorting
  • Item transportation
  • Mechanisms
  • Observer stabilizer
  • Randomizers
  • Redstone music
  • Redstone tips
  • Rube Goldberg machine
  • Shulker box storage
  • Villager trading hall
Detectors
  • Block update detector
  • Comparator update detector
  • Daylight sensor
  • Day night detector
Minecarts
  • Train station
  • Minecarts
    • Storage
    • Storage system
Traps
  • Snow golems
  • TNT cannons
  • Trapdoor uses
  • Trap design
  • Traps
Pistons
  • Piston uses
  • Piston circuits
  • Quasi-connectivity
  • Zero-ticking
  • Instant repeaters
Advanced
redstone
  • Advanced redstone circuits
  • Arithmetic logic
  • Calculator
  • Command stats
  • Hourly clock
  • Morse code
  • Printer
  • Redstone computers
  • Redstone telegraph
Servers
  • Playing on servers
  • Multiplayer Survival
  • Spawn jail
  • Griefing prevention
  • Joining a LAN world with alternate accounts
Server setup
  • Setting up a server
  • Server startup script
  • FreeBSD startup script
  • OpenBSD startup script
  • Ubuntu startup script
  • Setting up a Hamachi server
  • Setting up a Minecraft Forge server
  • Setting up a Spigot server
  • Ramdisk enabled server
Technical
  • Improving frame rate
  • Minecraft help FAQ (IRC channel)
  • Update Java
Maps
  • Custom maps
  • Map downloads
  • Command NBT tags
  • Falling blocks
  • Updating old terrain using MCEdit
Resource packs
  • Creating a resource pack
  • Loading a resource pack
  • Sound directory
Data packs
  • Creating a data pack
  • Installing a data pack
  • Custom world generation
Creating
Minecraft media
  • Creating videos
  • Livestreaming
Game installation
  • Installing snapshots
  • Joining and leaving the Bedrock Edition beta program
  • How to get a crash report
  • Installing Forge mods
  • Custom Minecraft directory
  • Playing and saving Minecraft on a thumb drive
  • Playing and saving Minecraft on a thumb drive with the old launcher
  • Recover corrupted saved world data
  • Run Minecraft through Google Drive
  • Save game data to Dropbox (world data only)
  • Saved data Dropbox guide
Outdated
  • Building micro shelters
  • Custom texture packs
  • Door-based iron golem farming
  • Far Lands
  • How to get a crash report
  • Installing mods
  • Man-made lake
  • Managing slimes in superflat mode
  • Minecart booster
  • Potion farming
  • Repeater reboot system
  • Survival with no enabled data packs
  • Update LWJGL
  • Update Minecraft
  • Village chaining
  • Water ladder
  • Water tram

网站题目:创新互联MinecraftWiki教程:Extraction[]
URL分享:http://www.shufengxianlan.com/qtweb/news13/360263.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联