-
-
Notifications
You must be signed in to change notification settings - Fork 770
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
Allow pistons to break blocks at borders #3729
base: main
Are you sure you want to change the base?
Allow pistons to break blocks at borders #3729
Conversation
Pistons are now able to break blocks when pushing against a plot border or plot area border
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plot border is meant to be immutable by in game edits, unless you have certain permission.
This change circumvenst the intended limitation.
What is the purpose of this PR?
Blocking review
It does not affect the plot border. Nothing will be pushed outside the plot area as the block is broken when being pushed. This change fixes the current issue that breakable blocks, in my situation sugarcane, next to the border can not be broken by pistons facing against the border. It is currently possible to break these blocks using pistons as long as the breakable block is not the last in the row. |
Here are previews of the change |
Just realised where my change has a flaw. Am going on camping vacation so I won't be able to make the changes in the coming 2 weeks but will look at fixing it when I am back home. But yea I see it would have an issue if the border contains a breakable block |
Only break if the pushed block is within plot or outside plot area
Oops forgot to remove comments |
Should be good now |
The change looks good now, but justification is needed still. Items dropped on the last block on the plot inevetibly land on the border or road, which possibly leads to unwanted side effects for servers. |
Yea that is true but wouldn't that be the case either way? I guess, if not working like that already, we can implement so blocks breaking keep their drops inside the plot or outside the area |
I like the idea - thanks CommandDan!
Dropping items will not be the problem, I think. You can use the plot and way flags and the With this change, the behavior of the piston looks more "normal". |
Np. And yeah that is what I meant for both points |
What would you want to be done regards to the items? If anything should be done |
I'd say, if Otherwise, what might be unsafe, is dropping the item based on the first solid block underneath the piston retraction (Using dropItem instead of dropItemNaturally). Basically, accessing the Blocks from the event, calling getDrops on those and drop these in the middle of the lowest block. |
Yea, I can add the check for kill-road-items |
Overview
Description
Pistons are now able to break blocks when pushing against a plot border or plot area border
Submitter Checklist
@since TODO
.