此插件允许你将任意压力板变成“跳跃垫”,当玩家踩上去时,会被推向指定的方向。
我很快会制作一个视频教程。如果你遇到任何问题,请在 GitHub 上告诉我。
行为机制
跳跃垫有两种类型:
相对(Relative)
踩上相对跳跃垫后,玩家在 X 和 Z 方向的速度将乘以跳跃垫的 Z 值,而玩家在 Y 方向的速度将被设置为跳跃垫的 Y 值。
固定(Fixed)
固定跳跃垫有一个额外的属性——X 值。固定跳跃垫会将玩家在 X、Y 和 Z 方向的速度分别更改为对应的 X、Y 和 Z 值,类似于相对跳跃垫在 Y 方向上的工作方式。
跳跃垫可以通过两种方式创建:
隐式(Implicitly)
如果 config.yml 中的 implicit-jumppads 设置为 true,那么列在 jumppad-materials 中的所有压力板类型都会在玩家踩上它们时被隐式地视为跳跃垫。默认情况下,implicit-jumppads 为 false。
显式(Explicitly)
无论 implicit-jumppads 的值是真是假,你始终可以显式地定义跳跃垫的属性。
命令
/jumppad set
如果跳跃垫尚不存在,则创建一个新跳跃垫,并使用第二个参数来确定要设置的值。有效选项如下:
x
必须是一个有效的浮点数。此选项仅适用于固定跳跃垫。
例如:/jumppad set x -1
y
必须是一个有效的非负浮点数。
例如:/jumppad set y 1
z
必须是一个有效的浮点数。
例如:/jumppad set z 1.5
sound
激活跳跃垫时将可选播放的声音。子选项:
type
要播放的声音名称。你可以在 找到完整的聲音名稱列表。
例如:/jumppad set sound type BLOCK_NOTE_BLOCK_PLING
active
是否应在激活跳跃垫时播放声音。
例如:/jumppad set sound active false
pitch
要播放声音的音调。这必须是 0.0 到 2.0 之间的有效浮点数。默认为 1.0。
例如:/jumppad set sound pitch 2
volume
声音播放的音量大小。这必须是 0.0 到 2.0 之间的有效浮点数。默认为 1.0。
例如:/jumppad set sound volume 0.5
particle activated
激活跳跃垫时生成的粒子效果。
子选项:
active
是否应生成粒子。
例如:/jumppad set particle activated active false
type
应生成哪种类型的粒子。你可以在 找到完整的粒子名称列表。
例如:/jumppad set particle activated type SMOKE
count
一次应生成多少粒子。
例如:/jumppad set particle activated count 10
particle passive
即使跳跃垫未被玩家激活,也会定期生成的粒子效果。
子选项:
采用与 activated 相同的子选项,但额外增加一个 delay 参数,用于衡量生成粒子之间的间隔(以刻为单位,20 刻 = 1 秒)。
例如:/jumppad set particle passive delay 40
/jumppad toggle
如果选定的跳跃垫处于激活状态,将其停用。如果选定的跳跃垫未激活,将其激活。
/jumppad delete
删除你所查看的压力板关联的所有数据。如果 implicit-jumppads 为 false,这将停止将其视为跳跃垫;如果不为 false,则将其数据恢复为默认值。
/jumppad info
显示你通过 /jumppad set 为你所查看的压力板设置的属性。如果你没有为该压力板设置任何自定义内容,它将返回 config.yml 中设置的默认跳跃垫的信息。
/jumppad reload
从磁盘重新加载 config.yml。这是为了在服务器运行时应用对此文件所做的任何更改。
权限
只有拥有 jumppad.manage 权限的玩家才能使用此命令。默认情况下,只有服务器操作员拥有此权限。
只有拥有 jumppad.use 权限的玩家才能使用跳跃垫。默认情况下,所有人都拥有此权限。
附加信息
bStats
此插件使用 bStats 收集其使用情况数据,这是插件的常见做法。但是,你可以通过在 plugins 文件夹中的 bStats/config.yml 中将 enabled 设置为 false,或者将插件 config.yml 中的 disable-bstats 值更改为 true 来选择不参与此数据收集。
更新检查
此插件将尝试使用 Github API 来确定它是否是最新版本,并在有更新可用时通知你。如果你愿意,可以通过在 config.yml 中将 disable-update-checking 的值更改为 true 来选择不参与此操作。
支持我
服务器托管
需要为你的 Minecraft 服务器寻找主机吗?使用以下 Apex Hosting 的推荐代码作为创作者支持我:
This plugin allows you to turn any pressure plate into a "Jump Pad", which, if the player steps on, they will be propelled in a specified direction.
I'll be making a video tutorial on this soon. If you have any issues, let me know on Github.
Behavior
There are two types of Jump Pads:
Relative
Upon stepping on a Relative Jump Pad, the player's velocity in the X and Z directions will be multiplied by the Jump Pad's Z value, and the player's velocity in the Y direction will be set to the Jump Pad's Y value.
Fixed
Fixed Jump Pads have an additional property - the X value. Fixed Jump Pads will change a player's velocity in the X, Y, and Z directions to its X, Y, and Z values respectively, much like what a Relative Jump Pad does in the Y direction.
Jump Pads can be created in two ways:
Implicitly
If implicit-jumppads is set to true in the config.yml, all pressure plate types listed in jumppad-materials will be implicitly considered Jump Pads as soon as a player steps on them. implicit-jumppads is false by default.
Explicitly
Regardless of whether the value of implicit-jumppads is true, you can always define the properties of a Jump Pad explicitly
Commands
/jumppad set
Creates a new Jump Pad if it does not already exist and uses the second argument to determine which value to set. These are the valid options:
x
Must be a valid floating point number. This option is only available for Fixed Jump Pads.
E.g. /jumppad set x -1
y
Must be a valid non-negative floating point number.
E.g. /jumppad set y 1
z
Must be a valid floating point number.
E.g. /jumppad set z 1.5
sound
A sound that will optionally be played upon activation of the Jump Pad. Sub-options:
type
The name of the sound to be played. You can find a full list of sound names at
E.g. /jumppad set sound type BLOCK_NOTE_BLOCK_PLING
active
Whether the sound should be played on activation of the Jump Pad.
E.g. /jumppad set sound active false
pitch
The pitch of the sound to be played. This must be a valid floating point number between 0.0 and 2.0. The default is 1.0.
E.g. /jumppad set sound pitch 2
volume
How loudly the sound should play. This must be a valid floating point number between 0.0 and 2.0. The default is 1.0.
E.g. /jumppad set sound volume 0.5
particle activated
Particles that will be spawned upon activation of the Jump Pad.
Sub-options:
active
Whether the particles should be spawned.
E.g. /jumppad set particle activated active false
type
Which type of particle should be spawned. You can find a full list of particle names at .
E.g. /jumppad set particle activated type SMOKE
count
How many particles should be spawned at once.
E.g. /jumppad set particle activated count 10
particle passive
Particles that will be spawned periodically even when the Jump Pad has not been activated by a player.
Sub-options:
Takes the same suboptions as activated but with an additional delay parameter, which measures the interval in ticks (20 ticks = 1 second) between spawning particles.
E.g. /jumppad set particle passive delay 40
/jumppad toggle
If the selected Jump Pad is active, it will be deactivated. If the selected Jump Pad is not active, it will be activated.
/jumppad delete
Deletes all data associated with the pressure plate you are looking at. This will stop it from being considered a Jump Pad if implicit-jumppads is false, or if it is not, revert its data back to the default.
/jumppad info
Tells you what properties you gave the pressure plate you are looking at with /jumppad set. If you didn't set anything custom for that pressure plate, it will return the information of the default jumppad set in config.yml.
/jumppad reload
Reloads the config.yml from the disk. This is needed to apply any changes made to this file while the server is running.
Permissions
Only players with the jumppad.manage permission can use this command. By default, only server operators have this permission.
Only players with the jumppad.use permission can use the jump pads. By default, everyone has this permission.
Additional Info
bStats
This plugin collects data on its usage using bStats, which is a common practice for plugins. However, you can opt out of this data collection by setting enabled to false in bStats/config.yml in the plugins folder, or by changing the value of disable-bstats in the plugin's config.yml to true.
Update Checking
This plugin will attempt to use the Github API to determine whether it is up to date and will notify you if an update is available. If you would like, you can opt out of this by changing the value of disable-update-checking to true in the config.yml.
Support Me
Server Hosting
Need a host for your Minecraft Server? Using this affiliate code for Apex Hosting supports me as a creator:
评论 0
登录后参与评分
还没有评论,来抢沙发吧