Started by
TrueMath2809
on
Topic category: Help with Minecraft modding (Java Edition)
Hello ! ^^
I search for a way to give an item to a player but the name of the player have to be found by a text input and I can't use simple commands. Thanks ! ^^
Edited by TrueMath2809 on Sun, 02/13/2022 - 16:53
{execute command /{create text with {"give "} {player name} {" "} {item}} in the name of event/target entity}
{} means a block
"" is text
player name needs to be replaced with the player's name in text
item can just be the item ID (mod_name:item)
you will have to go into the settings of the create text block.
Ok ! Thank you ! :D