Hosting

Note: Unfinished. Needs links added back in and NPC commands finished.

In Perry OSMP we host events for lore and other fun things. To host it is required to have OP, request. If you put in a formal event request and put the hosts they will be given OP for the entirety of the event. If you want to host an event fill out this form and send it to the owner.

**Official Hosting Request Form**

Explain what will happen at the events and its significance in as much detail as possible:

[When you have filled this out dm it @perry]

**Hosting Commands**

There are certain commands that will greatly improve your hosting skills and experience for the players involved. The following is a comprehensive list to help you host. For further information visit the official Minecraft Wiki for commands or useful sites to help.

### Text Commands

#### **Tellraw**

Tellraw is a very useful command for making things appear in chat. You can change the color, bold, and italics of the text with different parts of the command. You can also change who is able to see the text with the @ part.

/tellraw <targets> <message>

Examples:

/tellraw @a {"text":"<Paravoina> Hi"}

/tellraw @a {"text":"Paravoina has slain Starsisweird"}

/tellraw @a {"text":"Archerguy08 was slain by Starsisweird"}

/tellraw @a {"text":"Herobrine joined the game","color":"yellow"}

/tellraw @a {"text":"Death.","color":"red"}

/tellraw @a {"text":"<Ender Dragon> No-!","color":"light\_purple","bold":true}

#### **Titles**

Titles appear in the middle of the screen instead of inside the chat box. They have different parts that allow color change, bod, and italics. There are three variants of titles: title, subtitle, and actionbar. Titles and actionbars can be sent alone but if you try to send a subtitle it will wait until the next title to go out at the same time with it.

/title <targets> title <titleText>

/title <targets> subtitle <titleText>

/title <targets> actionbar <titleText>

Examples:

/title DigMinecraft title {"text":"The End is Near", "bold":true, "italic":true, "color":"red"}

/title <targets> times <fadeIn> <stay> <fadeOut>

/title DigMinecraft subtitle {"text":"Run for your Life!", "italic":true, "color":"yellow"}

/title @a actionbar {"text":"Get Ready!", "color":"light\_purple"}

/title <targets> clear

#### **Bossbar**

A bossbar is a health bar that appears on the top of the screen similar to the ender dragon and wither. This is suggested to be used in cinematic moments. It requires many steps to properly set up. If there are already bossbars active you will need to change bossbar1 to some other number to not collide.

Exaples:

Create

/bossbar add digminecraft:bossbar2 "God"

then show

/bossbar set digminecraft:bossbar2 players @a

fill it

/bossbar set digminecraft:bossbar2 value 100

color it

/bossbar set digminecraft:bossbar2 color yellow

REMOVE

/bossbar remove digminecraft:bossbar2

/bossbar list

#### **Enchant**

This command enchants the item a player is holding.

/enchant <targets> <enchantment> [level]

Examples:

/enchant DigMinecraft knockback 2

/enchant @r sharpness 5

#### **Replace**

The replace command will get rid of the target item and replace it with the new item. With this command you can replace diamonds to dirt or chainmail armor to netherite. This command is not recommended to be used, only in specific lore related moments. Some example slots: armor.chest, slot.armor.chest, weapon.mainhand, slot.weapon.mainhand . Find all slot names here.

/replaceitem entity <targets> <slot> <item> [count]

Examples:

/replaceitem entity IndecisiveMagica armor.chest diamond\_chestplate

#### **Give**

The give command puts an item or block into the players inventory. You can give to a certain person, team, or just everyone on the server. You can also change the descriptions on items and enchants before giving the item.

/give <targets> <item> [amount] [dataTag]

Examples:

/give @p minecraft:diamond\_sword{display:{Lore:["\"It’s dangerous to go alone take this\""]}} 1

/give @s minecraft:diamond\_block{CanPlaceOn:["minecraft:dirt"],CanDestroy:["minecraft:quartz\_block"]} 1

/give @r diamond\_sword{Enchantments:[{id:"minecraft:sharpness",lvl:10}]} 1

#### **Summon**

Summon will create special effects or mobs needed for an event. Summon a giant slime tornado or just a fireball to be thrown for dramatic effect. Visit here to get an idea how many different combinations you can summon!

/summon <entity> [pos] [nbt]

Examples:

/summon shulker\_bullet

/summon shulker\_bullet ~ ~ ~5

/summon fireball ~ ~1 ~

/summon fireball

/summon fireball ~ ~1 ~ {ExplosionPower:4}

/summon fireball ~ ~1 ~ {ExplosionPower:4,Motion:[3.0,0.0,0.0]}

### **Player Commands**

These commands directly affect the player and how they can change the world.

#### **Teams**

Teams are unique in that you can change player interactions with each other. Don’t want pvp in your event? Put everyone into one team and disable pvp except one murderer. To see all the things you can do with teams visit here, it’s a lot.

/team add <team> [displayName]

Examples:

/team add Team1 {"text":"Team DigMinecraft"}

/team modify Team1 color red

/team join Team1 DigMinecraft

/team modify Team1 displayName {"text":"The Killers"}

/team remove <team>

[Note: People in teams can use /teammsg to send chat to their team only!]

#### **Teleport**

/tp Player x y z

/tp [player] [player]

/locate buriedtreasure

#### **Effects**

Give a player certain effects whether to help or hinder them. Use this guide to all Java effects for syntax.

/effect give <targets> <effect> [seconds] [amplifier] [hideParticles]

/effect clear <targets> [effect]

Examples:

/effect give DigMinecraft conduit\_power 5000

effect clear DigMinecraft

/effect clear @a blindness

strength 0 Strength

strength 1 Strength II

8 2 Jump Boost III

8 3 Jump Boost IV

#### **Damage**

Turn on and off damage for specific things. Can help certain guest attend your event.

Fall damage

Turns fall damage on and off.

/falldamage

Fire damage

Turns fire damage on and off.

/firedamage

Water damage

Turns water damage on and off.

/waterdamage

### **World Commands**

These commands change the world around you; including weather, time, and mobs.

#### **Weather**

Allows you to choose the weather or your world. Options include: rain, thunder and snow.

/weather WeatherType

#### **Time**

Sets the time to day. Replace “1000” with “0” for dawn, “6000” for midday, “12000” for dusk and “18000” for night.

/time set 1000

Stop time

This will stop the game’s day/light cycle in it’s place, allowing you to live under permanent sunshine or moonlight. To resume the day/light cycle type in “/gamerule doDaylightCycle true”.

/gamerule doDaylightCycle false

#### **Difficulty**

Change difficulty of the world. Want a challenge for them? Put it on hard. **Don’t ever change to peaceful in risk of respawning someone’s property.** “easy”, “ normal”, or “hard”  are allowed.

/difficulty normal

#### **Keep Inventory**

Don’t want your guests dying and losing important lore items? Use this command.

/gamerule keepInventory true/false

#### **Mobs**

There are a couple different commands to effect mobs directly. Want to ride the ender dragon or pause a boss for dramatic dialouge? These are for you.

Ride

Turns the creature you’re facing into a mount.

/ride

Freeze

Stops mobs in their tracks.

/freeze

Summon

Spawn a certain type of mob, can create a huge zombie or super weak wither.

/summon

### Misc. Help

* <targets> targets or player is the name of the player (or a target selector) to give the item to.
* <item> item is the name of the item to give (See Minecraft Item Names).
* [amount] amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
* [dataTag] data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item. dataTag is optional. It is the data tag that you want to set for the item being given. It is a compound NBT tag such as {Potion:harming} or {EntityTag:{id:Creeper}}.
* <entity> entity is the Minecraft entity value of the entity to summon. (See Minecraft Entities).
* [pos] x y z is optional. It is the x y z coordinate where the entity should spawn. If no coordinate is specified, the entity will spawn in the current location.
* [nbt] nbt is optional. It is a compound NBT tag (formerly called data tag) that sets a property for the entity such as {SkeletonType:1}, {IsBaby:1} or {Owner:DigMinecraft}. (See Minecraft Data Tags).

Command parts for Java Minecraft

/commandname - the beginning of EVERY command

@p – nearest player

@r – random player

@a – all players

@e – all entities **DO NOT EVER USE THIS IT WILL BREAK THE SERVER**

@s – the entity executing the command

@a - Who to send this message to, put a player so only they can see

@a[team=Red] - Send to specific team.

"text":"The End is Near"

"bold":true

"italic":true

"color":"red" - color text syntax

red, dark\_red, yellow, gold, green, dark\_green, blue, dark\_blue, aqua, dark\_aqua, light\_purple, dark\_purple, gray, dark\_gray, white, black - available text colors

/give <your username> minecraft:command\_block - give a player a command block (needed for longer commands)

minecraft:Item\_name\_here - Proper syntax to type a minecraft item