[FIXED] Weird problem with bug catching!

Started by SuperBully on

Topic category: Help with MCreator software

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[FIXED] Weird problem with bug catching!
Thu, 11/19/2020 - 10:09 (edited)

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.

https://imgur.com/a/IthsFIV

https://youtu.be/n2wZNjjL-1Q

Edited by SuperBully on Thu, 11/19/2020 - 10:09
You are checking on player…
Wed, 07/15/2020 - 15:34

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.

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Btw it's a bug that entity's…
Wed, 07/15/2020 - 15:35

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.

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It correctly detects the…
Wed, 07/15/2020 - 15:44

It correctly detects the entity and the player, it just gives me more items than I need.

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And thanks I thought it was…
Wed, 07/15/2020 - 15:45

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!

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Themobgolber69 I attempted…
Wed, 07/15/2020 - 16:11

@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

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try to NOT Hold down right…
Thu, 07/16/2020 - 05:47

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 :)

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but for some reason i get 4…
Thu, 07/16/2020 - 05:50

but for some reason i get 4 every time even if i only have one glass bottle.

Last seen on 06:32, 14. Sep 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try to NOT Hold down right…
Thu, 07/16/2020 - 14:06

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 :)

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.

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nice work around until the…
Thu, 07/16/2020 - 14:09

Nice work around until the fix in 2020.4. :)