Posted April 10, 20169 yr I am working on increasing the attack/block break distance for players. I have using PlayerInteractionManager#setBlockReachDistance set it on the server to 100.0D and replaced PlayerControllerMP on the client to increase it to 100.0F there (Why is server double and client float?) and can now correctly interact 100 blocks away. But I cannot attack monsters 100 blocks away. I cannot attack them, nor interact with anything behind them. What am I missing?
April 10, 20169 yr as far as I know you cannot extend the players attack range with existing methods. You have to write your own left click handler. Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
April 12, 20169 yr Try having a look at this: http://jabelarminecraft.blogspot.com.au/p/minecraft-modding-extending-reach-of.html
April 13, 20169 yr Well then, I wish I had seen that before digging through minecraft code to figure that out. I came to almost the exact same implementation. Would have saved me so much time. Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.