Give an item to a player (NAME) defined into a string variable. (finish)

Started by TrueMath2809 on

Topic category: Help with modding (Java Edition)

Last seen on 14:33, 1. Jan 2024
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Give an item to a player (NAME) defined into a string variable. (finish)
Sun, 02/13/2022 - 16:53 (edited)

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
Last seen on 22:12, 7. Mar 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
{execute command /{create…
Sat, 02/12/2022 - 16:45

{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.

 

Last seen on 14:33, 1. Jan 2024
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok ! Thank you ! :D
Sun, 02/13/2022 - 12:30

Ok ! Thank you ! :D