1

Is there any way to do this with redstone?

Samhopper99's Avatar Samhopper991/9/16 9:39 am
1 emeralds 420 2
1/19/2016 4:33 pm
SkillzCode's Avatar SkillzCode
Hello, i just wanted to know what commands I should use on my vanilla server to stop people going out of a certain area without having a golden helmet on, i know it sounds weird, but my servers spawn is a square, and i would like people to take damage every second(doesnt have to be exact) when they are not inside the square, and they are not wearing a golden helmet. Any help would be much appreciated. I dont mind if it takes multiple command blocks on a 1tick clock. Just need a solution. Thanks.
Posted by Samhopper99's Avatar
Samhopper99
Level 16 : Journeyman Ninja
5

Create an account or sign in to comment.

2

1
01/19/2016 4:33 pm
Level 1 : New Network
SkillzCode
SkillzCode's Avatar
From Experience i would recommend using harming instead of wither as it is more malleable to soot your needs
1
01/11/2016 1:53 am
Level 51 : Grandmaster Nerd
JustusFT
JustusFT's Avatar
First, do this command:
/scoreboard objectives add hasHelmet dummy

Use this attached to a 1 tick clock:
/scoreboard players set @a hasHelmet 0
/scoreboard players set @a[x=,y=,z=,dx=,dy=,dz=] hasHelmet 1
/scoreboard players set @a hasHelmet 1 {Inventory:[{Slot:103b,id:minecraft:golden_helmet}]}
/effect @a[score_hasHelmet=0] minecraft:wither 1 0

Make sure the commands are in order.
Change x, y, and z to the lowest (bottom north-west) coordinates of your area, and dx, dy, and dz to the dimensions of your area.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome