Skip to content

Force field fling on teleport#2122

Merged
tastybento merged 10 commits intodevelopfrom
forcefieldteleport
Mar 22, 2026
Merged

Force field fling on teleport#2122
tastybento merged 10 commits intodevelopfrom
forcefieldteleport

Conversation

@tastybento
Copy link
Copy Markdown
Member

@tastybento tastybento commented Apr 26, 2023

Flings hostile mobs away from the player when they teleport rather than removing them. Config options are in BentoBox's config.yml. Closes #1643

Please try this @BONNe and see what you think. I think a power of 5 works pretty well.

@tastybento tastybento requested a review from BONNe April 26, 2023 02:05
@tastybento tastybento self-assigned this Apr 26, 2023
@tastybento
Copy link
Copy Markdown
Member Author

I'll fix the tests tonight.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

83.9% 83.9% Coverage
0.0% 0.0% Duplication

@BONNe
Copy link
Copy Markdown
Member

BONNe commented Apr 29, 2023

While testing this i notice that even putting very small power, it still throws entities far.

Also, i notice that you can create creeper cannons with Power 5 by throwing entities to other player islands if distance between islands is 50

@tastybento
Copy link
Copy Markdown
Member Author

Hmm. Good point. How far do you think mobs need to be pushed back? 5 blocks? Or maybe 10?

@BONNe
Copy link
Copy Markdown
Member

BONNe commented Apr 30, 2023

I think 10 to 15, as 5 is still a distance creeper can sneak up and explode.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jun 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 0 Code Smells

83.9% 83.9% Coverage
0.0% 0.0% Duplication

@tastybento tastybento marked this pull request as draft March 4, 2026 06:17
@tastybento
Copy link
Copy Markdown
Member Author

@copilot This is an old PR so it needs the conflicts resolved. Try and do that so it can be merged

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 21, 2026

@tastybento I've opened a new pull request, #2880, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits March 21, 2026 22:13
@tastybento tastybento marked this pull request as ready for review March 22, 2026 02:43
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit 5043288 into develop Mar 22, 2026
3 checks passed
@tastybento tastybento deleted the forcefieldteleport branch March 22, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On teleport: Push entities away instead of removing them

3 participants