#shopkeeper help

1 messages · Page 1 of 1 (latest)

stable pagoda
#

im trying to make when you right click on a shopkeeper that is a villager it sends a test

on right click on villager:
    if event-entity is a shopkeeper:
        send "test1" to player
        if name of entity = "Scared Villager":
            send "test" to player
bronze fable
#

neat 👍

stable pagoda
#

it wont send test to me when i right click on the shopkeeper

gentle parcel
#

Debug each step

stable pagoda
#

i just dont get it

gentle parcel
#

Send a message before each if condition to know which condition isn't passing?

stable pagoda
#

its not even sending a message

gentle parcel
#

Not even at the top level?

stable pagoda
#

no

gentle parcel
#

Can you send your code?

gentle parcel
#

If you're using the same exact code

if event-entity is a shopkeeper:

would be the condition that's not passing, look into it

shut rune
#

You said ‘debug it’ when they literally did…

stable pagoda
#

still im confused

shut rune
#

Well

#

It’s not gonna be a shopkeeper first of all

gentle parcel
shut rune
#

Also, it’s the clicked entity

#

Not the event entity

stable pagoda
#

Soo What should i Change?

stable pagoda
#

@shut rune

shut rune
stable pagoda
#

so on clicked?

#

?

#

@shut rune

shut rune
#

Please stop pinging me so much

#

As I told you, it's not event-entity as that is the player. it is the clicked entity.