Jump to content

Needing Help with Skript Block Location / Player location


Hello123456

Recommended Posts

Hi, so I wanted to make a skript that basically teleports the player if they stand on a block at 15, 4, 63. I got down where to teleport the player but I dont know which event checks where the player is at. 

The code I am looking for is something like the line mentioned below

if block at player location is block at location(0, 0, 0, world "Example"):              (This is 100% example and not what I put)

Teleport them (I already got this part working and tested it with commands only)

Help would be appreciated. 

P.S. Tarna if you are reading this sry for the copious amount of posts on this one stupid teleport skript lol.

 

REPOST: THIS IS A REPOST OF MY OLD POST BECAUSE I DID NOT GET ANY ANSWER. PLEASE DO NOT LOCK THIS FORUM BECAUSE IA M REPOSTING A POST THAT DID NOT GET ANY ATTENTION AND NECROPOSTING IS AGAINST THE RULES

 

Anyways, have a good day 🙂

 
 
 Reply to this topic...

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
 
Link to comment
Share on other sites

I think you accidentally copied some other parts when copying your original post. 

You could probably do it like this.

on walk on sand:
	if event-block's location is location(0, 0, 0, world "world"):
		# do stuff

Try this and see if it works.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...