Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Differentiation

Members
  • Content Count

    606
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Differentiation

  1. Hey, Pretty simple question: is it possible to specify a color for the firework spark particle effect when spawning it? Thanks
  2. Are you using a batch file to run the .jar file?
  3. Are those the only three events where I would need to write to the client?
  4. Well I tried doing that, but every time I clone or log off and back on, it resets the value of that capability on the client
  5. Hey, Basically, I'm modifying the player's reach with a command (changes reach value in the player's capability), and I need to sync this data to the client (because I want to show the attack indicator next to the cursor if the reach is long and the player is pointing at an entity). Currently (and I'm sort of getting the vibe that I'm not doing this too correctly): I send a packet to the client if the corresponding player has extended reach in the update event. This packet basically adds a custom string tag to the player's tag list (on the client) to let it know that t
  6. Hey, I know there's an event fired for when an entity joins the world. Is there a similar one for when an entity leaves the world? I need to set one of my projectile entity's thrower to null when they leave the world. This projectile also can be spawned with entities such as zombies, so i need an event that would work for both players and entities. Any help is appreciated Thank you
  7. Hey The title might be misleading. What I'm actually trying to do is change the player's attack reach for certain weapons (adding items like daggers, which will have a 2.5 block reach instead of the default reach distance). I've accomplished this. However, I'm the little indicator that appears under the cursor (the one that indicates the weapon is ready to attack) appears when I'm the default reach distance away from the entity as well. I want to change that so it will appear when I'm the item's reach blocks away from the entity. I'm having a hard time finding where mc impleme
  8. 1.12.2 and below are not supported on this forum sry ;-; @diesieben07
  9. Do you happen to know which classes need my custom class over SlotItemHandler? My IDE search is at the moment is showing me errors when searching.
  10. Hey! I'm trying to open an inventory container to the player which the player cannot interact wither (take items from it and put inside their inventory). However, I can't find methods that satisfy this. Is there any simple way to accomplish this? Any help is appreciated Thanks
  11. Which methods exactly? I'm not seeing any TextFormatting works for the NBT, I just don't know how to add action and hover events for certain words
  12. Hey! I wanna open a written book GUI with text that has ActionEvent and HoverEvent (to use ITextComponent). However, the NBT only accepts String. Is there any way I can do this? Thanks
  13. I don't quite understand what you mean by PR Basically create my own event? I'm not really sure how to create an event like that
  14. So there is no way I can create my own ban list (more efficient than Minecraft's)? This is what I'm ultimately trying to get at.
  15. Hey Similar to how the bans list works with allowUserToConnect method, I was thinking about a way to stop the player connection before the player joins the world. However, I couldn't find any ways/events that can make this happen. Is there any good way to do it or is the only way by adding players to the ban list? Note: if it's an event of some sort, I need to have access to the GameProfile that is created. ServerConnectionFromClientEvent or something doesn't give access to the GameProfile. Any help is appreciated Thanks
  16. Hey! I want to have specific players not be able to join. Using EntityPlayerMP.connection.disconnect(ITextComponent msg) on PlayerLoggedInEvent sometimes crashes, throwing a lot of NullPointerExceptions. Is there any solution? Any help is appreciated. Thank you!
  17. Yeah, the person should still be able to send any commands as long as they don't display a chat message by that player.
  18. @Override public ActionResult<ItemStack> onItemRightClick(EntityPlayer player, World world, ItemStack stack) { if (stack.getItem() == this) { player.getServer().getCommandManager().executeCommand(player, [your command]); } } I don't remember the exact methods or parameters (since this is off the top of my head, not on Eclipse), but this is a rough sketch.
  19. Hey! I'm trying to have the chat disabled for a certain player (that's, say for example, muted). I currently do this by simply canceling ServerChatEvent when the sender is the player. However, I found that many commands (such as /me and /msg) allow for messages to be sent by the player in an indirect form. Now, I can cancel these as well, but for compatibility with other mods (if other mods do add chat commands), how can I cancel every single message, direct or indirect, from this player? Any help is appreciated. Thanks!
  20. Kind of concerns me o_o It's not your fault, so you might wanna go ahead and contact the creator about this. Just make sure you don't reproduce it in-game so it doesn't happen again.
  21. Hey! Sometimes when I shut down my server, I get this error right before. I don't think it affects anything, but is there a reason or fix for it? Server Shutdown Thread ERROR An exception occurred processing Appender Console java.lang.IllegalStateException at org.jline.reader.impl.LineReaderImpl.callWidget(LineReaderImpl.java:651) at net.minecraftforge.server.terminalconsole.TerminalConsoleAppender.append(TerminalConsoleAppender.java:308) at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156) at o
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.