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
7
votes
1 answer

Modifying Minecraft World files Programatically (Java)

I have a forge server/client project setup in Eclipse and am running a vanilla server. I'd like to copy some structures my children have built in another vanilla world and modify them slightly (ie. change the scale, replace block types, etc) and…
Casey Murray
  • 1,582
  • 17
  • 21
7
votes
2 answers

ClassNotFoundException on org.apache.http.ssl.TrustStrategy

I'm trying to run a plugin that makes HTTP/HTTPS POST requests. On it its declared the needed dependencies, that is httpclient and httpcore. I'm using versions 4.5.3 and 4.4.6 respectively. Although imported correctly all (I mean), I got this error…
bbruno5
  • 111
  • 1
  • 4
  • 9
7
votes
2 answers

Unable to properly calculate a normal/direction vector from pitch and yaw

My pitches and yaws are messed up. I have the pitch and yaw of the pad but the beam's pitch and yaw are messed up. How do i calculate the normal vector for the pad's pitch and yaw? I tried a crap load of math off of stackoverflow but they all…
Saad Ardati
  • 379
  • 6
  • 17
7
votes
1 answer

Java sending handshake packets to minecraft server

I have been working on a java program that basically acts like Minechat(text-based app to just view chat.) I have never really worked with networking too much, so the issue is figuring out how to send packets correctly. I am currently at the…
cameronlund4
  • 537
  • 1
  • 5
  • 27
7
votes
2 answers

How do I open my own inventory via a Event?

I am trying to open up my inventory whenever I pick up an item. This is in Bukkit. Here is the event so far, the arguments for player.openInventory are empty. @EventHandler public void blank(PlayerDropItemEvent e){ Player player =…
Mark Johnson
  • 127
  • 5
7
votes
3 answers

Java Unsupported major.minor version 52.0 error Minecraft

I am currently trying to run a plugin im working on onto a test server. The Minecraft server is running spigot 1.7.10, here is the servers java version: java version "1.7.0_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM)…
Madster
  • 83
  • 1
  • 1
  • 8
7
votes
2 answers

Can a synthetic or bridge method be used to smooth an int -> double API change?

Java has special markers on methods called synthetic and bridge. JLS 13.1.7, "Any constructs introduced by a Java compiler that do not have a corresponding construct in the source code must be marked as synthetic ..." So synthetic methods are…
Riking
  • 2,389
  • 1
  • 24
  • 36
7
votes
1 answer

Alternatives to Git for Minecraft server backup/version control

Currently my Minecraft server, residing on a CentOS server, uses Git as a means of version control and 'catastrophe-management'. This works very well except for two issues: It's big. Because the server has a central repository, master branch (on…
Chris Watts
  • 6,197
  • 7
  • 49
  • 98
7
votes
2 answers

Automatically read chat text from Minecraft

In Minecraft I was hoping to find a way to read the chat automatically like pictured below In order to record transactions made in the virtual shop into a PostgreSQL database. Preferably using Python. I do not own the Minecraft server. My plan is…
user1867827
  • 81
  • 1
  • 1
  • 4
6
votes
1 answer

Minecraft javascript error

I am trying to make a script that draws a circle for minecraft using singleplayer commands. For starting, I tried to do the basics; here is my…
DJRyan
  • 149
  • 2
  • 10
6
votes
1 answer

How could I copy the RAM of a running application, save it, and reload it into RAM later on?

I play modded Minecraft a fair bit. One downside to that is it takes a lot of time for all the mods to compile whenever I launch Minecraft. It can take around 15 minutes or so, which is too much time in my opinion. When a computer is running…
Laff70
  • 191
  • 4
6
votes
1 answer

Disable "Constant conditions & exceptions" inspection for field in IntelliJ IDEA

I'm using a framework (Minecraft Forge) that injects specific objects into public static final fields with null values (through the @CapabilityInject and @ObjectHolder annotations). Unfortunately whenever I reference one of these fields in a context…
Choonster
  • 141
  • 1
  • 7
6
votes
2 answers

Change player skin with NMS in Minecraft (Bukkit/Spigot)

I'm currently working on a plugin that lets you assume the identity of another player. It does this almost flawlessly: Your UUID and username are changed to that of the user whose identity you are assuming serverside, and as far as the server and…
Redempt
  • 169
  • 1
  • 1
  • 9
6
votes
1 answer

Download Github .zip without Repository's name folder

I have made a Minecraft Resource Pack for a server. I want to make it so I can push the textures and modified files to the repository without changing the download link every time. So, I came to GitHub to achieve such thing. Got all of it setup…
Charlie Kay
  • 85
  • 1
  • 6
6
votes
2 answers

Minecraft forge not loading textures

I'm trying to teach myself java syntax and using minecraft as a platform for diving in. I'm having a problem though because none of my textures are being loaded. For that matter neither are my localizations. Here is the code for my block package…
richbai90
  • 4,994
  • 4
  • 50
  • 85