mirror of
https://gitlab.bixilon.de/bixilon/pixlyzer-physics.git
synced 2025-08-03 10:16:54 -04:00
water sprint extractor
This commit is contained in:
parent
898da3df02
commit
c62fb7e7fa
@ -89,6 +89,36 @@ class SprintExtractor : LocalPlayerExtractor() {
|
|||||||
storeSprint()
|
storeSprint()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ExtractorMethod
|
||||||
|
fun waterStartSprint() {
|
||||||
|
player.teleport(17.0, 9.0, 8.0)
|
||||||
|
world.fill(10, 8, 5, 20, 8, 15, Blocks.STONE.defaultState)
|
||||||
|
world.fill(10, 9, 5, 20, 9, 15, Blocks.WATER.defaultState)
|
||||||
|
player.setKeys(forwards = true, sprint = true)
|
||||||
|
player.tick(20)
|
||||||
|
storeSprint()
|
||||||
|
}
|
||||||
|
|
||||||
|
@ExtractorMethod
|
||||||
|
fun waterStopSprint() {
|
||||||
|
player.teleport(17.0, 9.0, 8.0)
|
||||||
|
world.fill(10, 8, 5, 20, 8, 15, Blocks.STONE.defaultState)
|
||||||
|
world.fill(10, 9, 9, 20, 9, 15, Blocks.WATER.defaultState)
|
||||||
|
player.setKeys(forwards = true, sprint = true)
|
||||||
|
player.tick(20)
|
||||||
|
storeSprint()
|
||||||
|
}
|
||||||
|
|
||||||
|
@ExtractorMethod
|
||||||
|
fun lavaStopSprint() {
|
||||||
|
player.teleport(17.0, 9.0, 8.0)
|
||||||
|
world.fill(10, 8, 5, 20, 8, 15, Blocks.STONE.defaultState)
|
||||||
|
world.fill(10, 9, 9, 20, 9, 15, Blocks.LAVA.defaultState)
|
||||||
|
player.setKeys(forwards = true, sprint = true)
|
||||||
|
player.tick(20)
|
||||||
|
storeSprint()
|
||||||
|
}
|
||||||
|
|
||||||
@ExtractorMethod
|
@ExtractorMethod
|
||||||
fun airSprint() {
|
fun airSprint() {
|
||||||
player.teleport(17.0, 9.0, 8.0)
|
player.teleport(17.0, 9.0, 8.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user