How to execute MmoItems Give command through other plugin

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

imStelios

Member
Mar 4, 2024
10
0
1
24
Hello. I need help with mmoitems. I want to make mmoitems work with Mysteryboxes.
It's all easy but I can't find anywhere the PLACEHOLDER for (player).
What I want is to give mmoitems through Mysteryboxes. Mysteryboxes work with commands executes.
So I need to config in Mystery box this command -> /mi give Sword GOLDEN_SWORD [(PLACEHOLDER) (player)]

But I can't find the placeholder. what replace the name for the command to target the player?

If I let it with out name mmoitems says *specify a player*
Plz help
 
hey this is a easy fix just use a player placeholder such as {player} or you can make your own placeholder with skript by using variables
 
hey this is a easy fix just use a player placeholder such as {player} or you can make your own placeholder with skript by using variables
I know I need to use a placeholder but what is the correct form ? Or how I do it ?
 
loot-creator:
example-loot-1:
enabled: true
name: "&aCommon Loot #1"
loot-discovered:
execute-as-player: false
commands:
- "command goes here"

So at the section -"command goes here"

If I give the command
-"mi give SWORD GOLDEN_SWORD %player%

Will it work ? Just like that without doing anything else?
 
as he said but just so you can remember use %% for strings and to quote a entity
I just want to trigger the player that open the chest to take the item
The plugin works with commands
So I can't use
- Mi give Sword Golden_Sword Bob
Bc it will always give the item to Bob no matter who will open the chest.

What I want is to have a replacement to the name that fits to all names. Like the Vanila command block that has @p and who ever push the button gets the item

I mean all the plugins have their own. What is it for MmoItems ?
 
loot-creator:
example-loot-1:
enabled: true
name: "&aCommon Loot #1"
loot-discovered:
execute-as-player: false
commands:
- "command goes here"

So at the section -"command goes here"

If I give the command
-"mi give SWORD GOLDEN_SWORD %player%

Will it work ? Just like that without doing anything else?
this is not skript, this is not the right channel for this. This is not how you would use it.
 
this is not skript, this is not the right channel for this. This is not how you would use it.
So what should I do ? I just want to give MmoItems through Mysteryboxes. That's all...
Mysteryboxes gives Loots with command execution.

But as I said the example command is :
Mi give Sword Golden_sword (name)
That's the command when you execute it yourself.

What is the replacement for the name when the console execute it ?

I said an example that in command block the vanilla give is
Minecraft:give @p Golden_sword
The @p is the replacement for the one who push the button on the command block

So what is the same thing but for mmoItems ?
 
So what should I do ? I just want to give MmoItems through Mysteryboxes. That's all...
Mysteryboxes gives Loots with command execution.

But as I said the example command is :
Mi give Sword Golden_sword (name)
That's the command when you execute it yourself.

What is the replacement for the name when the console execute it ?

I said an example that in command block the vanilla give is
Minecraft:give @p Golden_sword
The @p is the replacement for the one who push the button on the command block

So what is the same thing but for mmoItems ?
You will have to check the Mysteryboxes documentation for that.
I think this is what you are looking for: https://xerickerspigot.gitbook.io/mysteryboxes/menus-and-items/click-commands
 
You will have to check the Mysteryboxes documentation for that.
I think this is what you are looking for: https://xerick
The Mysteryboxes work OK I think it isn't the Mysteryboxes the problem.

It just need the replacement for the name from mmoitems to work. To execute the command as console but it needs a name to send the item.
 
how can i give the player to the one that push the button?. in pics are command blocks but it works the same with Mystery boxes so if i can do it to command block i will be able to do it to Mysteryboxes too.
for example with vanila command with @p it work fine.
 

Attachments

  • Screenshot_3.png
    Screenshot_3.png
    393 KB · Views: 125
  • Screenshot_VAN.png
    Screenshot_VAN.png
    390.5 KB · Views: 101
  • Screenshot_4.png
    Screenshot_4.png
    4.2 KB · Views: 124
how can i give the player to the one that push the button?. in pics are command blocks but it works the same with Mystery boxes so if i can do it to command block i will be able to do it to Mysteryboxes too.
for example with vanila command with @p it work fine.
Hey, having the same problem, have u found an answer?
 
Hey, having the same problem, have u found an answer?
Yes it was very simple. It was a placeholder from the MysteryBoxes plugin. I used the {PLAYER} AND IT WORKED.
 

Attachments

  • Screenshot_20240410_061040_Chrome.jpg
    Screenshot_20240410_061040_Chrome.jpg
    187.8 KB · Views: 108