#Random command execution

1 messages · Page 1 of 1 (latest)

graceful portal
#

Hello. so im trying to make an item which will execute a command with the help of "itemtag" plugin and the command that the item will execute would be a command belonging to the plugin "mycommand".

so what this would do is that it would execute a random command upon right clicking but for some reason its not working. i kind of get it somewhat so if there's a work around i'd really appreciate it.

Item: iron_ingot
has actions to run upon right clicking: /mythicrandom

/mythicrandom is a custom command made from mycommand to run a random command upon execution. command below VVV

mythic_tool_random:
 command: /mythicrandom
 type: RUN_CONSOLE_RANDOM
 runcmd:
  - /si give ms_verdant_1 1 $player true
  - /si give ms_verdant_2 1 $player true
  - /si give ms_verdant_3 1 $player true
  - /si give ms_verdant_4 1 $player true
  - /si give ms_verdant_5 1 $player true
  - /si give ms_verdant_6 1 $player true
  - /si give ms_verdant_7 1 $player true
  - /si give ms_verdant_8 1 $player true
  - /si give ms_verdant_9 1 $player true```

si give <item_id> <amount> <player_name> <silent>
*command from itemedit plugin*

lmk if u need anymore info!
gusty cobalt
#

Hi, does it say anything in console when you run the command?

graceful portal