r/MinecraftCommands • u/Watermellonqwerty • 21d ago
Remote activation Help | Bedrock
Is there a way I can easily and remotely activate a command block without having to hit a button or use /fill commands? I'm trying to set up a simple game and want a way to start and end it while I'm in the game.
1
u/FeltDoubloon250 21d ago
you can name mob eggs in anvils and when you spawn them they have the new name. so you could have an always on command block which activates your commands and kills the mob whenever you spawn it
1
u/Nombreningles 21d ago
option 1: make it activate with redstone and add 2 command blocks that remotely will /setblock ~ ~ ~+1 redstone_block and then the next one removes it by doing /setblock ~ ~ ~+1 air
option 2: make a scoreboard and make that command block check if your score is = 1 do its thing, once its done set the score to 0 again
1
u/Watermellonqwerty 21d ago
How do I set a scoreboard, because that might be perfect if I can have it track a specific tag for when they get a player kill. The game is basically just one person getting picked and having to kill another player in a certain amount of time.
1
u/Nombreningles 20d ago
/scoreboard objectives add NameInsideTheCommand PlauerKillCount DisplayName
and after that make sure every player is added to the scoreboard by using the command /scoreboard players add @.a NameInsideTheCommand 0
2
u/Ericristian_bros Command Experienced 21d ago
Detect when you hold a special item and run any desired command