Le piratage (hacking en anglais) est le fait de modifier un programme pour le faire fonctionner différemment de ce pour quoi il était prévu à l'origine. Ceci ne doit pas être confondu avec le cracking ou le hacking des Black hats. Pour plus de détails sur les différences entre les types de hacking, se référé à cet article sur Wikipédia.
Dans Minecraft, le hacking se rapporte à l'utilisation d'un éditeur de mémoire dans le but de modifier la valeur du moteur d'exécution java de Minecraft. Cela permet de faire pratiquement n'importe quoi, incluant l'accès aux blocs habituellement non accessibles (tel que le générateur de monstre).
Objets
Note : toutes les triches de la Bêta semblent être inutilisables en SMP. En mode solo en revanche, divers mods existent maintenant pour obtenir facilement tous les objets que l'on veut, de manière illimitée. Les premières techniques de cette liste ne sont donc présentées qu'à titre indicatif.
Méthode de hacking
Alpha et Bêta
- Ouvrir Minecraft et charger un carte ou lancer une nouvelle carte.
- Lancer Cheat Engine (Windows) ou Game Conqueror (Linux).
- Choisir le processus 'javaw.exe' vers la fin ('java' sous Linux). Parfois, le jeu peut être trouvé sous le nom 'Minecraft.exe'.
- Créer une pile d'au moins 3 objets.
- Dans Cheat Engine, commencer une nouvelle recherche pour trouver la quantité correspondant à la taille de la pile. Une grande quantité de résultats devrait alors apparaître.
- Lâcher un objet de la pile.
- Continuer la recherche pour la nouvelle valeur. Cela devrait restreindre le nombre de résultats.
- Lâcher de nouveau un objet.
- Continuer de nouveau la recherche. S'il reste encore plusieurs résultat, répéter l'opération.
- Double-cliquer sur le résultat pour ajouter l'entrée.
- Pour changer la quantité d'objets de la pile, il suffit de double-cliquer sur la valeur (dans le cadre du bas) et la changer vers la valeur voulue (inférieure à 65000).
- Pour changer le type de l'objet, faire un clic droit sur l'entrée et choisir "Browse this memory region" ("Explorer cette zone mémoire").
- Exactement 8 octets à la droite de la quantité, se trouve le type du bloc, sous la forme d'un nombre également. Pour la table des correspondance, voir la page des Valeurs.
- Pour changer le type, copier la valeur décimale de l'objet, double-cliquer sur le type dans l'éditeur de la mémoire, choisir deux octets, et coller. Cela fonctionne à la fois pour les objets et les blocs.
Il existe également un tutorial video dans la sur Youtube.
Mode classique
- Lancer Cheat Engine (Windows) ou Game Conqueror (Linux).
- Choisir le processus 'javaw.exe' vers la fin ('java' sous Linux). Parfois, le jeu peut être trouvé sous le nom 'Minecraft.exe'.
- Dans Minecraft, faire en sorte que le premier raccourci sur l'interface soit de la pierre.
- Rechercher la valeur "1" dans Cheat Engine.
- Retourner sur Minecraft et changer la valeur du premier raccourci pour de la pierre taillée.
- Continuer la recherche avec cette fois la valeur "4".
- Retourner sur Minecraft et remettre de la pierre sur le premier raccourci.
- Continuer la recherche ave la valeur "1".
- Il ne devrait à présent rester qu'une ou deux adresses. En choisir une (ou les deux) et changer la valeur pour toute valeur disponible sur cette page.
Méthode de l'éditeur d'inventaire
- Ouvrir INVedit (disponible ici)
- Utiliser le bouton "Load" ("Charger") pour ouvrir l'inventaire d'un monde, ou créer un nouvel inventaire à l'aide du bouton "New" ("Nouveau").
- Choisir l'objet désiré dans l'espace de droite de la fenêtre, et le déposer dans un emplacement. Si nécessaire, modifier la quantité et/ou la valeur de dégâts. Cela permet au passage d'empiler des objets qui ne peuvent habituellement pas l'être, comme des outils ou de la nourriture.
- Choisir le monde vers lequel sauvegarder l'inventaire via la flèche à droite du bouton "Save" ("Sauvegarder").
Attention : Il est impossible de modifier l'inventaire pendant la partie. Minecraft doit être soit fermé, soit dans le menu principal du jeu.
Mod "Too Many Items"
- Installer Too Many Items (disponible ici).
- Lancer une partie et ouvrir son inventaire.
- Appuyer sur la touche O pour activer les fonctionnalités du mod.
- Cliquer sur n'importe quel icône d'objet pour le récupérer dans son inventaire.
Santé
Une fois en mode de difficulté "Peaceful", il est facile de tomber dans la lave et de mourir, Vous faisant perdre tout votre inventaire. Heureusement, il est facile de hacker votre vie pour devenir invulnérable.
Methode 1
- Ouvrir Minecraft.
- Ouvrir Cheat Engine et selectionner javaw.exe.
- Trouvez votre nombre de coeurs, et doublez le, ajoutant 1 sivous avez un demi coeur (tous les coeurs = 20), et commencez un nouvelle recherche sur CE avec cette valeur.
- Blessez-vous, ou soignez-vous, et recalculez votre nombre de points de vie. Entrez cette valeur pour la prochaine recherche.
- Repeat until one value remains. Double click to add.
- Either set to a very high value (~34567), or set to 20 and freeze.
- Enjoy (near) invulnerability.
Here is a video going through the process.
NOTE: If you freeze your value, do not enter/leave The Nether, this will move the address where you HP is stored, possibly leading to data corruption and crashed games. Also, you won't be invulnerable anymore. You can re-do the above hack while in The Nether, though, and it works fine.
Method 2
- Open an inventory editor, such as INVedit.
- Put any type of armor on the player.
- Set the damage to something low like -34567.
- Save it to a world.
- Open the world you saved it to.
- Enjoy (near) invulnerability.
NOTE: If you wade in lava or fall off of something, then close the game and reload it, you may be dead.
Unbreakable Tools
A unbreakable tool is a tool that will never wear down or break from being used.
Method
- Open Minecraft.
- Open Cheat Engine and select javaw.exe.
- Equip a tool that is in perfect condition.
- Find a block that is used by that tool (i.e. stone for a pickaxe, dirt for a shovel).
- Destroy the block with the tool and search for a value of 1 in CE.
- Do this again destroying another stone block and search for 2.
- Repeat until you have only one address left.
- Edit the value to something like -30000 and enjoy. You can now close Cheat Engine as these changes will persist (even across saves).
Here is a video going through the process.
Note: This can also be done by using an inventory editor and changing the "Damage" value to a negative number when the tool is selected.
Other Hacks
A cube of destruction after the action.
A 3x3 cube of destruction after its effect.
Cube of destruction (CoD)
A cube of destruction is actually a n*n*n cube of tnt, that has been frozen on the TNT state and will never change back to air until the JVM changes block addresses.
- Open minecraft and load/start a new game.
- Collect a few of any block type (dirt recommended) and place your cube (any size, any shape).
- Open Cheat Engine and select javaw.exe at the bottom of the process list.
- Select size 'Byte'.
- Search for the value of the type of block you used (3 for dirt, find other data values if you used another block type).
- Destroy the cube.
- Return to CE, and search again for value '0'.
- Reconstruct the cube at the same exact spot.
- Search again for the block's value.
- Repeat placing, filtering for block type, destroying, and filtering for 0 until only a few items are on the list (i.e. 8 for a 2*2*2 cube), then select the values and click the red arrow.
- Set the values to 46, and then freeze.
- In game, whack a few of the TNT and run.
- You will die unless you hacked your health. Before respawning, un-freeze the values, and respawn to see the damage.
There is a video showing the how to do the hack here.
There is a video better showing the effects here.
Changing Blocks Already Placed
(Namely bedrock)
Changing a block already placed in the world is very similar to creating a cube of destruction in that you are trying to find a block that has been placed and changing its type to something else.
- Open Minecraft and load/start a new game.
- Collect a few of any block type (such as torches because they don't occur naturally and therefore there are fewer of them to sort through) and place it on top of the cube you are trying to change.
- Open Cheat Engine and select javaw.exe at the bottom of the process list.
- Select size 'Byte'.
- Search for the value of the type of block you used (50 for torches, find other data values if you used another block type).
- Destroy the block.
- Return to CE, and search again for value '0'.
- Place the block at the same exact spot.
- Search again for the block's value.
- Repeat placing, filtering for block type, destroying, and filtering for 0 until only one item is on the list, then select the values and click the red arrow.
- Start a new search the same way but for the data value of the block you want to change (7 for bedrock) and repeat searching for the number several times to weed out the values that change.
- There will be a long list of results, but it is sorted, so scroll down to the group of addresses addresses close to the one you already have (i.e. only the last bite is different) add them to your list and change its value to what you want (3 for dirt so you can destroy it).
There is a video going through a similar process here.
Consequences
Trying to do this can result you in getting banned/kick/ipbanned in multiplayer servers, though the server will know when you're cheating/hacking. It will display "Cheat detected: Tile type" and will reset everything back to normal, so it only works in Single player. It should be noted that hacking is only feasible in single player mode, and attempting it on a multiplayer server can result in the software kicking you from the server. Hacking in Multiplayer is severely frowned upon, aside from the rare exception.