Arqade Asked on June 19, 2021
I know how scoreboards work, and i have one set up already. the thing is, its set to totalKillCount
and give 1 point for each kill. I want to give more points for killing tougher mobs.
How do I make it so it gives different points for different mobs, but also have all of the scores show up on the same scoreboard? For example, 2 points for killing a creeper, but 7 points for killing a ravager?
My server is a PvP and PvE.
You can test for when a player kills an entity and add a point to a dummy
score that will be displayed:
execute as @a if score @s Cre matches 1 run scoreboard players add <player> TK 1
Cre
has the score minecraft.killed:minecraft.creeper
and will detect when a player kills a creeper. TK
is the displayed score. The command adds 1 to the TK
score and this will show how many creepers the players have killed, or how many points a player has.
In the <player>
area you can add a custom name so that it will say something like, CreepersKilled
, but you won't be able to see which player it belongs to.
By adding a real player in the <player>
area you can test for specific players using their names, but this requires that you set up commands for every player separately.
And there is no way to display scores to only one player unless you use a plugin (and maybe a datapack).
As I said above it can be done if you know all players that will play and set up dedicated commands for each and every one. Otherwise, I would recommend using a plugin, can't give any suggestions on plugins sorry.
Answered by Semlan Bakelsen on June 19, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP