Minecraft Maps / Redstone Device

[Mapping Utilities] Module #1 - Player Movement Detection

  • 879 views, 1 today
  • 52 downloads, 0 today
  • 2
  • 0
  • 7
Noricum's Avatar Noricum
Level 20 : Expert Engineer
23
Module #1 - Player Movement Detection 

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
Easy, right?

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
Progress100% complete
Tags

Create an account or sign in to comment.

1
06/06/2015 11:38 am
Level 1 : New Miner
thesandersdeath
thesandersdeath's Avatar
YES! THANK YOU!! But could you please ma ke world save instead of an MCEdit schematic? Thanks!
1
12/10/2014 5:56 pm
Level 71 : Legendary Hero
5uperTrinity
5uperTrinity's Avatar
This is really cool!
The falling one fails to work though?
1
12/10/2014 5:59 pm
Level 20 : Expert Engineer
Noricum
Noricum's Avatar
Really? in which case?
1
12/10/2014 6:04 pm
Level 71 : Legendary Hero
5uperTrinity
5uperTrinity's Avatar
Isn't the score meant to go up when I fall? Or am I wrong?
1
12/10/2014 6:47 pm
Level 20 : Expert Engineer
Noricum
Noricum's Avatar
It doesn't work in creative mode because i can't really detect when they are flying or not ^^
In normal survival/adventure mode it should work as it should
1
12/10/2014 7:56 pm
Level 71 : Legendary Hero
5uperTrinity
5uperTrinity's Avatar
Yep it works in S/A, thanks :)
1
11/21/2014 6:48 pm
Level 21 : Expert Ninja
J4ckieChan23
J4ckieChan23's Avatar
Can you put in a world save please? Nice work BTW
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome