playerInteractWithBlock event doesn't detect when you rotate an item within an item frame
Summary:
The playerInteractWithBlock event doesn't detect if you rotate an item within an item frame.
Code Sample:
import { world } from "@minecraft/server"; world.beforeEvents.playerInteractWithBlock.subscribe((ev) => { const block = ev.block; if (block.typeId.includes === "frame" && !block.typeId.includes === "end_") { ev.cancel = true; } })
Steps to Reproduce:
- Import the attached pack and apply it in your world
- Place an item frame and put an item in it
- Rotate the item
Expected Results:
The rotation is canceled
Observed Results:
The item is rotated
2024-10-12, 03:56 PM
2024-10-12, 06:00 PM
2024-10-12, 06:00 PM
0
2
-