mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Rework dagger into a projectileBase entity!
This commit is contained in:
1 parent
46059d6913
commit
dbc446636f
11 files changed
+83
-74
No files matched your search
@@ -21,9 +21,10 @@ public class Dagger extends Weapon
|
||||
ItemStack stack = itemstack.copy();
|
||||
if (!world.isRemote)
|
||||
{
|
||||
DaggerEntity dagger = new DaggerEntity(stack, world, player);
|
||||
DaggerEntity dagger = new DaggerEntity(world, player, 1.5f, 0, stack);
|
||||
//dagger.motionY++;
|
||||
if (player.capabilities.isCreativeMode)
|
||||
dagger.doNotRetrieve = true;
|
||||
dagger.canBePickedUp = 2;
|
||||
world.spawnEntityInWorld(dagger);
|
||||
}
|
||||
itemstack.stackSize--;
|
||||
@@ -36,7 +37,8 @@ public class Dagger extends Weapon
|
||||
ItemStack stack = itemstack.copy();
|
||||
if (!world.isRemote)
|
||||
{
|
||||
DaggerEntity dagger = new DaggerEntity(stack, world, player);
|
||||
DaggerEntity dagger = new DaggerEntity(world, player, 1.5f, 0, stack);
|
||||
//dagger.motionY++;
|
||||
world.spawnEntityInWorld(dagger);
|
||||
}
|
||||
itemstack.stackSize--;
|
||||
|
||||
Reference in new issue
Block a user