• Hey! Register here to create your account, engage with the community, and talk about what is new!

How do I get the exact player location when they for example right click?

ThisGamingBoy

New member
Joined
Aug 1, 2023
Messages
3
Reaction score
0
Im making a game where i want there to be a slam ability that deals damage to every player in a block radius to do so I need the players location, also let me know if there are any better ways to do this!
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,255
Reaction score
352
there is a Game Value called location, to get it:
  1. Get a Game Value (nametag item) from the Values (iron ingot)
  2. Hold it and type Location in chat
  3. Click the Mapped Map item (I think) that's called Location
and now you can use the game value as a location!
 

ThisGamingBoy

New member
Joined
Aug 1, 2023
Messages
3
Reaction score
0
there is a Game Value called location, to get it:
  1. Get a Game Value (nametag item) from the Values (iron ingot)
  2. Hold it and type Location in chat
  3. Click the Mapped Map item (I think) that's called Location
and now you can use the game value as a location!
Thank you very much for taking time out of your day and helping me!
 

ThisGamingBoy

New member
Joined
Aug 1, 2023
Messages
3
Reaction score
0
there is a Game Value called location, to get it:
  1. Get a Game Value (nametag item) from the Values (iron ingot)
  2. Hold it and type Location in chat
  3. Click the Mapped Map item (I think) that's called Location
and now you can use the game value as a location!
Btw may I ask what code block should I put it in to take the location? also thanks again!
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,255
Reaction score
352
Btw may I ask what code block should I put it in to take the location? also thanks again!
the game value can be used a location, so you can put it in like, a Game Action: Summon Mob, put a spawn egg in chest and put the game value, and the mob will spawn in your location. so you can pretty much use the Game Value instead of a Location parameter in any action
 
Top Bottom