Speed on carpet

  • 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.

Stefal

New Member
May 22, 2021
5
0
1
18
i have been trying to get a player when standing on a red carper the speed effect but it doesnt work as expected

i want it to only give the effect when on the red carpet so i need to deleted when u get off and i dont know how to do that because it adds the effect and then takes it away immediately on the red carpet
 
this may work
Code:
on any movement:
  if name of block 1 under player contains "carpet":
    apply speed 1 to player for 1 second
 
cant understand 'on any movement' is the error im getting.
i tried to do 'on player move' but that didnt work

edit: i figured it out
i just removed the effect when u are on a block next to the carpet or in the air

on walking on red carpet:
apply speed 1 to player for 1000 seconds

on walking on cobbled deepslate or polished deepslate:
remove speed from player
on walking on cobbled deepslate or polished deepslate:
player is not on ground
remove speed from player
 
Last edited:
Status
Not open for further replies.