Pocketmine-mp: Inconsistency of pick-block

Created on 28 Jan 2019  路  3Comments  路  Source: pmmp/PocketMine-MP

Issue description

In vanilla, when you pick-block an item frame with any item in it, you get a copy of the item. PocketMine, on the other hand, gives an item frame, not an item in it. PocketMine also allows obtaining items that are not supposed to be obtainable in normal means (e.g. Portal). It also doesn't check whether players already have the item in their inventory.

Steps to reproduce the issue

Issue 1:

  1. Place an item frame
  2. Put an item on it
  3. Pick-block it

Issue 2:

  1. Place a block that is not supposed to be obtainable
  2. Once again, pick-block it

Issue 3:

  1. Have a block in your inventory that you're trying to pick-block
  2. Pick-block the same block
  3. Notice that you have two same items in your hotbar (in vanilla the selected slot is changed to a slot with the same item)

OS and versions

  • PocketMine-MP: 3.5.7
  • PHP: 7.2.14
  • Server OS: Windows 10
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur? Yes
  • If the issue is not reproducible without plugins:

    • Have you asked for help on our forums before creating an issue?

    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files


Gameplay Debugged

All 3 comments

Small note: block-picking an _empty_ item frame should indeed give you an item frame.

Additional side note: The condition is not whether or not it's available to creative. For example, it's possible to block-pick command blocks.

I'm actually not sure what's the condition... After that, I thought it is the items that I can obtain from /give, but blocks like Nether Reactor cannot be obtained from it but still pick-blockable.
In other news, I found another inconsistency and added it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasonwynn10 picture jasonwynn10  路  3Comments

arfianadam picture arfianadam  路  3Comments

TheDiamondYT1 picture TheDiamondYT1  路  3Comments

beetree picture beetree  路  3Comments

sergeysova picture sergeysova  路  3Comments