Slashbridge
它有什么功能?
Slashbridge 的诞生是因为有一些功能让我觉得:“真的吗?用命令做不到这些?” 在当前的版本中,它主要添加了一些命令,但未来的计划是将其扩展到其他服务端功能,以便用于我自己的数据包和数据驱动的模组,也希望你们也能用到!
命令
/motion
Entitymotion 允许你平滑地移动实体并以不同方式编辑其当前速度。移动子命令:
set (vector) - 将实体的速度更改为新的向量。
add (vector) - 将新向量添加到实体的当前速度中。
seek (number) - 使目标向某个实体移动(如果是负数则远离)。
mult (number) - 将目标的当前速度乘以该数值。
向量移动格式:
world - 移动对应于游戏内的坐标。<x> <y> <z>
local - 相对于目标实体朝向的移动。<forward/back> <up/down> <right/left>
zx - 移动仅在水平方向旋转,不在垂直方向旋转。Y 轴始终在游戏世界中指向上方,而不是相对于实体朝向的上方。<forward/back> <y> <right/left>
/status
Entitystatus 允许你修改实体的生命值、饥饿值和吸收值。子命令:
seek 允许你将这些属性中的任何一个从一个实体转移到另一个实体,例如通过移除一个实体的生命值来给另一个实体增加饥饿值。
其余的子命令 +|-|*|/|= 只是数学运算符。
/despawn
Despawn 允许你让实体消失,而无需在技术上杀死它们。它们不会掉落物品或经验值或其他任何东西。目前设置为忽略玩家。
子命令:
recursive - 使被选中的实体及其所有乘客一起消失。
single - 仅使被选中的实体消失。
/after
After 允许你在经过一定刻数后运行命令。可以与其他命令堆叠使用。例如 /execute at @p run after 100 kill' 可以是一个命令。
/during
During 允许你在白天、夜晚或特定的月相期间运行命令。
/Ignite & /Extinguish
设置实体着火或灭火。ignite 命令允许你设置实体着火的刻数。
标签
这些标签具有一定的命令功能,但它们部分使用了 Minecraft 的命令系统,并且可以使用 /tag 命令进行添加和操作。
伤害抗性和弱点
sb.dx.<damageType>+<multiplier>这为特定类型的伤害添加了伤害倍率。这些倍率采用驼峰命名法,因为这是 Minecraft 中显示的方式。所以与其写 indirect_magic,不如写 indirectMagic。
sb.dx.mob+0.5 意味着你受到来自生物的近战伤害减半。
这些标签旨在不叠加,如果你尝试叠加它们,计算结果会很奇怪。
你可以使用负倍率来在治疗时造成伤害。
sb.damageheal
当实体进行治疗而不是受到伤害时,会添加此标签。目前不会自动移除,假设使用该标签进行跟踪的用户可以在他们那边移除它。
未来计划
玩家动画命令(s)
我不知道这在现实中是否可行,但我希望能够排队播放原版游戏中可用的玩家动画,比如挥手或坐下。无论这是否可能,尤其是以我目前的技能水平,只有时间才能证明。
Slashbridge
What does it do?
Slashbridge was started because there are functions that I was like "Really? You can't do that with commands?" In its current state it adds commands, but the plan is to expand it to other serverside features that will be used my own datapacks and data-driven mods, and hopefully yours too!
Commands
/motion
Entitymotion allows you to smoothly move an entity and edit its current velocity in different ways.Movement subcommands:
set (vector) - Changes the entity's velocity to a new vector.
add (vector) - Adds a new vector to the entity's current velocity.
seek (number) - Moves targets towards an entity (or away from with a negative number).
mult (number) - Multiplies a target's current velocity by a number.
Vector movement formats:
world - Movement corresponds to in-game coordinates. <x> <y> <z>
local - Movement relative to where the target entity is facing. <forward/back> <up/down> <right/left>
zx - Movement rotates only horizontally but not vertically. Y is always up in the game world and not up relative to where an entity is facing. <forward/back> <y> <right/left>
/status
Entitystatus lets you modify the health, hunger, and absorption values of an entity.Subcommands:
seek lets you transfer any of these stats from one entity to another, such as giving an entity hunger by removing another's health.
The rest of the subcommands +|-|*|/|= are just math operators.
/despawn
Despawn lets you despawn entities without technically killing them. They won't drop items or xp or anything. Currently made to ignore players.
Subcommands:
recursive - Despawns the entity targeted alongside all of its passengers.
single - Despawns only the entity targeted.
/after
After lets you run a command after a number of ticks. Can be stacked with other commands. For example `/execute at @p run after 100 kill' could be a command.
/during
During lets you run a command during day, night, or a specific moon phase.
/Ignite & /Extinguish
Set entities on fire or put it out. The ignite command lets you set the number of ticks entities are on fire for.
Tags
These will have some degree of command functionality, but they partially use minecraft's command system and can be added & manipulated with the /tag command.
Damage Resitance and Vulnerability
sb.dx.<damageType>+<multiplier>This adds in damage multipliers for a specific damage type. These are done in camelcase, as that's what's displayed in minecraft. So instead of writing indirect_magic you'd write indirectMagic.
sb.dx.mob+0.5 would mean you take half melee damage from mobs
these tags are not intended to stack, and the math will work out weirdly if you try and stack them.
you can put negative multipliers to heal on damage.
sb.damageheal
This tag is added when an entity heals instead of taking damage. It does not get removed at the moment, with the assumption that whoever's using the tag for tracking purposes can remove it on their end.
Plans for the future
Player Animation Command(s)
Idk how plausable this is, but I want to be able to queue up player animations available in vanilla game such as swinging a hand or sitting. Whether or not this would be possible, especially at my current skill level, only time will tell.
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
下载 Slashbridge
- 对伤害抗性的基础支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧