Giter Club home page Giter Club logo

traincarts's Introduction

⤓ Modrinth / ⤓ Spigot / ⤓ Jenkins Dev Builds / Source on GitHub / Javadocs / Discord

About TrainCarts

Trains in Minecraft! Automated metro networks, rollercoasters, gondolas, ski-lifts or amusement park rides. TrainCarts does it all with support for custom models, animations, automation with signs and a large API that supports add-ons that can do even more!

This plugin requires BKCommonLib

Join our discord server for help: https://discord.gg/wvU2rFgSnw

Please do not use very old versions with older versions of Minecraft. The latest release of TrainCarts and BKCommonLib are backwards-compatible with older Minecraft versions.

Discover how to use this plugin over at https://wiki.traincarts.net/p/TrainCarts

Custom Trains

With the Attachment Editor you can customize the appearance of your trains. Create custom cart models in Blockbench and ride inside them in-game. Large models are possible by adding multiple sections of a model as separate (Armorstand) item models. TrainCarts will do the animating for you and move the parts as a whole.

Recommended reading before going into this: Custom Item Models in 1.9 and Up

Ingame Map Editor

Animations

For custom ride enthusiasts, trains can be fully animated. This means you can have doors that open and close, carts that spin around, or even create theme park rides like Ferris wheels, spinners and merry-go-rounds!

Demo Resource Pack

TrainCarts has a demo resource pack that you can download that includes a couple of train and rollercoaster cart models. You can already play around with these without having to delve into Blockbench yourself

The locomotive and carriages were made by Nullblox. Maxi made the different color rollercoaster carts.

Installation Instructions 1.19.3

Option A Configure the resource pack in server.properties

The preferred way is to configure the resource pack on the server end. This way not only will clients automatically load the resource pack, Traincarts can read the resource pack and show the models ingame in the attachment editor. This also makes the models listable under /train model search and automatically loads the saved trains from them.

resource-pack=http://resourcepack.host/dl/7WhMys1sduesiVlWz0m521zXkg5OU46L/TrainCarts_Demo_TP_v4.zip
resource-pack-sha1=CB87E9E06E3CC72627F5A9A597688845CA3C3CD4

Option B Download the resource pack and host it yourself

Download it from Dropbox here

Host the zip file somewhere on a FTP, your own server, a public resource pack host or some form of cloud storage that allows for a direct download. Then add the URL to your server.properties:
resource-pack=https://your-domain/path/to/TrainCarts_Demo_TP_v4.zip

Installation Instructions (Old Minecraft Versions)

1. Download the resource pack

Download it from Dropbox here

2.A: Host it

Host the zip file somewhere on a FTP, your own server, a public resource pack host or some form of cloud storage that allows for a direct download. Then add the URL to your server.properties:
resource-pack=https://your-domain/path/to/TrainCarts_Demo_TP_v3.zip

This is the recommended way, as this way the train models also show properly inside the attachment editor.

2.B: Enable it in your client

You can follow this tutorial on the Minecraft Wiki to install the zip file as a resource pack in your Minecraft client.

Important note: you will get a warning about the resource pack being outdated, but it works just fine on modern versions of Minecraft. That warning can be ignored.

3. Download the train configurations

Download a zip file with the configuration from Dropbox here

4. Extract the zip file

Extract the zip file, you should now have a fairly large tcdemo.yml file. This file is going to be installed on the server.

5. Install the tcdemo.yml

Install this file at plugins/Train_Carts/savedTrainModules/tcdemo.yml

6. Reload saved trains

Either restart the server, or use /train globalconfig reload --savedtrainproperties


Usage Instructions

Spawn the trains

The new models are bound to durability values of the golden pickaxe. You can spawn these trains using:

The following train names can be spawned

  • loco - Spawns locomotive without animations
  • carr / carg / carb - Spawns red/green/blue carriages without animations
  • loco_anim - Spawns locomotive with animated wheels and pistons
  • carr_anim / carg_anim / carb_anim - Spawns red/green/blue carriages with animated wheels
  • ferris - Animated Ferris wheel, use animation 'spin' to control it (WARNING: VERY LAGGY)
  • spinner - Animated spinning ride with 3 controllable animations ('spin', 'turn' and 'arm')
  • rolr / rolg / rolb - Rollercoaster carts with 4 seats

Physics

Trains don't just follow a line or are limited by Minecraft's own Minecart physics. They are simulated in real-time with gravity physics, rail switching and wheels that track the rails.

New Speed Limits

It is possible to make trains move much faster than the usual 0.4 blocks per tick. Zoom! The default (configurable) maximum speed limit is 5 blocks per tick (300kph!).

Keep Chunks Loaded

Trains can be set to keep chunks loaded. Then they act as moving chunk loaders, keeping themselves and a small area around them loaded and animated. This way they can run autonomously, no matter if no players are nearby.

Waiter

Make trains automatically slow down or stop completely when another train or occupied mutex zone is up ahead. An acceleration and/or deceleration can be set to make trains stop and start realistically to avoid obstacles.
➦Wiki

Properties

There are lots of other properties to change the train's behavior, and more are added all the time.

  • Banking, gravity and friction: create realistic rollercoaster rides, or turn it off entirely
  • Collision: change whether mobs enter automatically, or what happens when a player collides with a train
  • Player enter and exit: Whether players can get in or out of your train
  • Change view distance of the occupants (Paper server only)
  • Tags: tag a train and route it through the train network, or do special things to it along the way

➦Wiki

Sign Actions

Signs placed along the rails are used to make the trains do things. Change train properties, launch trains, create stations or automatically switch junctions. With an extendable API anything is possible.
➦Wiki

Path Finding

Make your train network come alive with trains that automatically travel to destinations all over your Minecraft world.
➦Wiki

Commands

Everything that can be done with sign actions, and more, can also be done using commands.
➦Wiki

Selector Support

Use the @ptrain selector to use the player passengers of a train as an argument in other (non-TrainCarts) commands. Or use @train to perform actions on multiple trains at once. Trains can be selected by cuboid, distance, set properties and many more.
➦Wiki

Featured

This plugin uses the Cloud Command Framework for handling commands

If you're impressed by the quality of TrainCarts' command auto-completions, suggestions and help menu and want this in your plugin, check out Cloud by Incendo!

Addons

TrainCarts exposes an API that allows third parties to extend the plugin. Primarily it adds support for new rail types, new attachment types and custom action signs.

  • TC-Hangrail: Trains floating below iron fences and also below/above other kinds of blocks (by TeamBergerhealer)
  • TC-Coasters: Rails in the air without requiring actual rails blocks (by TeamBergerhealer)
  • SmoothCoasters: Minecraft Client Fabric mod that, if installed, smoothens armor stand animations and improves the first-person camera view
  • TCTicketShop: Use sign interaction to buy train tickets (by DefinitlyEvil)
  • LightAPI: Powers the built-in Light attachment. (Use this fork for MC 1.17.1 and below)
  • TCJukebox: Plays music for players inside the train using MCJukebox (by melerpe)
  • TC-Portals: Teleport trains between servers in a realistic way (by J0schlZ)

FAQ

When some players ride a train, the train glitches out and the player's cart gets stuck in position

NoCheatPlus thinks the player is cheating, because the cart is moving in unintended ways. The cart is teleported back to a valid state causing these strange glitches. To fix this, set the following to false in the NoCheatPlus configuration:

checks:
  moving:
    vehicle:
        enforcelocation: false
I'm on Minecraft 1.16 and players can get out of my playerexit=false train by pressing shift

Sadly, the Minecraft client had a bug in it where the server could not cancel players exiting from vehicles. Updating to Minecraft 1.17+ will fix this again. See also: SPIGOT-5891

When players are near, trains reach their destinations. With no one near, they don't.

Enable the keep chunks loaded property of the train.

I created an auto-spawner but trains are piling up somewhere closeby

Enable the keep chunks loaded property of the train. Trains will otherwise unload in the same spot when no player is near.

When I exit a train, the train disappears

If you have CraftBook installed on the server, this plugin can actually do exactly that. Turn it off in the CraftBook Configuration.

Donate

If you really like my work and want to give something in return, feel free to donate something small to me over PayPal using the button down below. Thank you! :)

traincarts's People

Contributors

56738 avatar andre601 avatar bbayu123 avatar bergerkiller avatar cgokmen avatar j0schlz avatar kpaulisse avatar layertwo avatar lee0701 avatar maeyanie avatar mg-1999 avatar peblair avatar ryanhecht avatar sander0542 avatar snabeldier avatar thulinma avatar wakkaflocka239 avatar weeryan17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traincarts's Issues

Minecart bug

Hello i found a bug, when the minecarts are moving one of the minecarts go through the ground.

Ticket signs not working

Hello, there has been a very annoying bug in my server: all signs work except the ticket sign.
I am using Spigot 1.8.8-R0.1, the latest TrainCarts and BKCommonLib from drone.io and the build 12 of Spigot Essentials.
There are no errors related to any of the plugins mentioned.

I get confirmation on chat that a ticket sign has been created, but it doesn't work. Tried the following sign formats.

Minecarts keep changing direction

Hello,

I am using the TrainCarts plugin on a Spigot 1.8.8 server, and while I enjoy the plugin very much and appreciate your work, I have a small problem with it that I would like to solve.

The problem is as follows: when the carts of a train are travelling (no matter the speed) sometimes they start flipping back and forward randomly. This does not affect the motion of the entire train, but is a very ugly visual glitch, especially when it comes to storage minecarts. The handle faces forward, then backward, then forward again, repeatedly every second.

The most important result of this bug (or maybe an isolated, more severe bug), however, is as follows: when a long train (let's say 10 carts) powered using a furnace-minecart (either from the front, back, or middle, no difference) makes a U-turn where the short section (the bottom of the letter U) is shorter than the train (let's say 3 blocks), the train is simultaneously facing two opposite directions at the same time. As a result, the direction calculation method fails, causing the furnace cart to repeatedly switch directions of force. This causes the entire train to start going forward, backward, forward, backward; oscillating within the U-corner, never getting out.

Here is a YouTube video containing evidence of the second issue, it's very easy to reproduce:
https://www.youtube.com/watch?v=9IRtlpXMZtc

I tried unsuccessfully to solve the issue, I'm really unfamiliar with the source code and as such me fixing it would require a lot of extra time to identify the source of the problem.

Thank you for your help!
sultanskyman

Train derail in a bend

Sometimes a train derails at a high maxspeed. Most of the times it's in a bend which can be seen on the picture below. The train has a maxspeed of 2.0. In the 1.7 version it doesn't derail.

image

My Worlds Portals Integration

In the most current builds(as of 1/24/2016) the my worlds portal features appear unresponsive. My worlds functions as expected however traincarts completely disregard the portal signs. No error message shows in console. Acts as if feature isn't supported with many different setups/methods.

here is a very basic setup that [should] function, but isn't:
http://imgur.com/fkXFjOI

Player floats over minecart.

When a player is on a minecart which is on a rail, for some reason he floats 1 block above it. It gets really annoying, since the player will suffocate if there is a roof above the rail. Can anyone, if you can, provide me with a way to fix this problem?

2016-02-18_18 08 27

Weird Glitch were minecarts stop: Failed to perform physics on train 'train1' at world_-703_24_1012:

BkCommonLib version: 1.66 (latest)
TrainCarts version: latest
Spigot version: 1.8.9

#### Problem or bug:

Trains stop at random moments (mostly in turns) Or when going up a hill.
1
In the screenshot above: The cart just stops, or goes into the ground.

2
In the screenshot above you can see how the train just stops and splits into two different trains.

Happens most of the time when a player is in the cart.

Expected behaviour: Train should move normally on the rail.

Steps to reproduce: Happens at random. Most of the time at small turns or at small hills

Automatically cleaning up empty carts

Not sure if this is a missing feature or if I just don't know how to configure it - but is there a way to periodically "garbage collect" empty carts? Would be useful to prevent overcrowding.

Failed to perform physics on train 'train1' at world_-703_24_1012:

Spigot version 1.8.9. Traincarts version: 1.8

When a train passes a sign, the last car stops moving and the console is spammed with this error:

6:59:41 PM [SEVERE] [Train_Carts] Failed to perform physics on train 'train1' at world_-703_24_1012:
6:59:41 PM [SEVERE] java.lang.NullPointerException

Player sits on the minecart not in the minecart

When entering a minecart the player is actually sitting on top of the minecart, not in the minecart. Also to enter the minecart the player sometimes has to click on the square one above where the minecart actually is.

Ladders do not work

Ladders as rails does not work. The carts can go up the ladder, but don't go further on the actual rails.

TrainCarts blocks spigot server query

I already posted this at a wrong place, so here it is now at GitHub:

Hello mg_1999,
I really like your plugin and it got essential to my server's structure.
I found a bug, which needs to be fixed:
The plugin TrainCarts, not only BKCommonLib, blocks every query communication of the server with outside. For example if I want to access the online players with the control panel of my hoster, it says "0 players online "and "server is offline". This happens as well, when you want to make a banner like in the signatures of many forum participiants. There is the server query blocked as well.
If I remove TrainCarts from my plugins folder, everything works fine. Reseting all the plugin files doesn't change anything. I am using the newest versions of TrainCarts, BKCommonLib and I even just created a absolutely new spigot file with BuildTools.
I hope you can fix this and I wish you a happy new year 2016!

P.S: I would really appreciate it, if you could make this plugin premium, but therefore you do more updates or bug fixes, because I really need TrainCarts for my server to work.

Can't move minecarts in creative mode

May be same issue as #12 ?
Using version: Train_Carts v1.74-SNAPSHOT using BKCommonLib v1.66-SNAPSHOT

  1. Place minecart on rail
  2. Set /gamemode 1
  3. Right-click on cart
  4. Press 'W'
    Result: cart does not move

Also:

  1. Place minecart on rail
  2. Set /gamemode 1
  3. Attempt to move cart on rail by walking into it
    Result: cart does not move

TrainCarts crash on Paper Spigot

When using Paper Spigot as server software. TrainCarts is crashing on startup.

EDIT:
Reflection in WorldRef field entityRemovalList

TrainCarts spams and crash the server. :(

BkCommonLib version: Latest - 1.70
TrainCarts version: Latest - 1.75
Spigot version: Latest 1.9

#### Problem or bug: Crash a server, spam with errors and stop the server. I give you my server log. in the spigot 1.8 I have this error too. Sorry for my english.

2016-03-13-7.log.gz

Section system

Hey,

I have some trouble with working on a plugin to get more info about a part of the track.
What i need to build is a system that spawns only a train if some parts of the track are not already having a train.

The part of the triggering of that system is not a problem, but i have a trouble getting info about the track if there are trains or not.
I have looked into switchers with some kind of switching logic plugin that keeps remembering the current state.
Only the problem is that there is no space for a lever without showing the lever to everybody, what i don't want.

What i tried to realise is some kind of sign that can give his state to a single sign, so that sign can be used in some check systems.
Only problem is, that if i know the start location and end location of a track part, i don't know how to check if the rails between that section is in use or not.

Is anyone have any idea there for?
Or does someone of traincarts have time to build something where you can check on a redstone system if a waiter, or a custum sign, something like a section, with [train]section startName endName.
Where startName means that is the name of the section that starts here, and endName the same, only that is the name of the section that ends here.

Or has someone another idea to fix this?

Harm

@mg-1999 If my english explanation is not clear enough, i can maybe write a dutch explanation for you. I was really struggling to write my idea and problem in english.

Spawn trains with external plugin

Hey,

Is it possible to spawn a train above a specific train spawn sign from my own plugin?
Or do i need to place a blok that triggers the sign?

Harm

Issue: Members not connecting

Hi, I was wondering why my thing doesn't work.
I had to downgrade my Traincarts because it hadn't been working, so when I did that, it still had the same error, so I updated my BKCommonLib to the Snapshot, and now the plugin has not disabled.

BUT...
Whenever I create a new Train with the Members (Minecarts), they just freeze without moving a muscle. I don't know if any of the plugins are causing it, but ever since I got it working, my console has been glitching out. I use a Linux Ubuntu, and my server is Homehosted.
Traincarts Version: 1.7.4
BKCommonLibs Version: 1.6.6 (SNAPSHOT)

i probably need to upgrade my version, so I'll reply if it works at all.

Unloading / loading into/from chests throws exception

I placed a sign as follows:

[train]
deposit chest

as soon as a redstone torch is placed under the sign the following stack trace shows up in the server log:

[23:52:11 ERROR]: [Train_Carts] Failed to execute GROUP_ENTER for SignActionTransfer:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:473) ~[?:?]
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:454) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:194) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:177) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.findBlocks(TransferSignUtil.java:258) ~[?:?]
at com.bergerkiller.bukkit.tc.signactions.SignActionTransfer.execute(SignActionTransfer.java:82) ~[?:?]
at com.bergerkiller.bukkit.tc.signactions.SignAction.executeAll(SignAction.java:187) ~[?:?]

Also got this when the sign was not immediately on the block under the rail, but one block lower:

[23:50:42 ERROR]: [Train_Carts] Failed to execute REDSTONE_ON for SignActionTransfer:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:473) ~[?:?]
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:454) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:194) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:177) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.findBlocks(TransferSignUtil.java:258) ~[?:?]
at com.bergerkiller.bukkit.tc.signactions.SignActionTransfer.execute(SignActionTransfer.java:82) ~[?:?]

I see another commenter on the spigot page is also having problems with loading and unloading chests.

I'm using the latest version of TrainCharts, version 1.66-SNAPSHOT of BKCommonLib, and a spigot version from august 2015
(server log says: [00:32:25 INFO]: This server is running CraftBukkit version git-Spigot-fdc1440-53fac9f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT).

It seems the problem happens in BKCommonLib at https://github.com/bergerhealer/BKCommonLib/blob/master/src/main/java/com/bergerkiller/bukkit/common/utils/BlockUtil.java#L473 although I don't quite see any cast to a Set on that line.

90 degrees turns stops minecart

Minecarts get stuck when encountering a 90 degrees turn section. Sometimes they just go backwards like they collide with something.
Even when there's no blocks surrounding the rails, it still acts the same.

2015-07-23_14 28 28
2015-07-23_14 28 42

Feature request: Handle collisions with different kinds of mobs differently

I am working on this for my own use. Please let me know whether this would be desired in the release.

Currently collisions of carts with mobs are controlled by one setting (collision.mobs) which manages collisions with animals, monsters, villagers, and pets. I would like this to be more granular. For example, I might want to have the train kill monsters, have animals enter, and have pets be ignored.

I propose these categories:

  • Tamed animals (aka "pets") -- tamed horses, cats, dogs
  • Other animals (including untamed horses, wolves, ocelots)
  • Monsters
  • NPCs

This would be backward compatible:

  • Any reference to "mob" in the configuration files would be replaced by new entries for animals, monsters, NPCs, ...
  • Any reference to "mob" on signs would set collision modes for all of the above entity types.

I've got this as a work in progress here and here

Collision cancel ignored

Ever since 1.75, when pushing minecarts was fixed, any property sign/defaulttrainproperties.yml values that cancelled collisions have been ignored. This means that minecarts are ALWAYS able to be pushed, even when they are intended to have cancelled collisions.

Edit 1: I've only tested this with player collisions, not sure if any other collision types act the same way

Edit 2: A staff member on my server informed me that collisions with other trains don't appear to be affected by this

Jumping carts

As soon as a player 'touches' a Minecart, they start jumping high in the air.

Cart Collision

Found a pretty annoying problem that is not allowing me to make something work that alot of time has been spend on. The problem is is when TrainCarts is loaded you are no longer to push a cart, even is the 'allCartsareTraincarts' option is disabled. This is not allowing things such as having carts linked to armor stands or vectors.

The problem still exists when a cart has been made and the plugin is unloaded. however, when you then create a cart while the plugin is unloaded you are able to push that one while the other one remains stationary.

Upon update from 1.7.10 to 1.8.8, signs go wierd.

so i updated my entire server from 1.7.10 to 1.8.8 and it all boots up fine. but then i go to a sign and see that the plugin changed all my signs from (without quotes):
'[train]'
to:
'train'.
if i create a new sign, it works fine. but i have TONS AND TONS of them and i don't have that much time in my life to go to all edges of my map to rectify it. All help appreciated - Thanks in advance.

Unable to push carts whilst riding

Appears to be very similar to #12 & #13.
Running Train_Carts v1.75-SNAPSHOT, BKCommonLib v1.67-SNAPSHOT on Spigot (git-Spigot-06ad352-4a7472d) : v1_8_R3 (Minecraft 1.8.8)

In both creative and survival modes, I am unable to push the carts while riding the cart (using W key). I can however push the cart by running into it.

This problem stops if I relog while in the cart, but returns when destroying & replacing the cart.

Hooking into minecart movement to get cart position

Hello,

For a server i work for they want a plugin to monitor for specific trains what positions this train moves to.
Is it in some way possible that i can hook in a event or override a function so that i can log positions into a file?

I can edit the jar, by adding something in the current code.
But it is then broken after an update.

I was looking for a nice way of doing it without editing traincarts, but then i can't find a way to constant watching the position of the train.
I saw already a function in MinecartMember, doPostMoveLogic, but i can't figure out a way to hook into that function nicely.

Harm(Harm27)

Server stopped responding; cause was TC-related

I'm sorry, usually I'd provide more information in an issue report, but unfortunately I didn't have much to go on here, I was pressed for time while fixing the issue myself. The bottom line is, something TrainCarts-related caused my server to stop responding (the stack is printed below). It was fixed by uninstalling TrainCarts, deleting its plugin folder, and then reinstalling. I reloaded my previous config.yml and DefaultTrainProperties.yml, so I don't think the issue lies in there. Once again, I'm sorry for not providing any more info to go on, hopefully this can help possibly uncover something.

Stack from when the server stopped responding:

[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.common.controller.EntityController.bind(EntityController.java:40)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.common.entity.CommonEntity.getController(CommonEntity.java:173)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.tc.controller.MinecartMemberStore.canConvert(MinecartMemberStore.java:78)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.tc.controller.MinecartMemberStore.convert(MinecartMemberStore.java:103)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.tc.TCListener.onEntityAdd(TCListener.java:190)
[10:00:39] [Spigot Watchdog Thread/ERROR]: sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
[10:00:39] [Spigot Watchdog Thread/ERROR]: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[10:00:39] [Spigot Watchdog Thread/ERROR]: java.lang.reflect.Method.invoke(Method.java:606)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.common.utils.CommonUtil.callEvent(CommonUtil.java:117)
[10:00:39] [Spigot Watchdog Thread/ERROR]: com.bergerkiller.bukkit.common.internal.CommonWorldListener.a(CommonWorldListener.java:83)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.World.a(World.java:1066)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.WorldServer.a(WorldServer.java:970)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.World.b(World.java:2646)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.Chunk.addEntities(Chunk.java:820)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:1)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:188)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:347)
[10:00:39] [Spigot Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:34)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:733)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)
[10:00:39] [Spigot Watchdog Thread/ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)
[10:00:39] [Spigot Watchdog Thread/ERROR]: java.lang.Thread.run(Thread.java:745)

Carts removed on chunks

Some carts of a train removed.
Spigot: 1.8.8 R0.1
Traincarts: 1.75
BKC: 1.66 SNAPSHOT

Error:
[07:01:22] [Server thread/INFO]: [Train_Carts] Restoring trains and loading nearby chunks... [07:01:22] [Server thread/WARN]: Wrong location for EntityMinecartFurnace['entity.MinecartFurnace.name'/285, l='plotwelt', x=34.50, y=65.01, z=-15.89] in world 'plotwelt'! [07:01:22] [Server thread/WARN]: Entity is at 34.5,-15.892073049819228 (chunk 2,-1) but was stored in chunk 2,-2 [07:01:22] [Server thread/WARN]: [Train_Carts] 1 carts of group 'Spawn-Ost' are missing! (externally edited?) [07:01:22] [Server thread/INFO]: Train_Carts version 1.75-SNAPSHOT enabled! (1.578s)

players can't enter a train before they press the use key anywhere

Nobody can enter a train before he presses the "USE" key anywhere in the world. After the player press the "USE" key on something, a block like stone, he can enter and leave the carts.

Spigot: 1.8.8 R0.1
Traincarts: 1.75
Tested with :

  • BKC: 1.65
  • BKC: 1.66 SNAPSHOT

And tested without any other plugins (only traincarts and bkcommonlib)

Chest out/in

When the train drive over a chest in/out the train didn't do anything and the console:

[10:58:04 ERROR]: [Train_Carts] Failed to execute GROUP_ENTER for SignActionTransfer:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:473) ~[?:?]
at com.bergerkiller.bukkit.common.utils.BlockUtil.getBlockStates(BlockUtil.java:454) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:194) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.getBlockStates(TransferSignUtil.java:177) ~[?:?]
at com.bergerkiller.bukkit.tc.utils.TransferSignUtil.findBlocks(TransferSignUtil.java:258) ~[?:?]
at com.bergerkiller.bukkit.tc.signactions.SignActionTransfer.execute(SignActionTransfer.java:79) ~[?:?]
at com.bergerkiller.bukkit.tc.signactions.SignAction.executeAll(SignAction.java:187) ~[?:?]

Train is stopping and separated when he climb a grade

Hi,
I installed yours train cart in 1.8 with a spigot server, but when I try to run a rollercoaster ride, the train (composed of 8 carts) is separated in to parts and stopped when he try to climb the first grade. I tried to modify the track to view if it could be better with smoother lines but that made anything.
Thanks.

(Sorry for my English, I'm french)

Sign issue

I'm currently connected to my server on a MAC, which is hosted on a PC.
When I try to link carts together I get this message: "[22:54:33 ERROR]: Could not pass event EntityAddEvent to Train_Carts v1.75-SNAPSHOT".
When I try to create a sign nothing appears in chat, sign doesn't function when it receives power, and this appears in console: "[23:03:47 ERROR]: Could not pass event ChunkUnloadEvent to Train_Carts v1.75-SNAPSHOT"

Specs:
TrainCarts: 1.75 SNAPSHOT
BKcomandLib:
Version 1.65
SHA 35e633be203f2cdbbfaa6371029476463995d1a1
MD5 b8af52e5092a4d4cda827db617185ada
Spigot: 1.8.8

TrainCarts not active.

Hi, I'm having a simple issue. I've downloaded the BKCommonLib for Minecraft 1.8+ and installed that and this TrainCarts version onto my 1.8.8 server. When I run the server BKCommonLib is Green while TrainCarts is red. Does anybody know why this is?

Bukkit: 1.8.8 R0.1
Traincarts: 1.75
BKC: 1.66 SNAPSHOT

New Sign Station for TrainCarts

Hello, I wanted to propose an improvement to traincarts. The improvement is that in sign station performs a check of the tags of minecarts an example: an example would sign station
[Train]
station (tags)
10
If the poster is written tags where there is a letter or number tag train has the same word or number, the train is stopped. But if the previous condition not met the train not stop. Should be that station you do not have any tag the train don't stopped. Also you can add more conditions by adding only : to separate each tag.
Not if you can add this function yet it is easy to program.
Sorry my english is very worst.

Signs

I'm loving TrainCarts, but I have been having a major bug over the past few weeks. When I attempt to place a sign, such as a launcher, the plugin will not recognize it, as in, it will not show up in chat, or affect the coaster, even if it is powered by redstone! A fix would be fantastic.

Train Detaches When Going to a Certain part

I Am Working on a Roller coaster but Whenever The train Goes over a Certain part It deteches and Messes up and Another Issue is If its Diagional and It Goes Fast it also Detaches,

I can't push any minecart

I cannot push any minecart. All the settings are on default. It also doesn't work after I typed,
/train playercollision true

Trains stops and are cut when they climb a grade

Hi,
I installed yours train cart in 1.8 with a spigot server, but when I try to run a rollercoaster ride, the train (composed of 8 carts) is separated in to parts and stopped when he try to climb the first grade.
2
In the screenshot above you can see how the train just stops and splits into two different trains.

I tried to modify the track to view if it could be better with smoother lines but that made anything.
Thanks.

.jar version ?

Hi, how to obtain a functional build of yours plugins ?
Thx

Divecoaster with Traincarts

Hey guys,

I am working on a solution for a divecoaster with 3 carts, with the middle cart on the rails/ladders.
That was the reason of my previous issue.
Only i can't get it working.

I do regular Java development, but i came stuck on this.
Do you have any idea or time to work on a traincarts divecoaster component?

It is not like hangrail or action block a independent component, but it base is the same as the normal trains, a rail or ladder to drive on.

If needed i can help coding that plugin, but on this moment i don't know a working idea.

Sorry for my bad english, my normal language is dutch, so sometimes english is a little bit a struggle to write.

Greetings,

Harm (Harm27)

Existing trains are not loaded after server restart

Almost certainly has to do with this exception. I'll probably look at it later.

[17:12:46 INFO]: [Train_Carts] Restoring trains and loading nearby chunks...
[17:12:46 WARN]: java.lang.IllegalArgumentException: Can not set final [Ljava.lang.String; field org.bukkit.craftbukkit.v1_8_R3.block.CraftSign.lines to [Lnet.minecraft.server.v1_8_R3.IChatBaseComponent;
[17:12:46 WARN]:        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
[17:12:46 WARN]:        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
[17:12:46 WARN]:        at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.set(UnsafeQualifiedObjectFieldAccessorImpl.java:83)
[17:12:46 WARN]:        at java.lang.reflect.Field.set(Field.java:741)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.reflection.SafeField.set(SafeField.java:129)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.reflection.classes.BlockStateRef$1.apply(BlockStateRef.java:49)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.reflection.classes.BlockStateRef$TileInstantiator.newInstance(BlockStateRef.java:167)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.reflection.classes.BlockStateRef$TileInstantiator.newInstance(BlockStateRef.java:151)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.reflection.classes.BlockStateRef.toBlockState(BlockStateRef.java:120)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.conversion.type.WrapperConverter$5.convertSpecial(WrapperConverter.java:123)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.conversion.type.WrapperConverter$5.convertSpecial(WrapperConverter.java:118)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.conversion.BasicConverter.convert(BasicConverter.java:44)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.conversion.BasicConverter.convert(BasicConverter.java:50)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.conversion.util.ConvertingIterator.next(ConvertingIterator.java:29)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.RedstoneTracker.onChunkLoad(RedstoneTracker.java:34)
[17:12:46 WARN]:        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
[17:12:46 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[17:12:46 WARN]:        at java.lang.reflect.Method.invoke(Method.java:606)
[17:12:46 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[17:12:46 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[17:12:46 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[17:12:46 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:59)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:1)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:337)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:295)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:16)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:115)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.internal.ChunkProviderServerHook.getChunkAt(ChunkProviderServerHook.java:113)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:97)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getChunkAt(CraftWorld.java:125)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.storage.OfflineGroupManager.checkChunks(OfflineGroupManager.java:139)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.storage.OfflineGroupManager.refreshGroups(OfflineGroupManager.java:453)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.storage.OfflineGroupManager.refresh(OfflineGroupManager.java:108)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.storage.OfflineGroupManager.refresh(OfflineGroupManager.java:97)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.tc.TrainCarts.enable(TrainCarts.java:533)
[17:12:46 WARN]:        at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:756)
[17:12:46 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[17:12:46 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
[17:12:46 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:356)
[17:12:46 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:316)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:418)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:382)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:337)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:256)
[17:12:46 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:528)
[17:12:46 WARN]:        at java.lang.Thread.run(Thread.java:745)

Initial velocity at waiter sign

It would be really useful if you could set a velocity to launch trains at a waiter sign.
Currently you have to add a launcher sign next to the waiter. Otherwise sometimes the train won't start moving.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.