-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On teleport: Push entities away instead of removing them #1643
Comments
@BONNe I just revisited this and think it's a good idea. I was thinking that we'd move each hostile mob a certain distance away from the arrival location. But then I started to have questions -
Thoughts? |
Also, it looks like the color of an arrow can have an alpha component, so it might be possible to make the arrows invisible. |
Agree with arrow implementation. About exploitation and box situations: |
I ran some experiments. Knock back seems to give damage no matter what. Or maybe it's the speed Im firing. I'm playing with making the arrow give instant health to counteract it but I haven't found a balance yet. I tried to make them invulnerable but then they don't get knocked back. Still trying though! |
I did this using setVelocity() instead of arrows. See PR. |
Description
Is your feature request related to a problem?
Currently, BentoBox has an annoying feature, which removes entities from the world, if the player teleports to home, and they are too close.
Yes, it is toggleable and there is a whitelist that prevents removing entities with a specific type.
However, I would like to suggest a better solution.
Describe the solution you'd like us to implement.
Instead of removing entities from the world, BentoBox could just push them X blocks away from the player.
This solution would have a force field look.
This would also solve an issue with withers and other entities that are in the whitelist but still instantly kills the player when he teleports back to his island.
Even, if an entity is pushed over the void or pushed outside the island border, it would be a much better solution, than the current one, which just removes the entity from the world.
Additional context
I just really dislike an option, that some plugins can just remove the entity from the world at any cost.
Also, this would be awesome, if the force field effect could be increased/decreased in size. f.e. instead of 5 blocks, you could give some player permission or other ways, and increase it to 10, or someone decrease it to 0 or 1...
The text was updated successfully, but these errors were encountered: