Questions tagged [minecraft]

Use this tag for programming-related questions about the computer game Minecraft. Note: Minecraft questions are generally OFF-TOPIC on Stack Overflow unless they relate to creating mods/plugins or otherwise developing for the game. Questions related to gameplay are best asked on gaming.stackexchange.com.

Minecraft is a voxel-based sandbox game coded in Java with LWJGL (which includes OpenGL) by Markus "Notch" Persson and his company Mojang.

In September 2014 Mojang was bought by Microsoft and the founders including Notch no longer work for the company. Source.

In the game players interact with the world formed of blocks to gain resources that can be used to create tools, structures, shelter, and eventually, complicated machinery. The game comes with enough features of wiring to allow the complexity to build a full 16-bit CPU out of its wiring.

Multiplayer functionality can be used by downloading a server that runs in Java and takes commands from the command line or from users typing commands starting with a slash / in-game on the server chat.

Questions are also sometimes used with to denote coding Bukkit plugins written in Java, which modify serverside behavior of the game (but cannot add new blocks or items, only new behaviours). Such plugins normally support the CraftBukkit and Spigot implementations of the API, although there are some with specific implementation dependencies. A Bukkit plugin's base plugin class must extend org.bukkit.plugin.java.JavaPlugin for the Bukkit Server class loader to recognize them. Note that as of August 21, 2014 at 8:42 AM, Bukkit has been discontinued, and both CraftBukkit and Spigot (implementations of Bukkit) has been taken down due to DMCA requests.

Clientside mods are usually written using [MinecraftForge] and are capable of adding new blocks and items. For more information about MinecraftForge, see .

Minecraft is available on:

  • PC May 17, 2009 (first public release as Developmental Alpha Version)
  • Xperia Play - August 16, 2011 (Pocket Edition)
  • Android - October 7, 2011 (Pocket Edition)
  • iOS - November 17, 2011 (Pocket Edition)
  • PC - November 18, 2011 (Official Release)
  • Raspberry Pi - February 11, 2013 (Pi Edition based on the Pocket Edition)
  • Playstation 3 - May 14, 2014
  • Playstation 4 - October 3, 2014
  • Xbox 360 - May 9, 2012
  • Xbox One - September 5, 2014
  • Nintendo Switch - May 12, 2017

The game has reached huge levels of popularity and has made a large sensation (Minecraft has now sold over 15 million copies for PC/Mac).

Official website of the game: Minecraft.net

NOTICE: Questions about playing Minecraft are generally OFF-TOPIC on Stack Overflow. Please post on our sister site, Arqade, using one of the following tags depending on which edition of Minecraft you have:

Questions regarding developing mods are, however, on-topic.

3762 questions
80
votes
5 answers

How to redirect DNS to different ports

TL;DR: DNS resolution of a domain(s) must map to IP:port(s), instead of just IP. Example, sub1.example.com 192.0.2.4:4567 sub2.example.com 192.0.2.4:5678 I CAN modify DNS records. I own the domain "Arboristal.com". I also own all sub domains…
Swordstoo
  • 855
  • 1
  • 8
  • 10
28
votes
9 answers

Java Could not reserve enough space for object heap error

I have Java7 running on 32-bit Windows and 4 GB RAM, but: java -Xmx4G -Xms4G -jar Minecraft.jar java -Xmx3G -Xms3G -jar Minecraft.jar java -Xmx2G -Xms2G -jar Minecraft.jar ...still does not work. Error: Error occurred during initialization of…
Kemal Tunca
  • 281
  • 1
  • 3
  • 3
27
votes
4 answers

How does Minecraft perform lighting?

The only model I'm familiar with is diffuse lighting but this look way more complicated than that.
Xavier
  • 8,828
  • 13
  • 64
  • 98
25
votes
6 answers

Launch Minecraft from command line - username and password as prefix

I'm trying to make a simple custom Minecraft launcher thing. According to the Minecraft Wiki page for the Launcher, it should be possible to run the Minecraft launcher using username and password prefixes from the command line and go directly to…
mort
  • 704
  • 2
  • 9
  • 21
22
votes
1 answer

Where to start with creating Minecraft client mods

I've looked all over the net and YouTube and for some reason this is some top secret information or something but I'm trying to find out where to get started on making a Minecraft client mod, preferably something that can be put into a pack like…
Tony
  • 734
  • 4
  • 19
  • 37
20
votes
1 answer

Python can't communicate with subprocess of a Minecraft server

I'm trying to write a handler/controller for the Minecraft server. My problem is that I can't seem get writing and reading to work properly. When a client issues a command that uses the server class's method serverCom, the Minecraft server's…
MiB
  • 201
  • 2
  • 4
19
votes
3 answers

Syntax error: end of file unexpected (expecting "then")

I am making this code for a minecraft server plugin updater I am a new shell scripter so I don't know alot... when I run this code I get a error: #!/bin/sh export…
user2649805
  • 303
  • 1
  • 3
  • 7
18
votes
3 answers

How do I make conemu open bat files on double click?

I have a home-server where I run a Development minecraft server, and have moved to conemu as a CMD replacement, Exept each time I want to start the server I need to CD to the DIR & run the start.bat. Is there a way I could create a shortcut to just…
GodsDead
  • 325
  • 1
  • 3
  • 11
17
votes
1 answer

How to do face removal in a unit-cube world a la Minecraft?

Important note: This question is NOT about geometry culling (frustrum culling, back face culling, occlusion culling or any of their friends.) This question is about geometry elimination at set-up time, long before we get to culling and…
Olie
  • 24,597
  • 18
  • 99
  • 131
15
votes
2 answers

How is a 3d perlin noise function used to generate terrain?

I can wrap my head around using a 2D Perlin noise function to generate the height value but I don't understand why a 3D Perlin noise function would be used. In Notch's blog, he mentioned using a 3D Perlin noise function for the terrain generation on…
Xavier
  • 8,828
  • 13
  • 64
  • 98
15
votes
11 answers

The method must override or implement a supertype method

I am making a custom armor, and in my armor class I am getting this error: The method getArmorTexture(ItemStack, Entity, int, int) of type ArmorE must override or implement a supertype method Why I am getting this error? Here's my code: Armor…
GriffinMite
  • 193
  • 1
  • 3
  • 9
14
votes
2 answers

Minecraft Forge 1.8 - Loading Block Textures

I have just started learning Java while modding Minecraft. I have watched a tutorial on adding the blocks into the game using the Minecraft Forge API, but I have a problem. There is no longer the ".setBlockTextureName ()" method, so I don't know…
MrStank
  • 314
  • 4
  • 10
14
votes
7 answers

How to terminate Lua script?

How would I terminate a Lua script? Right now I'm having problems with exit(), and I don't know why. (This is more of a Minecraft ComputerCraft question, since it uses the APIs included.) Here is my code: while true do if turtle.detect() then …
user1610406
  • 722
  • 1
  • 13
  • 24
13
votes
4 answers

Run Configuration to Debug Bukkit/Minecraft Plugin in IntelliJ IDEA?

I'm helping my kid learn to create Minecraft plugins, although I don't have much experience with Java or IDEA. Everything is working well so far, but in order to execute our code, we have to: Make the project in IDEA (output path is set to…
Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
13
votes
3 answers

How to secure client-side anti-cheat

First, I want to indicate that I know that any information sent from the client cannot be trusted as it can be spoofed. I am interested in methods of security through obscurity to deter 99.9% of potential cheaters and ability to detect programs…
ParoX
  • 5,685
  • 23
  • 81
  • 152
1
2 3
99 100