customevent id:things_happened context: #Use to call a custom event with path "on custom event id:things_happened:" and supply a context map of basic data. #Use to call a custom event with path "on custom event id:things_happened:" - customevent id:things_happened Will be an empty list if 'determine output:' is never used. returns a ListTag of determinations to this event. returns a boolean indicating whether the event was cancelled. returns a boolean indicating whether any events ran as a result of this command. ) is automatically sent across to the event. Input is an ID (the name of your custom event, choose a constant name to use), and an optional MapTag of context data. cooldown global 24h script:daily_treasure_offering #Use the 'global' argument to indicate the script to be on cooldown for all players. cooldown 11h script:bonus_script - cooldown 5s script:hit_indicator #Use to keep a player from activating a script for a specified duration. #Use to keep the current interact script from meeting requirements. Returns the time left for the player to cooldown for the script. Returns whether the script is currently cooled down for the player. To cooldown non-interact scripts automatically, consider Command: ratelimit.Ĭooldown periods are persistent through a server restart as they are saved in the 'saves.yml'. It also requires a valid link to a PlayerTag if using a non-global cooldown. Temporarily disables an interact script for the linked player.Ĭooldown requires a type (player or global), a script, and a duration. #Use to switch on the lever that the player is looking at, without actually providing redstone power. #Use to put snow on the block at the player's feet. Returns the material of the block at the location. If not specified, physics will apply to the block and nearby blocks. Use the "no_physics" argument to indicate that the change should not apply a physics update. Input a location or list of locations, and the mechanism to apply. That is, an equivalent to Command: adjust, but that directly applies a "MaterialTag" mechanism onto a block. adjust def:stick "display_name:Fancy stick"Īdjustblock ( : ) (no_physics)Īdjusts a mechanism on the material of a block at the location. #Use to modify an item held in a definition. #Use to set the skin of every online player. #Use to set a custom display name on an entity. To adjust an actual InventoryTag mechanism, you should still use the normal 'adjust' command, not 'inventory adjust'. Note that that is only for items, not actual inventories. To adjust an item in an inventory, use Command: inventory, as '- inventory adjust slot: :'. You can optionally adjust a MapTag of mechanisms to values. Specify "def:" as an input to adjust a definition and automatically save the result back to the definition. Mechanism, and sometimes accompanying value. To easily accomplish this, use this command with a valid object Interface to deal with those adjustments. Many object tag types contains options and properties that need to be adjusted. Categories: core | entity | file | item | player | queue | server | world | addons | Depenizen | external | npc Learn about how commands work in The Beginner's Guide. Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |