Right Click on Entity not working?

Started by berberborscing on

Topic category: Help with MCreator software

Active 5 years ago
Joined May 2013
Points:
783

User statistics:

  • Modifications: 4
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
Right Click on Entity not working?

I originally thought this was an issue with just Villager type entities but upon further inspection this doesn't work at all. According to this code, if I right click on a Spider with Paper in my hand, it should remove it and give me a certain item. Is this perhaps a problem with Current entity instanceof EntitySpider targeting the player instead of the target entity?

Active 5 years ago
Joined May 2013
Points:
783

User statistics:

  • Modifications: 4
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
Issue resolved. Upon…
Fri, 11/01/2019 - 22:16

Issue resolved. Upon inspecting the code, it turns out the code was testing if the SPIDER was holding a paper and trying to give the spider the item.

Active 4 years ago
Joined Sep 2019
Points:
658

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
how did you fix that
Mon, 03/02/2020 - 19:22

how did you fix that

Active 2 weeks ago
Joined Jan 2016
Points:
956

User statistics:

  • Modifications: 0
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 177
change it to source entity,…
Wed, 08/12/2020 - 01:34

change it to source entity, found in minecraft components