跳到正文

Dyn-Dam-Lib

A library to easily deal dynamic damage amounts to dynamic targets with dynamic effects

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

评论

登录后评论和评分

HeDeAnTheonlyone 的其他作品

查看全部 →