Dyn-Dam-Lib
A library to easily deal dynamic damage amounts to dynamic targets with dynamic effects
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Dyn-Dam-Lib
This Library adds a few functions that will make it very easy to deal custom damage. You only need to change the following settings that you need in the data storage `dynamic_damage:config Settings` and then use the command `function dynamic_damage:damage_executer` to deal the damage.
If you don't want to use the build-in settings storage, you can create your own with the settings you need. This time, when calling the function, use: `function dynamic_damage:damage_from_storage with <storage>` or you can directly call the different function versions: `function dynamic_damage:dmg_functions/<default/positioned/source/source_displaced> with <storage>`
Current Settings:
- source_displacement *what version of the damage function is used.* source_displacement -*`default`: just damage with target and damage type.* -*`positioned`: like default but with coordinates where the damage comes from.* -*`source`: like default but with a source target selector.* -*`source_displaced`: like source but with a target selector to change the source position.* --- - source_displacement *the data storage the function should get the data for the damage command.* source_displacement --- - source_displacement *the path to the compount in the selected data storage. If there is none, put a space here.* source_displacement --- - source_displacement *any selector, even stuff like `@e[type=husk,tag=jeff,distance=..30,limit=10]` works)* --- - source_displacement *the damage amount you want to deal* --- - source_displacement *a damage type. If you don't want any special damage type, use generic* --- - source_displacement *x coordinates for the positioned function version* --- - source_displacement *y coordinates for the positioned function version* --- - source_displacement *z coordinates for the positioned function version* --- - source_displacement *a source entity, for the source function version* --- - source_displacement *another entity, to act from as the source entity*
If you have issues or suggestions go here