Dyn-Dam-Lib — Minecraft Mods — MetaMods

Dyn-Dam-Lib

Active

Downloads

0

Last update

2 years ago

Versions

23w31a
Server
Libraries

Dyn-Dam-Lib

Simplified Damage Management

This library provides a set of tools that significantly simplifies creating custom damage for various purposes. All functionality revolves around simple parameter configuration and execution of appropriate commands.

The main method of operation involves setting necessary parameters in the special data storage dynamic_damage:config Settings followed by executing the command function dynamic_damage:damage_executer to deal damage.

Alternative Usage Methods

For experienced users, additional options are available: you can create your own settings storage with required parameters and call functions directly with data source specification:

  • function dynamic_damage:damage_from_storage with <storage>
  • Or use specific function versions: function dynamic_damage:dmg_functions/<default/positioned/source/source_displaced> with <storage>

Available Settings

Functional Parameters

  • function — determines the damage function version (not required when using the standard handler)
    • default — basic version with target and damage type specification
    • positioned — similar to default, but with damage source coordinates
    • source — like default, but with source selector
    • source_displaced — like source, but with additional selector for source position modification
  • storage — selection of data storage with damage parameters (not needed when using standard handler)
  • storage_nbt — path to compound tag in selected data storage (use space if none exists)

Damage Parameters

  • target — any target selector, including complex conditions like @e[type=husk,tag=jeff,distance=..30,limit=10]
  • dmg — amount of damage to deal
  • cause — damage type (use generic for standard cases)
  • x, y, z — coordinates for positioned version
  • source — source entity for source version versions
  • source_displacement — additional entity for simulating source position

If you have any questions or suggestions for improving the library's operation, you can contact the project's GitHub repository.

Project members
HeDeAnTheonlyone

HeDeAnTheonlyone

Developer

Created: 7 Aug 2023

ID: 23653