Procedure targets player rather then entity

Started by Bob the legend_ on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure targets player rather then entity
Sat, 08/26/2023 - 01:56 (edited)

I am trying to make an item that when right clicked on entity position detects if that entity is a creeper and if it is it kills it. When I rick click a creeper it names the player the ther targer entity. how do I change this? (the player holds this item and right clicks an entity for the procedure to run.)

Edited by Bob the legend_ on Sat, 08/26/2023 - 01:56
Last seen on 15:05, 6. Oct 2023
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As you said it doesn't work…
Sat, 08/26/2023 - 08:22

As you said it doesn't work properly, can you show us what you've gotten yet?

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if event/target entity…
Sat, 08/26/2023 - 20:48

if event/target entity tagged in entity tags as minecraft:creeper

do: deal 1000 damage to event/target entity type: generic

 

 

 

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When i use the item it…
Sat, 08/26/2023 - 20:49

When i use the item it damages me rather then the creeper I used it on.

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the global trigger on…
Sat, 08/26/2023 - 22:07

use the global trigger on rightclick one entity. Then this should work:

if item in main hand of source entity = itemname

do: if event/target entity tagged in entity tags as minecraft:creeper

      do: deal 1000 damage to event/target entity type: generic

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
rightclick on entity*
Sun, 08/27/2023 - 01:02

rightclick on entity*

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you so much!
Sun, 08/27/2023 - 20:10

thank you so much!

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
were do i find the "if main…
Sun, 08/27/2023 - 20:15

were do i find the "if main hand of source entity = itemname" and "if event/target entity tagged in entity tags as minecraft:creeper

      do: deal 1000 damage to event/target entity type: generic"

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the entity data section…
Sun, 08/27/2023 - 20:21

in the entity data section theres a block "item in main hand of (event/target entity)". Then replace the event/target entity with source entity which is located in minecraft components.

 

For event/target tagged in entity tag:

not really needed. Can be replaced with the logic procedure "is (event/target entity) sub type of (entity name)"

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
source entity is the entity…
Sun, 08/27/2023 - 20:22

source entity is the entity that did the action. In this case its the player that rightclicked on the creeper

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when I try to detect if I…
Sun, 08/27/2023 - 21:29

when I try to detect if I right clicked a creeper I used the " is event/target entity tagged in entity tags as minecraft:creeper " When I right click a creeper it doesn't detect the creeper and says I did not right click a creeper, what is the problem? 


 

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I use a flow control block …
Sun, 08/27/2023 - 21:30

I use a flow control block 

if

do

else 

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not all mobs are in entity…
Sun, 08/27/2023 - 21:50

not all mobs are in entity tags. In the logic procedure section theres the "is event/target entity sub type of (entity name)" which should work

Last seen on 03:06, 4. Jan 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will try, thank you
Sun, 08/27/2023 - 21:56

I will try, thank you

Last seen on 23:16, 14. May 2024
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh it got solved good
Sun, 08/27/2023 - 22:51

Oh it got solved good