Jump to content

BallsOfBedrock

Members
  • Posts

    9
  • Joined

  • Last visited

BallsOfBedrock's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Can someone help me detect when a world is changed? I'm trying to detect when a player changes worlds on a mutliplayer server (unrelated to me, the mod is client-side), be that the nether, or some other dimension. I know about the EntityJoinWorldEvent from Forge but won't that fire on mob spawns too? Thanks in advance.
  2. Ah, thank you, I just needed to add this below "item": "count": 4
  3. Hey, I would like to know how you would go about crafting multiple, stackable items with the new .json crafting recipe system. Thanks in advance.
  4. I've noticed some servers are able to put "tags" if you like, before the usernames in the TAB menu, for instance Hypixel, in their Mega Walls minigame, puts the player's class tag after the name like so: https://gyazo.com/85b510abe60e5b191862b18eab05cf7b How do I get this information? I can iterate through the player names like so: Collection<NetworkPlayerInfo> test = mc.getNetHandler().getPlayerInfoMap(); for(NetworkPlayerInfo n : test){ // Do stuff with names. } But I can't find that extra tag anywhere, can I get it a different way?
  5. Weird, I removed the "gson" package I had manually added to my mod and now the mod works.
  6. Both SP and MP. I seldom bother with a client proxy since all my previous client side mods have worked thus far without it. I haven't touched my gradle file. There's nothing about it in the logs, just the "Unknown Command" or whatever that comes up as it does with typing anything random after the / like "/dwaijdiwjaoidjwiadjwad".
  7. So why the hell is my mod not working? It works in my IDE but not outside my IDE. I've added a client-side command which queries an API to find a player's stats like so: public void init(FMLInitializationEvent event) { FMLCommonHandler.instance().bus().register(this); MinecraftForge.EVENT_BUS.register(this); ClientCommandHandler.instance.registerCommand(new CheckStatCommand()); } public class CheckStatCommand extends CommandBase { @Override public String getCommandName() { return "stat"; } @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { return true; } @Override public String getCommandUsage(ICommandSender sender) { return "/stat (name)"; } @Override public void processCommand(ICommandSender sender, String[] args) { //Stuff In Here }); } } } I've omitted the code, because my issue isn't in the code, it's in the command. In my IDE it works, as a Mod jar file it says "Unknown Command", why? The mod is being recognised but the command isn't working...
  8. Originally thought this was a gson issue but apparently not, see below replies... EDIT: Turns out all I had to do was remove the GSON package I had manually added in and it worked.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.