Here is the code: To specify, when I put the boots on, and move, then it outputs Test. When I take them off, it outputs nothing at all. Please tell me what I am doing wrong, Thanks! Answer Because you don’t have any boots on. I’ll break it down line for line 🙂 The first three lines are obvious Here
Tag: minecraft
How to configure slf4j (for JDA) to work with log4j (for Minecraft Paper)?
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
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
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,
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:
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
Getting World instance by name on client
I’m new to Fabric mod development and I’ve come across an interesting issue. I need a World instance for certain actions within my mod, but I don’t know how to get it. I tried the solutions for Forge …
Is there a better way than a bunch of if statements to call my methods?
I am currently writing a plugin for SpigotMC/Minecraft. It is written in Java. In my code, found on my Github I am attempting to call a different method depending on what the input of the player was. …