#Honorable Mention: #To Pikachu for being a bae :) options: #This is the item which can be crafted for the Bedrock remover item: golden hoe #Name of item itemname: &bBedrock Destroyer #Admin Permission admin: bedrock.admin #User Permission p: bedrock.destroyer #Permission Error noperm: &8[&aError&8] &aYou do not have permission to use Bedrock Destroyer! #HELP Title title: &8[&aBedrock Destroyer&8] #Nether only: (True = Can only be used in Nether | False = Can be used in all Biomes and Worlds) nether: false #Edit below this line at your own risk. on load: if {bd.reloaded} is set: send "{@title} &cBedrockDestroyer &asuccessfully reloaded!" to {bd.reloaded} delete {bd.reloaded} on script load: #create shaped recipe with result {@item} named "{@itemname}" with lore "&cCan only be used 5 times!" using diamond block and dragon_egg with shape "aba" register new shaped recipe for {@item} named "{@itemname}" with lore "&cCan only be used 5 times!" using air, air, air, diamond block, dragon egg, diamond block, air, air, air #3 diamond sword ingredients. on craft: if player has permission "{@p}": if item is {@item} named "{@itemname}" with lore "&cCan only be used 5 times!": if {bd.%player%::hasitem} is 0: cancel event else: set {bd.%player%::hasitem} to 0 set {bd.%player%::item} to 5 else: close player's inventory cancel event message "{@noperm}" on rightclick: if {@nether} is true: if biome at player is hell: if target block is bedrock: if held item is {@item} named "{@itemname}" with lore "&cCan only be used 5 times!": if player has permission "{@p}": if {bd.%player%::hasitem} is 1: message "&aSorry but this {@itemname} &ais not yours!" cancel event else: remove 1 from {bd.%player%::item} add 7 to durability of held item break the block if {bd.%player%::item} is 0: remove held item from player set {bd.%player%::hasitem} to 1 give player 1 dragon egg named "&cYou ran out of uses with your {@itemname}" message "{@title} You have ran out of uses! Please craft another one to continue" else: cancel event message "{@noperm}" else if {@nether} is false: if target block is bedrock: if held item is {@item} named "{@itemname}" with lore "&cCan only be used 5 times!": if player has permission "{@p}": if {bd.%player%::hasitem} is 1: message "&aSorry but this {@itemname} &ais not yours!" cancel event else: remove 1 from {bd.%player%::item} add 7 to durability of held item break the block if {bd.%player%::item} is 0: remove held item from player set {bd.%player%::hasitem} to 1 give player 1 dragon egg named "&cYou ran out of uses with your {@itemname}" message "{@title} You have ran out of uses! Please craft another one to continue" else: cancel event message "{@noperm}" command /bd [] []: permission: {@p} permission message: {@noperm} trigger: if arg-1 is not set: message "&8[&aError&8] &aUsage: &c/bd help" if arg-1 is "help": message "&a{@title} &a- HELP" message "&aCrafting Recipe Requires: &b2 Diamond Blocks + &01 Dragon Egg" message "&aYou can only have &cOne {@itemname} &aat a time!" message "" message "&aCheck your usage: &c/bd usage" if arg-1 is "usage": message "&a{@title} &a- USAGE" if {bd.%player%::item} is 0: message "&aYou do not currently own a {@itemname}" else: message "&aYou currently have &c%{bd.%player%::item}% &auses remaining" else if player has permission "{@admin}": if arg-1 is "reload": set {bd.reloaded} to player make console execute command "/skript reload bedrockdestroyer" if arg-1 is "give": if arg-2 is not set: message "&8[&aError&8] &aUsage: &c/bd give username" else: give 1 {@item} named "{@itemname}" with lore "&cCan only be used 5 times!" to arg-2 parsed as player set {bd.%arg-2%::hasitem} to 0 set {bd.%arg-2%::item} to 5 send "&a%arg-1% has given you a {@itemname}!" to arg-2 parsed as player if arg-1 is "admin": if arg-2 is not set: message "&8[&aError&8] &aTry /bd admin help!" if arg-2 is "help": message "&a{@title} &a- &cADMIN &aHELP" message "&aGive a player a {@itemname}:" message "&c/bd give username" else: message "&8[&aError&8] &aSorry you are not an Admin!"