Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

McPqndq

Members
  • Joined

  • Last visited

Everything posted by McPqndq

  1. Hi guys My old topic was locked, idk why : As the old topic hasn't been completly solved, I repeat it here.
  2. So there is no way to do that ?
  3. Even if the sign is opened on the player's screen and you can write on it manually ?
  4. I'm sorry I didn't understand your message... You mean that if the mod is client side only, it's not possible ? My mod is client side only
  5. Thank you for your answer, but how am I supposed to do that ? Is it the correct way to get the sign's tile entity ? : TileEntitySign tileEntitySign = (TileEntitySign) Minecraft.getMinecraft().world.getTileEntity(new BlockPos(0, 0, 0));
  6. Ideally it would be for 1.12.2, but apparently this version isn't supported anymore here, so maybe 1.15.2
  7. Hello, I'm currently making a mod for game automation, and I would need the mod to automaticly write something on a sign. I tried to simulate keyboard keys using the java Robot class, but it only send keys to the current active window, and not to the game, if it's not active... I was wondering if there is a "forge" way to write something in a sign. Is it possible ? Ty
  8. omg YES I found the solution. I replaced suffix = team.getSuffix(); by suffix = team.getPrefix() + team.getSuffix();
  9. Hello, I'm trying to retrieve scorboard infos. Here is what I tried : public static void getSB() { Scoreboard scoreboard = mc.getWorld().getScoreboard(); if (scoreboard == null) { System.out.println("no sb"); return; } List<String> sidebarScores = getSidebarScores(scoreboard); for (String sidebarScore : sidebarScores) { System.out.println(sidebarScores); } } public static List<String> getSidebarScores(Scoreboard scoreboard) { List<String> found = new ArrayList<>(); ScoreObjective sidebar = scoreboard.getObjectiveInDisplaySlot(1); if (sidebar != null) { List<Score> scores = new ArrayList<>(scoreboard.getScores()); scores.sort(Comparator.comparingInt(Score::getScorePoints)); found = scores.stream() .filter(score -> score.getObjective().getName().equals(sidebar.getName())) .map(score -> score.getPlayerName() + getSuffixFromContainingTeam(scoreboard, score.getPlayerName())) .collect(Collectors.toList()); } return found; } private static String getSuffixFromContainingTeam(Scoreboard scoreboard, String member) { String suffix = null; for (ScorePlayerTeam team : scoreboard.getTeams()) { if (team.getMembershipCollection().contains(member)) { suffix = team.getSuffix(); break; } } return (suffix == null ? "" : suffix); } But it only print random info from the scoreboard. I have no idea how to fix this problem Maybe there is a simpler way, anyone knows how to grab scoreboard infos ?
  10. Thank you for you answer Azaka7, however, I don't have " Project and External Dependedncies" in the eclipse package explorer, here is how it looks like...
  11. Oh yeah thanks ! I got it working. And btw, how I am supposed to "look in the code myself" ? Idrk how to do this... Also, I found this in the forge javadoc : public void clearChatMessages(boolean p_146231_1_) ... why do they have to give these weird names?
  12. Hi, I added the baritone api to classpath and I created a libs folder in which I put the file. Howerver it only works when the mod is compiled, in eclipse it will crash
  13. Hello, I already created this topic but scince 1.12.2 is no longer supported here, I updated to 1.15.2. As the title says, I'm trying to clear the chat, I mean how to reset the chat, like when you enter a world. Anyone knows how to do this ?
  14. Hello, As the title says, I'm trying to clear the chat, I mean how to reset the chat, like when you enter a world. Anyone knows how to do this ?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.