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

Why is Level.addParticle() method not displaying particle when executed?

I am attempting to make an entity that spawns a cloud of particles. Whenever I use the addParticle() method, the particles don't spawn, but replacing it with a setblock does spawn blocks. The method call looks something like…
0
votes
1 answer

How would I force download a certain file everytime a server is started?

How would I force my server to download a specific file every time the server is started up? For example; I have a plugin coded, and I want to make it so it will automatically reinstall that plugin to the server every time it is started up, but I…
0
votes
0 answers

Minecraft modding 1.12.2 entity creation causing noclassdeffound in built project

I have created a Minecraft mod in forge 1.12.2, it works just fine in IntelliJ when I run it there, but when I build it I get a noclassdeffound error. From the crash logs, I can see that the issue is in one specific line of code: …
0
votes
1 answer

How to get the minecraft server version of paper or spigot or bukkit jar using java code

I want to get the version to change the java version automatically. Because until 1.16 needs java 8 however from 1.17 to launch server needs java 17 etc. I was tried get manifest and mainclass. and then, get mainclass's major version. but high…
Fasmos
  • 23
  • 3
0
votes
1 answer

I need Glibc install

How do I install Glibc 2.28 on linux ? I've looked for different ways and I couldn't. I need it to start a bedrock minecraft server on a vps. If you know an easier way to open a server with minecraft bedrock plugins, please tell me, I've been trying…
0
votes
1 answer

Discord Bot Post requests to Browser

I would like to create a bot that sends a request (post) via a command /refresh with certain information so where I say /refresh test and it then sends a POST with certain information that is given for the time being. Like…
Proximo
  • 11
0
votes
1 answer

ProtocolLib Advancement Toast Packet

How do I show an Advancement Toast with ProtocolLib? My code: PacketContainer packet = protocol.createPacket(PacketType.Play.Server.ADVANCEMENTS); protocol.sendServerPacket(e.getPlayer(), packet); I tried with getStrings().write but nothing…
Mime
  • 9
  • 2
0
votes
0 answers

Minecraft 1.12.2 modding custom entity trouble loading textures onto model

I am trying to add a custom Ghost to Minecraft 1.12.2, I have created a model using tabular and followed a tutorial by Turty Wurty (Only followed from the point where he implemented the entity, this could be part of the problem, but I did add…
0
votes
0 answers

Discord.js Cannot find module 'node:events'

Im trying to make a Discord Bot as a Plugin on BDSX which is a Minecraft Bedrock Edition Server Software that supports node.js but when i try to run it the Plugin fails to load This is my Code im using node.js v16.16.0 and discord.js v14.6.0 const {…
iEnis
  • 15
  • 4
0
votes
1 answer

Mojang session server returns incorrect information

name = requests.get(f"https://sessionserver.mojang.com/session/minecraft/profile/{member['uuid']}").json()["name"] I use python to get minecraft nickname from uuid. I had no problem before, but today this API returns me random symbols. Is this…
Yaroslav
  • 21
  • 2
0
votes
2 answers

Getting an the name of an item and getting the string value returns gibberish

I want to get the player whos name matches the name of the block which was placed and updated this players gamemode to survival. But this just gives me gibberish in the console: @EventHandler public void onPlace(BlockPlaceEvent blockPlaceEvent){ …
YoRisk
  • 3
  • 4
0
votes
1 answer

Domain modeling help / optaplanner viability (Optaplanner)

I was hoping to attempt creating a bot to automatically play a video game, and was wondering if Optaplanner could be used for task planning for the bot. The bot has a starting state, desired end state, and different tasks it can perform. The goal…
es1ph
  • 1
  • 1
0
votes
1 answer

How do I make a plugin that sends a message to specific people?

I want to make a plugin which sends a message to people who I specify in config.yml. MinePlayers: -me -someone_else But I can't think of a way to do this. My current code doesn't run, but I will paste it: public class antixray implements Listener…
FR0314
  • 3
  • 3
0
votes
0 answers

How does minecraft see the textures of a zip file without the .z0 file?

Today while i was going around some minecraft texture in a site i found one with some interesting models, i tried to unzip it, but it turns out that the file .z0 is missing, so the extractor failed to unzip it. I tried different way to do that but…
GioPera06
  • 1
  • 2
0
votes
1 answer

Error in mineflayer: Unsupported brand channel name

I'm trying to make a mineflayer bot but it seems to keep sending the same error. Here is the code: const mineflayer = require('mineflayer') const bot = mineflayer.createBot({ host: 'localhost', port: , username: 'Test_Bot' }) And here is the…