When u right click a entity it changes the entity

Started by iTheCreepster on

Topic category: Help with MCreator software

Active 1 year ago
Joined Oct 2021
Points:
567

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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.

Active 1 year ago
Joined Oct 2020
Points:
1624

User statistics:

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

with the blocks

despawn event target entity

and spawn at x y z entity:

Active 1 year ago
Joined Oct 2021
Points:
567

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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

 

Active 1 year ago
Joined Oct 2020
Points:
1624

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2021
Points:
567

User statistics:

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

well i tryed it but it still didnt work.

 

Active 1 year ago
Joined Oct 2020
Points:
1624

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 2 weeks ago
Joined May 2021
Points:
839

User statistics:

  • Modifications: 4
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 352
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.

Active 1 year ago
Joined Oct 2021
Points:
567

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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.

 

Active 1 year ago
Joined Oct 2021
Points:
567

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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

Active 9 months ago
Joined Jan 2023
Points:
442

User statistics:

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

mine does not work