When u right click a entity it changes the entity

Started by iTheCreepster on

Topic category: Help with MCreator software

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When u right click a entity it changes the entity

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.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mine does not work
Wed, 06/28/2023 - 17:14

mine does not work