跳到正文

Attribute Modifier Groups

作者:tfarecnim

为生物和玩家添加属性修饰符组。

收藏

介绍

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

Overview

 

The purpose of this mod is to make it easier to add multiple attribute modifiers to multiple mobs and assign them with a single command.  Attribute modifier groups are defined by constructing a list of attributes, the modifier value and the modify operation.

 

Example in spoiler below:

 

[
  {
    "attribute": "minecraft:generic.scale",
    "operation": "add_multiplied_total",
    "value": 3.0
  },
  {
    "attribute": "minecraft:generic.max_health",
    "operation": "add_multiplied_total",
    "value": 3.0
  },
  {
    "attribute": "minecraft:generic.attack_damage",
    "operation": "add_multiplied_total",
    "value": 3.0
  },
  {
    "attribute": "minecraft:player.block_interaction_range",
    "operation": "add_multiplied_total",
    "value": 3.0
  },
  {
    "attribute": "minecraft:player.entity_interaction_range",
    "operation": "add_multiplied_total",
    "value": 3.0
  }

 

 

 

this mod uses the datapack format

data/<namespace>/attribute_modifier_group/<path>.json

 

 to read from, anything outside of that folder will be ignored.  All file and folder names must be lowercase and are limited to a-z, _, – and .

 

Attribute modifier groups can be assigned or removed with a few commands

/attributemodifiergroups give <targets> <group_name> gives the selected targets the attribute modifier group

 

/attributemodifiergroups remove <group_name> removes the user from the attribute modifier group

/attributemodifiergroups remove <targets> <group_name> removes the selected targets from the attribute modifier group

all commands require at least permission level 2 to use

 

This mod is serverside only.

常见问题

Attribute Modifier Groups 支持哪些 Minecraft 版本?

Attribute Modifier Groups 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

Attribute Modifier Groups 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

tfarecnim 的其他作品

查看全部 →