Inactive [FUN/FIX] CartJump v2.0 - Allows minecarts to jump [1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by lemonzap, Aug 22, 2011.

  1. Offline


    Hello everyone. Sorry I haven't updated in a while. I have been learning to mod minecraft lately so I've been busy. I have a few mods in the works right now but I haven't released any of them yet. I was getting so many messages about updating my plugin I decided to take a break from modding to make you all happy:D . It should all work the same and I'll try to add in some new features soon. Also if you make any cool rollercoasters using my plugin then make a video and post the link here.

    CartJump Version: v2.0
    This plugin simply allows minecarts to travel further when going of a cliff. rather than plummeting, the minecart has a more realistic momentum. This allows for mine cart jumps and other such things.

    • Minecarts travel further through the air
    • Minecart jumps are possible
    • configure horizontal and vertical jumping speeds/distances
    Download most recent release
    demonstration video

    Version 2.0
    • added config file
    Version 1.1
    • fixed an error caused by the VehicleMove event including boats
    Version 1.0
    • Initial release increasing minecart in air travel distance
    Royalgamer06 and iPeace like this.
  2. Offline


    A vid would be nice D:
  3. Offline


    ill get right on that

    edit* done, I put in the original post
  4. Offline


    Great Plugin, it works great!
  5. Offline


    thanks, I was also thinking of adding a config so you can edit yourself how fast or slow you want it to fall and how fast to travel forward, let me know if you think I should do this.
  6. Offline


    If you can, you should, being able to make a ramp with minecart rails and be able to make it able to reach Higher rails than the top of the ramp, that would be cool.
  7. Offline


    The problem with that is that angled ramps always have a block afterwards so it never launches up. It would probably take a lot more to have the cart disregard that block at the end. I would like to do that eventually. If anyone has some ideas on how to make the carts jump upwards I would greatly appreciate their help.
  8. Offline


    Anthony13 likes this.
  9. Massive error spam happened after this was loaded for half an hour:

    21:15:39 [SEVERE] Could not pass event VEHICLE_MOVE to CartJump
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftBoat cannot be cast to org.bukkit.entity.Minecart
            at me.lemonzap.CartJump.CJVehicleListener.onVehicleMove(
            at org.bukkit.plugin.RegisteredListener.callEvent(
            at org.bukkit.plugin.SimplePluginManager.callEvent(
            at net.minecraft.server.EntityBoat.m_(
            at net.minecraft.server.World.entityJoinedWorld(
            at net.minecraft.server.WorldServer.entityJoinedWorld(
            at net.minecraft.server.World.playerJoinedWorld(
            at net.minecraft.server.World.cleanUp(
            at net.minecraft.server.MinecraftServer.h(
  10. Offline


    hm... I havent had this problem and Ive had it running for days. maybe theres a plugin conflict? ill look into it.

    ok, after testing I have confirmed that this error is caused because the vehiclemove event includes boats and I havent distinguished between them. ill fix it right away.

    done, I fixed your error.

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


    Would be very much appreciated.
    Don't have much use for this now, but I downloaded it anyway just in case.
  12. Offline


    I Love this plugin good work :D
  13. Offline


    minecart speedplus does the same and more ?
  14. Offline


    Wow!! It's unbelievable!!
    I love this plugin ~.. Thanks you!
  15. Offline


    thanks you :D
  16. Offline


    oh the possibilities...
    this looks great, but the title is kind of false advertising as this only decreases the minecarts speed decrease rate. Meaning you can't actually jump. Jumping would mean I could send my minecart uphill, and without a flat track at the end, the minecart would for a brief amount of time continue its momentum upwards also. I do understand that's a whole other type of thing, but if you managed to program that I would definitely set up a well designed rollercoaster on my server and record a better video of it. Also the speed decrease rate still doesn't look completely realistic, increasing it as much as possible would be good since if people wanted a shorter jump they just need to fine tune the minecart's speed on the tracks. This plugin looks very hopeful as it fixes something Notch failed to do.
  17. Offline


    Thanks for the feedback. I do plan on adding in actual jumping in the future, but I currently dont know where to start. I haven't found how to check the block type beneath the cart, the yaw of the cart, and the travel direction. once I know how to get and set yaw, and direction I can get started (direction meaning following through off the jump and continuing up). I haven't found these in the bukkit java docs yet. feel free to link me too it if you find it yourself.
  18. Offline


    @lemonzap You can look at TrainCarts for hints. It contains lots of functions, from getting signs under the tracks to getting the yaw from the rails. Also contains a function to calculate the (blockface) direction from the velocity (motion). Other than that TrainCarts also contains functions to move a minecart using yaw and force, which could also be helpful in your case.
  19. Offline


    thanks ill check it out, see what I can do.
  20. Offline



    While in motion make the player invulnerable to falling damage and walls. If need be all damage.
  21. Offline


    ill put in the config
  22. Offline


    AWESOME! Can't wait :-P
  23. Offline


    im thinking i might make it so that when you hold shift you dont take fall damage but wont jump as far. so you have to press shift between jumping and hitting the ground to get the same distance as usual but not take fall damage. it could be like bracing for impact.
  24. Offline


    make it an option please ;-) as most of my players have trouble keeping up with stuff like this.
    I would rather use my admin powers to decree the cart as a safe way of travel.
  25. Offline


    A nice feature would be a more realistic cart movement so for instance, when the cart is going up in the air it points up and when it's coming down it points down. Great Mod!
  26. Offline


    Please just add:

        public void onEntityDamage(EntityDamageEvent event)
            if(event.getEntity() instanceof Player)
                Player player = (Player) event.getEntity();
                    if(player.getVehicle().getVelocity().length() > 0)
  27. Offline


    I've been a bit busy lately so I haven't done any work on this. That code looks like it should work ill test it out.
  28. Offline


    I added a quick one goal plug-in with that bit of code in it devbukkit, called CartArmor.

    It works well enough and still allows for creepers to do damage as they also destroy the cart.
    Feel free to use any part of it ;-)
  29. Offline


    I think there's a bug. The default vertical fall speed is 1, and it can be [0, 10]. 1 is a bit slower than normal, but if I set it to .9, it barely falls at all. I want to make it fall at half speed.

    EDIT: Wait does it take an int or a float? If just an int, make the normal speed 5...
  30. Offline


    it accepts ints

Share This Page