How do i send a variable's value to the player?

Started by P5yui on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i send a variable's value to the player?

Like he title said, i need help telling the player his in-game level

Thank you in advance

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh i forgot to specify that…
Wed, 01/18/2023 - 00:48

Oh i forgot to specify that i would like to send it in the chat (in private)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I left a link to a related…
Thu, 08/14/2025 - 23:51

I left a link to a related chat with the answer to your question below. I'll also try to explain it in case that doesn't fully help. By setting the global trigger you run your procedure from to "Player sent chat" and use the dependency "text" to read what the last chat that triggered this procedure was and pull numbers, letters or any other kind of data from.   To make sure that your bot's responses are sent in private you can use the "Send message ["message"] to [Event/target entity] show in action bar [false]" block under actions in the players tab to make sure whatever you want to be said goes directly to the exact player you want.   Hope this helped, best of luck with your mod!   :D

here is a link to a related forum: Player Chat | MCreator

     -   net