1
Command Block, please help!
Hey guys, okay? I have some doubts about the command block, not so simple, as a little complex, I wonder if I can activate the command "setblock" after killing any mob, with that system of "scoreboard" and "stat.kill.enemy.skeleton"..
Another question and you can, for example, drop an item on a pressure plate and activate a command, but with a specific name, for example, or command block only activate the item name for 'Creeper'..
Thank you!
Brazilian here, sorry for the mistakes!
Another question and you can, for example, drop an item on a pressure plate and activate a command, but with a specific name, for example, or command block only activate the item name for 'Creeper'..
Thank you!
Brazilian here, sorry for the mistakes!
1
If its killing any of a certain mob (without nbt):
/scoreboard objectives add kill.skeleton stat.kill.enemy.skeleton
Repeating cmd block, Active: /execute as @a[scores={kill.skeleton=1}] at @s run setblock ~ ~ ~ air
Chain cmd block, Conditional & active: /execute as @a[scores={kill.skeleton=1}] run scoreboard players reset @s kill.skeleton
/scoreboard objectives add kill.skeleton stat.kill.enemy.skeleton
Repeating cmd block, Active: /execute as @a[scores={kill.skeleton=1}] at @s run setblock ~ ~ ~ air
Chain cmd block, Conditional & active: /execute as @a[scores={kill.skeleton=1}] run scoreboard players reset @s kill.skeleton
