I went on my server to do some work, and then I started using command blocks. I used /give to get a command block and it worked, I tried to place it but nothing happened. I researched it and removed all my plugins, checked to make sure I was op, made sure I was op level 4, made sure I was in gmc, made sure my command blocks were enabled, EVERYTHING, but it didnt work. Every other block worked, and command blocks worked on other servers and worlds. I reset the server multiple times and nothing worked.
Anything regarding this issue is greatly appreciated.
First do /scoreboard objectives add <objective> dummy
behind the command you made put " /execute if score @p <objective> matches 0 run <command> "
connect a command block that activates when you press the button with the command " /scoreboard players set @p <objective> 1 "
and optionally, you can connect this too, " /execute if score @p <objective> matches 1 run tellraw @p {"text":"You have already pressed this!","color":"red"}
Video with command blocks and showing the command working :
For the video I sent :
Command block 1 : /scoreboard players set @p 1
Command block 2 : /execute if score @p <objective> matches 0 run tellraw @a {"text":"hi"}
Command block 3 :/execute if score @p <objective> matches 1 run tellraw @p {"text":"You have already pressed this!","color":"red"}
That is the 1.12 command, since the commands have changed, try using this command :
/setblock ~ ~-1 ~ spawner{SpawnData:{id:zombie,Silent:1,CanPickUpLoot:1b,CanBreakDoors:1b},SpawnRange:3,SpawnCount:1,MaxNearbyEntities:5,Delay:20,MaxSpawnDelay:400,RequiredPlayerRange:50} replace : If this doesn't work try using McStacker
I got everything there and it detects if there are any players in survival mode but how do I get it to activate a command when there is one person left in survival?
Would this detect if someone is in spectator mode as well? I need it to only detect the amount of survival players since dead people will be in spectator mode
I am hosting a pvp tournament soon and I am trying to figure out a way to detect how many players are in survival mode. I don't know if this is possible without /testfor. I have tried to make a scoreboard objective and make a player operation but none of those have the option to count the players in survival mode. I have tried branching off of /execute if entity @a but that didn't lead anywhere.
So today I got Minecraft OptiFine, I tried opening the game and it stops responding, it crashes saying, "An unexpected issue has occurred and the game has crashed. We're sorry for the inconvenience." If anyone knows how to fix this, please reply saying how to fix it!
0
I went on my server to do some work, and then I started using command blocks. I used /give to get a command block and it worked, I tried to place it but nothing happened. I researched it and removed all my plugins, checked to make sure I was op, made sure I was op level 4, made sure I was in gmc, made sure my command blocks were enabled, EVERYTHING, but it didnt work. Every other block worked, and command blocks worked on other servers and worlds. I reset the server multiple times and nothing worked.
Anything regarding this issue is greatly appreciated.
0
First do /scoreboard objectives add <objective> dummy
behind the command you made put " /execute if score @p <objective> matches 0 run <command> "
connect a command block that activates when you press the button with the command " /scoreboard players set @p <objective> 1 "
and optionally, you can connect this too, " /execute if score @p <objective> matches 1 run tellraw @p {"text":"You have already pressed this!","color":"red"}
Video with command blocks and showing the command working :
For the video I sent :
Command block 1 : /scoreboard players set @p 1
Command block 2 : /execute if score @p <objective> matches 0 run tellraw @a {"text":"hi"}
Command block 3 :/execute if score @p <objective> matches 1 run tellraw @p {"text":"You have already pressed this!","color":"red"}
0
Are you limiting your choices to specific blocks?
0
How big is the area you are trying to fill?
0
That is the 1.12 command, since the commands have changed, try using this command :
/setblock ~ ~-1 ~ spawner{SpawnData:{id:zombie,Silent:1,CanPickUpLoot:1b,CanBreakDoors:1b},SpawnRange:3,SpawnCount:1,MaxNearbyEntities:5,Delay:20,MaxSpawnDelay:400,RequiredPlayerRange:50} replace : If this doesn't work try using McStacker
0
I already told CowsDaBestYT my problem with that, no matter what it is always being set to 0 and it will not go to 1 even if I am in survival
0
I gotta get this done by tommorow
0
I got everything there and it detects if there are any players in survival mode but how do I get it to activate a command when there is one person left in survival?
0
because the repeating command blocks are repeating the "scoreboard players set counter tour 0" command it won't go to one no matter what happens
0
Would this detect if someone is in spectator mode as well? I need it to only detect the amount of survival players since dead people will be in spectator mode
0
I am hosting a pvp tournament soon and I am trying to figure out a way to detect how many players are in survival mode. I don't know if this is possible without /testfor. I have tried to make a scoreboard objective and make a player operation but none of those have the option to count the players in survival mode. I have tried branching off of /execute if entity @a but that didn't lead anywhere.
0
So today I got Minecraft OptiFine, I tried opening the game and it stops responding, it crashes saying, "An unexpected issue has occurred and the game has crashed. We're sorry for the inconvenience." If anyone knows how to fix this, please reply saying how to fix it!
Thank you!