Mojira Archive
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)

 

Cannot Reproduce

mohamed elmakhloufi

2023-11-18, 01:39 PM

2024-08-04, 03:42 PM

2024-08-04, 03:42 PM

0

1

Unconfirmed

Script-API

1.20.41 Hotfix, 1.20.62 Hotfix

-