Make Movement & Updraft arrays stronger by adding more of their ingredients! (#1520)
* Make Movement & Updraft arrays stronger by adding more of their ingredients! Reduced base motion for Movement & Updraft arrays * Reverted Bound Tool change * Readability & using tailored methods
This commit is contained in:
parent
3751a51935
commit
5b4e624d44
4 changed files with 51 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
package WayofTime.bloodmagic.alchemyArray;
|
||||
|
||||
import WayofTime.bloodmagic.iface.IAlchemyArray;
|
||||
import WayofTime.bloodmagic.tile.TileAlchemyArray;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
@ -20,9 +21,14 @@ public class AlchemyArrayEffectUpdraft extends AlchemyArrayEffect {
|
|||
|
||||
@Override
|
||||
public void onEntityCollidedWithBlock(IAlchemyArray array, World world, BlockPos pos, IBlockState state, Entity entity) {
|
||||
double motionY = 1.5;
|
||||
double motionY = 1;
|
||||
double motionYGlowstoneMod = 0.1;
|
||||
double motionYFeatherMod = 0.05;
|
||||
|
||||
entity.fallDistance = 0;
|
||||
TileAlchemyArray tileArray = (TileAlchemyArray) array;
|
||||
motionY += motionYGlowstoneMod * (tileArray.getStackInSlot(0).getCount() - 1); // Glowstone Dust
|
||||
motionY += motionYFeatherMod * (tileArray.getStackInSlot(1).getCount() - 1); // Feathers
|
||||
|
||||
entity.motionY = motionY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue