mojira.dev
MCPE-176995

[script api] playerPlaceBlock don't trigger when placing some blocks

this bug is fixed in preview
using the script bellow to test i found out that playerPlaceBlock event don't trigger when placing some blocks::
script:

world.afterEvents.playerPlaceBlock.subscribe((event) => {    event.player.sendMessage("afterEvents")});
world.beforeEvents.playerPlaceBlock.subscribe((event) => {    event.player.sendMessage("beforeEvents")});

blocks that don't trigger beforeEvents.playerPlaceBlock:

  • beds

  • Kelp

  • Sugar Canes

  • Nether Wart

  • Flower Pots

  • planting seeds

  • Item Frames

  • Glow Item Frames

  • Signs

  • Hanging Signs

  • Redstone Repeaters

  • Redstone Comparator

  • Chains

  • banners

  • Campfires

  • Soul Campfires

  • Brewing Stands

  • Cauldron

  • Hoppers

  • Redstone Dust

blocks that don't trigger afterEvents.playerPlaceBlock:

  • Lily Pad

  • Candle

  • joining tow slabs together

  • Sea Pickles

  • Frogspawn

  • Cocoa Beans

blocks that don't trigger playerPlaceBlock:

  • Skulls and all heads

  • paintings (they are entity so nvm them xd)

 

Comments 2

Is this still an issue as of 1.21.2?

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

The bug is fixed!
Thanks

Minatocraft

(Unassigned)

Unconfirmed

Multiple

Script-API

1.20.41 Hotfix, 1.20.62 Hotfix

Retrieved