1

Deleted

anonpmc1885585 3/11/17 3:43 pm
4k
6/15/2017 10:21 am
[deleted]
Posted by
anonpmc1885585
Level 1 : New Miner
0

  Have something to say?

JoinSign in

12

Carnivore
06/15/2017 10:21 am
Level 42 : Master System
If you could elaborate on what is the purpose of the sensor, then I could probably help. Myself using a position based guid identification scanner in a project.
1
Smooth-Cobalt2
06/15/2017 8:34 am
Level 35 : Artisan Blockhead
You can use the tag feature from command /scoreboard players tag .
The way this command works is
/scoreboard players tag {TARGET SELECTOR} add/remove/list {TAG NAME, MAKE IT FOLLOW MC'S STRICT NAMING POLICY} {PLAYER/ENTITY DATATAG}

(Data tags for players can be found on Google with the search "Player.dat". For entities, search "Chunk format entity format".
In this case, if I want to detect a player who is in the OverWorld, you can use the {Dimension:0} for the last argument in the command, for example:
/scoreboard players tag @a add inOverworld {Dimension:0}

Now players who are in the OverWorld will have this tag. How to detect players with this tag? No worries! Here's the command:
/testfor @a[tag=inOverWorld]
1
tylerw2017
06/15/2017 6:20 am
Level 11 : Journeyman Crafter
Dang I wish I could help I have no idea Sorry
1
bjornemannen
06/15/2017 5:42 am
Level 1 : New Network
Thanks for the help, I really appreciate it!
1
Bertiecrafter
06/15/2017 5:16 am
Level 72 : Legendary System
Could we all please get the understanding between @e and @a?!

@e = all entities, that means items, mobs, and other movable things.
@a = all players

Simply run this is a repeating, unconditional and always active command block:
/testfor @a[r=#]

As stated before, r stands for the radius with the command block at it's center.

The command provided by BRASHEXODUS tests for ANYTHING within a 1 block radius (basically a cross shape, 3 blocks wide) of the coords in the command. The x, y and z arguments move the center of the sphere and if not provided, the command block is the center.

Use /gamerule commandBlockOuput false to hide the spam
Use /gamerule logAdminCommands false to reduce lag.
1
BRASHEXODUS
03/11/2017 6:57 pm
Level 48 : Master Baconator
what you should do is grab a command block. set it as repeat unconditional and always active. then to get the "testfor" to work for 1.11.2 that i found out. is you need actual cords so do something like this /testfor @e[x=1985,y=33,z=1916,r=1]
the r=1 means how far you are from the command block i put it at that so i can be just 1 block above it. works like a charm. after its set you'll need a comparetor coming out of the block after the comparator add a repeater then add some redstone or more repeaters hooking into that specific command block you need c: if you need any help just pm me c:
1
bjornemannen
06/14/2017 3:51 pm
Level 1 : New Network
Thank you BRASHEXODUS, it was very helpful. But there is one problem: when I stand on the spot I've selected, the command block does what it's supposed to, but if I stay on that block for any more than half a second, it starts spamming in the chat "Found Bjornemannen".
Do you know a way to fix this. Answer ASAP.
Thank you.
1
Pepijn
03/11/2017 6:00 pm
Level 58 : Grandmaster Cyborg
in 1.11 it would be /testfor @e[type=player], but this is the same as /testfor @a.
1
ImYourEnder
03/11/2017 5:52 pm
Level 28 : Expert Skinner
Hey if you're having trouble do /testfor @e[r=(number)] or if you want to do this for a specific player do /testfor @e[name=(playername),r=(number)]
1
D1a1v1e1
03/11/2017 4:32 pm
Level 15 : Journeyman Artist
does /testfor @e[type=Player] work?
1
anonpmc1885585
03/11/2017 4:43 pm
Level 1 : New Miner
[deleted]
1
anonpmc1885585
03/11/2017 4:41 pm
Level 1 : New Miner
[deleted]
1

Welcome