mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Implemented dispenser behavior for firing arrows.
This commit is contained in:
1 parent
abdd27c235
commit
d83785ada6
3 files changed
+56
No files matched your search
@@ -52,6 +52,15 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
this.baseDamage = toolTag.getInteger("Attack");
|
||||
}
|
||||
|
||||
public ArrowEntity(World world, double x, double y, double z, ItemStack stack)
|
||||
{
|
||||
super(world, x, y, z);
|
||||
this.returnStack = stack;
|
||||
NBTTagCompound toolTag = stack.getTagCompound().getCompoundTag("InfiTool");
|
||||
this.mass = toolTag.getFloat("Mass");
|
||||
this.baseDamage = toolTag.getInteger("Attack");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user