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:
- function what version of the damage function is used.
/\!!!Not needed if you use
function dynamic_damage:damage_executer
!!!/\ -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.
- storage the data storage the function should get the data for the damage command.
/\!!!Not needed if you use
function dynamic_damage:damage_executer
!!!/\
- storage_nbt the path to the compount in the selected data storage. If there is none, put a space here.
/\!!!Not needed if you use
function dynamic_damage:damage_executer
!!!/\
- target any selector, even stuff like
@e[type=husk,tag=jeff,distance=..30,limit=10]
works)
- dmg the damage amount you want to deal
- cause a damage type. If you don't want any special damage type, use generic
- x x coordinates for the positioned function version
- y y coordinates for the positioned function version
- z z coordinates for the positioned function version
- source 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
External resources
Featured versions
See allProject members
HeDeAnTheonlyone
Owner
Technical information
License
CC-BY-4.0
Project ID