Need help with "player public chat" commands

The_BoNeZ

New member
JFF Supporter
Aug 20, 2017
5
1
0
56
I'm trying to add a chat hook for like !food and want it to spawn a chicken at players feet. In event list i have tried to add the below listed but it doesn't seam to work in game.

type: player public chat
Conditionals: STARTSWITH:!food
Script: spawnentity {{player_name}} 61

I was able to get the chicken to spawn but can't seem to add any commands after it on script line
 
Last edited:
So what you have above, does work? but you want to add more commands after it?

So in Script something like:

spawnentity {{player_name}} 61
sayplayer {{player_name}} "Winner, Winner, chicken dinner!"

See if that works for you, it should.
 
So what you have above, does work? but you want to add more commands after it?

So in Script something like:

spawnentity {{player_name}} 61
sayplayer {{player_name}} "Winner, Winner, chicken dinner!"

See if that works for you, it should.


That was it, I was putting the command on same line, trying to separate with pipes and other things. I'm keeping the winner winner! Is there a way to add a time restriction to it and announce that you have not met it?
 
Last edited:
Glad that worked for ya. =)

Yes, you can add a cooldown in. You'd change the "Conditionals" section to look something like:

STARTSWITH:!food||COOLDOWN:30M

For the 30M, that is of course 30 minutes, here is an example of the parameters you can use: 10S 10M 10H 10D