Throwable Axe (ranged items)

Started by Max094_Reikeb on

Topic category: Help with MCreator software

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Throwable Axe (ranged items)

Hi!
I need some help with a throwable axe I made...
I created a new ranged item (as an axe) and the amo is itsef but the problem is that it's not acting like an arrow : the axe doesn't stay on the ground once we throw it, until we get it back (like an arrow I said) but it diseappears! Is there a way to fix it?

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So maybe you could do it…
Thu, 03/05/2020 - 10:35

So maybe you could do it that you despawn the arrow because it's just a retextured version of an arrow, and instead summon the throwing axe item? if yes I can help with that

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
lol  
Thu, 03/05/2020 - 10:36

lol

 

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No crispy_chips, I want the…
Thu, 03/05/2020 - 10:38

No crispy_chips, I want the axe to be on the block until we get it back. The only thing we need to change is when we get the axe back, no to get an arrow (like my video I showed u earlier) but the arrow with its enchantments and renamed if it is.

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
alrighty, to make it spawn…
Thu, 03/05/2020 - 10:39

alrighty, to make it spawn the throwing axe (without the added on stuff)

Use this (this might not work for 1.12.2 because the code is different over the versions)

	ItemEntity entityToSpawn = new ItemEntity(world, x, y, z, new ItemStack(Blocks.DIAMOND_ORE, (int) (1)));
							entityToSpawn.setPickupDelay(10);
							world.addEntity(entityToSpawn);

Also import if they aren't there:
import net.minecraft.entity.item.ItemEntity;
import net.minecraft.item.Item;
import net.minecraft.world.World;

Instead of diamond ore put your throwing axe and change the Blocks. to Items.

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately that is all I…
Thu, 03/05/2020 - 10:41

Unfortunately that is all I can think of, if this is not satisfactory (which is fine) I will work on it some more on a later date because it is around 9:40pm.

 

Thanks!

Shadow

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But the axe is spawned! Did…
Thu, 03/05/2020 - 10:41

But the axe is spawned! Did u watch the video? The only problem is when we get it back on our inventory!

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And also, this doesn't work …
Thu, 03/05/2020 - 10:47

And also, this doesn't work

import net.minecraft.entity.item.ItemEntity;

 

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just to be clear :…
Thu, 03/05/2020 - 11:35

Just to be clear : everything is fine : I throw the axe, it goes in a block and good! The only problem is when I want to get the axe back, it doesn't give me the axe, it gives me an arrow! (again : watch the video I gave you the link) so I don't want the player to get an arrow back but the axe back with all the NBT tags it had!

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok. I will think of…
Thu, 03/05/2020 - 20:10

Ok. I will think of something, about when entity collides with arrow on ground, give entity throwing axe, or something like that, the issue is getting all of those events under one single event without creating any errors

Last seen on 12:00, 27. Apr 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, there is no arrow on the…
Thu, 03/05/2020 - 20:31

No, there is no arrow on the ground, watch the video : the projectile is an axe, it changes into an arrow only when we get it back in our inventory

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes. The code of it is…
Fri, 03/06/2020 - 06:37

Yes. The code of it is summoning an arrow, which is why when you pick it up it gives you an arrow, the axe is a retextured arrow

Last seen on 01:34, 21. May 2020
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have watched the video. I…
Fri, 03/06/2020 - 06:40

I have watched the video. I am just trying to find a work around, sorry if it feels like I am being frustrating