Wouldn't it be nice if we could use Command Blocks to detect what players do and within a certain aria? Imagine the possibilities. You'r making a parcore map and you want players to be able to be able to do something only after they do what you need them to do.
For example: I need the player to "sprint" "next to glass panes" "in a certain aria" to give them a posion affect because my map needs that to work as I require for the mini-game.
Just use the command as shown in the following examples:
- /detect @a ~19 ~25 ~26 Swim{Hight; -2.5, Meter;3}, Sprint{Meter;3}, /give affect 12
- /detect @p ~25 ~19 ~15 Jump{Hight; 1.25}, Sprint{Second;5}, /give affect 14
- /detect @e ~19 ~31 ~20 Crouch{Meter;2, Hight;.5}, /tp ~31 ~19 ~-15
Detections include:
- Jump
- Sprint
- Swim
- Crouch
- Glide
- Fly
- Achievement
- Drop
- Death
- Kill
- UsedItem
- Craft
- Brew
- Smelt
- Repair
- Enchant
- Fall
- Damage
- Ate
- Drink
- Sight
- Affect
- Attack
- AirAttack
- Swing
- SwipeAttack
- Messaged
- Item
- Ridding
- MainHandClick
- OffHandClick
- ButtonPushed
1 Comments
Please sign in to leave a comment.
Post a new comment: