Skip to content

Shears can defuse TNT#1372

Merged
granny merged 3 commits into
PurpurMC:ver/1.20.1from
Findus642:ver/1.20.1
Jul 3, 2023
Merged

Shears can defuse TNT#1372
granny merged 3 commits into
PurpurMC:ver/1.20.1from
Findus642:ver/1.20.1

Conversation

@Findus642

Copy link
Copy Markdown
Contributor

TNT can now be defused when right clicking with shears, nothing more to it than an additional gameplay mechanic.

Option is per-world and a value of 0.00 disables the function. See patch commit for a few more details

Shears can now defuse TNT when right clicked

@granny granny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently on mobile so i can't look into the implementation, so nitpicking for now until I can take a better look. Patch diffs should touch as little as possible to lower the maintenance burden of each patch.

Comment thread patches/server/0306-Shears-can-defuse-TNT.patch Outdated
Comment thread patches/server/0306-Shears-can-defuse-TNT.patch Outdated
@Findus642

Copy link
Copy Markdown
Contributor Author

Both been reverted. Didn't pick up on this during committing!

@Findus642 Findus642 requested a review from granny July 2, 2023 14:04
Checks if level is client sided or not, adds permission for defusing TNT (purpur.tnt.defuse), handles damaging item more appropriately and item drop to mimic vanilla behaviour better. Formatted code slightly better incase future implementations are used within the method.

@granny granny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

All that's left is to document the config option and permission in the docs (https://github.com/purpurMC/purpurdocs) and the patch will be merged!

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.

2 participants