Skip to content

Command

Bruce0203 edited this page Apr 9, 2021 · 2 revisions

Preparing a mini game

Minigames require at least one player to play. Minigames with no players are automatically deactivated.

GUI inventory

/fmg inv create <invName> <9|18|27|36|45|54> <title>

/fmg inv addItem <invName> <slotNumber>

/fut <player> gui <invName>

/fut <player> setGui <invName> <slotNumber> <savedItemName>

/fut <player> setGuiItem name <invName> <slotNumber> <itemName>

/fut <player> setGuiItem lore <invName> <slotNumber> <loreLine> <loreName>

item

/fmg item <itemName>

/fut <player> give <itemName> [amount]

/fut <player> giveHand <itemName> [amount]

/fut <player> giveCursor <itemName> <cursor> [amount]

/fmg kit <kitName>

/fut <player> kit <kitName>

Scoreboard

/fut <player> updateBoard <private|public|game> <title> <lineName> <lineNumber> <message>

/fut <player> updateBoard private testTitle §0§1 1 name: {player}

Conditional

/fut <player> if <value1> == <value2> <command>

/fut <player> if <value1> /= <value2> <command>

/fut <player> if <value1> >= <value2> <command>

/fut <player> if <value1> <= <value2> <command>

/fut <player> if <value1>> <value2> <command>

/fut <player> if <value1> <<value2> <command>

Minigame event cancellation

/fut <player> cancelEvent cancelEvent via fut do ... fires immediately upon execution and cancels until the next command. However, in the event command bundle, after cancelEvent is executed, the next command is executed and the corresponding game event is canceled.

Mini Game Block Regen

/fut <player> resetBlocks <gameName>

/fut <player> resetBlocks <gameName> <blocksName>

/fut <player> addBlock <world> <x> <y> <z> [blocksName]

If you set the gameType to build in the mini game config, Add blocks installed and destroyed by the player to the blocks to be regenerated like the addBlock command.

Player Utils

/fut <player> sendMsg private <message> This command sends a chat message to the player.

/fut <player> sendTitle private <fadeIn> <stay> <fadeOut> <title>-<subtitle> This command sends a title message to the player.

/fut <player> sendActionBar private <message> This command sends an action bar to the player.

/fut <player> health private <health> This command sets the player's health.

/fut <player> food private <hunger> This command sets the player's hunger.

/fut <player> addPotion private SPEED 55555 1 This command gives the player an infinite speed of 1.

/fut <player> removePotion This command removes all potions applied to the player.

/fut <player> closeGui This command closes the inventory menu displayed to the player.

/fut <player> knockBack <x> <y> <z> This command gives the player momentum.

/fut <player> entityKnockBack <entityUuid> <x> <y> <z> These commands give momentum to an entity.

/fut <player> addKnockBack <amount> <yaw> <pitch> This command gives the player momentum in some direction.

/fut <player> entityAddKnockBack <entityUuid> <amount> <yaw> <pitch This is a command that gives the entity momentum in some direction.

/fut <player> setHelmet <customItem> This command puts the stored item on the player's head.

/fut <player> setChestplate <customItem> This command puts the stored item on the player's armor.

/fut <player> setLeggings <customItem> This is a command to put a stored item on the player's pants.

/fut <player> setBoots <customItem> This is a command to put the saved item on the player's shoe.

/fut <player> cursor <cursor> This command sets the cursor on 9 spaces of the player's hot bar.

/fut <player> kill <entityUuid> This is a command that deletes an entity without simply killing it.

/fut <player> damage <entityUuid> <damage> This is a command that damages an entity.

/fut <player> nearByEntities <x> <y> <z> <cmd> Execute commands in with surrounding entities within the player's range. {nearByEntitiyType}, {nearByEntitiyName}, {nearByEntitiyUUID}, {nearByEntitiyDistance}

/fut <player> entityNearByEntities <entityUuid> <x> <y> <z> <cmd> Execute commands in with surrounding entities within a certain range of an entity. {entityNearByEntitiyType}, {entityNearByEntitiyName}, {entityNearByEntitiyUUID}, {entityNearByEntitiyDistance}

/fut none ride <entityUuid> <passengerUuid> The entity rides the entity.

/fut <player> removeRide Get off the boarding entity.

/fut <player> repairItem Repairs the durability of items held by the player.

Minigame execution

/fmg join <minigame> Join the player who executed this command with the freedyminigamemaker.join permission to the minigame.

/fmg quit Retire the player who executed this command with freedyminigamemaker.quit privileges.

/fmg create <gameName> <maxPlayers> <maxStartPlayers> <waitForStartTime> Create an empty minigame.

/fmg list View the list of mini games.

/fmg reload Reload config.yml and settings.yml.

/fmg quitAllGames All mini-games will end.`

/fut <player> join <gameName> Engage the player in a minigame.

/fut <player> move <gameName Force the player to move to the mini game.

/fut <player> joinAll <gameName> All online players who are not participating in the mini-game are invited to participate in the mini-game.

/fut <player> kick Exit the player from the minigame.

/fut <player> conLog <message> Print the message to the console.

/fut none setFile data.hello yes_hello Save the file in data.yml.

/fut none saveFile Save data.yml.

/fut <player> shutDown Force all players out of the mini-game.

/fut <player> setData <customdata> <data> Save minigame data

/fut <player> addData <customdata> <amount> Add to the value of the minigame data.

/fut <player> setPlayerData <customdata> <data> Save the player data of the mini game.

/fut <player> addPlayerData <customdata> <amount> It is added to the value of the player data of the minigame.

/fut <player> execute <command>

It is used to replace the data function that is not replaced when executed as a flare or as a command block, and executes the command by replacing the data function with the minigame in which the player is participating.

/fut <player> executeConCmd <command> Just run the command in the console.

/fut <player> executeCmd <command> Execute commands as a player.

/fut <player> executeConDelayCmd <tick> <command> After ticking, run the command in the console.

/fut <player> executeDelayCmd <tick> <command> After ticking, execute the command as the player.

/fut <player> respawnPoint <locationName> When respawning during a mini-game, it will spawn at a location.

Clone this wiki locally