Minecraft

From miki
Revision as of 01:32, 8 March 2020 by Mip (talk | contribs) (→‎pigmap)
Jump to navigation Jump to search

My page dedicated to minecraft.

Links

On this wiki
Game Guide
Install Guides
References
Technical docs

Installation

Minecraft Client >= 1.8

Install
  • Java 8 mandatory.
Forge
  • Download the recommended installer, and run it with
java -jar forge-1.12.2-14.23.2.2611-installer.jar
Optifine
Liteloader
Mods
A simple mode displaying the status of current armor.
Does what it says. Show armor status (in number of hits), and monster health indicator.
Lot of indicators, maybe too verbose. Nice monster health indicator.
  • [1] An alternative?
  • StatusEffectHUD
  • InventoryTweaks
The usual inventory-tweak, with many nice features, like prevent-break item changer.
  • Inventory Sorter, an alternative? (found [rhttp://www.mc-mod.net/inventory-sorter-mod/ here]).
A simple inventory and any container (including chest) sorter. No much configuration it seems.
  • Macros/KeyBinding
Nice X-ray. Can show chests. Distance can be changed, as well as the type of ore/block.
The usual finder. No indication of height, so a bit annoying of course.
  • VoxelMap 1.12.2, fork of original Zan's minimap. Difference with original? The mod we used in 1.7.2 (found here).
Z Zoom in/out, M options, X togle full screen map; N Quickly add waypoint.
Changes compared to 1.7.2: support and detect multi-world; no waypoint beacon. Waypoint label shown only when hovering onto it. Full screen map.
Nice minimap. Does *not* show chest, but shows items and entities.
Nice mapping feature. But cannot teleport to waypoints, it seems to be a permission problem.
Resource pack
Mods to try

Minecraft Client < 1.8

Install
  • Do not use Java 8 — Use java 7 instead!
sudo apt install oracle-java7-installer
  • Download Minecraft.jar and start it with
java -jar Minecraft.jar
Optimize
  • http://www.minecrafthasrunoutofmemory.com/13-ways-to-make-minecraft-run-faster/
    • Install Optifine
    • Allocate more memory
      however there is conflicting recommendations there. Probably garbage collector introduce big latency if lots of memory is allocated, whereas smaller memory will trigger the gc more often but with less work. There is an option however to trigger the gc incrementally (-Xinggc)
    • Run in windowed mode
      Sometimes MC freezes in fullscreen, but runs fine in window mode, even maximized!!!
    • Run 64-bit java / Change java provider
  • http://www.minecraftforum.net/topic/343030-minecraft-speedoptimization-guide-v-24-1-updated-on-mar-14-2013/
    • Play on "fast" and "tiny" graphics, turn off clouds, and use Advanced OpenGL
    • Don't Use texture packs bigger than 16x, which is the default resolution
    • Give minecraft more/less memory (384MB for vanilla, 512 when using lots of mods, 2048MB when 100 mods, lots of creatures, etc)
    • Update LWJGL! (LightWeight Java Game Library)

Client tuning

See below for list of mods that improve FPS

Minecraft server

See Minecraft server.

Mods (Single and Multi Player)

!!! Some mods below are considered cheat !!!
!!! Risk of BAN by servers !!!
!!! Check the server rules (e.g. list on empire craft servers)
Modloader
Better FPS
TODO : Compare with vanilla minecraft.jar (for which I get pretty amazing performance in fact)
Optifine - Understanding Minecraft performance
  • Optifine (forum link: [3])
    Since U HD C5, install optifine jar by dropping it into forge mod folder.
  • FPSPlus Improve FPS (not tested yet)
Better graphics (shaders)
Mod that gives incredible realistic-looking graphics in minecraft, with dynamic shadows and water reflection.
To install:
  • Install optifine directly in minecraft.jar (don't load as FML mod)
  • Install GLSL shaders mod as FML mod (make sure archive has .jar extension)
  • Copy SEUS shader archives in .minecraft/shaderpacks
  • Select the shader and select new block breaking
  • Make sure you have a resource pack with specular mapping (see texture section, EN Packs)
SPC-only
SPC and MPC
Better controls
  • (forge mod/compat) ControlPack Improve considerably key bindings (sprint key, fast item toggle, etc)
  • (?) Better Sprinting Better sprinting (key, toggle)
!!! RISK OF BAN !!! — Some servers detect the use of this mod, and ban users using it.
The plugin is detected easily because it sends the identification string BSprint to the server.
Work around — It is easy to work around the detection:
  • Unzip the jar
  • Open the file ./chylex/bettersprinting/mod/GuiSprint.class in an hexeditor (like hexedit)
  • Find the string BSprint and change it to something else of same length (e.g. BBBBBBB)
  • Update the jar
  • Can be blocked / detected by NoCheatPlus (in particular "inventory.fastclick" and potentially "combined.improbable" have been reported to cause conflicts with the mod's rapid movement of items).
  • A better version of Too Many Items (handy to get block ID?).
Bug-fixing mods
Cheat (light and/or not detectable)
enable entities and cave mapping even if disabled by the server
Check the link above for helpful tips
Check this link for advice to avoid being detected on multiplayer servers
Check this link for advice on how to avoid being detected on multiplayer servers
Or try the old x-ray mod (download and instr)
Highlight visible and invisible chests. Redundant with x-ray.
Cheat (hard-core)
To craft any items in survival single player, or in creative SMP, including any possible enchantments.
Press r for Simply Hax Flying, i for Simply Hax Vision.
Not great. Flying is detectable, and vision is mere clipping vision.
A pack of several SSP / SMP cheating mods (chest finder, mob aura, fly, jump, no fall, step...)
  • MobAura Automatically attack surrounding mobs
  • KillAura
Attack player automatically
  • Forcefield
Turn player and attack automatically (almost not detectable)
http://www.minecraftforum.net/topic/1846552-152-un-detectable-x-rayforce-field/
  • AimBot / ClickAimBot
  • MoomanPack3 (Forcefield-alike incl. rei's minimap bypass)
Forge mod (not full client!)
Supposedly with noCheat workaround.
  • Nodus 1.6.2 (not tested against virus! — more client on the same page)
Well known old griefing client
Griefing / cheating client (incl. forcefield)

See anti-cheat pluggin on Bukkit for counter-weapons ;-)

OS Hack
Simple linux tool to emulate lag on the client side using netem / tc.
sudo tc qdisc add dev eth0 root netem delay 250ms    # to add 250ms lag (more complex scenario possible)
sudo tc qdisc del dev eth0 root netem                # to remove

Macro / Key Bind

__NOMATHJAX__ (liteloader mods) macro / key bind mod 0.9.11 (requires liteloader)

Key down: $${SPRINT}$$
Held:     $${SPRINT}$$      Delay: 1ms
Key up:   $${UNSPRINT}$$
  • Select previous slot on down, and back to previous slot on up (for instance key LMENU):
Macro[56].Macro=$${SET(#prevslot,%INVSLOT%); DEC(#prevslot); Slot(%#prevslot%)}$$
Macro[56].OnKeyUp=$${INC(#prevslot); Slot(%#prevslot%)}$$
Macro[56].Mode=keystate
  • Select next slot on down, and back to previous slot on up (for instance key E):
Macro[18].Macro=$${SET(#nextslot,%INVSLOT%); INC(#nextslot); Slot(%#nextslot%)}$$
Macro[18].OnKeyUp=$${DEC(#nextslot); Slot(%#nextslot%)}$$
Macro[18].Mode=keystate
  • (For 1.7.2) Auto-select food and eat key (stop eating if releasing the key, but it will only eat one item):
# KEY_A
Macro[30].Macro=$${set(#lastslot,%INVSLOT%); pick(mushroom_stew,cooked_beef,cooked_porkchop,cooked_chicken,bread,cooked_fish,cookie,cake,beef,carrot,potato,porkchop); set(#newslot,%INVSLOT%); do(32); key(use); while(%INVSLOT%=%#newslot%);}$$
Macro[30].OnKeyUp=$${slot(%#lastslot%);}$$
Macro[30].Mode=keystate
  • (Before 1.7.2) Auto-select food and eat key (stop eating if releasing the key, but it will only eat one item):
Macro[30].Macro=$${set(#lastslot,%INVSLOT%); pick(360,364,322,357,350,366,391,297,393,260,319,363,320,282); set(#slotid,%ITEM%); LOG(Eating item id %#slotid%); do(32); key(use); while(%#slotid%=%ITEM%); }$$
Macro[30].OnKeyUp=$${slot(%#lastslot%);}$$
Macro[30].Mode=keystate
  • Last selected slot logger (for debug):
Macro[30].Macro=$${set(#lastslot,%INVSLOT%); set(#slotid,%ITEM%); LOG(last slot %#lastslot% id %#slotid%); }$$
Macro[30].OnKeyUp=$${slot(%#lastslot%);}$$
Macro[30].Mode=keystate
  • One can record last slot number before change by registering event onInventorySlotChange
Example: $${SET(@#lastslot,%OLDINVSLOT%)}$$
  • Command like pick(...) now takes an item NAME id. Numeric id no longer works. To get the name id, just bind a key to the following command and press that key:
log($$i)

Hacked Client

Look also:

Some says it's lag
  • Auto-block
  • Kill Aura player (cpu takes full control)

Textures

Tips

Color on Signs

See [6].

TBC

PvP Tips

Faction bases and TNT

Some techniques and counter-techniques to protect faction bases on PvP server:

  • Regular base can be attacked via regular TNT cannon
  • Usual counter-technique is to use a water wall around the base
  • Hybrid cannon can be used to destroy water wall, although only at the base of the wall.
  • If water wall is at the border of the faction claimed chunk, one can use pistons instead to push blocks in the water. Eg. Push 1 glass block, 1 TNT block on top, and yet another block on top to protect from falling water.
  • Use redstone block to trigger a TNT from a distance. Use a piston to push up to
TODO
  • If TNT & sand is falling while overlapping, and TNT explodes while still being overlapped, will the engine consider the TNT be in a water block or in the overlapping sand block?
NOTES
  • Falling sand is not longer a regular block, but an entity handled by the physical engine.
  • Falling sand that hits a slab or similar will break.
IDEAS
  • Foresee an intrusion detection mechanism that will trigger a chest transport system. Like moving the content of the chest to another location. Eg: explode the chest, collect result deep down, use hoppers to move items around, then TNT everything afterwards.
  • Make walls in 1/2 obsidian, 1/2 water source. Each time an obsidian is broken (takes 7 TNT on CraftyServ), this will reveal a water source, adding to the water wall around obsidian.
  • Ideally protect a single chunk, and claim the 8 chunks around (so that distance is at least 16 blocks, cannot be reached via Piston). Maybe 4 chunk around (n,s,e,w) is enough, but would need carefull thinking ;-)


Secret bases

  • Build a transparent base very high in the sky, touching the y=255 limit.
    • Base should be transparent (glass block) so that it does not cast a shadow on the floor.
    • Ideally do it above ocean so that we can leave the base easily. It also makes the shadow (if any) harder to spot.
    • If the base is really high, it should not be visible in normal render distance setting (limited to 128 blocks max). This is then better than building the base underground, since it is still visible if player has an x-ray texture pack or mod. However in far (max 256 blocks) the base becomes visibles when staying long enough in the chunk or neightbourhood
  • Better solution, is to make the base out of chests only. Set all chest at y=255, and one at y=254. Sit on top of the latter, and set your home there.
  • This works because chests are no longer rendered when away of ~64 blocks! This makes a really invisible base ;-) (see [7], this is not a bug but works as intended)
  • Chest do not appear either on the rei's minimap at such height, so the base will not appear even on uniform landscape.


Hiding things


  • Use paintings + door behind (or signs) to hide secret entrance
  • Hide chest behind lava
  • Click + jump
  • Sign when clicked reacts like a button? --> hide behind lava
  • Using hoe on dirt triggers a redstone signal (at least with a torch under it - see [8])


  • Note: wood staircase can look like wood blocks, and seemingly block chest, when actually do not since they are non opaque blocks.

Other

Use QWERTY keyboard
  • Use QWERTY keyboard so that to switch fast between objects (direct access to keys 1, 2, 3...)
  • Under Ubuntu, use English (US) keyboard. The keyboard must be the first listed in the layout list (seems that Minecraft engine uses the default layout for controls, not the currently selected layout).
Escape

Commands to escape fast (pvp/monster)

/p h
/p home
/logout

Other ways to escape:

  • Ender pearl (even better if escaping into no-pvp area)

Hunger games tips

  • Master lava, water and flint and stone (both in attack and defense/avoid)
  • Make a lava trap to defeat powerful opponents (like standard pits trap with piston, or staircase variant)
  • Use Ghast Novice to rapidly finish an opponent (see Kowze)

PvP and Cheating

  • Aimbot / forcefield cheaters
  • Lag
  • "god" mod: no damage, god mode, infinite health...

Questions:


Player damage can also be cancelled by the server:

  • By No-Cheat-Plus (see [9])
  • or Essentials (see [10] or [11])

This may explain why some players have their health rolled back to maximum.

Long list of common hacks:

Guides and Game Tips

Enchanting

Brewing / Potions

Factions

PvP and Hunger Games

Excellent guides from Kowze on how to survive and win hunger games.
Organize the controls and use hot keys:
  • middle finger for forward, backward, item 2; index for strafe left and item 1; 3rd finger for strage right and items 3 to 6.
  • item 1 for your sword, slot 2 for kit item, slot 9 for active block / pickaxe / compass.
Block hitting
  • don't spam hit button. Instead always block (this halves the damage), and only release block, and then attack instantly and block back instantly. This way we can only be hit at full force while hitting ourselves.
Block hitting while souping
  • Hit once, then while blocking, press slot 2. When soup is eaten, instantly press slot 1.
  • Idem with slot 2, etc (so pattern is like 1 2 1; 1 3 1; 1 4 1;
Refill techniques
  • Shift + click
  • Crafting
  • Quick drop (this means assign drop key as the slot 1 key — ! CAUTION ! pressing slot 1 key twice would mean you drop your sword)

Farm Slime ball

Slime spawns naturally:

  • At night in swamp biomes. Their spawn rate is maximum during Full Moon.
  • In specific chunk in some y-range.
Attacking slimes in swamp biomes
  • Go to a swamp biome.
  • Set Full Moon with time set 110000 [12]
  • Use a sword with Looting III to maximize drop.
  • Keep moving in the swamp biome to trigger monster spawn/despawn cycles.

More advanced farms in minecraft wiki.

Servers

Minecraft Hungergame
CraftyServ
  • 94.23.19.180:26045
DreamServ
  • 193.107.59.145:25565
ZK Games ([http://www.youtube.com/watch?v=Y-jonbyyeoI Kowze's server)
Survivia Hunger Games
Minecraft-PvP
MineSkora HG / PvP / Factions
Minecraft Survival Games
HiveMC
Use custom block ID for chest: Block id is 33 (same as piston)

Name of cheaters:

  • JooKrrX
  • AL_7Rby
  • Mart208222 (hit many times, by several players, life gauge going down to red, then each time life rolled back to green)
BastonField
Hunger Games & Balls of Steel
Hungergames-mc.fr
  • Homepage: http://www.hungergames-mc.fr/
  • HG Servers (max 200 slots): 1.hungergames-mc.fr12.hungergames-mc.fr
  • Other server: event.hungergames-mc.fr
  • Other server: pvp.hungergames-mc.fr
HG servers have 200 slots. Some servers have random events, like explosive or instant death, etc.


Other useful links

Ideas

Some bad / good ideas I'm thinking off, and should try someday if they work:

  • Hunger games - harvest gold and create a golden apple.
  • Hunger games - harvest lot of gold and create an enchanted gold apple
  • Hunger games - Create a geant lava tower, and hide underneath
  • SMP (!grief) - Make a gigantic lava pyramid by using lava / water bucket alternatively. One can possibly grow a pyramid even within area he has no permission. This can be used to grief, but also to attack a faction base (if said faction is under water for instance).
  • SMP - Water can be placed at level 256, but cannot be removed. How about lava? Also can admin remove the water?


Skins

totally_spice

Tools

Overviewer

A 3D world mapper

pigmap

Like Overviewer, but fancier / faster.

dynmap

dynmap is a server-side plugin. See Minecraft server.

Minutor

Another Minecraft mapping tool, fast, portable and expandable (win, linux). Not tried yet. See also Github page.

Amidst

Amidst allow to display an overview of a minecraft world from the seed, without the need of creating it. It can locate structures like villages, stronghold, fortresses...

Some limitations in v4.3 beta 2:

  • Not all villages are shown. Miss villages in some biomed, since MC 1.10 (Issue #177).
  • Woodland mansions not yet merged (Pull request #370).

Bugs - workaround

Game launch issue

Game closes immediately after launches.

Possibly giving the following messages in the log:

[21:44:44: ERROR]: java.io.IOException: Stream closed
[21:44:44: INFO]: Game ended with no troubles detected (exit code 0)

Solutions:

  • Do not use java 8 — Must use Java 7 instead. Uninstall all version of java 8, and install
sudo apt install oracle-java7-installer
Error about bad Minor/Major in Minecraft 1.12+
  • Install java 8.
Can't play online, java error java.security.InvalidAlgorithmParameterException

When launching the game, version 1.7.2, with oracle-7-jvm, we get the following errors:

Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
...
[15:24:59 ERROR]: Unexpected exception refreshing version list
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

As a result, launcher only allows to play offline. This seems to be an issue with an empty cacerts [13].

Tried

update-ca-certificates -f

but to no avail. Maybe because it was not done for the correct java version? Let's look further:

locate cacerts
# ...
# /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts
# /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts.original
# /usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts
# ...

l /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts
# lrwxrwxrwx 1 root root 27 Mar  5  2017 /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts -> /etc/ssl/certs/java/cacerts
# --> ... BUT /etc/ssl/certs/java/cacerts does not exists!

l /usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts
# -rw-r--r-- 1 root root 111K Nov  4 11:51 /usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts
# ... Let's use this one...

sudo rm /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts
sudo ln -sf /usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts /usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts

Problem solved!

Other issues

Mouse pointer not centered when in fullscreen
  • Install mod Fullscreen Mouse Position Fix
  • Or maximize window first, and then enable full screen (code takes width/height of window to position the pointer)
Sticky key (movement key)
  • Use a wired keyboard, not the wireless keyboard!
Unsupported keys with foreign keyboard on Linux (also with keybind / macro mods)
Minecraft minimizing and losing focus on media key press (volume up/down)
  • This is minecraft bug MC-69793.
  • See askubuntu.com - Suggests to use Launcher keyboard shortcuts to select back Minecraft application.
  • ... or suggests to use wmctrl.
  • Similar issue in Minecraft 1.12. But using Super+Tab until selecting back Minecraft allows to return to Minecraft.
  • For this to work, in Compiz config manager, ubuntu Unity plugin, launcher, make sure that Super+Tab is mapped to Launcher Application Switcher (and reverse with Shift).