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
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.
Example layout
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!
(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!
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
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.
Example layout
Copy 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 |
tools/tracking
3942185
6
coding-time-2-command-block-upgrade-station-and-area-protection
Create an account or sign in to comment.
Your blog is a great idea and it had already helped me! (Grief Protection)