PARTICIPANT IN A UNRANKED completed JAM
Minecraft Magic Event

Data Packs Magic

Flashbulb's Spell Pack

  • 2.8k views 0 today
  • save_alt 105 downloads
Compatibility
Minecraft 1.18
Changes include
  • Functions
  • 18
  • 11
  • 16
Flashbulb
Lvl 54Grandmaster Fish Fish
110
This is part of the PMC Magic Event, and requires the Magic PVP Framework to work.

This spell pack adds four spells, Basic Spell, Healer, Puffer Poison and Webber.

Basic Spell
- Deals damage to entities
- Has a two second cooldown

Healer
- Heals targets for five seconds and heals the target for four seconds.
- Has a four second cooldown

Puffer Poison
- Summons a pufferfish when aimed at the ground, good for splash damage.
- Poisons an entity for twenty seconds when it is a direct hit.
- Has a two second cooldown.

Webber  
- Places a cobweb when aimed at the ground, good for escaping and obstacles.
- Places a cobweb near an entity when aimed with a direct hit.
- Has a three second cooldown.

How to get the spells
Install this datapack and then follow the tutorial in the description of the required Magic PvP Framework by Bertiecrafter.

3 Update Logs

Update 3 : by Flashbulb 02/26/2022 9:04:05 amFebruary 26, 2022 @ 2:04 pm UTC

- Spells are now compatible with custom model data. Yay!
-All spells cooldowns are now changed and are now longer to be more balanced.
LOAD MORE LOGS

More like this

  Have something to say?

Skwerps
02/04/2022 5:05 pm
He/Him • Level 29 : Expert Theorist Mage
can you try to make this craftable?
4
Flashbulb
02/04/2022 5:06 pm
Level 54 : Grandmaster Fish Fish
No, I cannot make it craftable, you need to use the framwork then spawn in the chest with the spells.
2
GrimWither
02/03/2022 10:51 am
Level 38 : Artisan Engineer
Did you use ray casting for this, if so how did you create cool downs?
3
Bertiecrafter
02/03/2022 12:10 pm
Level 72 : Legendary System
I'm glad you asked :P

Nerdy explanation
Yes, ray casting is used for the spells. The cooldowns are created by a large amount of functions (one for each slot) that copy the timeout value from the item to scoreboard, subtract 1, move back to data storage and use an item modifier to copy the data storage value into the item again. When the timer hits zero, a temporary item frame is spawned which is used to modify some properties (since we can't modify the player directly) before using /item to replace the item in the inventory.
3
GrimWither
02/03/2022 9:11 pm
Level 38 : Artisan Engineer
I will definitely look into your framework pack though I might learn some things
3
GrimWither
02/03/2022 9:11 pm
Level 38 : Artisan Engineer
Right now im using raycasts for guns just so i can learn the basics of them then ill porbably add them to my mmorpg datpack for magic, spells, sword projectiles, and other stuff when i learn more advanced stuff
3
GrimWither
02/03/2022 9:07 pm
Level 38 : Artisan Engineer
ok never mind definitely not going to bother doing that, seems to complicated and i hate using entities for stuff like this. any way i watch like a thousand video tutorials in order to learn the basics of ray casting, finally found one thats easy and makes sense as well as working.
3
Bertiecrafter
02/04/2022 1:44 am
Level 72 : Legendary System
Yeah, this version is overly complicated because I need to use entities and scoreboards to move the rays every tick, but also multiple times a tick.. Normally you would recursively use 'execute positioned ^ ^ ^0.1' or whatever to move the 'current position' of the function, until you find something.
4
Flashbulb
02/03/2022 11:44 am
Level 54 : Grandmaster Fish Fish
You would have to ask Bertiecrafter for that, I just used the framework, Bertiecrafter did the ray casting and cool downs.
2
Bertiecrafter
02/02/2022 2:52 pm
Level 72 : Legendary System
Wow, this is an amazing data pack! For this being your first functional data pack, creating 4 spells with particles and sound that are interesting as well is quite impressive. Spell phrases are mostly originals too.

Thank you for the great submission and don't be afraid to extend this one or create another submission =)

And who knows, maybe this the start of your functional data pack adventures.
3

Welcome