#Force closing the chat window after entering a custom command to allow a form to open.
1 messages · Page 1 of 1 (latest)
summon a snowball at the players location
Run a damage command on the player for a snowball projectile, or damage with a value of zero
You can stop the damage sound by using stopsound ${player} sound.name
Thank you. Does the snowball need velocity to do the trick?
I just tested both ways. The snowball works; no velocity required.
The damage command doesn't seem to close the window though. Maybe they changed that.
In any case, I've got something that works, so I appreciate the help. 🙂
^^
damage command is useless
for this
example:
player.runCommandAsync('execute as @a at @s run summon snowball ~ ~ ~')
it doesnt close the chat for me
You can do without the "as @a" and "~~~" if you're running from the player
Check that you're not in creative
Hehe. I made that mistake the other day not thinking about it
im in survival and it dont work
Is the code short enough to post?
i have nitro so i am able to
This works for 1.19.80
i want it so after the player types !secretmenu it closes the chat and opens the menu
Gtg for a bit, but I'll give a look a little later unless someone beats me to it.
is pvp gamerule on?