本模组添加了大量完全基于客户端的内容;它适用于从纯原版服务器到重度整合包的所有服务器!你可以在我的 GitHub 仓库 找到旧版本和所有源代码。
注意:由于此模组 100% 是客户端的,其他玩家看不到你的装饰效果等。
血液:
这是无需任何配置即可发现的变化。它将玩家死亡时的普通粒子替换为血液粒子(像素完美对齐!)。站在这些血液中会使任何玩家的脚部沾满血迹。由于它替换了普通的死亡粒子,当开启即时重生时不会显示。
盔甲 HUD:
这个简单的更改会在屏幕右上角显示你的盔甲信息。它还会显示数量、冷却时间以及最重要的是:耐久度。可以使用以下命令自定义并启用盔甲 HUD:
/client-tweaks armor_hud
参数如下:
show_armor [true|false] (默认值: false) ->
启用在 HUD 上渲染盔甲
show_arrows [true|false] (默认值: false) ->
根据药水类型启用箭矢数量的渲染
pos [TOP_RIGHT|TOP_LEFT|BOTTOM_RIGHT|BOTTOM_LEFT|HOTBAR] (默认值: TOP_RIGHT) ->
更改盔甲 HUD 的位置
示例:
启用所有内容并将其位置更改为快捷栏
/client-tweaks armor_hud show_armor true
/client-tweaks armor_hud show_arrow true
/client-tweaks armor_hud pos HOTBAR
装饰与配置:
有三种默认的装饰可用:“耳朵”、“粒子”和“尾巴”。其中“粒子”和“耳朵”可以进行配置。你可以在画廊部分找到它们的图片。
一旦理解,配置非常简单。可以通过使用 /client-tweaks cosmetic 来完成。
/client-tweaks cosmetic add <cosmetic> <target>
将指定的装饰应用到指定玩家
/client-tweaks remove <category> <target>
从玩家身上移除装饰
/client-tweaks list <target>
列出特定玩家的所有装饰及其配置(如果存在)
/client-tweaks list json
输出原始 JSON 文件
/client-tweaks options <category> <target> <key> <value>
将目标配置中的某个键设置为指定值。例如 /client-tweaks options SPORES SomeGuy10 "particle" "minecraft:flame" 将 SomeGuy10 的孢子粒子更改为火焰粒子。目前只有 TAILED 和 SPORES 装饰可以自定义。(更多信息请参阅装饰部分)
可用选项:
"tail": 尾巴的纹理 (texture)
默认值:
"texture": "client-tweaks:textures/entity/tail_feature.png"
"tail": x, y 和 z 偏移量 (x, y, z),x, y 和 z 速度 (vx, vy, vz),随机生成的最小和最大粒子数 (minParticle, maxParticle),随机生成之间的最小和最大延迟 (minCooldown, maxCooldown),实际的粒子 (particle)
默认值:
"x": 0d,
"y": 1d,
"z": 0d,
"vx": 0d,
"vy": 0d,
"vz": 0d,
"particle": "minecraft:crimson_spore",
"minParticle": 2,
"maxParticle": 4,
"minCooldown": 30,
"maxCooldown": 60
x, y, z, vx, vy 和 vz 中的 d 表示双精度浮点数。对于不熟悉 Java 代码的人来说,这是带有小数点的数字。其他不带 d 的数字是整数,它们没有小数点。“minCooldown” 和 “maxCooldown” 以刻为单位。
自定义装饰:
首先通过在 .minecraft/config/client-tweaks/cosmetics 目录中创建一个 .json 文件来定义一个装饰。在本例中,我们将其命名为 “planks.json”。
在文件中,我们需要指定要作为装饰显示的物品。
{
"item": "minecraft:oak_planks"
}
你可以使用 /client-tweaks cosmetic add planks Player123 启用该装饰
如你所见,我们使用了文件名作为装饰的 ID。
当你自己尝试时,你会发现没有任何变化。这是因为木板是在你内部的。你可以像修改矩阵一样修改偏移量、缩放和旋转。例如:
{
"item": "minecraft:oak_planks",
"matrix_operations": [
{
"type": "scale",
"x": 5.0,
"y": 5.0,
"z": 5.0
}
]
}
这将木板的缩放到原来的 5 倍。你可以在画廊中查看示例。
所有矩阵操作如下:
- "translate",修改偏移量,参数:
- "scale",缩放装饰,参数:
- "rotate",围绕由 x, y & z 定义的轴旋转装饰,参数:
如果你在我的模组中发现任何问题,请前往 GitHub 仓库并在 Issues 标签页中创建新问题。因为 GitHub 是我最常用的平台,如果遇到任何不确定性,你可以使用 question 标签创建新问题,我会尽力回答你的问题。如果你有任何建议(例如新装饰),也请使用 enhancement 标签创建新问题。
方框轮廓:
你可以用方框轮廓标记世界中的区域,并用颜色进行分类。
/client-tweaks box_outlines add red ~-1 ~-1 ~-1 ~1 ~2 ~1
例如,会在玩家周围创建一个方框。
添加很简单,但删除稍微复杂一些。
你可以删除所有:
/client-tweaks box_outlines remove all
你可以按方框删除:
/client-tweaks box_outlines remove box ~-1 ~-1 ~-1 ~1 ~2 ~1
你可以按颜色删除:
/client-tweaks box_outlines remove color red
/client-tweaks box_outlines remove color value FF0000
你可以按半径删除所有:
/client-tweaks box_outlines remove radius 5
如果你对上述任何功能感兴趣,请安装此模组。
如果你不知道如何安装模组 / Fabric 加载器 / 或其他与 Fabric 模组开发相关的内容,请访问官方 Fabric Wiki 的这个精彩页面。
This mod adds a lot of stuff that is compleatly client side; it is usable from every vanilla server to even the heavilly modded ones! You can find older versions and all the source code on my github repository.
NOTE: Because this mod is 100% client-side, other players wont see your cosmetics, etc.
Blood:
This is the change that you will find without any configuring. It replaces the normal death particles for players with blood particles (they align pixel perfect!). Standing in them will make any player's feet covered in blood. Because it replaces the normal death particles, it wont show when instant respawn is on.
Armor Hud:
This simple change displays your armor in the upper right corner of your screen. It also displays count, cooldown and most importantly: durability. The armor hud can be customized and enabled using
/client-tweaks armor_hud
Arguments are:
show_armor [true|false] (default: false) ->
enables rendering of the armor on the hud
show_arrows [true|false] (default: false) ->
enables rendering of arrow count based on potion types
pos [TOP_RIGHT|TOP_LEFT|BOTTOM_RIGHT|BOTTOM_LEFT|HOTBAR] (default: TOP_RIGHT) ->
changes position of the armor hud
Example:
enable everything and change its position to the hotbar
/client-tweaks armor_hud show_armor true
/client-tweaks armor_hud show_arrow true
/client-tweaks armor_hud pos HOTBAR
Cosmetics and Configuring:
There are three default cosmetics available: "ears", "particles" and "tail". Both "particles" and "ears" can be configured. You can find images of those in the gallery section.
Configuring is easy once you understood it. This can be done by using "/client-tweaks cosmetic".
/client-tweaks cosmetic add <cosmetic> <target>
applies the specified cosmetic to the specified player
/client-tweaks remove <category> <target>
cosmetic gets removed from the player
/client-tweaks list <target>
lists all cosmetics of a certain player and the config if present
/client-tweaks list json
spits out the raw json file
/client-tweaks options <category> <target> <key> <value>
sets a certain key inside of a the targets config to the specified value. e.g. /client-tweaks options SPORES SomeGuy10 "particle" "minecraft:flame" changes the spores from SomeGuy10 to the flame particles. Currently only the TAILED and SPORES Cosmetics can be customized. More info in the Cosmetics section)
Available options:
"tail": texture of the tail (texture)
Defaults:
"texture": "client-tweaks:textures/entity/tail_feature.png"
"tail": x, y and z offset (x, y, z), x, y and z velocity (vx, vy, vz), min and max amount of particles that get spawned randomly(minParticle, maxParticle), min and max delay between spawning randomly (minCooldown, maxCooldown), the actual particle (particle)
Defaults:
"x": 0d,
"y": 1d,
"z": 0d,
"vx": 0d,
"vy": 0d,
"vz": 0d,
"particle": "minecraft:crimson_spore",
"minParticle": 2,
"maxParticle": 4,
"minCooldown": 30,
"maxCooldown": 60
The d in x, y, z, vx, vy and vz means double. For anyone not familliar with java code, that is a number with decimal places. The other numbers without the d are integers, they dont have decimal places. "minCooldown" and "maxCooldown" are in ticks.
Custom Cosmetics:
You start by defining a cosmetic inside the .minecraft/config/client-tweaks/cosmetics directory by creating a .json file. In this example we will call it "planks.json".
Inside the file, we need to specify an item we want to display as a cosmetic.
{
"item": "minecraft:oak_planks"
}
You can enable the cosmetic using /client-tweaks cosmetic add planks Player123
As you can see, we used the file name as the cosmetic's id.
When trying this yourself, you will see that nothing happened. That is, because the planks are INSIDE you. You can modify offset, scale and rotation like you would modify some matricies. For instance:
{
"item": "minecraft:oak_planks",
"matrix_operations": [
{
"type": "scale",
"x": 5.0,
"y": 5.0,
"z": 5.0
}
]
}
this scales up the planks by a factor of 5. You can view the example in the gallery.
all matrix operations are:
- "translate", modifies the offset, parameters:
- "scale", scales the cosmetic, parameters:
- "rotate", rotates the cosmetic around the axis defined by x, y & z, parameters:
- x
- y
- z
- degrees (in radians)
If you find any issues in general with my mod, go on the github repository and create a new issue in the issues tab. Because github is the platform that I use most, you can create a new issue with the question label when there are any uncertainties and I will try to answer your questions. If you have any suggestions (e.g. new cosmetics) also create a new issue with the enhancement label.
Box Outlines:
You can mark areas in your world with box outlines and categorize them with colors.
/client-tweaks box_outlines add red ~-1 ~-1 ~-1 ~1 ~2 ~1
for instance creates a box around the player.
Adding is straightforward, but removing is a little more complex.
You can remove all:
/client-tweaks box_outlines remove all
You can remove by box:
/client-tweaks box_outlines remove box ~-1 ~-1 ~-1 ~1 ~2 ~1
You can remove by color:
/client-tweaks box_outlines remove color red
/client-tweaks box_outlines remove color value FF0000
You can remove all in a radius:
/client-tweaks box_outlines remove radius 5
Install this mod, if you find any of the above features intriguing.
If you dont know how to install mods / the fabric loader / anithing else fabric modding related visit this amazing page from the official fabric wiki.
评论 0
登录后参与评分
还没有评论,来抢沙发吧