Hello all,
I am trying to let the player execute a command after he interacted with an entity before something will happen to that entity. How can I do this?
Here is an simple example
This example wont work, but how can I make it work?
Thanks in advance!
I am trying to let the player execute a command after he interacted with an entity before something will happen to that entity. How can I do this?
Here is an simple example
code_language.skript:
on right click on pig:
set {askquestion.%player%} to 1
send "want to change the name?" to player
send "/yes or /no" to player
command /yes:
trigger:
if {askquestion.%player%} is 1:
set entity's display name to "example"
set {askquestion.%player%} to 0
send "name changed!" to player
command /no:
trigger:
if {askquestion.%player%} is 1:
set {askquestion.%player%} to 0
send "name unchanged" to player
This example wont work, but how can I make it work?
Thanks in advance!