Skip to content

Conversation

ShockedPlot7560
Copy link
Member

Introduction

As it is well explained in the related issue, creative players when they break a sulker or an oven with xp, they will not drop the xp or the item while the vanilla gameplay allows it

Relevant issues

Changes

API changes

The following methods have been added to the Block class:

  • getCreativeDrops
  • getCreativeXpDrop

Behavioural changes

When a block is broken by a player or other, it will make the difference to get the right drops. If the player is creative, he will call the necessary functions, if it is an explosion ditto

Tests

  • Go creative and break a non-empty shulker
  • Put a non empty shulker and fart on the tnt, it will drop

@dktapps dktapps changed the base branch from stable to next-minor December 15, 2021 18:22
@dktapps dktapps added Category: Gameplay Related to Minecraft gameplay experience Type: Fix Bug fix, typo fix, or any other fix labels Jan 18, 2022
@ShockedPlot7560 ShockedPlot7560 requested a review from dktapps March 19, 2024 20:27
github-actions[bot]
github-actions bot previously approved these changes Aug 20, 2024
@ShockedPlot7560 ShockedPlot7560 requested a review from a team August 20, 2024 09:14
dries-c
dries-c previously approved these changes Aug 20, 2024
@dktapps dktapps dismissed their stale review August 20, 2024 10:26

Outdated

Joshy3282 added a commit to Joshy3282/PocketMine-MP that referenced this pull request Oct 1, 2024
@dktapps
Copy link
Member

dktapps commented Nov 14, 2024

I had a bad gut reaction to this. I feel like there should be a better way to deal with this. Not thrilled about the prospect of adding another drops function.

I know this isn't the most helpful comment, which is why I hesitated to re-review it. I'll circle back if there's interest in getting this completed.

@dktapps dktapps added the Opinions Wanted Request for comments & opinions from the community label Nov 14, 2024
@dktapps
Copy link
Member

dktapps commented Nov 16, 2024

Seems to be also linked to #4451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Related to Minecraft gameplay experience Opinions Wanted Request for comments & opinions from the community Type: Fix Bug fix, typo fix, or any other fix
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Shulkerboxes don't drop themself while player is in creative mode
6 participants