Minecart Collision

Discussion in 'Plugin Development' started by Junrall, Oct 22, 2011.

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

    Junrall

    Hello all,

    Is there any way to turn off minecart collision?

    What I'm trying to do is keep people from pushing carts that are at a dead stop.

    Thanks
     
  2. Offline

    thehutch

  3. Offline

    Junrall

    lol... slap it to me! I can take it... even if it makes me cry :)
     
  4. Offline

    thehutch

    No he made a plugin just like this and tust me it is very hard to overcome his problems look at the plugin "TrainCarts" and then look at the source
     
  5. Offline

    Junrall

    Oh... I've seen the plugin... very impressive indeed. I have also seen a few threads that talk a little about minecart collision... doesn't sound like fun.

    My thought was to record the location of the cart at the moment it stops... then if it moves teleport it back to the stopped position. I'm not sure if this is the best way.

    Ok... figured it out. setting setMaxSpeed to zero did the trick.
    I couldn't live with the teleport idea... just seemed like a hack job to do something simple.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  6. Offline

    thehutch

    tbh idk if you can spawn minecrafts in a location otherwise you could have gotten the co-ords of the first and last parts of the track then spawn one back at the beginning
     
Thread Status:
Not open for further replies.

Share This Page