Posted April 10, 20169 yr This new attribute is mainly used for players, but it could be used by other mobs, increasing their hitbox for attacking. The RANGE attribute increases the distance which players can attempt to damage entities and break blocks. Now, although this can be replicated, it would make development easier and prevent potential mod conflicts (mostly for increasing block break range, as it requires replacing PlayerControllerMP).
April 10, 20169 yr Forge has had block reach hooks for players for years. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
April 10, 20169 yr Author Really? I had been searching for it, but never found anything which suggest that it exists.
April 10, 20169 yr Look for the getBlockReachDistance / setBlockReachDistance methods of ItemInWorldManager (1.8.9 and earlier) or PlayerInteractionManager (1.9+). Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
April 10, 20169 yr Author That is only for EntityPlayerMP. For the client, PlayerControllerMP only has getBlockReachDistance, no setBlockReachDistance. So even IF you increase the block reach distance on the server you wont be able to reach that far on the client.
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.