Notunknown Posted April 10, 2016 Posted April 10, 2016 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? Quote
UberAffe Posted April 10, 2016 Posted April 10, 2016 as far as I know you cannot extend the players attack range with existing methods. You have to write your own left click handler. Quote Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
ApplecookieGaming Posted April 12, 2016 Posted April 12, 2016 Try having a look at this: http://jabelarminecraft.blogspot.com.au/p/minecraft-modding-extending-reach-of.html Quote
UberAffe Posted April 13, 2016 Posted April 13, 2016 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. Quote Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
Recommended Posts
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.