-
Bug
-
Resolution: Unresolved
-
None
-
1.21.51 Hotfix
-
None
-
Unconfirmed
-
Multiple
Using ScriptAPI, attempting to prohibit the use of "minecraft:firework_rocket", the number of fireworks does not change and the player flies further
code:
import { world } from "@minecraft/server"; world.beforeEvents.itemUse.subscribe((data) => { if(data.itemStack.typeId === "minecraft:firework_rocket"){ data.cancel = true; } });
//Event is canceled and the fireworks are not used, but the boost is still there
- is duplicated by
-
MCPE-189484 Cancel "world.beforeEvents.itemUse" does not prevent player boost when using firework
- Resolved