Started by
SuperBully
on
Topic category: Help with MCreator software
I am having a super weird problem and I don't know what I'm doing wrong, maybe you guys can help.
I am trying to make it so you can catch bugs I've made in a jar, whenever I right click on it, it is supposed to remove one jar from my inventory and add one "bugname" in jar.
But instead, it gives me four of them, and the last two disappear if I click on them. I have no idea what is causing this problem.
Edited by SuperBully on Thu, 11/19/2020 - 10:09
You are checking on player right-click if the entity is type of EntityBee.
This will not work in any case, the event entity, in this case, is player right-clicking.
Btw it's a bug that entity's don't fully despawn with that block.
What I do is I set location to x -2 z
Then do despawn block.
So maybe you are clicking on an entity more than once. And it's getting an entity that is not really there.
Btw I can't really read that procedure.
It correctly detects the entity and the player, it just gives me more items than I need.
And thanks I thought it was clicking it more than once I just didn't know how to fix that I'll give it a try!
@Themobgolber69 I attempted the method you suggested and it still hasn't worked, I recorded a video that shows what exactly is happening with the problem:
https://youtu.be/n2wZNjjL-1Q
Try to NOT Hold down right click also what version of mcreator are you running?
because there was a issue that when you right click an entity it runs it twice
so what is happening would make sense because the 3rd and 4th are trying to run the procedure but it didn't fully run.
the only thing i can think of is happening is that you are right clicking twice.
okay so yea i tried it myself and i'm very sure it's a bug because in the new update there is a bug fix.
[Bugfix] Right-click and left-click global triggers triggered twice.
the same thing happened with me btw it gave me items that weren't really there.
so until then i would make it so the glass bottle can't stack this will fix yur problem for now.
sorry i wish i could help you. best wishes :)
but for some reason i get 4 every time even if i only have one glass bottle.
I am running 2020.3 on minecraft 1.15.2
I figured out if I run a timer that lasts a second on player tick update, make it so my bug catching procedure only works if that timer is off, then start the timer when the procedure starts, it works!
It's not entirely optimal and I would prefer the bug to be fixed but this is the best workaround I could find.
Nice work around until the fix in 2020.4. :)