Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /onepick <text>:
- permission: skript.onepick
- usage: /onepick <enable/disable/help>
- description: Enable/Disable One Pickaxe
- trigger:
- if arg-1 is equal to "enable":
- set {OnePickaxe} to true
- broadcast "&6[&7OnePickaxe&6] &aEnabled!"
- if arg-1 is equal to "disable":
- set {OnePickaxe} to false
- broadcast "&6[&7OnePickaxe&6] &cDisabled!"
- delete {WoodPick::*}
- delete {StonePick::*}
- delete {IronPick::*}
- delete {GoldPick::*}
- delete {DiamondPick::*}
- if arg-1 is equal to "help":
- send "&6[&7OnePickaxe&6] &7Here is a list of useful commands for &6OnePickaxe!"
- wait 2 seconds
- send "&6[&7OnePickaxe&6] &6/woodpick <integer> &7Set the amount of Wooden Pickaxes a player a player can craft"
- wait 1 seconds
- send "&6[&7OnePickaxe&6] &6/stonepick <integer> &7Set the amount of Stone Pickaxes a player a player can craft"
- wait 1 seconds
- send "&6[&7OnePickaxe&6] &6/ironpick <integer> &7Set the amount of Iron Pickaxes a player a player can craft"
- wait 1 seconds
- send "&6[&7OnePickaxe&6] &6/goldpick <integer> &7Set the amount of Gold Pickaxes a player a player can craft"
- wait 1 seconds
- send "&6[&7OnePickaxe&6] &6/woodpick <integer> &7Set the amount of Diamond Pickaxes a player a player can craft"
- command /woodpick <integer>:
- permission: skript.woodpick
- usage: /woodenpickaxe <integer>
- trigger:
- set {woodpick.integer} to arg-1
- broadcast "&6[&7WoodPickaxe&6] &7Set to &c%{woodpick.integer}%!"
- command /stonepick <integer>:
- permission: skript.stonepick
- usage: /stonepickaxe <integer>
- trigger:
- set {stonepick.integer} to arg-1
- broadcast "&6[&7StonePickaxe&6] &7Set to &c%{stonepick.integer}%!"
- command /ironpick <integer>:
- permission: skript.ironpick
- usage: /ironpickaxe <integer>
- trigger:
- set {ironpick.integer} to arg-1
- broadcast "&6[&7IronPickaxe&6] &7Set to &c%{ironpick.integer}%!"
- command /goldpick <integer>:
- permission: skript.goldpick
- usage: /goldpickaxe <integer>
- trigger:
- set {goldpick.integer} to arg-1
- broadcast "&6[&7GoldPickaxe&6] &7Set to &c%{goldpick.integer}%!"
- command /diapick <integer>:
- permission: skript.diamondpick
- usage: /diamondpickaxe <integer>
- trigger:
- set {diamondpick.integer} to arg-1
- broadcast "&6[&7DiamondPickaxe&6] &7Set to &c%{diamondpick.integer}%!"
- on craft of Wooden Pickaxe:
- {OnePickaxe} is true:
- add 1 to {WoodPick::%player%}
- if {WoodPick::%player%} is less than {woodpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted &6%{WoodPick::%player%}% &7Wooden Pickaxe(s) so far!"
- if {WoodPick::%player%} is {woodpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted all of your &cWooden Pickaxe(s)!"
- if {WoodPick::%player%} is greater than {woodpick.integer}:
- cancel event
- on craft of Stone Pickaxe:
- {OnePickaxe} is true:
- add 1 to {StonePick::%player%}
- if {StonePick::%player%} is less than {woodpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted &6%{StonePick::%player%}% &7Stone Pickaxe(s) so far!"
- if {StonePick::%player%} is {stonepick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted all of your &cStone Pickaxe(s)!"
- if {StonePick::%player%} is greater than {stonepick.integer}:
- cancel event
- on craft of Iron Pickaxe:
- {OnePickaxe} is true:
- add 1 to {IronPick::%player%}
- if {IronPick::%player%} is less than {ironpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted &6%{IronPick::%player%}% &7Iron Pickaxe(s) so far!"
- if {IronPick::%player%} is {ironpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted all of your &cIron Pickaxe(s)!"
- if {IronPick::%player%} is greater than {ironpick.integer}:
- cancel event
- on craft of Gold Pickaxe:
- {OnePickaxe} is true:
- add 1 to {GoldPick::%player%}
- if {GoldPick::%player%} is less than {goldpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted &6%{GoldPick::%player%}% &7Gold Pickaxe(s) so far!"
- if {GoldPick::%player%} is {goldpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted all of your &cGold Pickaxe(s)!"
- if {GoldPick::%player%} is greater than {goldpick.integer}:
- cancel event
- on craft of Diamond Pickaxe:
- {OnePickaxe} is true:
- add 1 to {DiamondPick::%player%}
- if {DiamondPick::%player%} is less than {diamondpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted &6%{DiamondPick::%player%}% &7Diamond Pickaxe(s) so far!"
- if {DiamondPick::%player%} is {diamondpick.integer}:
- message "&6[&7OnePickaxe&6] &7You have crafted all of your &cDiamond Pickaxe(s)!"
- if {DiamondPick::%player%} is greater than {diamondpick.integer}:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment