Elementelum 图标

Elementelum

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.1.6.1+mod
本资源为搬运资源,原资源地址: https://modrinth.com/mod/elementelum
资源信息

Minecraft 版本: 1.21 1.21.1

平台: fabric forge neoforge quilt

标签: adventure equipment magic

资源介绍

Elementelum, name born from the combination of "Element" and "Weapon"...

Of course, this project is mostly about Elemental Weapons, but there's much more.

If you want a great overview of the added content, check out the youtube review:

vred's DP Lib IS REQUIRED!!

https://modrinth.com/datapack/vreds-dp-lib

This project adds:

  • new and exciting weapons that have different tiers (pale -> stoichite -> elemental). Each tier has more abilities than the previous one;
  • built-in Iron's Spells and Spellbooks compat, where each ability will now use mana.
  • forging system;
  • datadriven augment system;
  • fully configurable stats for weapons and augments.

Technical side

Useful commands ``` /function elementelum:get_materials ``` To get all materials and augments! ``` /function elementelum:get_weapons ``` To get every weapon! How to add custom augments In order to make a custom augment you need: - 3 item modifiers; - item with specific custom data; - 1 or 2 functions; - 1 enchant (if you want). **Item modfiers** # ```# data//item_modifier/augments//normal.json``` Will be applied when hitting the yellow part in the forging minigame. ```# data//item_modifier/augments//perfect.json``` Will be applied when hitting the red part in the forging minigame. ```# data//item_modifier/augments//remove.json``` Will be applied when augment is removed. `` and `` are defined into the item itself. here's an example: ``` give @s raw_cod[custom_data={vred_lib:{augment:fish,namespace:example, item_type:augment}}] ``` ``` # data/example/item_modifier/augments/fish/normal.json # data/example/item_modifier/augments/fish/perfect.json # data/example/item_modifier/augments/fish/remove.json ``` **Functions** # A function is needed to add custom text when the augment is put in the Esoteric Anvil. To add something similar to the text of other augments, it's better to look at the orignal code. The function needs to be in the `#elementelum:augment/desc` function tag. ``` data modify storage elementelum:augment text...normal set value '[...]' data modify storage elementelum:augment text...perfect set value '[...]' ``` If you want to use the same behavior to change the level based on quantity of augment in your inventory, just use `function elementelum:augments/calc/base {namespace:,augment:}` However, it will require a custom enchantment with the id "`:`". `` and `` are the same from the item as before. Configurable values for weapons If you want to configure some of the abilites of the weapons, such as: - cooldown - damage - duration. You need to check the item itself and use `/scoreboard` to modify the values. For example, we want to edit the base damage of **Thalassurge**. We need to know the internal item id (which may not always be the same as the display name) First of all, we take a copy of said item and hold it in our main hand. Then we run this command: ``` data get entity @s SelectedItem.components.minecraft:custom_data.vred_lib ``` After that, try to find the value of "weapon_id" in the command result. In this case it's `anchor` (yes, I still haven't changed it ?). Unzip the datapack and find this function: ``` data/elementelum/function//config/base.mcfunction ``` (it will be `data/elementelum/function/anchor/config/base.mcfunction`) In that function will be all the values of the config, you can tinker around with them using `/scoreboard` to modify them. We wanted to edit the base damage of Thalassurge, now we know we can do it using this command: ```scoreboard players set $anchor.atk.dmg elementelum.config 5``` If you want to reset the values, just ``` /function elementelum:/config/reset ``` (It will be `/function elementelum:anchor/config/reset`)
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Echoes of Humanity - MoU

价格:0 墨喵币
下载量:0

查看详情
Tale of Kingdoms: A new Conquest

价格:0 墨喵币
下载量:0

查看详情
Totem Frog

价格:0 墨喵币
下载量:0

查看详情
Ultra Performance

价格:0 墨喵币
下载量:0

查看详情