Published Nov 21st, 2014, 11/21/14 6:31 pm
- 879 views, 1 today
- 52 downloads, 0 today
23
Module #1 - Player Movement Detection
The first module is able to track nearly each type of movement a player can do.
So we need a bunch of scoreboard objectives for this, but you can use one of the result objectives to access how a player is moving.
Results of player testing always starts with the prefix "P_xxxxxxx". In this case you just need one of these objectives:
This also tracks how long do a specific movement measured in game ticks.
Examples
So you want to use this, and you don't know what to do... Its very simple. The are two ways:
Use the value to do your own scoreboard stuff
/scoreboard players set @e[type=Player,score_P_IsSprinting_min=1] <yourobjective> <value>
// set the value when starts sprinting
or directly use the value
/execute @e[type=Player,score_P_IsSprinting_min=100] ~ ~ ~ /particle lava ~ ~ ~ 0.2 1 0.2 1 10
// after 5 seconds of sprinting the player, he gets a lava trail behind him
The first module is able to track nearly each type of movement a player can do.
- Sneaking
- Sprinting
- Walking
- Swimming
- Jumping
- Falling
- Moving (any movement)
So we need a bunch of scoreboard objectives for this, but you can use one of the result objectives to access how a player is moving.
Results of player testing always starts with the prefix "P_xxxxxxx". In this case you just need one of these objectives:
- P_IsSneaking
- P_IsSprinting
- P_IsWalking
- P_IsSwimming
- P_IsJumping
- P_IsFalling
- P_IsMoving
This also tracks how long do a specific movement measured in game ticks.
Examples
So you want to use this, and you don't know what to do... Its very simple. The are two ways:
Use the value to do your own scoreboard stuff
/scoreboard players set @e[type=Player,score_P_IsSprinting_min=1] <yourobjective> <value>
// set the value when starts sprinting
or directly use the value
/execute @e[type=Player,score_P_IsSprinting_min=100] ~ ~ ~ /particle lava ~ ~ ~ 0.2 1 0.2 1 10
// after 5 seconds of sprinting the player, he gets a lava trail behind him
Progress | 100% complete |
Tags |
tools/tracking
2223592
2
mapping-utilities-module-1---player-movement-detection
Create an account or sign in to comment.
The falling one fails to work though?
In normal survival/adventure mode it should work as it should