#on key shift and key f:
1 messages · Page 1 of 1 (latest)
Called when a player starts or stops sneaking. Use is sneaking to get whether the player was sneaking before the event was called.
Called whenever a player swaps the items in their main- and offhand slots.
Works also when one or both of the slots are empty.
The event is called before the items are actually swapped,
so when you use the player's tool or player's offtool expressions,
they will return the values before the swap -
this enables you to cancel the event before anyt...
Those are the events
on sneak toggle:
on swap hand items:
event-player's tool is air
it gives a error by on sawp hand items:
it cant understand that section
same error
and i did this
fixed it
: at the end
thank you for your help :)
i have a problem now it also just works with f and when iam not sneaking i only want it to work when i am sneaking and press f


this is the code
it was already here
yes
sneak and swap hands
It will work
It should at least
yeah it works but
press shift and press F
alr give me a sec because i am at school and domain doesnt work atm on shcool
okay now it does
or not...
is it okay if i text you back later with the code?
Ok
on swap hand items:
if player is sneaking:
open chest inventory with 3 rows named "&cQuest Menu" to player
wait 1 tick
set slot 11 of player's current inventory to paper named "&2&lQuests" with lore "&7" and "&8&l | &7Bekijk hier je openstaande quests." and "&8"
set slot 13 of player's current inventory to player's head named "&3&lStats" with lore "&7" and "&8&l | &7Bekijk hier jou stats." and "&8"
set slot 15 of player's current inventory to ender chest named "&6&lRewards" with lore "&7" and "&8&l | &7Claim hier jou rewards." and "&8"
thats the code
You forgot to indent line 3 and on
There is nothing in the structure for when player is sneaking
i know i need to add 4 spaces
becuase i was changing a lot of things but
what do i need to do now because i dont get it