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

Different gradle wrapper version for Module

I have a project with several sub projects and I have issue where one of the sub projects requires gradle 4.9 when the other projects with the latest. Is there anyway to set the gradle wrapper version for this module? I tried adding the all the…
0
votes
1 answer

How to avoid changing ownership of every file in a volume when starting a docker container using docker compose?

I am relatively new to docker and docker-compose so as my first project I have been working on making a Minecraft server. I am using an image from marctv with the latest PaperMC server. I am also using dynmap to create a nice map of the world which…
0
votes
0 answers

Is there a way to kill an entity when it is far enough

For context, I'm making a mod and I have been trying to make a wave of water blocks to damage entities. The way I'll be doing it is by tracking an invisible fireball and the fireball will go only 10 block away from the player before being killed. I…
0
votes
0 answers

How can I make all mobs that are chasing a player, stop chasing that player?

I'm making an Item that when used, it'll make all mobs stop chasing the player that used it. I tried user.endCombat();, but that didn't work. Here is some of my code: @Override public TypedActionResult use(World world,…
WhatTheClown
  • 464
  • 1
  • 7
  • 24
0
votes
1 answer

How to get on a minecraft server that you are currently connected to on another computer

Basically, if I'm connected to a minecraft server on computer A, then can I connect to the same server on computer B without server noiticing disconnecting on computer A and reconnecting on computer B? Back in 2020 I think there was an exploit,…
Blay
  • 93
  • 1
  • 10
0
votes
0 answers

How do I render the voxel faces that are only exposed to air in a chunk

In the LWJGL, I have a program that renders a chunk of 16x16x16 voxels. I want to implement an optimization where the faces of the voxel only render if they are exposed to air. I know there must be 3 steps to this: assign the vertices to their…
Solodobo
  • 9
  • 1
0
votes
1 answer

How to Handle Collision in 3D Grid based Game

How do games like 3D Games Minecraft with a grid handle collisions their are thousands of block divided into chunks each with its own bounding box how is collision detected calculated and processed i tried AABB but it didnt work well with each block…
0
votes
0 answers

How do I kill a Minecraft server process created using spawn()?

I've already got a Minecraft server running via Node.js, now the issue is getting it to close. When I add a callback method to the exit event and call kill() on the server process... // Create server process mcserver.process = spawn("java", [ …
arthurgps2
  • 101
  • 1
  • 7
0
votes
1 answer

Removing a material from an Itemstack out of players inventory

I am working on a plugin that allows players to fly at the cost of a item. I have this code that works but only if the item is in the first slot of the players inventory (Hotbar) and no where else. To enable fly I have a command class that checks…
Mike
  • 1
  • 1
0
votes
2 answers

How can I get the player that opens a crafting table in a Fabric mod?

How can I get the player that opens a crafting table in a Fabric mod? My current code to get inventory title/type @Mixin(HandledScreens.class) public class FastCraftMixin { @Inject(at = @At("HEAD"), method = "open") private static
0
votes
0 answers

I get "no lwjgl in java.library.path" when debugging my client

I'm setting up my workspace in IntelliJ for MCP and I've completed every step except when I debug my client, it shows up with an error for no lwjgl in java.library.path. I have tried setting -Djava.library.path to where are my libraries are but it…
louis
  • 1
  • 1
0
votes
1 answer

PlayerInteractEvent is running twice in Bukkit when clicking a block even when I check for offhand

My event handler is running twice when clicking a block event when I check for off hand. I tried to check many of the values that could screw this up but they are always the same. There's my code: package me.ronking159.jtest.handlers; import…
Ron Caspi
  • 1
  • 1
0
votes
0 answers

How to make the mineflayer bot not break blocks endlessly on a specific minecraft server?

I want my bot not to dig blocks endlessly on the mc.mstnw.net Minecraft server. I expected that the bot will dig blocks like in the local world, but after he breaks 2-3 blocks normally, he starts digging them endlessly, after that it is kicked by…
Arothron
  • 1
  • 2
0
votes
0 answers

While trying to compile a spigot plugin using maven, I run into an issue and am really tired of it

The Error: net.atlas.SkyblockSandbox.player.SBPlayer is not abstract and does not override abstract method getTexture() in org.bukkit.entity.Player Some code I think is causing the issue (If more is needed to help fix the issue please let me…
Synthle
  • 9
  • 1
0
votes
0 answers

c# autoclicker right click makes the program stop working

Im trying to develop an autoclicker for Minecraft. When I try to use the right click the autoclicker stops working(It goes to 0cps). I want to be able to use the right click while the autoclicker is still working. For example, that the program…
Jared
  • 1
1 2 3
99
100