I’m making plugin for Minecraft – ‘Paper’ exactly. And it uses JDA for Discord bot function. The problem is, Minecraft(Paper) uses log4j as its logging library. JDA uses slf4j as its logging library. I want JDA to use log4j so that error message of JDA would be shown in console as plugin’s error message. (See EDIT2 for actual logs) No
Tag: minecraft
Retrieving the position of the PlayerEntity class (Fabric)
I am trying to make a very (at least I think) simple mod for Minecraft that calculates the coordinates of the nearest stronghold. For this, I need the player’s position as well as its jaw. However, I am struggling to even retrieve these simple values. Here’s the code: Keep in mind that I am very (VERY) new to java programming
Is there a client-side version of onPlayerJoin?
Title says it all, I just wanna detect when a player joins a server client-side, and also how would I send a message to the client, not through the server? (the mod is supposed to send a message when the player joins and play a sound when you are not moving on a server like hypixel where it wont have
Minecraft forge server not working / downloading files
I’ve created a bat file with the command line ” java -Xmx1G -Xms1G -jar forge-1.12.2-14.23.5.2855.jar nogui ” inside my server folder. It keeps closing there is some kind of error. I removed my name of course from the folders and I blurred out the folder name it’s a stupid name. and that’s my folder. Answer This issue appear because of
Java – changing an arraylist from another class
So, I’ve made a public arraylist that I need to change from another class. shielded is an arraylist, that stores the UUID as a string of every player that has toggled the shield on. This code does not affect the array in class one, but still lets me toggle it just in that class. After accessing it in Class 3,
Initial heap size set to a larger value than the maximum heap size
Im trying to start a .jar file with these args: and I get the error: Answer Override the current JAVA_OPTS value I am suggesting to keep on rate 1 to 2 between Xms and Xmx
how do i get the content of a chat message in minecraft?
I am coding a forge minecraft 1.12.2 mod and I need to know how do I get the contents of a chat message that someone sends in chat. I am using the ServerChatEvent event to sence messages but I do not know how to get the actual content of the message itself. Answer To get the message you can use
Javacord can’t be imported in minecraft plugin
How do I make a Minecraft spigot plugin that is at the same time a discord bot? the server thinks that the class org.javacord.api.DiscordApiBuilder doesn’t exists so cant load the plugin. I use Maven(eclipse) it says that the DiscordApiBuilder class isn’t defined, how do I import that jar? is it possible or i have to change the discord api? error:
Registering entity rendering handler with Minecraft Forge 1.16.5
I’m following this tutorial to create a custom entity for my Minecraft mod. Unfortunately, the tutorial is written for a slightly older version of Minecraft (1.14), and some parts do not work with the latest version. I was up to registering the rendering handler for the entity, when I got this error: I tried looking at the Minecraft Forge documentation,
How to Serialize classes, then read them with a modified version of that same class in Java
I am developing a Minecraft plugin which uses a class that I made called customPlayer. When I save the plugin data from a running instance, I put all of these objects into a HashMap<String,customPlayer> and save them with ObjectOutputStream. Loading these classes back into the same version of the plugin works great, but my problem arises when I modify the