English | 简体中文
CommandFallingBlock
描述
CommandFallingBlock 是一款适用于 Minecraft 的 Fabric 模组,添加了 fallingblock 命令以方便召唤下落方块。
支持的 Minecraft 版本:1.16.5、1.18.2、1.20.x、1.21.x、26.1 - 26.3
使用方法
命令
-
fallingblock moveFromPos <posStart> <motion> <hasGravity> <block> [age]
fallingblock moveFromBlockPos <posStart> <motion> <hasGravity> <block> [age]
类似于原版,从某个位置移动
-
fallingblock moveFromPosByTick <posStart> <motion> <hasGravity> <tickMove> <block> [age]
fallingblock moveFromBlockPosByTick <posStart> <motion> <hasGravity> <tickMove> <block> [age]
从某个位置移动,你可以控制经过多少刻后变为方块
-
fallingblock moveToPosByTick <posEnd> <motion> <hasGravity> <tickMove> <block> [age]
fallingblock moveToBlockPosByTick <posEnd> <motion> <hasGravity> <tickMove> <block> [age]
移动到某个位置,你可以控制经过多少刻后变为方块
-
fallingblock moveToPosByYMove <posEnd> <motion> <yMove> <hasGravity> <block> [age]
fallingblock moveToBlockPosByYMove <posEnd> <motion> <yMove> <hasGravity> <block> [age]
移动到某个位置,你可以控制 Y 轴移动距离,当具有重力时会有偏差
-
fallingblock moveFromPosToPosByMotionY <posStart> <posEnd> <motionY> <block> [age]
fallingblock moveFromBlockPosToBlockPosByMotionY <posStart> <posEnd> <motionY> <block> [age]
从某个位置移动,你可以控制 Y 轴初始速度,必须具有重力,起始位置存在偏差
-
fallingblock moveFromPosToPosByTick <posStart> <posEnd> <hasGravity> <tickMove> <block> [age]
fallingblock moveFromBlockPosToBlockPosByTick <posStart> <posEnd> <hasGravity> <tickMove> <block> [age]
从一个位置移动到另一个位置,你可以控制经过多少刻后变为方块,必须具有重力,起始位置存在偏差
参数
-
posStart - 起始位置
-
posEnd - 目标位置
-
motion - 初始速度
-
motionY - Y 轴初始速度
-
yMove - Y 轴移动距离
-
hasGravity - 是否具有重力
-
tickMove - 经过多少刻后变为方块
-
block - 方块
-
age - 最大存活刻数
关于
作者:Yancey
QQ:1709185482
Github:
常见问题
-
如果撞到障碍物怎么办?
它会直接穿过障碍物。你无需担心。
-
如果目的地不在地面上怎么办?
它也会变成方块。
-
该模组召唤的下落方块会与原版或其他模组冲突吗?
为了避免冲突,我为该模组召唤的下落方块添加了一种实体类型
-
性能会变差吗?
如果输入了目的地,则必须通过模拟路径来寻找起始位置。虽然理论上比直接使用 summon 命令性能稍低,但测试表明它不会导致卡顿。
更多特性
以下所有内容均指由 fallingblock 命令召唤的下落方块,而非原版下落方块。
English | 简体中文
CommandFallingBlock
Description
CommandFallingBlock, a fabric mod in minecraft, adds fallingblock command to summon falling block conveniently.
supported minecraft versions: 1.16.5, 1.18.2, 1.20.x, 1.21.x, 26.1 - 26.3
How to use
commands
-
fallingblock moveFromPos <posStart> <motion> <hasGravity> <block> [age]
fallingblock moveFromBlockPos <posStart> <motion> <hasGravity> <block> [age]
like the vanilla, move from a position
-
fallingblock moveFromPosByTick <posStart> <motion> <hasGravity> <tickMove> <block> [age]
fallingblock moveFromBlockPosByTick <posStart> <motion> <hasGravity> <tickMove> <block> [age]
move from a position, you can control how many ticks it becomes a block
-
fallingblock moveToPosByTick <posEnd> <motion> <hasGravity> <tickMove> <block> [age]
fallingblock moveToBlockPosByTick <posEnd> <motion> <hasGravity> <tickMove> <block> [age]
move to a position, you can control how many ticks it becomes a block
-
fallingblock moveToPosByYMove <posEnd> <motion> <yMove> <hasGravity> <block> [age]
fallingblock moveToBlockPosByYMove <posEnd> <motion> <yMove> <hasGravity> <block> [age]
move to a position, you can control the y-axis movement distance, which is biased when it has gravity
-
fallingblock moveFromPosToPosByMotionY <posStart> <posEnd> <motionY> <block> [age]
fallingblock moveFromBlockPosToBlockPosByMotionY <posStart> <posEnd> <motionY> <block> [age]
move from a position, you can control the y-axis initial speed, it must have gravity, the initial position is biased
-
fallingblock moveFromPosToPosByTick <posStart> <posEnd> <hasGravity> <tickMove> <block> [age]
fallingblock moveFromBlockPosToBlockPosByTick <posStart> <posEnd> <hasGravity> <tickMove> <block> [age]
move from a position to another position, you can control how many ticks it becomes a block, it must have gravity, the
initial position is biased
param
-
posStart - start position
-
posEnd - target position
-
motion - initial speed
-
motionY - the y-axis initial speed
-
yMove - the y-axis movement distance
-
hasGravity - if it has gravity
-
tickMove - how many ticks it becomes a block
-
block - block
-
age - max tick it can live
About
Author:Yancey
QQ:1709185482
Github:
FAQ
-
What about if it crashes an obstacle?
It will pass through obstacles directly. You don't need to worry about it.
-
What about if the destination is not on the ground?
It will also become block.
-
Will the falling block of this mod conflict with the vanilla or other mods?
To avoid it, I add an entity type for the falling block of this mod
-
Will the performance become worse?
If the destination is given as input, the starting position must be found by simulating the path. While theoretically
less performant than directly using the summon command, testing shows it doesn't cause stuttering.
More feature
The following is all about the falling block summoned by fallingblock command, rather than the vanilla falling block.
-
It can render blocks rendering by entity render, such as chests.
-
It will not send NBT that are not used for rendering to client.
For example, the text NBT in signs will send and the item NBT in chests will not send.
-
When reaching its destination and needing to set block, it will be killed after 2 ticks to prevent flickering.
评论 0
登录后参与评分
还没有评论,来抢沙发吧