Differentiation
Members-
Posts
606 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Differentiation
-
Are you using a batch file to run the .jar file?
-
[1.15.2] Syncing capability to player client
Differentiation replied to Differentiation's topic in Modder Support
Are those the only three events where I would need to write to the client? -
[1.15.2] Syncing capability to player client
Differentiation replied to Differentiation's topic in Modder Support
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 -
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 this player does have extended reach. I only send this packet if this tag isn't in the player's tag list on the server. I'm not the best at read and write and NBT stuff in Minecraft so any tips on how to correctly sync it would be appreciated Thank you
-
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
-
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 implements this I hope that makes sense If there's any way to do this, any help is appreciated.
-
1.12.2 and below are not supported on this forum sry ;-; @diesieben07
-
[1.14.4] Adding TextComponents to written book GUI
Differentiation replied to Differentiation's topic in Modder Support
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 -
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
-
[1.14.4] Halting player connection
Differentiation replied to Differentiation's topic in Modder Support
Alrighty, I'll take a look. Thanks! -
[1.14.4] Halting player connection
Differentiation replied to Differentiation's topic in Modder Support
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 -
[1.14.4] Halting player connection
Differentiation replied to Differentiation's topic in Modder Support
How is that gonna help? And PR for what? -
[1.14.4] Halting player connection
Differentiation replied to Differentiation's topic in Modder Support
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. -
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
-
How to make that when you right-click... 1.14.4/1.15
Differentiation replied to Anonomys's topic in Modder Support
@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. -
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!
-
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.
-
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 org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129) at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120) at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84) at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:448) at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:433) at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417) at org.apache.logging.log4j.core.config.LoggerConfig.logParent(LoggerConfig.java:439) at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:434) at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417) at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:403) at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63) at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146) at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2091) at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1988) at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1960) at org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1297) at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:420) at net.minecraft.server.MinecraftServer$4.run(MinecraftServer.java:1579) Any help is appreciated. Thanks!