1

Help D:

noplsno's Avatar noplsno3/22/16 7:05 pm
3/26/2016 10:23 am
noplsno's Avatar noplsno
my command block says detect is an invalid number in /execute D:
Posted by noplsno's Avatar
noplsno
Level 2 : Apprentice Explorer
2

Create an account or sign in to comment.

16

noplsno
03/26/2016 10:23 am
Level 2 : Apprentice Explorer
noplsno's Avatar
its fixed
1
DepthStrider
03/24/2016 9:42 am
Level 19 : Journeyman Artist
DepthStrider's Avatar
What's the error? Are you running this on a clock? Are the objectives if there are any, set up correctly?
1
noplsno
03/24/2016 4:48 pm
Level 2 : Apprentice Explorer
noplsno's Avatar
no objectives, just a repeat command block.
1
DepthStrider
03/24/2016 5:52 pm
Level 19 : Journeyman Artist
DepthStrider's Avatar
As I said. What is the error?
1
noplsno
03/25/2016 10:06 am
Level 2 : Apprentice Explorer
noplsno's Avatar
detect is not a valid number
1
DepthStrider
03/25/2016 11:47 am
Level 19 : Journeyman Artist
DepthStrider's Avatar
Copy paste the EXACT command that gives this error, straight from the command block. This is most likely a issue with either you messing up where the co-ordinates respective to 'detect' should be or you forgetting a datavalue.
1
sekwah41
03/23/2016 2:48 pm
Level 89 : Elite Senpai
sekwah41's Avatar
/execute @a ~ ~ ~ detect ~ ~2 ~ redstone_block 0 /kill @p[c=1]

This works, you have to walk under the block, to walk over it you need ~-1. If you check in a command block it should say that it failed the command "execute" unless you walked under the block.
1
DepthStrider
03/24/2016 5:55 pm
Level 19 : Journeyman Artist
DepthStrider's Avatar
As said before, @a detects dead players while @p does not, this means that a dead player with a redstone block 2bs (blocks) above him/her will trigger even when dead, but since @p doesn't track dead players it'll kill the nearest ALIVE player. That'd cause dead players to kill living players if the detect is successful. Also @p already tracks one target which is the closest as well so a [c=1] is really not needed here.
1
noplsno
03/25/2016 10:08 am
Level 2 : Apprentice Explorer
noplsno's Avatar
not working
1
noplsno
03/24/2016 8:38 am
Level 2 : Apprentice Explorer
noplsno's Avatar
still not working D:
1
DepthStrider
03/23/2016 7:03 am
Level 19 : Journeyman Artist
DepthStrider's Avatar
The ~ before the detect change the origin from the player. But the detect command already has the ability to specify absolute or relative co-ordinates.

Eg:
/execute @a ~ ~ ~ detect ~ ~-1 ~ stone -1 say standing on stone
Says "standing on stone" if any stone type is a block below you.
1
DarkMonolith
03/23/2016 3:44 am
Level 1 : New Crafter
DarkMonolith's Avatar
When using execute, your command NEEDS the format of this: /execute @a[the specifics] ~ ~ ~ the command that needs executing and then the specifocs of the executed command. Heres an example:

/execute @a[score_attack=0] ~ ~-1 ~ /fill ~3 ~ ~-3 ~-3 ~ ~3 stone

Where I think you messed up is right after here : /execute @a[stuff] detect <--- THERE
You need coordinates there before the detect command. If you are trying to detect the block under the players foot you will want:
/execute @a[your specifics] ~ ~-1 ~ detect then whatever you had next. If you want to detect the player's coordinates exactly, you can use:
/execute @a[specifics] ~ ~ ~ detect

P.S. You dont need to use @a as you probably know. All @'s work
1
sekwah41
03/22/2016 7:06 pm
Level 89 : Elite Senpai
sekwah41's Avatar
Well what is your actual execute command?
1
noplsno
03/23/2016 7:37 am
Level 2 : Apprentice Explorer
noplsno's Avatar
/execute @a ~ ~ ~ detect ~ ~2 ~ minecraft:redstone_block kill @p[c=1]
1
DepthStrider
03/23/2016 10:33 am
Level 19 : Journeyman Artist
DepthStrider's Avatar
@a tracks dead players while @p doesn't so you shouldn't mix these. You also forgot to add a value to the block, since there's only one state for a redstone block you'd set it to 0 or -1 to ignore all values

/execute @a ~ ~ ~ detect ~ ~2 ~ redstone_block 0 /kill @a[c=1]
1
noplsno
03/23/2016 12:06 pm
Level 2 : Apprentice Explorer
noplsno's Avatar
still not working D:
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome