Minecraft Blogs / Tutorial

Coding Time! #2 - Upgrade Station & Grief Protection

  • 873 views, 1 today
  • 12
  • 4
  • 5
Cib's Avatar Cib
Retired Moderator
Level 47 : Master Button Pusher
357
Note: This tutorial was created for MCPE (1.0.5). Changes have been made since then to make it compatible with Bedrock Edition but there may still be problems.

Welcome to my second command block tutorial! If you missed my first blog, check out the command block weather tower here.
In this tutorial, you'll be creating an upgrade station for new players on your Minecraft worlds and enabling grief protection without using plugins!

Upgrade Station

Coding Time! #2 - Upgrade Station & Grief Protection
To start off, create a simple platform or "pod" for your upgrade station.
In the centre, place a pressure plate on top of a block and a command block underneath of the block.
Coding Time! #2 - Upgrade Station & Grief Protection
Example layout

Coding Time! #2 - Upgrade Station & Grief ProtectionCopy and paste /give @s command_block 1 in chat to get a command block


Next, tap or right-click on the command block and enter the command
/give @p bread 5 in the input box.


Press the + button and leave the command block GUI by pressing X. Stand over the pressure plate to test and you should be given 5 pieces of bread!

Try changing the item name in the command to give players different items (eg; iron_sword or compass)


(optional, advanced)

Want to give players multiple items at the same time? Type the command /give @s chain_command_block 1 in chat.
Then, dig a 1x1 hole underneath the first command block (orange/ "Impulse"), shift and then place the chain command block (green/ "Repeat") by tapping the bottom of the first one.

After that, enter the command /give @p <item_name> # and replace <item_name> with the item tag (eg; apple) and # with the amount of that item you want to give (eg; type 10 to give ten apples).
Repeat this process by digging further down and placing a new chain command block underneath for each extra item you want to give.

Grief Protection
Now we all know there's plugins out there to stop player from destroying your builds on a server. But what if you're on a realm or an offline world with a friend? Follow the steps below to keep your creations protected!


Find a location to place your command block. If you're trying to protect a world/ realm spawn, dig directly underneath and place a command block surrounded by bedrock.


Right-click or tap the command block to open it's GUI, select the "Block Type" dropdown and set to "Repeat".


Now enter the command /effect @a[​r=10] effect: mining_fatigue seconds: 9999 amplifier:255 hideParticles: true into the "Command Input" box and press the + button. This command means that all players within a radius of 10x10 blocks from the command block (@a[​r=10]) will be given the effect "Mining Fatigue" for 9999(infinite) seconds with the strength of 255.

Finally, shift and place a lever on the command block. Flip the lever and no one will ever bother you or your creations again!
Tags

Create an account or sign in to comment.

1
05/01/2017 5:36 pm
Level 7 : Apprentice Warrior
KawaiiCat_YT
KawaiiCat_YT's Avatar
The grief protection thing will be really useful for my friends minecraft realm. there is this guy on her server that is griefing my builds, i think he doesnt like me near her because he pretty much wants me dead =3= this will be nice to surprise him with next time he tries to grief huehuehue
2
05/01/2017 6:13 pmhistory
Level 47 : Master Button Pusher
Cib
Cib's Avatar
The only annoying thing is on the side of the screen it says "Mining Fatigue"
1
05/01/2017 6:15 pm
Level 7 : Apprentice Warrior
KawaiiCat_YT
KawaiiCat_YT's Avatar
Im used to effects being on the side of meh screen. since its a huge city with like 150 players i always have speed on =3= whats one more laggy command gonna do =3
1
05/01/2017 4:58 pm
Level 11 : Journeyman Miner
Arhtur32
Arhtur32's Avatar
Nice Blog Post
Your blog is a great idea and it had already helped me! (Grief Protection)
2
05/01/2017 6:12 pmhistory
Level 47 : Master Button Pusher
Cib
Cib's Avatar
I'm glad you found it useful!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome