forum Forumsplay_arrow Minecraft fiber_manual_record Redstone


Is there any way to do this with redstone?

1 emerald2 replies361 views
created 01/09/2016 9:39 am by Samhopper99
last reply 01/19/2016 4:33 pm
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 avatar
Level 14 : Journeyman Ninja

comment Login or register to post a reply.

2 replies

01/19/2016 4:33 pm
Level 1 : New Network
From Experience i would recommend using harming instead of wither as it is more malleable to soot your needs
01/11/2016 1:53 am
Level 42 : Master Nerd
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



© 2010 - 2019