With /scoreboard objectives add killCount playerKillCount Kills
I can make a Kill Counter, but I want to convert the kill point in a in-game vanilla currency that I created with /scoreboard objectives add Money dummy Money
. How can I add money just for the killer and not for every person online on the server? I'm using scoreboards for the first time and I'm a bit confused.. The scoreboard is player-related or keeps track of every player online in a unique scoreboard?
Minecraft – Convert player kill count in money [Vanilla]
minecraft-java-edition
Related Topic
- Minecraft Java Edition – How to Award a Player on Every Kill Using Command Blocks
- Minecraft – How to detect which specific mob was killed by a player and increase a score accordingly
- Minecraft Java Edition – @p Selector Shop Efficiency in Vanilla Minecraft
- Minecraft Java Edition – How to Test for a Kill Made by an Entity
- Minecraft Java Edition – Making Scoreboard Objectives Universal in Minecraft: Step-by-Step Guide
- Minecraft Java Edition – Is There a Way to Put Spaces in a Scoreboard Player Name?
Best Answer
With Scoreboard operations you can set/change the value of one players scoreboard to another player's (May be the same) score in another objective (may be the same objective). The scoreboard is univeresal, in the scoreboard there are objectives, which are sub divisions of the scoreboard. In each objective each player can have a score, the score of the player exists only in that objective and MAY be different in other objectives.
The solution: Every tick add the player's kill count to his money and reset his kill count
Setup:
Clock(20 tick):