1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Treasure Enchant 2.2

Mining ores with this enchantment will be more fun! Highly customisable!

  1. MachisCZ
    Supported Minecraft Versions:
    • 1.8
    [​IMG]
    Hello there! I created a small script that gives you the ability to get treasure from mined ore! Like in Mega Walls Minigame. It works only with special enchant. (Treasure I as default)

    Anti clonning system!
    Players can get treasure only from generated ores. Placed ores are blocked.

    Example: (Chest will disappear after time what you set in config)
    [​IMG]

    Enchanted Books!
    [​IMG]

    Level cost depends on level of enchant! Everything is customisable!
    [​IMG]

    Script is highly customizable !
    In new config you can set % for all enchantemnts! (1-3)
    You can customise a lot of things! Any idea? Post it in comments.
    Code (Skript):
    1.  
    2. # CONFIGURATION STARTS HERE:
    3.  
    4. # ------------------ Messages ------------------------- #
    5.  
    6.     NoPermission: &cYou dont have permission for that.
    7.     Prefix: &f[&6Treasure Enchant&f]
    8.     TreasureFoundMSG: &eYou found a treasure&f!
    9.     TreasureDisappear: &cTreasure disappeared&f!
    10.     WrongTool: &cThis enchant can be applied only on pickaxe!
    11.     BadUssage: &cBad usage! Type /te or /treasureenchant for help!
    12.     EnchantDone: &aEnchant susscefully added to pickaxe!
    13.     NoLvl: &cYou don't have enought levels!
    14.     ReloadingMSG: &cReloading...
    15.     ReloadMSG: &aHas been reloaded!
    16.  
    17. # ---------------- Level Cost ----------------------- #
    18.  
    19.     CostLvl1: 5
    20.     CostLvl2: 10   # How many levels player need for applying enchant
    21.     CostLvl3: 15
    22.  
    23. # ---------------- Enchanted Books ----------------------- #
    24.  
    25.     BookName: &eEnchanted Book
    26.     BookLore: &6This is a special enchanted book.
    27.     BookLore2: &6Drop this book on     pickaxe what you want to enchant.
    28.     BookLore3: &6Levels needed for applying enchant#<levelCost>
    29.  
    30. # ------------------ Effects ------------------------- #
    31.  
    32.     SoundEnabled: true                  # true or false
    33.     SoundType: random.levelup           # sounds for 1.8 http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571574-all-minecraft-playsound-file-names
    34.     FireworkEnabled: true               # true or false
    35.     MessagesEnabled: true               # true or false ##For treasure found and dissapear
    36.     DissapearTime: 10      #Seconds
    37. # ----------------------- Enchant name ----------------------- #
    38.  
    39.     ToolLore: &7Treasure
    40.     ToolLore1: I
    41.     ToolLore2: II
    42.     ToolLore3: III
    43.  
    44. # ----------------------- Chances for lore I ----------------------- #
    45.  
    46.     EmeraldOreChance: 15%
    47.     DiamondOreChance: 12%
    48.     GoldOreChance: 10%
    49.     IronOreChance: 8%
    50.     LapisOreChance: 5%
    51.     RedstoneOreChance: 3%
    52.     CoalOreChance: 1%
    53.     QuartzOreChance: 4%
    54.  
    55. # ----------------------- Chances for lore II ----------------------- #
    56.  
    57.     EmeraldOreChance2: 20%
    58.     DiamondOreChance2: 15%
    59.     GoldOreChance2: 12%
    60.     IronOreChance2: 10%
    61.     LapisOreChance2: 8%
    62.     RedstoneOreChance2: 5%
    63.     CoalOreChance2: 3%
    64.     QuartzOreChance2: 6%
    65. # ----------------------- Chances for lore III ----------------------- #
    66.  
    67.     EmeraldOreChance3: 25%
    68.     DiamondOreChance3: 20%
    69.     GoldOreChance3: 15%
    70.     IronOreChance3: 12%
    71.     LapisOreChance3: 10%
    72.     RedstoneOreChance3: 8%
    73.     CoalOreChance3: 5%
    74.     QuartzOreChance3: 10%
    75.  
    76. # ----------------------- Loot ----------------------- #
    77.  
    78.     Loot1: Diamond
    79.     Loot2: steak
    80.     Loot3: enchanted book of unbreaking 1
    81.     Loot4: coal
    82.     Loot5: stick
    83.     Loot6: enchanted book of sharpness 1
    84.     Loot7: iron ingot
    85.     Loot8: cobblestone
    86.     Loot9: cobblestone
    87.     Loot10: torch
    88.     Loot11: enchanted book of sharpness 2
    89.     Loot12: enchanted book of sharpness 3
    90.     Loot13: potion of speed
    91.     Loot14: experience bottle
    92.     Loot15: enchanted book of protection 1
    93.  
    94. # ----------------------- Chances for loot ----------------------- #
    95.  
    96.     ChanceforLoot1: 5%
    97.     ChanceforLoot2: 25%
    98.     ChanceforLoot3: 10%
    99.     ChanceforLoot4: 30%
    100.     ChanceforLoot5: 50%
    101.     ChanceforLoot6: 5%
    102.     ChanceforLoot7: 25%
    103.     ChanceforLoot8: 35%
    104.     ChanceforLoot9: 35%
    105.     ChanceforLoot10: 20%
    106.     ChanceforLoot11: 10%
    107.     ChanceforLoot12: 2%
    108.     ChanceforLoot13: 15%
    109.     ChanceforLoot14: 5%
    110.     ChanceforLoot15: 10%
    111.  
    112. # ----------------------- Ammout of loot ----------------------- #
    113.  
    114.     AmmoutOfLoot1: 1
    115.     AmmoutOfLoot2: 3
    116.     AmmoutOfLoot3: 1
    117.     AmmoutOfLoot4: 12
    118.     AmmoutOfLoot5: 5
    119.     AmmoutOfLoot6: 1
    120.     AmmoutOfLoot7: 3
    121.     AmmoutOfLoot8: 27
    122.     AmmoutOfLoot9: 13
    123.     AmmoutOfLoot10: 24
    124.     AmmoutOfLoot11: 1
    125.     AmmoutOfLoot12: 1
    126.     AmmoutOfLoot13: 1
    127.     AmmoutOfLoot14: 20
    128.     AmmoutOfLoot15: 1
    129.  
    130. # CONFIGURATION ENDS HERE
    131.  
    132. # ---------------- Do not touch anything under this!!! ------------------------ #
    133.  
    Commands:
    [​IMG]
    [​IMG]

    Permissions:
    treasureenchant.getenchant - Perms for command /te 1-3
    treasureenchant.books - Perms for command /te <book>
    treasureenchant.reload - Perms for command /te reload

    How to install:
    - Download Skript.jar
    - Download SkQuerry3.jar and Umbaska.jar
    - Put Skript.jar, SkQuerry3.jar and Umbaska.jar to your plugins folder
    - Restart server
    - Download this skript
    - Put Treasure Enchant.sk to your plugins/Skript/scripts folder
    - In game use command /sk enable Treasure Enchant

    Depends:
    Skript
    SkQuerry3
    Umbaska -- NEW!

    Aditional info:
    Every 5 stars will make me happy :emoji_slight_smile:
    If u want me to add new features just comment your ideas :emoji_slight_smile:
    My english is bad i know, i am so sorry.
    If you need help or found a bug you can contact me in pm.