Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-176995

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.20.41 Hotfix, 1.20.62 Hotfix
    • Unconfirmed
    • Multiple

      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)

       

            Minatocraft mohamed elmakhloufi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: