Started by
Max094_Reikeb
on
Topic category: Help with MCreator software
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?
No, not yet....
I can fix that. You will have to look a bit at the coding but it isn't hard. Find the javascript of the item, scroll down and find a part like this:
Delete that and it will not despawn the arrow when it hits the ground, this will not allow you to pick it back up but it will make it stay there. I will try and make it so that you can pick it back up but you will have to give me a while
Thanks,
Shadow
oh thx
Okay, thx very much, anyway, I'll release first version of the mod after MCreator 2020.2 is done, so of course I'll give you time to help me :)
I am not certain that that will fully work, but I am testing everything and will do my best
Thanks,
Shadow
Oh, and also, I didn't find your code but I found this so I guess it's the same...
I'll test if removing this code works...
Waw man, it works, and there's a weird thing : I can get the axe back, but if I do, I get an arrow back, not the axe itself sooo... Is there a way to fix it?
https://vimeo.com/395674728
go there to see the record of what I did
Ok, from the code I can tell you are using 1.12.2 right?
Yes I am. Now, the only thing I have left to do is to change the arrow I get back into the throwing axe. Do you know if I can setup some kind of durability so when we throw the axe, it looses a bit of it? (and eventually breaks at the end?)
Oh and I forgot to say, we need to get the throwing axe back WITH enchants if it has some and the modified name if it has one too!
hmm, unfortunately I am not sure how to do that, maybe by getting the NBT tags of the item first? not entirely sure, I also don't have much time before I will go to bed (it's late here)
Yeah I get it, as I said, take your time, I'll not release the mod until next MCreator update because I need vines stuff
maybe despawn the bullet on a block and summon a dropped item of the arrow?