#need help with my crates skript
1 messages · Page 1 of 1 (latest)
rephrase
ah
so if it's more than 1
it doesnt?
send the skript
so
the problem is
"if player is holding a....."
that accounts for 1
does the key
specifically have to be
{@keyType}
or can it be by name
just replace it with
if name of player's tool is {@keyname}:
and if you need lore, add below
if lore of player's tool contains {@keyLore}:
huh
if player is player's tool ?????
on rightclick on chest:
if name of event-block is {@crateName}:
cancel event
if name of player's tool is {@keyName}:
remove 1 of {@keyType} named {@keyName} with lore {@keyLore} from player's inventory
set {_randomAmount} to random integer between 1 and 64
add oak log to {rewards::*}
add cobblestone to {rewards::*}
add iron block to {rewards::*}
add gold block to {rewards::*}
add diamond block to {rewards::*}
add netherite block to {rewards::*}
add obsidian to {rewards::*}
add red wool to {rewards::*}
add green wool to {rewards::*}
add amethyst block to {rewards::*}
add coal block to {rewards::*}
set {_item} to random element out of {rewards::*}
play sound "BLOCK_CHEST_OPEN" at volume 100 and pitch 0.5 for player
wait 1 second
give player {_randomAmount} of {_item}
play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
else:
send "&c&lYou Need A Crate Key For This"
just use that