[Abandoned] MinecartMania Reborn
Minecart Mania 2.0 is a total minecart overhaul for fun and profit.
With MCM you can:
- Jump and ramp minecarts through the air
- Travel at ludicrous speeds (no derailing!)
- Set destinations for each cart and route them automatically through intersections.
- Route minecarts based on their type, contents or direction.
- Use block or signs to change speed, physics, and other properties on the fly.
- Use minecarts to farm wheat, lumber and other crops, harvest them and place them in chests
- Use advanced sensors to trigger redstone circuits based on the type, contents and direction of minecarts.
Note: 7/23/2013 by jrbudda
MinecarftMania has been almost totally re-written Please read Whats new in v2 for the current list of changes from the original.
Documentation
- Minecart Physics
- Control Blocks and Signs
- Intersections and Stations
- Chests and Items
- Farming (Automations)
- Sensors
- Commands
- Configuration
- Permissions
If you find bugs or have problems, please open a Ticket on the Tickets page.
You can also usually find the author in IRC on esper.net in #minecartmania
@millenium1980
I will implement an [item rangeY:] command for collecting items above and below the cart
Ok, tested the beta2
Horizontal range works fine now but vertical range is fixed to 1. It would be nice if you give us the option again to set both ranges. Perhaps per sign too? :-)
Item deposition @amount works gerat and i've no problems with signs at corners.
@Pickety
I actually looked into the problem and found out that MinecartMania isn't compatible with MCPC due to the fact of the Minecraft classes (especially the parts of the Minecart classes which MinecartMania inherits) being obfuscated, this also applies to the properties which are used in the inherited classes, for example: MMMinecart inherits from EntityMinecraft which is part of the Minecraft server/API code. As EntityMinecraft is obfuscated in the process of the MCPC build together with its properties, the plugin needs to point to the new obfuscated name, which is "py" in this case. You can do that with the srgtool as told in the readme file for the remapping shipped with the MCPC source code, but the properties (Example from a crash on my server: EntityMinecraft.type, which is obfuscated to py.a) won't be redirected to the obfuscated names due to the inheritance, which is why it would fail anyways. So, yes, it's not compatible with MCPC and that's not because of jrbudda, but because of the obfuscation. We found quite the complication there.
@vanlog
Hmm interesting, the slight loss in speed going up slopes is actually related to the player pushing. Something is applying speed to the passenger even without touching the keyboard, and this is slowing the cart. Unfortunately I also found the MaxPushSpeedPercent setting is not being applied. Ideally this slowing effect would go away once the cart exceeds the max push speed, which you could set to 0.
The good news is this should be fixed in the next release (beta3). The bad news is that might a few days away.
@vanlog
There's a bug in Beta1 causing the slow-down during turns. Beta2 should be approved in the next few hours and takes care of that. Setting slope-speed to 0 should negate that speed loss though... I'll double-check.
@jrbudda
Thanks, intersections work, that was a mistake on my side. I cannot however simulate autocart, I set slope and frictions to 0 and it still slows down on turns and upgrades, eventually stopping.
@vanlog
No more sub-plugins, check out the whats new page.
From the xml config it looks like you want:
That intersection should work, I just tried it, the brick block needs to be directly under the intersection, is it?
The default st- matching is 'pattern match' if you want full-out regex change the setting in the config.yml from 1 to 2.
Sorry if this was answered before, I just updated MCM to beta2
Do I need individual sub-plugins from previous version?
How do I combine launch and platform in one block on redstone? I had this for old version:
I tried this but it seems to have no effect:
Do I need to perform some voodoo to make intersections work? I have D:L next to a brick and my carts go straight, not left. D:N and D:W don't work either.
If intersections do work, how do I configure MCM to do regexp matching for intersection signs?
@millenium1980
You could try getting Citizens and putting a Player NPC near the farm to keep it growing :) Name him Farmer Joe.
@jrbudda
Ok after 3 hours testing:
The collections and farming works fine if i was far away.
It seems really to be a problem with the craftbukkit build.
The plugins for growing i've found doesn't really work. The up to date plugins only emulate the growing while chunks are unloaded. They store it to a database an let the trees grow when the chunk is reloaded :-(
@jrbudda
Thanks :) I'll pass this on to the MCPC people and see if there's anything they can do :)
Pickety
@jrbudda Ok, it's possible that the bug is only with automated farming. The furnaces are included in the wood farming to get charcoal. So if there is no wood the furnaces have nothing to to.
In MC 1.5 all was fine. I dont have updatet or changed any plugins since updating to mcm2.0
The only thing that's changed was the bukkit build.
I will start a testserver without other Plugins and test to be more specific
Beta 2 is awaiting approval. This adds back the item collection range and fixes signs going off multiple times, along with numerous other things.
Also I've made updates to the configuration, permissions, sign actions, item/chest, and intersections pages here, so if you haven't looked at them recently, there may be new information. I keep finding new things this plugin does that I didn't know about.
@millenium1980
Looking at some chunk plugins, it seems that maybe crops do not grow when no players are near by, even if the chunk is loaded. Changing how crops works is outside the scope of MCM but there are other plugins that might be able to keep crops growing.
I was not able to duplicate the problem with furnaces. I have a minecart going back and forth putting logs in a furnace and collecting the charcoal. I teleported away for several minutes, then went back and there was more charcoal and less wood, so that seems to be working.
@WardenWolf1982
Yes this is a bug I have fixed for the next release.
@7eggert
Yes the signs near corners could be an issue, which direction gets checked would likely be a function of where the minecart 'taps' the curve block. If it presents an issue, I can just add a condition to check a full square on curve blocks.
@millenium1980
That's odd, a loaded chunk should behave normally, I will do some testing.
@Pickety
Looks like from the code they have done their own de-obfuscation of the Minecraft code, hard to tell what functionality they may have added, there's some comments about Forge and remote control, but more importantly all the method and field names are different, hence the error you get.
@jrbudda
Thanks for looking anyway. I'm not sure why MCPC would be changing the way minecart's work though because as far as I know (I'm no coder) it's just a version of craftbukkit that allows vanilla Minecraft mods to work without being converted.
Again, thanks for your hard work and for looking at this :)
Pickety
Good morning!
Found another bug with automated farming:
In cfg the "keep chunks loaded" is enabled. The minecarts stay on track if i move away, but they don't collect the items to chests. Replanting works but if i get back, the minecart is free from farmed items but i can't find them anywhere. Same problem with Furnaces. If i stand near by it works fine.
I'm not sure why, but Minecarts now lose practically all their momentum when going around a curve. It's really bad, and a booster block on the curve itself doesn't work. Also, they seem to lose their energy a lot faster going uphill. I tried adjusting the slope effects, but it didn't seem to work.
@millenium1980 Ooh. Well /reload is generally not recommended as many plugins do not support it correctly, I personally never use it. In this case however, I think its likely minecraft itself that is losing the speed on the minecarts, not the plugin.
Now that the player-ridden minecarts persist across player logouts correctly, I can fairly easily make so all minecarts save and reload across a server stop/start. I'll look into it, although I don't know if that will apply to /reload as well.
@Pickety
From looking at their source code, MCPC has a custom minecart entity that is slightly different than craftbukkit's. For compatibility I would have to make a whole new MCM entity based on MCPC's, and even then, some of the rail functionality in mcpc would likely be lost. Basically they both try to replace the minecart, so I don't think they would ever play nice together.