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.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
22 views

Minecraft Server Bot not working node.js (outdated ??)

Hello so I download a Minecraft server status bot from github Link for the bot the error it get when I type node . in a terminal is I tried looking in the code but java is new to me the code and ...
A1FrostBit's user avatar
0 votes
0 answers
8 views

Minecraft 1.20 Fabric Modding

I want to display about five lines of changeable info. I cant display it in the chat because the chat gets clogged up quickly (I need to update info per tick). Also I cant display it over toolbar ...
MrLavoviy's user avatar
-3 votes
0 answers
23 views

I have a problem with a certain sound.json file that does not exist for me, a problem with invalid characters. How can I solve this problem? [closed]

Error with launching minecraft client`---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: 03.12.2023, 21:10 Description: Rendering overlay net.minecraft....
  Grisharik's user avatar
-1 votes
0 answers
15 views

spigot 1.12.2 ask about falling block

How to make it so that when a player clicks on a stick, empty blocks (falling entity block) spawn along his trajectory. I can implement this, but I need to make them fall under the blocks. ((I.e. they ...
Goga Vonga's user avatar
-3 votes
0 answers
26 views

Which cloud service is the best for running multithreaded Minecraft? [closed]

I'm creating a synthetic machine learning dataset using Minecraft. I've developed a mod for the data collection process with whom a player is running around in a world. The mod requires lots of CPU ...
Top Snek's user avatar
-1 votes
0 answers
13 views

How to make a Docker container not use the VPN of the host? [closed]

Im trying to run a Minecraft server inside a Docker container on the same Linux computer I have for everyday use. It appears the server is only able to be connected to externally if my VPN is turned ...
Tholp's user avatar
  • 1
-3 votes
1 answer
35 views

Minecraft Server Won't Load User Built Creations [closed]

Basically, I use Putty to access my server files from Pufferpanel. I have been trying to run a different world file on a new server, however, the world takes ages to load and when it does, all my ...
Calax's user avatar
  • 49
-1 votes
0 answers
20 views

Java design pattern for mod system(Minecraft mcp) [closed]

i'm coding a minecraft client at the moment but I don't know how to write efficient a modular mod system. Until now I have one superclass called mod and subclasses with the implementation in it and ...
Quotschi's user avatar
0 votes
0 answers
25 views

Cant destroy oak button

so when I click on oak button it need to destroy the oak button and the coal block bellow but this happens enter image description here and getDrops().clear() dosent work there's still drops there's ...
Doshic's user avatar
  • 1
0 votes
0 answers
16 views

how to export Fabric 1.20 mod correctly

TREE OF THE FOLDER I dont know how to export this mod for fabric 1.20. This mod is supposed to send in chat a number when inventory is full. Can someone tell me step by step how should i export if ...
Yi Huang's user avatar
0 votes
1 answer
16 views

Minecraft/Spigot: Porting from Spigot 1.8 to 1.20 | Packets

Hello I wanted to port a old plugin from 1.8 to 1.20. I never used a higher version than 1.8 spigot and I also didnt coded anything since 4 years in that either. My old Plugin contained a function ...
user23010873's user avatar
0 votes
1 answer
33 views

Why are there no files in a folder I specified to map volume in docker-compose.yml?

I have the following Dockerfile FROM openjdk:8-jre-alpine ENV VERSION="1.0.961" ENV URL="https://www.tekxit.lol/downloads/tekxit3.14/${VERSION}TekxitPiServer.zip" ENV MEM=&...
hafometh88's user avatar
-2 votes
0 answers
35 views

yml null error in minecraft paper plugin interllij [closed]

This is a yml file. The plugin size is very small and we are only trying to add a single line of commands. The command line is shopbuy. This is the main file. There is no error when running in ...
이성권's user avatar
-2 votes
0 answers
63 views

Java error when generating a minecraft server [closed]

I've been trying to generate the server but this error pops up every time. I tried to change the amount of RAM I use and everything. Exception: java.lang.OutOfMemoryError thrown from the ...
Előd Simon's user avatar
0 votes
1 answer
21 views

How to add in third party API/library to Minecraft Fabric project?

I just starting learning minecraft modding today. I had successfully added a custom items into minecraft, now I want to start learning how to use third party API like trinkets and cloth config to my ...
Huan Sheng Tew's user avatar
0 votes
0 answers
28 views

A problem occured evaluating root project

So I am trying to add JEI as a mod dependency, I did it exactly how the docs said I should do it, and it gives me this weird error: Build file 'C:\Users\vixitu\Desktop\vixitumodfolder\build.gradle' ...
vixitu's user avatar
  • 21
1 vote
0 answers
11 views

Could not resolve me.shedaniel:RoughlyEnoughItems-api-fabric:13.0.666

So I am trying to add REI as an dependency to my mod, but it gives the error displayed in the title. I have watched a tutorial and did everything the same yet the build fails. I also tried to do it ...
vixitu's user avatar
  • 21
-1 votes
0 answers
24 views

Dynamic event listener - plugin minecraft

I'm developing a Minecraft server plugin that handles user authentication by restricting player movement until they're authenticated. Right now, I'm using an onPlayerMove event listener for this ...
Rumix's user avatar
  • 5
0 votes
1 answer
94 views

FAILURE: Build failed with an exception when running gradle build

I wanted to compile a Minecraft Mod from this Github Page: https://github.com/arm32x/command-block-ide So I opened the folder in Visual Studio code and run in the Terminal: gradle build After that I ...
Partymaster_88's user avatar
-1 votes
0 answers
26 views

How to get every entity between two locations

VMPlugin plugin = VMPlugin.getPlugin(VMPlugin.class); Location target = p.getTargetBlock(null, 5).getLocation(); World world = target.getWorld(); Location ploc = p.getLocation(); Entity[] entities = //...
vitekform's user avatar
-1 votes
0 answers
31 views

Problem connecting to Mojang website in MCUUID library

I have a map of a Minecraft server from which I want to collect statistics of all the players who have ever been on it. But there is a problem. The thing is that when I try to use this code... from ...
KirOFF's user avatar
  • 5
0 votes
1 answer
23 views

SQLite database connection closed or null Java

I am trying to make a Ban command for minecraft spigot 1.20.2. I am using SQLITE to store the data. I am using OnPlayerJoinEvent to check to see if the player is banned or not, if they are then we get ...
Jelly Fish's user avatar
1 vote
1 answer
31 views

Using sockets to send a UDP packet to see online state

I've created a function that lets me see if a minecraft bedrock (MCPE) server is online, these servers run on the UDP protocol as far as i'm aware. UDP is a connectionless protocol, meaning it doesn't ...
Thrallix's user avatar
  • 711
0 votes
0 answers
22 views

Crontab Opens Headless Terminal When Starting A Minecraft Server

I'm using crontab on Ubuntu 22.04.3 LTS to run a Minecraft server at 7 am everyday,the problem is that crontab runs the command to run the Minecraft server but without opening a visible terminal. If ...
PokePuff05's user avatar
0 votes
0 answers
35 views

Cannot query the value of this provider because it has no value available. The value of this provider is derived from: - extension 'minecraft'

I was trying to learn minecraft modding, and the tutorial told me to use Eclipse IDE. After setting stuff up (I copied forge mdk to root folder), I was told to run gradle genEclipseRuns. Then I got ...
ProGrammer's user avatar
1 vote
0 answers
27 views

Minecraft Fabric: Overriding vanilla registries

I'm developing a mod for Minecraft 1.18.2 using Fabric. I'd like my mod to replace all the vanilla birch trees (or whatever) in the game with my custom ones (or whatever). To do this, I'm trying to ...
LanGvest's user avatar
0 votes
0 answers
42 views

How can I get lines to be drawn in Minecraft 1.18.2?

I'm trying to draw a line between several coordinates in Minecraft, but the line is not displayed in the game, no matter what I do. package net.fabricmc.example; import net.minecraft.client....
Risuna's user avatar
  • 11
0 votes
0 answers
19 views

CC: Tweaked with ThermalDynamics' ducts move from storage chests to a deposit chest

I have a gigantic chest storage network connected by ThermalDynamics' Dense Itemducts and I was wondering if anyone had a prewritten code (or enough knowledge of Lua) to pull items from the network to ...
Tremb1e's user avatar
0 votes
0 answers
22 views

fabric-code that make the client chat automatically when connecting to the server

I am a fabric-client mod user. I'm not a developer. However, it is very annoying to enter the same command every time I connect to the server. So I want to make my own mod that makes me type command (...
amugeona2355's user avatar
0 votes
0 answers
21 views

How to fix 'Texture doesn't exist in any known resource pack' error? [Minecraft 1.20 modding]

I had to restart for the like tenth time due to something breaking in IntelliJ and me being unable to fix it. I have followed the guide I always do when restarting since it always works, but now I am ...
How do i....'s user avatar
-1 votes
0 answers
72 views

I'm getting an error in minecraft that is: Error rendering Entity in world java.lang.NoSuchFieldError: loop. I can't seem to fix it

I'm trying to play minecraft and make a dnd server for my friends, I'm getting in the mods and trying to edit some of the code and stuff. I had to change the forge version from 36.2.1 to 36.2.34 for ...
Liam Allen's user avatar
-3 votes
2 answers
75 views

Java (Spigot/Bukkit) multiple classes

I have my main class Main.java (onEnable method) and 3 others. in Main.java I'm registering other classes so: new Example(this); new Shop(this); new Info(this); and in the classes themselves, I use ...
Goga Vonga's user avatar
-2 votes
0 answers
45 views

C++ cURL Lib with Flaresolver result is 403

Hello, I am currently working on a web scraping project using C++. For this project, I am using Flaresolver as a proxy to bypass Cloudflare’s anti-bot measures. Despite reading multiple articles and ...
Silence's user avatar
  • 41
-1 votes
0 answers
111 views

Error when running Forge server's run.sh on Mac

I have a working vanilla Minecraft server and I want to play with mods. I download Forge server 1.20.1 on my Mac in desktop and I drag the three things (run.sh, run.bat, user_jvm_args.txt) into my ...
Cayden's user avatar
  • 1
-1 votes
0 answers
57 views

I'm making a minecraft plugin in kotlin and I get this error when loading the plugin. "Kotlin reflection implementation is not found at runtime."

After a bit of testing I noticed that running line 9 of the following class caused it. I have no clue what to do as I looked around in a few places. I've provide the class, maven dependency and error ...
Jayo's user avatar
  • 1
-1 votes
0 answers
10 views

java minecraft plugin enabling

[21:34:04 ERROR]: Error occurred while disabling Robbery v1.1.3 (Is it up to date?) java.lang.NullPointerException: null at me.dexuby.Robbery.Main.onDisable(Main.java:69) ~[?:?] at org.bukkit.plugin....
B Cross's user avatar
-2 votes
0 answers
14 views

Java no longer found by my games or in command line after updating steam deck [migrated]

When I updated my steam deck Prism Minecraft launcher no longer found a java install. I used the command java --version and got back bash: java: command not found Seeing that java must have been ...
TheUnderJack's user avatar
0 votes
0 answers
55 views

Error with ServerLoginConnectionEvents Fabric(Minecraft)

I made a simple mod and want to subscribe to the event. When i start the server i get an error. What am i doing wrong? public class AuthLiteServer implements DedicatedServerModInitializer { @...
Lapish's user avatar
  • 176
0 votes
0 answers
40 views

Why isn't my ore generator generating ore [Minecraft 1.20]

Here is the code I have currently: ModConfiguredFeatures.java: package net.KaiHallow.magicalcraft.worldgen; import net.KaiHallow.magicalcraft.block.ModBlocks; import net.minecraft.core.registries....
How do i....'s user avatar
-1 votes
0 answers
20 views

Why I have zip file closed error with log4j log appender, guice and guava (guava is relocated) when I use minecraft plugin?

I have relocated guava and included it into fat jar. Guice is located in external jar where guava is relocated too. Main jar is java minecraft plugin in paper core 1.16.5 server. https://paste.gg/p/...
Cororo's user avatar
  • 1
1 vote
0 answers
32 views

Recipes for custom Block Entity isn't working, doesn't craft (1.20)

I'm writing a Minecraft based on tech and machines, and I'm making a furnace-esque machine for processing ores. However, I can't seem to get the recipes to work. Whenever I put the ore into the slot, ...
BlueFFlame's user avatar
0 votes
0 answers
75 views

Minecraft Forge Modding, handling and calling sound events question

trying to make a combat music mod for minecraft forge 1.20.1 similar to like genshin impact, basically, a battle music sound will play everytime the player will get hit by a hostile entity/mob and the ...
Meya's user avatar
  • 1
1 vote
0 answers
54 views

Why Are My Minecraft Custom Chat Commands Not Working?

My Minecraft custom chat commands do not work. It gives an error when loading a world. My code: import { world } from '@minecraft/server'; world.beforeEvents.chatSend.subscribe((eventData) => { ...
Kere23's user avatar
  • 11
1 vote
1 answer
68 views

Permanently lose hearts when you take damage

I want that if the player takes damage and the player permanently loses that hearts. import org.bukkit.entity.Player; import org.bukkit.entity.Entity; import org.bukkit.event.entity.EntityDamageEvent; ...
VoidCube_'s user avatar
-1 votes
1 answer
72 views

Minecraft command block player not found error

I want to give new players items if they join my server, so i used a scoreboard with value 0 if they are new and 1 if they have been on my server before. I used an always active unconditional repeat ...
Zenn De Craene's user avatar
0 votes
0 answers
78 views

Minecraft move entity with Spigot 1.20.1

I have the following code: public void lungeTask(Entity entity) { this.entity = entity; Location spawnLoc = getLocAroundCircle(this.player.getLocation(), Double.valueOf(Lunged.getInstance()....
Kifo's user avatar
  • 11
0 votes
1 answer
64 views

NoClassDefFoundError: com/google/auth/Credentials occuring after jar compilation, but not in dev environment

Background I have built a mod for Minecraft, and I am now at the point where it is ready to be built into a jar and run it in the game. My IDE is Intellij, the framework I am using is Fabric, and I am ...
xxhawk8xx's user avatar
0 votes
0 answers
130 views

Pixelmon Sidemod Problem Forge 1.16.5-36.2.34

I tried to make a sidemod for pixelmon, so I placed the pixelmon.jar file in the libs folder, clicked the 'Add as Library...' button and implemented it in the build.gradle file: dependencies{ ...
yosi's user avatar
  • 1
0 votes
0 answers
71 views

kotlin and papermc not calling a function

I am trying to create a plugin for papermc and i have a class in startgamecommand.kt under "commands" folder: package me.veryg00dminecraftname.itemrun.commands import org.bukkit.Bukkit ...
g00dname's user avatar
1 vote
0 answers
56 views

Font (texture)Open Gl minecraft blury [closed]

Im trying to render a tff font in minecraft (Costum Font renderer). But the probelm is, that the font sides are blury or blocky. Help me. package de.simpleclient.gui.font2; import java.awt.image....
try try's user avatar
  • 21

1
2 3 4 5
76