5 Arrowed Multishot Crossbow (Need Help)

Started by Nikotricks on

Topic category: Help with MCreator software

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
5 Arrowed Multishot Crossbow (Need Help)

My intention is to make a crossbow that shoots 5 arrows same concept as the mutlishot enchantment just with 5 arrows, I managed to get it to shoot 4 arrows, but the 3 extra arrows are biased to the right side of the center arrow, when I attempt to make the yaw a negative (to put some arrows on the left) When I start shooting the arrows rotate around the player, same thing happened when I try to add a fifth arrow https://ibb.co/3hvg6Gp 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You must be off the boof 💨…
Sun, 06/07/2020 - 00:33

You must be off the boof 💨 because it works for me...

 

It works for me so I suspect in error, post code preferably in a pastebin/git.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you link a picture of…
Sun, 06/07/2020 - 00:52

Could you link a picture of your procedure setup?

 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sure if (!worldIn.isRemote)…
Sun, 06/07/2020 - 00:58

Sure

if (!worldIn.isRemote) {
            KunaiEntity kunaientity = new KunaiEntity(worldIn, playerIn);
            kunaientity.setItem(itemstack);
            kunaientity.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw + 20, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity);
            KunaiEntity kunaientity2 = new KunaiEntity(worldIn, playerIn);
            kunaientity2.setItem(itemstack);
            kunaientity2.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw + 10, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity2);
            KunaiEntity kunaientity3 = new KunaiEntity(worldIn, playerIn);
            kunaientity3.setItem(itemstack);
            kunaientity3.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity3);
            KunaiEntity kunaientity4 = new KunaiEntity(worldIn, playerIn);
            kunaientity4.setItem(itemstack);
            kunaientity4.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw - 10, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity4);
            KunaiEntity kunaientity5 = new KunaiEntity(worldIn, playerIn);
            kunaientity5.setItem(itemstack);
            kunaientity5.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw - 20, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity5);
        }

 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem it is probably to…
Sun, 06/07/2020 - 01:01

No problem it is probably to create a for loop.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I implement this into…
Sun, 06/07/2020 - 02:34

How do I implement this into mccreator??

 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lock it, and put it in.
Sun, 06/07/2020 - 03:03

Lock it, and put it in.