mojira.dev
MC-116254

Players in Adventure mode can use some items even without CanPlaceOn tag

The bug

Players in Adventure mode can use some items which create entities on use even if the items do not have the CanPlaceOn tag. This is inconsistent with other items like armor stands, paintings and item frames which require this tag.

Affected items

Item

Note

fireworks

-

minecart

Could be used for rail type distinction

boat

⚠️ Problem: Would probably not work with water

lead

⚠️ Problem: Player may not have lead item anymore when using it on a fence

Steps to reproduce

  1. Switch to Adventure mode

    /gamemode adventure
  2. Give yourself one of the affected items

  3. Try to place them

Linked issues

Comments 5

They're not blocks.

Neither is flint and steel, and they require it.

However, flint and steel places a fire block. It might be better to compare it with armor stands which cannot be placed in Adventure mode.

Should this report then be made more generic to contain boats and minecarts as well (in theory leads too, but once you clicked a mob you do not have the item anymore, therefor CanPlaceOn could not be used)? This is partwise described in MC-2978.

Seems fixed by 17w47b.

Plagiatus

(Unassigned)

Confirmed

CanPlaceOn, boat, entity, fireworks, item, minecart, player

Minecraft 1.11.2, Minecraft 17w14a, Minecraft 17w15a, Minecraft 1.12.1 Pre-Release 1

Minecraft 17w47b

Retrieved