1

Command challenge

a_creeper_won 9/26/16 12:17 pm
350
9/30/2016 8:04 am
Say, you were building a map and you want to remove 10% of a score every time you die. what commands would you use to do it? P.S.: I already know the answer but I want to challenge you
Posted by
a_creeper_won
Level 18 : Journeyman Explorer
2

  Have something to say?

JoinSign in

2

Pepijn
09/30/2016 8:04 am
Level 58 : Grandmaster Cyborg
You multiple the score by 9 and then divide it by 10 (x * 9 / 10 = x * 0.9 = 90% of x) everytime a player dies (using a death scoreboard). Can't just multiply by 0.9 because scoreboard only works with integers.
1
Suphacker_Tem
09/30/2016 7:27 am
Level 3 : Apprentice Network
two repeating command blocks next to each other one has/scoreboard players remove @a[score_Deaths_min=1] Points 10 this will remove 10 points every time anyone dies. the second one has/scoreboard players set @a Deaths 0. How did I do?
1

Welcome