Request: allow track layers to run down plants (maybe with toggle inside its gui)
MalkContent opened this issue ยท 22 comments
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.
Dreaming. If you want this to be fixed, then you should ask Mojang to allow gravels to replace the flowers. ๐
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 :)
I thought @Yopu fixed this already.
The block hardness idea would be a nice solution.
It might lead to some weird mod interactions though.
@MalkContent could you put together a quick list of the blocks that were causing you issues and the mod they come from?
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.
<3 :) am i gonna be able to let my track layers smush through my pretty redstone?
@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.
However, IPlantable and IShearable would need to be handled separately as most of those return false in that method (Things like flowers).
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?
Fixed 0e2de08
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.
I would dislike the blocks simply being replaced. Breaking them and dropping their .. drops would seem fairer.