mojira.dev
MCPE-149140

You can till dirt, strip logs and make path blocks in Adventure mode

Summary:

Even if the player is in adventure mode or on top of a deny block, players may still hoe dirt, strip logs as well as make path blocks with shovel

Steps to reproduce:

  1. Grab a shovel/axe/hoe

  2. Set mode to adventure mode, or place deny block platform

  3. Use the tools in order to strip log, make path blocks, or hoe dirt

Observed results:

You can still cause change to dirt, log and grass with the "interact" features of shovel/axe/hoe even in adventure mode or in a deny block platform

Expected results:

In adventure mode or while in a deny block platform, you cannot cause changes to blocks such as dirt, log and grass with the for mentioned tools.

Linked issues

Attachments

Comments 9

This behavior also does not correspond to the Java version.

The axes should require logs to be included in can_place_on in order to be used on them

You can also obtain honey bottles and honeycomb from beehives and bee nests while in adventure without requiring can_place_on items.

By the way, this is not possible with visitor permissions, but it is possible with literally any permission added. You can have attack player perms and still be able to do this.

Also can confirm in 1.19.1

Still affecting 1.20.1

Still affecting 1.20.50. Note that, while in adventure mode,  you can use the shovel to turn grass blocks into dirt path but not dirt blocks into dirt path. Please fix this, and make that in adventure mode you can't modify any blocks!

Problem still present in 1.21.2

Issue has not been fixed and is still an issue in 1.21.31 as well as preview 1.21.50.20

I made a script to fix the bug! It works without beta API! I hope you find it useful!

Tiger tiger

(Unassigned)

668250

Confirmed

Multiple

Windows 10

1.18.10.20 Beta, 1.17.41 Hotfix, 1.18.2 Hotfix, 1.18.30, 1.20.50, 1.21.31 Hotfix, 1.21.60.25 Preview, 1.21.60.24 Preview, 1.21.51 Hotfix

Retrieved