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
0
votes
0 answers

Forge default example is crashing during start

I've tried to code a new forge mod with the example on minecraftforge.net After importing with Gradle and generating run configurations, I tried to start the client with the example. I used java liberica-1.8 and the latest forge mdk - 14.23.5.2860…
Tobstr_
  • 1
  • 1
0
votes
1 answer

How to crop a part of a image

In c# how can I crop a part of a picture like they do in minecraft thanks in advance
Matthewj
  • 1,932
  • 6
  • 26
  • 37
0
votes
0 answers

Using reflection to add elements to an arrayList from another class

I'm trying to make a mod, so I have been looking for a way to access a protected arrayList from another class. So far I have managed to use my new basic understanding of Java reflection in order to do so. I have been able to find the field I am…
0
votes
1 answer

Java IllegalStateException: Protocol error from sending a Encryption Response packet to server

I am trying to make a java program to be able to login to a minecraft server. From this and help of some other related posts like this I have been able to deal with the Handshake, Login Start and Encryption Request packets. The problem is in the…
EnderPoint
  • 15
  • 6
0
votes
1 answer

Error in Mine Script for CC:Tweaked and Advanced Peripheral

I got a Pastebin script for a Script that takes your Ores and Raw Materials in Minecraft (1.18.2) but when i execute it it stops after 1 Item and says bad argument (table expected,got nil) on line 31 https://pastebin.com/yrMbyY2Y --inventory filter,…
0
votes
0 answers

.zip not converting into .jar properly

When converting .zip files into .jar files by renaming them they always corrupt. I'm downloading the source code for a Minecraft mod and editing some of the .json files in it nothing much but when I change the . suffix from zip to jar the mod does…
0
votes
1 answer

Azure Active Directory get access token

I'm kinda stuck on how to get the access token from a webview login. I have a link working but after they type in a code / password I want it to send the token back to the client device. How do i do this? Current redirect uri is…
0
votes
1 answer

Customizing the TabList with Bukkit 1.8

I'm working on a UHC Minecraft plugin with Bukkit API 1.8 I'm looking to modify the TabList (Player List) to display the Plugin name and credits (and potentially the player's kill count if possible) Searching on the internet I found this fill…
Av32000
  • 35
  • 3
0
votes
1 answer

Getting Minecraft packets as raw text

My goal is to instantly get every incoming Minecraft packet as text. I don't care if its JSON, xaml or anything else, as long as I can search trough it with .contains(). I also don't care if this is achieved with a mod loader like forge or an…
Janx
  • 1
0
votes
1 answer

Error in exe created with pyinstaller (minecraft_launcher_lib)

I'm trying to make my own launcher, but I'm getting an error in the output. import os import shutil import json import subprocess import sys import time from PyQt5.QtWidgets import QApplication, QWidget, QPlainTextEdit, QLabel, QLineEdit,…
Y_Y
  • 25
  • 4
0
votes
1 answer

Add plugin to minecraft server

I downloaded the minecraft java server .jar file and it works well. But now i want to add java plugins into the server. How can I do that?
0
votes
1 answer

How can I cancel Scoreboard Team every second on player quit - MInecraft Spigot 1.19?

I would like to have the teams "coins" and "tokens" update in the scoreboard every second when the player enters the server. The BukkitRunnable should be interrupted when the player leaves the server. I experimented a bit and found a solution. I…
TheHuman
  • 11
  • 1
0
votes
1 answer

I can not open downloaded from the server on android add-on files minecraft

I have a task, I need to download from the server add-on files for minecraft (.mcaddon, .mcpack, etc.) on android. For this I use DownloadManager. It downloads the files, but I can't open them in minecraft. I assumed that the problem is in MimeType,…
0
votes
1 answer

MongoDB , cant connect because he cant find the Hoststring

Good Moin, I'm switching to MongoDB from MySQL and well I used the Connection String from the MongoDB Cloud website but it doenst work. public boolean connect() { try { client = new…
Moritz L.
  • 9
  • 3
0
votes
1 answer

XNA is pulling the wrong texture?

I am making (another) MineCraft clone, and I've run into an interesting problem. I have a public enum that lists all the cube types a particular cube can be, and I have a 3d array that holds cubes. Each cube has a specific type, and I iterate…
Bill Sambrone
  • 4,334
  • 4
  • 48
  • 70
1 2 3
99
100