Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
#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: true
#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"
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
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
else:
cancel event
message "{@noperm}"
command /bd [<text>] [<text>]:
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!"
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-2% 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!"