Hello, i have an issue with this code:
If i press q (the key that drops the items), the code works perfectly, and nothing happens.
If i press ctrl+q, all of the lapis drops to the ground, so the code doesn't work.
If in the inventory i hover the lapis block and press q, the code removes 1 lapis block.
If in the inventory i hover the lapis block and press ctrl+q, the code removes all of the lapis.
I want to prevent dorping the block, but the code doesn't work properly.
Skript Version: Skript v2.6-beta2
Minecraft Version: 1.17
Code:
on drop:
player is holding lapis block named "<cyan><bold>Mana":
cancel event
If i press ctrl+q, all of the lapis drops to the ground, so the code doesn't work.
If in the inventory i hover the lapis block and press q, the code removes 1 lapis block.
If in the inventory i hover the lapis block and press ctrl+q, the code removes all of the lapis.
I want to prevent dorping the block, but the code doesn't work properly.
Skript Version: Skript v2.6-beta2
Minecraft Version: 1.17