Minecraft Data Packs / Game Mechanic

Magic Spell Books Datapack

    • 3,255 views, 4 today
    • 93 downloads, 0 today
    • 7
    • 5
    • 1
    ClassyElm's Avatar ClassyElm
    Level 48 : Master Engineer
    23
    Welcome to another function command creation! This specific one has taken a long time. I hope you guys enjoy it! Let's get straight to this!

    What is this datapack?
    This is a datapack that adds spells. Specifically, it adds 18 magic spells, 2 custom potions, and 7 new villager professions. Also, this command creation is completely multiplayer compatible. For performance reasons, I do not recommend using this on large servers!

    Information
    Since this is such a large function pack, there are many aspects to explain. First, let's get to the basics!
    Mana and Mana Regeneration
    Mana are the "points" that are consumed when a spell is used. Some spells cost more than others to use depending on how powerful or useful that spell is. The maximum number of mana points any player can have is 10 points. These points slowly regenerate after time, so be careful to use spells carefully. However, mana can also be replenished when using mana potions. These potions can be obtained from Alchemists. There is both a splash and regular mana potion. The regular mana potion replenishes more mana to an individual player, but the splash mana potion can replenish the mana of multiple players by a smaller amount.
    Spells
    As mentioned earlier, there are 18 magic spells that can be obtained from this function command creation. However, each spell is a part of a "type". There are six types: air, dark, earth, fire, light, and water spells. Each category contains 3 spells. Here's a list of the categories and spells. Each spell is in order of lowest tier to highest tier in each type.

    Spell
    Type
    Description
    Updraft Spell  
    Air
    This spell when used will elevate the player on a warm burst of air. It costs 2 mana points to use.
    Gust Spell
    Air
    A strong wind will be blown from the user in the direction they look. Any entity that happens to be within this gust of wind will get blown in that direction. This spell costs 3 mana points to use.
    Hurricane Spell
    Air
    Costing 10 mana points, this spell will launch all entities within 8 blocks of the user into the air while also dealing instant damage. The affected entities will then fall to their likely demise.
    Lurid Explosion Spell
    Dark
    This spell will spawn a powerful dark firework on the nearest entity to the user within 5 blocks. It costs 4 mana points to use.
    Dark Orb Spell
    Dark
    Using this spell will cause a dragon's fireball to fall from the sky on one unsuspecting being within 7 blocks of the user. A toxic area effect cloud will be spawned as a result. It costs 6 mana points to cast this spell.
    Cosmic Matter Spell
    Dark
    Similar to the Lurid Explosion spell, this one spawns a dark firework, but instead of just one, a falling shower of them! It only spawns on one mob, but deals massive damage, ending with an explosion. It costs 7 mana points to use this spell.
    Terraform Spell
    Earth
    Disorient your enemies with this block-shifting spell. Nearby blocks to the enemy will be teleported 8 blocks upwards along with all entities on those blocks. While it doesn't deal damage, it is an effective tool for defense. It costs 3 mana points to cast.
    Dirt Obstruction Spell
    Earth
    This spell will encase your enemy! Perfect for catching them in a trap! A coarse dirt box will cage the enemy and give you time. It costs 3 mana points to use.
    Reprisal Spell
    Earth
    Even though this spell only costs 1 mana point to cast, it is extremely useful for the player. If you ever are near death, just use this spell right before you die, and you will gain a brief moment of protection from all damage.
    Flame Ring Spell
    Fire
    This spell will spawn a small ring of fire around the user. It is a great way to quickly light your enemies aflame! The spell costs 1 mana point to cast.
    Fireball Spell
    Fire
    After this spell is cast, a fireball is spawned for the user to direct at their foes! This fireball is great for long-range attacks. Just try not to cause the fireball to backfire! It costs 4 mana points to use.
    Fire Blast Spell
    Fire
    Using this spell will result in fireballs and small fireballs to be shot out from the user. This deals immense damage! It costs 7 mana points to use.
    Luminosity Spell
    Light
    Ever wish you could see your enemies through the wall? Now you can with this spell! Though it doesn't deal damage, it does help to find your enemies when they hide! It costs 1 mana point to cast.
    Celerity Cloak Spell
    Light
    This spell is perfect for those who wish to make a quick getaway! It gives the user a short moment of invisibility, speed, and jump boost. It costs 2 mana points to use.
    Electric Surge Spell
    Light
    Need to strike your foe down? Easy! Use this spell to summon a bolt of lighting from the sky! It costs 5 mana points to use.
    Respiration Spell
    Water
    This spell is great for underwater explorations! It is also good to have for an underwater escape! It costs 7 mana points to cast.
    Ice Shackle Spell
    Water
    Are you unable to catch your foe? Just use this spell to freeze them in place for a couple seconds. It only costs 3 mana points!
    Aqua Eruption Spell
    Water
    Cast this spell to deal extreme water damage! The enemies will be hurt greatly if you can land the water on the enemy! An eruption is formed beneath the user, which causes a large explosion. It costs 8 mana points to cast!

    Now you know the spells, but how do you begin to collect them? See the section below for more information.
    Obtaining Items
    If you are not playing in creative mode, you can obtain spell books from mages. There is a 10% chance that a Mage or Alchemist will spawn, which makes it a challenge to get all the spells. If you are lucky enough to find a Mage, you can trade with the Mage to obtain a spell. Mages will not give you the top tier spells initially though. You must trade with the Mages to unlock the higher tiers of spells. Each Mage that spawns will have sell a specific type of spell. In order to find a Mage or Alchemist, you must find a village or breed villagers.

    In creative mode, you can use the manual to give items, which includes spell books, custom potions, and mage and alchemist spawn eggs.

    If you lose your manual, run the following command depending on your Minecraft version:

    1.14+:
    /function classyelm_magic_spell_books:give/manualAdditionally, you can also run /reload, which will give all players in creative mode a manual.

    1.13:
    /function classyelm_magic_spell_books:functions/manual1.12:
    /function classyelm_magic_spell_books:manual
    Download, Installing, and Removal
    Choose the version you would like to download and install from the released versions above or from this link. Depending on the version you choose, the installation steps may be different. Please read the instructions included for older installations as necessary.

    Uninstalling the datapack can also vary depending on the version you have installed. Generally, you will want to run the uninstall function included in the datapack. If you do not know how to do this, there is a command available in the manual included in this datapack. Once you have run the uninstall function, the auto-created scoreboard objectives will be deleted and the datapack will be disabled. At this point, you can remove the datapack from your world save. Note that this does not clear player inventories of custom items added by this datapack.
    Credits
    *Programmed and published by ClassyElm
    *Ideas by ADMR76 and ClassyElm


    Questions?
    If you have any further questions, feel free to ask in the comments or message me through PMC.
    CompatibilityMinecraft 1.13
    toMinecraft 1.20
    Tags

    5 Update Logs

    Update #5 : by ClassyElm 01/09/2024 11:16:17 pmJan 9th

    This datapack has now become compatible for MC 1.20.4. Additional fixes have been implemented to correct item display issues as well as various other small details. Like before, please report any issues you encounter with the datapack.
    LOAD MORE LOGS

    Create an account or sign in to comment.

    Planet Minecraft

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome