1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem on skript

Discussion in 'Skript' started by KAVKAZIE, Mar 11, 2021.

Thread Status:
Not open for further replies.
  1. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    Hey, I have a problem when I spam click on blocks i disabled the event its still opening them.
    Using 1.16.5 version
    Code (Text):
    1. on right click on cauldron or loom or barrel or daylight detector or cake or flower pot or enchanting table or furnace or repeater or any door or any trapdoor or lever or any minecart or any button or any bed or dispenser or dropper or note block or any fence gate or dragon egg or hopper or anvil or chest or trapped chest or beacon:
    2.     if player's world is "world" or "PvP" or "Mining" or "Mine1" or "Mine2" or "Mine3" or "Mine4":
    3.         if player's gamemode is creative:
    4.             stop
    5.         else:
    6.             cancel event
    --- Double Post Merged, Mar 15, 2021, Original Post Date: Mar 11, 2021 ---
    up
     
  2. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    try
    Code (Text):
    1.  if name of player's world
     
  3. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    not working.
     
  4. just a minor improvement in your skript, instead of doing
    Code (Text):
    1.  
    2. if player's gamemode is creative:
    3.             stop
    4.         else:
    5.             cancel event
    6.  
    you could do
    Code (Text):
    1.  if player's gamemode isn't creative:
    2.             cancel event
     
  5. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    now its works better but still when u click fast with the item on blocks its still gltiches
     
  6. okay, then just for testing purposes, on the first line, instead of checking for all those blocks, just check for 1 block and see if the issue still persists. My thinking is, that you are simply checking for way to many things in 1 event, but I could be wrong
     
  7. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    can u send me an example code pleease ?
     
  8. Code (Text):
    1. on right click on furnace:
    2.     if player's gamemode isn't creative:
    3.         cancel event
    this should cancel when clicking on a furnace, even when clicking very fast
     
  9. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    I mean I changed the right click on blocks to another skript and its works good but i talked about right clicking items like snowballs fishing rod..
     
  10. could you then be very specific in what you would like the code to do?
     
  11. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    this is what i was talking about
    Code (Text):
    1. on right click with bow or fishing rod or snowball or egg or ender pearl or splash potion or lingering potion or trident or crossbow:
    2.     if player's world is "world" or "Mining" or "Mine1" or "Mine2" or "Mine3" or "Mine4":
    3.         if player's gamemode isn't creative:
    4.             cancel event
     
  12. Okay, this is a very simplified version of that skript, to see if you are checking for too many things. See if it cancels out every time you throw a snowball, even when doing it really fast.
    Code (Text):
    1. on right click with a snowball:
    2.     if player's gamemode isn't creative:
    3.         cancel event
     
  13. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    still happen
     
  14. well then I don't know. Maybe it's limitations, or it's a bug or something else. You could consider opening a ticket at skripts issue tracker https://github.com/SkriptLang/Skript/issues
     
  15. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    okay ty anyways can u see my other post ?
     
  16. you could look at the docs for a flowerpot interaction
     
  17. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    there was 1 on intrnet and that is not working for me
     
  18. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    From what I understood, do you want to make the event cancel when throwing, for example, a snowball?

    In these case, then dont use on right click event to cancel them. Just do this

    Code (Skript):
    1. on shoot:
    2.     projectile is an snowball or enderpearl
    3.     shooter's gamemode isn't creative:
    4.         cancel event
     
  19. KAVKAZIE

    KAVKAZIE Active Member

    Joined:
    Feb 27, 2017
    Messages:
    146
    Likes Received:
    0
    works good on shoot event thanks.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...