Railcraft

Railcraft

34M Downloads

Request: allow track layers to run down plants (maybe with toggle inside its gui)

MalkContent opened this issue ยท 22 comments

commented

As title. Track Layers stopping because of flowers or saplings or pam's harvestcraft gardens in the way is rather annoying.
Please make it possible to allow track layers to break the blocks and continue.
Attached request: make the broken plant's drop their drops, too. I noticed that track layers can replace grass but it would never drop seeds.

commented

Dreaming. If you want this to be fixed, then you should ask Mojang to allow gravels to replace the flowers. ๐Ÿ˜…

commented

err >_> i politely but firmly disagree.
In any case, I asked in the forge channel how to detect plants. While there was ideas to detect plants specifically, the best idea that came out of this, that I think, is to go by block hardness. Super low block hardness like the one of flowers and bushes and saplings feel natural to be run over by the track layer. But this also means that it can run over torches, and even better, redstone and possibly other frail player built things :D
It would feel natural for the whimsy stuff to be flattened by the track layer and I can imagine one or two careless players having some "oh no..." moments with it :)

commented

Then it's also an improvement for tunnel bores. Very good. ๐Ÿ˜ƒ

commented

I thought @Yopu fixed this already.

commented

The block hardness idea would be a nice solution.
It might lead to some weird mod interactions though.

commented

@MalkContent could you put together a quick list of the blocks that were causing you issues and the mod they come from?

commented

Minecraft: Flowers, Saplings
Pam's Harvest Craft: Gardens

Admittedly didn't really test all that much. Was playing around in creative super flat and harvest craft's gardens were still everywhere and cramped the track layers style. Only tested poppies and an oak sapling to be sure it isn't a problem with harvest craft.

commented

Yeah I was aware it wouldn't replace saplings.

commented

I can try and grow the list, if you want to.

commented

Nah, I have a pretty good idea as to what it needs.

commented

<3 :) am i gonna be able to let my track layers smush through my pretty redstone?

commented

@Yopu Block.isReplaceable() (not sure how exactly the method is called)
That is true for all things that can be replaced by a block when rightclicking it with a block, so things like tall grass.

commented

Aha, I was hoping there would be a simpler method.

commented

However, IPlantable and IShearable would need to be handled separately as most of those return false in that method (Things like flowers).

commented

Right, however it would cover some of the other cases.

commented

At the moment it's checking for IPlantable and IShearable. Redstone is a possibility. The hardness idea seems too broad for my taste. @CovertJaguar thoughts?

commented

Well then it's likely good that I'm already fixing that. :P

commented

Fixed 0e2de08

commented

It should fix most of the cases you listed. It's worth noting that it won't replace blocks that are planted in tilled soil since that isn't a valid block for rails to be placed on.

commented

I would dislike the blocks simply being replaced. Breaking them and dropping their .. drops would seem fairer.

commented

awesome :)