When writing code with the Minecraft Bedrock Edition Script API, the number of names to remember, such as world and player, gradually increases. Since it is difficult to memorize and type everything, ...
clearInventory Clears player's inventory. hasItem Checks if the player has a specified quantity of a certain item in his inventory.