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

Minecraft overlay doesn't appear (1.7.10)

I would like some help with my mod I am doing in version 1.7.10. I made an overlay that is displayed when the player wins exp in his job(so an ExtendedEntityProperties) I made a feature that with a boolean display message = true to run it when the…
MidacoYT
  • 11
  • 2
0
votes
1 answer

Problem with getItems() in CC: Tweaked with Advanced Peripherals

I'm using the Inventory Manager from Advanced Peripherals, and I'm trying to make a script that transfers my inventory to a chest but keeps the positioning of all the items. The getItems() function is supposed to return a table in which the keys are…
0
votes
0 answers

Minecraft Fabric IllegalAccessError when trying to generate ores

I'm getting an error when I try to run Minecraft when I implemented custom ore generation. I added 3 files: the ModConfiguredFeatures, ModPlacedFeatures and ModOreGeneration. This is the error: net.fabricmc.loader.impl.FormattedException:…
0
votes
0 answers

javax.net.ssl.SSLHandshakeException getting thrown in Eclipse but not once the project is exported

So I am trying to make a Minecraft client and I happen to need to download some content (A JSON file) off of a repl. It always worked in the past but now I get this error: 14:27:22.722 game at…
Orangy
  • 1
0
votes
0 answers

Why does my spigot plugin maven build fail - cannot access org.bukkit.advancement.AdvancementDisplayType?

I'm making a spigot plugin just for my minecraft server. Until now everything was OK and worked perfectly. Then I added some code and it just won't build... Here is the maven output: https://pastebin.com/fftMVJth And here is the code I…
0
votes
0 answers

Problem with my java keyinput listener - Minecraft 1.19.3

I tried to create keyinputlistener for my specific uses but i can't find reason why my function keyInputEvent nor Overrided function invoke from org.lwjgl.glfw.GLFWKeyCallbackI class don't execute every time there is a keyboard input. And yes i…
0
votes
0 answers

My Kotlinplugin for Minecraft is not working

My Plugin for Fabric 1.19.3 makes an error when i perform a command in chat Here is the code for the command class package me.lukas.mcplugin1.commands import net.kyori.adventure.text.Component import…
0
votes
1 answer

PyAutoGUI seems to ignore numpad key presses

I'm using Windows, Python, and PyAutoGUI to try to automate some activities in Minecraft as a fun project. I have been successful with using PyAutoGUI to switch to Minecraft once I start the script in Visual Studio Code, click on the "Back to Game"…
0
votes
1 answer

How to disable logs for MongoDB in minecraft Spigot plugin?

I'm trying to hide Level.INFO logs from MongoDB because it takes too much space in my console (it literally takes me about 50 lines in cmd). That is code that i tried: Logger logger =…
0
votes
0 answers

I have some problem with Hashmaps in my Spigot Plugin

I am making a plugin that when you run a command your Helmet will get saved in a Hashmap and in an other Hashmaps gets saved that you are now wearing that item then your head slot will get replaced with an item, but when I run the command I get a…
0
votes
0 answers

Audio Detection for Python

I wanted to make a python program which detects system audio. Just like open-cv match template, is there any module which can detect a certain "characteristic" of an image (or audio for my case) and we can set a threshold value, and if the threshold…
0
votes
1 answer

Minecraft Quarry with python

So I am trying to get into using the python library Quarry, but I have had problems with the proxy which is the feature I am trying to use. When I am using the default "proxy_hide_chat.py" example, when I try to load the server in the server list on…
0
votes
0 answers

How to override default Minecraft ids

I'm trying to override the default Minecraft armor by replacing it with custom armor but so far it's told me to use .set() I've tried to set my mod id to Minecraft and got told to use .set() Code: LEATHER_HELMET = Registry.register(Registry.ITEM,…
0
votes
1 answer

java.lang.NoSuchMethodException error but method does exist

I know there is, like, over 5 questions that ask this but mine is different. I am trying to get all classes in a package and run the tick function. Here is what one of my classes look like: package com.stupidrepo.mydirectory.yayay; public class…
WhatTheClown
  • 464
  • 1
  • 7
  • 24
0
votes
2 answers

Jar does not contain plugin.yml - not sure why?

I have the following code below. I am creating a plugin for Minecraft using the Spigot/Bukkit API and the java programming language. I have created this using the maven tool on eclipse. I enter mvn clean package into the terminal on my mac to…
Caledonian26
  • 727
  • 1
  • 10
  • 27