RevCosmicWormhole CorePortal enchanter similar to cosmic 1.1

CosmicPrison enchants portal, energy, success dust, reroll scroall, unclaimed enchants books
RevCosmicWormhole is similar to CosmicPrison enchants system with the portal etc..

RevCosmicWormhole dose not come with any enchants built-in

You can make your own enchants using our API or you can purchase enchants from our discord
after you purchase the plugin you can join our discord to get your license key.

Dependencies:
HolographicDisplays

NBT API
Features:
  • API to create any custom enchant you want from tools to armor to any item dose not matter
  • Energy System
  • Per item lore handler
  • Ability to create custom enchants in skript and java (we offer help in discord)
  • Portals enchanting system like cosmic prison
  • Books system

With this code the core will register the enchant to the portal and to the books.
Code:
public class Example {


    public void onEnable() {
        // (how to Create new Enchants)



        //EnchantmentID  is the flag of the Enchan
        // Name is how Enchant look in lore
        //placeholder will be:   %Placeholder_Enchantment_RevEnergyCollector_Name%  %Placeholder_Enchantment_RevEnergyCollector_Level%
        //Max level is the Enchant Max level
        //MaxSuccessRate  is the Max Rate the Enchant can be in portal
        //MinimumSuccessRate  is the Minimum Rate the Enchant can be in portal
        //Book is what item the Enchant is
        //ShowIf0 true  if you want to show the Enchant in lore if item has 0 level
        //Description of the Enchant        use %nl% for new line in Description


        DevWormholeApi.RegisterNewEnchantment("RevEnergyCollector","&a&lEnergyCollector","RevEnergyCollector",10,60,20,new ItemStack(Material.INK_SAC, 1, (byte) 10),false,"lol");
        //-------------------------------------------------------------------------------------------------------------------------------
        // make the new Enchants Accept apply to item etc...
        DevWormholeApi.setEnchantmentToAccept("RevEnergyCollector",new ItemStack(Material.DIAMOND_PICKAXE, 1));
        DevWormholeApi.setEnchantmentToAccept("RevEnergyCollector",new ItemStack(Material.IRON_AXE, 1));


        //-------------------------------------------------------------------------------------------------------------------------------
        //setup what lore from Config of the core item need to use
        // if no lore 2 in Config need to create one and add the placeholder of the Enchant to it

        DevWormholeApi.setItemLoreID(new ItemStack(Material.DIAMOND_PICKAXE, 1),1);
        DevWormholeApi.setItemLoreID(new ItemStack(Material.IRON_AXE, 1),2);

        //-------------------------------------------------------------------------------------------------------------------------------
        //need to allow portal to Accept item if you dont want just use the books apply
        DevWormholeApi.setAllowEnchanter(new ItemStack(Material.DIAMOND_PICKAXE));
        DevWormholeApi.setAllowEnchanter(new ItemStack(Material.IRON_AXE));






    }
    // now you need to setup what the Enchant dose
    public void onBreakEvent(BlockBreakEvent event){
        Player player = event.getPlayer();
        if (player.getItemInHand() == null) {
            return;
        }
        ItemStack Item = player.getItemInHand();
        Long Level = DevWormholeApi.getEnchantLevelFromItem(Item,"RevEnergyCollector");
        if (Level > 0) {
            //do staff like give energy
            Item =  DevWormholeApi.getToolAddEnergy(Item,10);

        }

        player.getItemInHand().setItemMeta(Item.getItemMeta());



    }

}

/rw Book <player> <number>
/rw ReRoll <player> <number>
/rw Dust <player> <number> <number>
/rw Energy <player> <number>
/rw setEnchanter <number <number>
/rw setPortal <number>
/Extract (All/Amount) RevWormhole.Extract

Code:
# [ , Rev-Cosmic-Core-Api Made by Revils Team,
#  <<<Lore Placeholder>>> ,
#  %Placeholder_Enchantment_EnchantPlaceholder_Name%  ,
#  Examples: %Placeholder_Enchantment_Explosive_Name%  ,
#  %Placeholder_Enchantment_EnchantPlaceholder_Level%  ,
#  Examples: %Placeholder_Enchantment_Explosive_Level%  ,
#  %Placeholder_Enchantment_EnchantPlaceholder_Level_Formatted%  ,
#  Examples: %Placeholder_Enchantment_Explosive_Level_Formatted%  ,
#  %Placeholder_Enchantment_EnchantPlaceholder_Level_Roman%  ,
#  Examples: %Placeholder_Enchantment_Explosive_Level_Roman%  ,
#  %Placeholder_Flag_FlagPlaceholder_Name%  ,
#  Examples: %Placeholder_Flag_RevLevel_Name%  ,
#  %Placeholder_Flag_FlagPlaceholder_Level%  ,
#  Examples: %Placeholder_Flag_RevLevel_Level%  ,
#  %Placeholder_Flag_FlagPlaceholder_Level_Formatted%  ,
#  Examples: %Placeholder_Flag_RevLevel_Level_Formatted%  ]
LicenseKey:
DataSave: 250
Event:
  Kill:
    Enabled: true
    CustomDropHandler: true
  Mine:
    Enabled: true
    CheckIfCancelled: true
    Region: true
    CustomDropHandler: false
Energy:
  Enabled: true
  Mining:
    Chance: 50
    Min: 2
    Max: 2
    MultiBreak: true
  Kill:
    Chance: 50
    Min: 2
    Max: 2
  Item:
    ==: org.bukkit.inventory.ItemStack
    type: INK_SACK
    damage: 12
  Name: '&f&l%Placeholder_Amount% &b&lRaw Energy'
  Lore:
  - '  '
  - '&6Contains %Placeholder_Amount% &b&lEnergy'
  - '&6 that is used to level up your pickaxe'
  - ' '
  - '&7Hint: Drag and drop onto a pickaxe to add'
  - '&7to its energy!'
  - ' '
  - '&6Extracted by &f%Placeholder_Player%'
  Sound: BLOCK_LAVA_POP
  Volume: 1
  Pitch: 1
  ProgressBar:
    Amount: 50
    Full: '&a'
    Empty: '&c'
    Icon: ▏
Lore:
  '1':
  - '%Placeholder_Flag_RevLevel_Name% : &e%Placeholder_Flag_RevLevel_Level_Formatted% '
  - '%Placeholder_Flag_RevBlocks_Name% : &e%Placeholder_Flag_RevBlocks_Level_Formatted%'
  - ' '
  - '%Placeholder_Enchantment_RevEnergyCollector_Name% %Placeholder_Enchantment_RevEnergyCollector_Level% '
  - '%Placeholder_Enchantment_RevEfficiency_Name% %Placeholder_Enchantment_RevEfficiency_Level%'
  - '%Placeholder_Enchantment_RevWings_Name% %Placeholder_Enchantment_RevWings_Level%'
  - '%Placeholder_Enchantment_RevNightVision_Name% %Placeholder_Enchantment_RevNightVision_Level%'
  - '%Placeholder_Enchantment_RevKeysDiscover_Name% %Placeholder_Enchantment_RevKeysDiscover_Level_Formatted%'
  - '%Placeholder_Enchantment_RevHaste_Name% %Placeholder_Enchantment_RevHaste_Level_Roman%'
  - '%Placeholder_Enchantment_RevFortune_Name% %Placeholder_Enchantment_RevFortune_Level%'
  - '%Placeholder_Enchantment_RevUnbreaking_Name% %Placeholder_Enchantment_RevUnbreaking_Level%'
  - '%Placeholder_Enchantment_RevRewards_Name% %Placeholder_Enchantment_RevRewards_Level%'
  - '%Placeholder_Enchantment_RevSpeed_Name% %Placeholder_Enchantment_RevSpeed_Level%'
  - '%Placeholder_Enchantment_RevExplosive_Name% %Placeholder_Enchantment_RevExplosive_Level%'
  - '%Placeholder_Enchantment_RevCharity_Name% %Placeholder_Enchantment_RevCharity_Level%'
  - ' '
  - '&a&l✔ &f&l%Placeholder_Flag_RevSuccess_Level% &a&lEnchants ✔'
  - '&c&l✖ &f&l%Placeholder_Flag_RevFailure_Level% &c&lFailure ✖'
  - ' '
  - '&b&lCosmic Energy'
  - '&8(&f%Placeholder_RevEnergy_Have%&8/&7%Placeholder_RevEnergy_Need%&8)'
  - '%Placeholder_RevEnergy_Progress%'
  '2':
  - '%Placeholder_Flag_RevLevel_Name% : &e%Placeholder_Flag_RevLevel_Level_Formatted% '
  - '%Placeholder_Flag_RevKillsEntity_Name% : &e%Placeholder_Flag_RevKillsEntity_Level_Formatted%'
  - '%Placeholder_Flag_RevKillsPlayers_Name% : &e%Placeholder_Flag_RevKillsPlayers_Level_Formatted%'
  - ' '
  - '%Placeholder_Enchantment_RevEnergyCollector_Name%  %Placeholder_Enchantment_RevEnergyCollector_Level% '
  - ' '
  - '&a&l✔ &f&l%Placeholder_Flag_RevSuccess_Level% &a&lEnchants ✔'
  - '&c&l✖ &f&l%Placeholder_Flag_RevFailure_Level% &c&lFailure ✖'
  - ' '
  - '&b&lCosmic Energy'
  - '&8(&f%Placeholder_RevEnergy_Have%&8/&7%Placeholder_RevEnergy_Need%&8)'
  - '%Placeholder_RevEnergy_Progress%'
Enchantment:
  Book:
    Unclaimed:
      Item:
        ==: org.bukkit.inventory.ItemStack
        type: FLINT
      Name: '&c&lUnclaimed Enchantment'
      Lore:
      - ' '
      - '&cRight click on any block'
      - '&cTo uncover the Enchantment'
    Claimed:
      Name: '%Placeholder_Enchantment_Name%'
      Lore:
      - '%Placeholder_Enchantment_Name%'
      - '&aSuccess rate   %Placeholder_SuccessRate%'
      - '&cFailure rate   %Placeholder_FailureRate%'
      - '&eDescription'
      - '&c%Placeholder_Enchantment_Description%'
      - '&c '
      - '&cRequire full energy on the item to apply'
      - '&cor you can drop at the Portal'
      - '&cto Turn it to dust'
    Sounds:
      '1':
        Sound: ENTITY_PLAYER_LEVELUP
        Volume: 1
        Pitch: 1
      '2':
        Sound: ITEM_FLINTANDSTEEL_USE
        Volume: 1
        Pitch: 1
      '3':
        Sound: ENTITY_GENERIC_EXPLODE
        Volume: 1
        Pitch: 1
  Holo:
    Loop:
      Delay: 6
      For: 30
    End:
      Delay: 10
    Up: 3
    Sounds:
      '1':
        Sound: BLOCK_NOTE_BLOCK_PLING
        Volume: 1
        Pitch: 1
      '2':
        Sound: ENTITY_PLAYER_LEVELUP
        Volume: 1
        Pitch: 1
Flag:
  Book:
    Name: '%Placeholder_Flag_Name% %Placeholder_Flag_Level%'
    Lore:
    - '%Placeholder_Flag_Name% %Placeholder_Flag_Level%'
    - '&eDescription'
    - '&c%Placeholder_Flag_Description%'
    Sounds:
      '1':
        Sound: LEVEL_UP
        Volume: 1
        Pitch: 1
ReRollScroall:
  Item:
    ==: org.bukkit.inventory.ItemStack
    type: NETHER_STAR
  Name: '&c&lReRoll Scroall'
  Lore:
  - ' '
  - '&cRight click at the Portal'
  - '&cTo ReRoll all Enchantments'
  Sound: BLOCK_ANVIL_USE
  Volume: 1
  Pitch: 1
Dust:
  Item:
    ==: org.bukkit.inventory.ItemStack
    type: GLOWSTONE_DUST
  Name: '&6&lSuccess Dust %Placeholder_Rate%'
  Lore:
  - '  '
  - '&7Hint:Right click at the Portal when you enchant'
  - '&7 to up your &fSuccess Rate by %Placeholder_Rate%'
  Sound: BLOCK_LAVA_POP
  Volume: 1
  Pitch: 1
  Max: 10
  Min: 1
Tools:
  HideEnchants: true
  Unbreakable: true
  '1':
    ==: org.bukkit.inventory.ItemStack
    type: WOOD_PICKAXE
  '2':
    ==: org.bukkit.inventory.ItemStack
    type: STONE_PICKAXE
  '3':
    ==: org.bukkit.inventory.ItemStack
    type: IRON_PICKAXE
  '4':
    ==: org.bukkit.inventory.ItemStack
    type: GOLD_PICKAXE
  '5':
    ==: org.bukkit.inventory.ItemStack
    type: DIAMOND_PICKAXE
Weapons:
  HideEnchants: true
  Unbreakable: false
  '1':
    ==: org.bukkit.inventory.ItemStack
    type: WOOD_SWORD
  '2':
    ==: org.bukkit.inventory.ItemStack
    type: STONE_SWORD
  '3':
    ==: org.bukkit.inventory.ItemStack
    type: IRON_SWORD
  '4':
    ==: org.bukkit.inventory.ItemStack
    type: GOLD_SWORD
  '5':
    ==: org.bukkit.inventory.ItemStack
    type: DIAMOND_SWORD
Else:
  HideEnchants: true
  Unbreakable: false

Enchanting Portal: You can make portals as many as you want up to 100 and each portal can have up to 100 option of enchants to select from for example Portal 1 has 3 options to select from and Portal 2 has 10 to select from, all portals are customizable you can make each enchant option location where ever you want so you can make alot of good designs with this
a9c5e978612553532b9c551fa331a983.gif

4e27a3529794fe422cc1b8a428a01753.gif


Unclaimed Enchantment book: an enchant crate you can win random enchants from it
be6877515869c7c67e91449ef3251a67.gif

Reroll Scroall: Rescroalls the enchants options if you did not find the enchant you want.
d564f24bdb2fd557eb7e46ecef42d3e1.gif

Success Dust: increases the enchants success rate, also can be used for Enchantment books
0236f69a6f23f99493dfe1a6625681e7.gif

Other:
upload_2021-3-14_0-25-5.png

upload_2021-3-14_0-25-24.png

upload_2021-3-14_0-25-37.png

upload_2021-3-14_0-25-50.png

upload_2021-3-14_0-26-3.png

upload_2021-3-14_0-26-14.png
  • upload_2021-3-14_0-24-30.png
    upload_2021-3-14_0-24-30.png
    33.5 KB · Views: 19
  • upload_2021-3-14_0-25-5.png
    upload_2021-3-14_0-25-5.png
    33.5 KB · Views: 531
  • upload_2021-3-14_0-25-24.png
    upload_2021-3-14_0-25-24.png
    42.5 KB · Views: 527
  • upload_2021-3-14_0-25-37.png
    upload_2021-3-14_0-25-37.png
    28.2 KB · Views: 531
  • upload_2021-3-14_0-25-50.png
    upload_2021-3-14_0-25-50.png
    46.2 KB · Views: 524
  • upload_2021-3-14_0-26-3.png
    upload_2021-3-14_0-26-3.png
    26.1 KB · Views: 527
  • upload_2021-3-14_0-26-14.png
    upload_2021-3-14_0-26-14.png
    27.7 KB · Views: 530

Latest updates

  1. Added new events to the api, Added new method to get level from all items at once

    Added new method to get level from all items at once (getEnchantLevelFromItem) Added new events...
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.