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.

Solved Make Minecarts undestroyable

Discussion in 'Skript' started by Hosom, Dec 24, 2019.

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

    Hosom Member

    Joined:
    Jul 10, 2017
    Messages:
    19
    Likes Received:
    0
    Code (Text):
    1. on vehicle damage:
    2.  
    3.     if victim is minecart:
    4.         cancel event
    Does not work

    Code (Text):
    1. on vehicle damage:
    2.     if vehicle is minecart:
    3.         cancel event
    Does not work either

    Code (Text):
    1. on vehicle damage:
    2.         cancel event
    Works, but prevents damage also on boats

    WTF should i do? :emoji_joy:
     
    #1 Hosom, Dec 24, 2019
    Last edited: Dec 24, 2019
  2. ZeyKra_

    ZeyKra_ Well-Known Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    Code (Text):
    1. on damage of a minecart:
    2.    attacker is a player
    3.    cancel event
    Maybe that
     
  3. Hosom

    Hosom Member

    Joined:
    Jul 10, 2017
    Messages:
    19
    Likes Received:
    0
    That does not prevent tnt and explosions and other stuff... and it does not work too! :emoji_frowning:
     
  4. ZeyKra_

    ZeyKra_ Well-Known Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    sorry i don't know

    but you can use ctizien to make minecraft you create an npc and you change the type of the npc to a minecar
    t
     
  5. Hosom

    Hosom Member

    Joined:
    Jul 10, 2017
    Messages:
    19
    Likes Received:
    0
    Wayy to hacky :emoji_dizzy_face:
    --- Double Post Merged, Dec 31, 2019, Original Post Date: Dec 29, 2019 ---
    Bump
     
  6. TenToTu Sho

    TenToTu Sho Member

    Joined:
    Dec 30, 2019
    Messages:
    15
    Likes Received:
    2
    maybe
    Code (Text):
    1. on damage of minecart:
    2.     cancel event
    will work?
     
  7. IDuckz_

    IDuckz_ Well-Known Member

    Joined:
    Jul 25, 2019
    Messages:
    102
    Likes Received:
    2
    Try this:

    Code (Text):
    1. on break of minecart: # Checks if a minecart has broken
    2.     cancel event # Stops it from breaking (canceling the break event)
    3.     send "&cYou cannot break minecarts!" # Sends a message
     
  8. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    402
    Likes Received:
    28
    If the issue is resolved, please mark the post as solved. Thanks.
     
    • Like Like x 1
  9. Hosom

    Hosom Member

    Joined:
    Jul 10, 2017
    Messages:
    19
    Likes Received:
    0
  10. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    402
    Likes Received:
    28
Thread Status:
Not open for further replies.
Loading...