When u right click a entity it changes the entity

Started by iTheCreepster on Fri, 11/19/2021 - 20:07

Topic category: Help with MCreator software

Last seen on 02:37, 28. Jan 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When u right click a entity it changes the entity
Fri, 11/19/2021 - 20:07

I need help with making a procedure that when right clicks a entity with an item in your main hand it makes the previous entity disappear and spawns in a new one.

Last seen on 00:58, 29. Jan 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
with the blocks despawn…
Fri, 11/19/2021 - 20:41

with the blocks

despawn event target entity

and spawn at x y z entity:

Last seen on 02:37, 28. Jan 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes but like also with it i…
Fri, 11/19/2021 - 20:54

yes but like also with it i want the player to be holding a item in there main hand whilst doing it

 

Last seen on 00:58, 29. Jan 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1st you don't need to get…
Sat, 11/20/2021 - 02:18

1st you don't need to get the event target entity = frozen_robot

so remove the AND block and just leave the item in main hand thing

2nd don't use global triggers for custom mobs

on your mob triggers select player right clicks entity

Last seen on 02:37, 28. Jan 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well i tryed it but it still…
Sat, 11/20/2021 - 02:47

well i tryed it but it still didnt work.

 

Last seen on 00:58, 29. Jan 2022
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
could I see ur procedure…
Sat, 11/20/2021 - 03:49

could I see ur procedure again? also make Sure it is on the right trigger

Last seen on 04:04, 29. Jan 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When you need a specific…
Sat, 11/20/2021 - 05:14

When you need a specific event to happen if any given item is on player's main/off hand, it must have a tick scanning and/or waiting confirmation. In order for that to happen you need to change the Event trigger to: On Player Tick Update.

Last seen on 02:37, 28. Jan 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if i try adding player tick…
Sat, 11/20/2021 - 18:46

if i try adding player tick to it just gives me an error im trying to find if the player is holding a item and right clicking a entity if true it makes the entity go away and spawns in a new one.

 

Last seen on 02:37, 28. Jan 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
my bad i had source entity…
Sat, 11/20/2021 - 18:46

my bad i had source entity in there guess i cant read lol