Files
custom-crossbow.sk
Code
1 19
custom-crossbow.sk
# Custom Crossbow
# Install in plugins/Skript/scripts/
# Reload with: /sk reload custom-crossbow
# Command block usage: customcrossbow <online-player>
command /customcrossbow <player>:
executable by: players and console
permission: customcrossbow.give
permission message: "&cYou do not have permission to use this command."
trigger:
set {_crossbow} to a crossbow
set name of {_crossbow} to "&6Custom Crossbow"
set lore of {_crossbow} to "&7A powerful custom weapon"
enchant {_crossbow} with quick charge 3
enchant {_crossbow} with piercing 4
enchant {_crossbow} with unbreaking 3
give {_crossbow} to arg-1
send "&aYou gave &6Custom Crossbow &ato %arg-1%." to sender
send "&6You received a Custom Crossbow!" to arg-1