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.

Change Hitbox 1.8

Discussion in 'Skript' started by Skaya, Sep 7, 2018.

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

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Is there a way to make a player's hitbox smaller or larger?

    Or I there a way to don't hit invisibel players? (By Arrow: The Arrow shouldn't get block by the invisibel player)

    Please don't write that i should upgrade my Minecraft version.
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    You could use skript-mirror
    player.setCollidable(false)
     
  3. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Pretty sure this is not possible in Minecraft.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    "Or I there a way to don't hit invisibel players? (By Arrow: The Arrow shouldn't get block by the invisibel player)"
    I just tested what DieHollander wrote, and it works.

    "Is there a way to make a player's hitbox smaller or larger?"
    That part I have no idea about, but I don't think its possible to change a hotbox size
     
  5. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Okay, but is this also possible with entity's?
     
  6. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Yes
     
  7. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Okay, do you have an example. In the moment it doesn't work for me.
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    I just tested with this, and it works
    Code (Skript):
    1. command /test:
    2.     trigger:
    3.         spawn sheep at location of player
    4.         set {_sheep} to last spawned sheep
    5.         {_sheep}.setCollidable(false)
     
    • Like Like x 2
  9. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Witch version of skript-mirror i have to use. At the moment with the Newest version I get an enable error.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Any version should work
     
  11. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    okay, strange. Your example doesnt' work with the newest version.
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    I just tested it on Skript mirror 0.19.1 and it works totally fine.
     
  13. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Okay, server version? Do I have to import something at the beginning?
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Oh crap that is right you are on 1.8
    I am on 1.12.2
    I just looked at the java docs, setCollidable() isn't present in 1.8
     
  15. Skaya

    Skaya Member

    Joined:
    Aug 6, 2018
    Messages:
    26
    Likes Received:
    0
    Okay, that means that this ins't possible?
     
  16. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Sadly I do not think its possible.
    There might be another way, I just personally do not know it.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...