on any movement

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Wonjeong

Member
Mar 4, 2017
3
0
0
30
Hi. I'd like to make a skript. I tried a lot but I still couldn't solve it.

What I want to make: When players walk a specific block, (for example; x:100, y:100, z:100) they can see "Hello" message. <Minecraft version: 1.10.2>

I tried 'on walk', 'on step', 'on any movement' but they didn't work.

Please help me. I tried several days but it's really hard to do. ;(

I'm not an English speaker so please excuse my English skills.

addon: skellett, skquery 1.11, mundosk, umbaska, wildskript
 
code_language.skript:
on any movement:
    location of block below player is location(100, 100, 100, player's world)
    send "Hello"

Just something like this should work fine.
 
Thanks for your help but it doesn't work. So I edited a little bit.

on right click with stick:
set {x} to event-location
message "The location is selected"

on any move:
if location of block below player is {x}:
message "123"

However, when I stepped 'x' block, it send "123" several times.
I want it just one time... Can you edit this please? Thank you.
 
Thanks for your help but it doesn't work. So I edited a little bit.

on right click with stick:
set {x} to event-location
message "The location is selected"

on any move:
if location of block below player is {x}:
message "123"

However, when I stepped 'x' block, it send "123" several times.
I want it just one time... Can you edit this please? Thank you.


It can be done throught this:
Code:
 on walk on emerald block:
    position of event-block is {pos}:
        send "blah"

if that does not work:

Code:
 on walk on emerald block:
    position of block below player is {pos}:
        send "blah"

Thought it will do with any emerald block, code below will be executed only if position-condition is met. Hope i helped :emoji_slight_smile:
 
Status
Not open for further replies.