这是对另一个插件的修改版本:,使其符合更严格的要求(即矿车内必须有玩家,且矿车必须命名)。
我还添加了额外的配置选项,允许添加自定义矿车速度(通过自定义名称),支持的速度范围为每秒 0-30 格。
# 矿车的默认速度
defaultSpeed: 8.0
# 0 = 禁用,1 = 玩家直接在矿车内,> 2 = 玩家间接在矿车内(例如骑乘生物)
maxIterations: 2
# "speed" 的范围可以是 0 - 30(超过 30 后速度不再变化,可能是摩擦力等原因)
# double 类型表示每秒多少格,计算方式为:(blocks/second) / (ticks/second)
carts:
halfSpeed:
speed: 4.0
name: "HalfSpeed"
mediumSpeed:
speed: 12.0
name: "MediumSpeed"
fastSpeed:
speed: 20.0
name: "FastSpeed"
fastestSpeed:
speed: 30.0
name: "FastestSpeed"
# 转弯/斜坡时的速度限制
# 这个速度决定了过弯和上坡的最大速度,我认为超过 14 会导致“反弹”现象
# 12 是最佳值,13 则略显激进
breakSpeed: 12.0
要添加新速度,只需在 "carts" 下添加一个新条目,以 "mediumSpeed" 为例作为 YAML 键名,然后在下面添加你希望在游戏内激活该速度的名称,以及对应的速度值。支持 0-30 的速度,超过这个范围的话……那就只能自求多福了兄弟。
"maxIterations" 允许你在矿车内放置可骑乘的生物。只要矿车已命名,且你正在骑乘该生物,速度效果仍然会生效。这允许你将快乐的恶魂或猪等生物放入矿车并使其正常工作。该数值定义了堆叠的高度上限:
- 0 表示不进行检查,速度效果永远不会应用
- 1 表示只有直接位于矿车内的玩家才会触发速度加成
- 2 及以上表示玩家可以骑乘生物堆叠,最多 N-1 层生物
A modified version of a nother plugin: to function under more strict requirements (i.e. carts need players inside, and the cart must be named).
I've also added addition configuration options to allow adding custom cart speeds (under custom names), supporting speeds from 0-30 blocks per second.
# default speed of minecarts
defaultSpeed: 8.0
# 0 = disable, 1 = player directly in minecart, > 2 = player indirectly in minecart
maxIterations: 2
# "speed" can be from 0 - 30 (after 30 the speed doesn't change, probably friction or something)
# the double represents blocks per second as the calculation is: (blocks/second) / (ticks/second)
carts:
halfSpeed:
speed: 4.0
name: "HalfSpeed"
mediumSpeed:
speed: 12.0
name: "MediumSpeed"
fastSpeed:
speed: 20.0
name: "FastSpeed"
fastestSpeed:
speed: 30.0
name: "FastestSpeed"
# break speed
# this speed is how fast to take turns and slopes, I believe going above 14 causes "bounce backs"
# 12 is the sweet spot, 13 is pushing it
breakSpeed: 12.0
to add a new speed simply add a new entry under "carts", add the yml name "mediumSpeed" as an example, then under that, add the in-game name you want to activate the speed, and the speed that it should go at. speeds 0-30 are supported, after that -- you're on your own bud.
The "maxIterations" allows you to have riddable mobs in the minecarts and so long as the cart is named and you are riding the mob, then the speed affect should still apply. This allows you to put happy ghasts or pigs for example in the cart and still have it function. The number is how tall the stack can be:
- 0 means the check will not run and the speed will never be applied
- 1 means only the player being directly in the minecart will apply the speed boost
- 2 and over means that the player can be in a stack of mobs riding eachother up to N-1 creatures
(Icon is a screenshot from a server using the "Sketchbound" shader on painter mode)
评论 0
登录后参与评分
还没有评论,来抢沙发吧