pxt-arcade icon indicating copy to clipboard operation
pxt-arcade copied to clipboard

With the events extension for MakeCode, some tutorial examples in the Help documentation fail to run

Open MiloMeacham opened this issue 1 month ago • 1 comments

Describe the bug In the Help documentation, some tutorial examples intended to assist players with programming do not work correctly. Certain examples fail to run. Additionally, there are examples that should work properly but are blocked due to related bugs: Bug 1494340: [EDU] If statements do not trigger, when using with the on Mob Spawned event, Bug 1492435: [EDU] With the events extension for MakeCode, the Item Equipped event does not fire when equipped from inventory menu and Bug 1476225: [EDU] With the events extension for MakeCode, the on_camera_used event does not fire.

Bug includes all commands and examples that do not work in the Help documentation (the list of examples is provided below):

  1. block placed method (.mp4 in attachments)
  2. item use method (Filling a bucket with a shovel is not a valid example)
  3. on item equipped to slot with (blocked by Bug 1492435)
  4. myEnchantment name (blocked by Bug 1492435)
  5. myEnchantment type (blocked by Bug 1492435)
  6. on camera used (isSelfie) (blocked by Bug 1476225)
  7. on mob spawned with (mob, spawner) (blocked by Bug 1494340)
  8. entity spawner (spawn egg... unknown) (blocked by Bug 1494340)
  9. on player bounced height on (.mp4 in attachments)
  10. on player died due to (.mp4 in attachments)
  11. on player travelled to (.png in attachments)
  12. travel mode (walk) (.png in attachments)

To Reproduce Steps to reproduce the behavior:

  1. Create a new project and open Extensions > Events.
  2. Use one of the listed blocks.
  3. Navigate to the Help documentation.
  4. Run the example code.
  5. Observe the result. In the Help documentation, some tutorial examples fail to execute or produce an error, while others are blocked due to Bug 1494340, Bug 1492435 and Bug 1476225.

Expected behavior All examples in the Help documentation should execute correctly.

Attachments block_placed_method.mp4

https://github.com/user-attachments/assets/6d127135-7493-4c0e-ba63-95d3bcce1ef1

on_player_bounced_height_on.mp4

https://github.com/user-attachments/assets/ce69610f-d9a7-487d-bf92-3c2cf424582e

on_player_died_due_to.mp4

https://github.com/user-attachments/assets/fd66abf7-aae9-440e-bbca-38545a9a4add

on_player_travelled_to.png

Image

travel_mode_(walk).png

Image

Desktop:

OS: Windows Version: Microsoft MakeCode for minecraft version: 2.1.27, Microsoft MakeCode version: 12.1.17

Additional context Bug ported over from ADO

MiloMeacham avatar Dec 01 '25 23:12 MiloMeacham

Wrong Repository

Correct Repository: microsoft/pxt-minecraft

Reasoning: This issue is specific to MakeCode for Minecraft, not MakeCode Arcade. The issue describes problems with Minecraft-specific events extension (block placed, mob spawned, item equipped, camera used, player bounced, etc.) and references "Microsoft MakeCode for minecraft version: 2.1.27". All the reported bugs are related to Minecraft gameplay mechanics that don't exist in Arcade. This was also ported from the Minecraft ADO project (bug 1495322).

Recommendation: This issue should be filed in the microsoft/pxt-minecraft repository. Please check if similar issues already exist there before creating a new one. When filing, include all the reproduction steps, video attachments, and references to the related internal bugs (1494340, 1492435, 1476225) as you've done here.

🏴‍☠️ Ahoy! This treasure was crafted by pxt-arcade Issue Triage Assistant fer issue #7196 🗺️

github-actions[bot] avatar Dec 04 '25 17:12 github-actions[bot]