mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-27 15:23:22 +00:00
- Aura Pylon: Models + stuff init
This commit is contained in:
1 parent
be6a56b8d8
commit
6b0d70b10e
15 files changed
+738
-16
No files matched your search
@@ -5,6 +5,7 @@ import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.blocks.tiles.TileInfusionClaw;
|
||||
import makeo.gadomancy.common.registration.RegisteredBlocks;
|
||||
import makeo.gadomancy.common.registration.RegisteredItems;
|
||||
import makeo.gadomancy.common.utils.ItemUtils;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
@@ -94,10 +95,7 @@ public class BlockInfusionClaw extends BlockTransparent {
|
||||
float f2 = RANDOM.nextFloat() * 0.8F + 0.1F;
|
||||
|
||||
EntityItem entityItem = new EntityItem(world, x + f, y + f1, z + f2, wandStack.copy());
|
||||
float f3 = 0.05F;
|
||||
entityItem.motionX = RANDOM.nextGaussian() * f3;
|
||||
entityItem.motionY = RANDOM.nextGaussian() * f3 + 0.2F;
|
||||
entityItem.motionZ = RANDOM.nextGaussian() * f3;
|
||||
ItemUtils.applyRandomDropOffset(entityItem, world.rand);
|
||||
|
||||
world.spawnEntityInWorld(entityItem);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user