I try to make a coremod on 1.12.2 Forge in order to patch some missing stuff in the Lost Cities mod. (Source: https://github.com/McJtyMods/LostCities/blob/1.12/src/main/java/mcjty/lostcities/dimensions/world/lost/BuildingInfo.java) A friend and I have written this LostCitiesClassTransformer.java: (Full source…
Tag: minecraft
Forge 1.12.2 Coremodding: java.lang.ClassCircularityError
I try to make a coremod on 1.12.2 Forge in order to patch some missing stuff in the Lost Cities mod. (Source: https://github.com/McJtyMods/LostCities/blob/1.12/src/main/java/mcjty/lostcities/dimensions/world/lost/BuildingInfo.java) A friend and I have written this LostCitiesClassTransformer.java: The original…
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. My current way of doing this is grabbing the command they executed, then just using and if else if statement w…
Bukkit Chat Clickable Buttons
I’m actually coding a plugin, in a command it prompts a confirmation message and I want to click a button (on the chat text) for confirming and cancellating. I don’t like to copying and pasting code from others, and I don’t want to use classes from others too. I am trying to use TextComponen…
How to change speed of Entities?
How can I change the speed of entities in Minecraft using plugins? I just recently started making plugins for Minecraft, so I will be very grateful if you can help me (I use spigot) Answer This forum post may solve your problem. A dude asked the same question as you and gave some code snippets to help. I wish…
PlayerChatTabCompleteEvent deprecated in Spigot 1.16.1
I could not find a replacement for the deprecated PlayerChatTabCompleteEvent that is deprecated in the newest Spigot 1.16.1 Version. I already checked the docs, but could not find anything related to that. And no, I don’t want to use a @SuppressWarnings(“deprecation”) at the beginning of my …
error: Class is not abstract and does not override abstract method
Well, I’m trying to compile a java plugin for Bukkit/Spigot, but I’m getting the following error: The respective parts of the file where’s the error (I mean): And this: The plugin ins’t mine, but I need to compile with the correct version of spigot. The problem is that I don’t kn…
Minecraft javascript error
I am trying to make a script that draws a circle for minecraft using singleplayer commands. For starting, I tried to do the basics; here is my code: But when I run it, it says: Failed to execute: The choice of Java constructor setY matching JavaScript argument types (string) is ambiguous; candidate constructo…