Solved Sit on Enderpearl.

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

utol

Member
Feb 10, 2017
17
1
0
25
Hey i want to make a Skript about this for a long time now. And i still can't figure it out on how to make it.

I want it if you enderpearl, you be able to sit on it if it's named "&6EnderButt"

If you launch an enderpearl, you will be able to sit on it.

code_language.skript:
on rightclick of edner pearl:
    player's gamemode is survival:
        make player ride a enderpearl

#doesn't work.
 
im not sure. you should maybe try, spawn a armorstand at enderperal, make player ride at armorstand and Teleport all 1 ticks armorstand to enderpearl. You need some events check, if enderpearl hits wall or somethigs. delete the armorstand
 
Hey i want to make a Skript about this for a long time now. And i still can't figure it out on how to make it.

I want it if you enderpearl, you be able to sit on it if it's named "&6EnderButt"

If you launch an enderpearl, you will be able to sit on it.

code_language.skript:
on rightclick of edner pearl:
    player's gamemode is survival:
        make player ride a enderpearl

#doesn't work.
Probably because you made a mispell.
code_language.skript:
on rightclick of edner pearl:
 
Hey i want to make a Skript about this for a long time now. And i still can't figure it out on how to make it.

I want it if you enderpearl, you be able to sit on it if it's named "&6EnderButt"

If you launch an enderpearl, you will be able to sit on it.

code_language.skript:
on rightclick of edner pearl:
    player's gamemode is survival:
        make player ride a enderpearl

#doesn't work.



have tested around... so should works


code_language.skript:
on rightclick:
    broadcast "%player's tool%"
    player's tool is ender pearl
    broadcast "True"
    wait a ticks
    loop all entities in radius 2 around player:
        broadcast "%loop-entity%"
        if "%loop-entity%" is "ender pearl":
            set {_a} to loop-entity
    broadcast "%{_a}%"
    player's gamemode is survival:
        make player ride {_a}
 
have tested around... so should works


code_language.skript:
on rightclick:
    broadcast "%player's tool%"
    player's tool is ender pearl
    broadcast "True"
    wait a ticks
    loop all entities in radius 2 around player:
        broadcast "%loop-entity%"
        if "%loop-entity%" is "ender pearl":
            set {_a} to loop-entity
    broadcast "%{_a}%"
    player's gamemode is survival:
        make player ride {_a}
thanks man, also i need help on set slot on player's inventory. Any ideas?
idk how to set a item on players item on his inventory.
 
thanks man, also i need help on set slot on player's inventory. Any ideas?
idk how to set a item on players item on his inventory.
hmm... more infomantion? btw do you already look documentinos?


code_language.skript:
set slot 0 of player's current inventory to stone named "Name" with lore "lore"
 
Status
Not open for further replies.