[23:48:35] [modloading-worker-0/DEBUG] [ne.mi.fm.ja.AutomaticEventSubscriber/LOADING]: Attempting to inject @EventBusSubscriber classes into the eventbus for fancydecorativeblocks
[23:48:35] [modloading-worker-0/DEBUG] [ne.mi.fm.ja.AutomaticEventSubscriber/LOADING]: Auto-subscribing com.zaksen.fancydecorativeblocks.ClientSetup to FORGE
I am struggling a long time to figure out how to create a formula for my mod.
I created a brake rail which should brake down a minecart when it's on it.
I found this formula in the internet and applied it:
The minecart has an entry speed of 12m/s, the target velocity is 8m/s and the break run is 1m because it's one block.
I slow down the cart by multiplying the result of this formula with the current motion of the cart:
I figured out another thing: The wiki says that that 8m/s are 1.2 in motion.
So I changed the formula depending on the motion (I don't know if this is right but it made sense to me):
As mentioned before 8m/s are 1.2.
So, 1m/s = 0.15 -> (8/1.2).
And then I multiplied it with the entry speed because it has to be changed to the "motion internal unit"?!
I am really frustrated right know, because I tried a lot of different changes within the formula. The problem is maybe the multiplication with the motion? I don't know.
Maybe someone can help me
Thanks in advance!