GnaspGames / Smelt

A CLI tool for Minecraft map makers
http://smelt.gnasp.com
MIT License
19 stars 4 forks source link

Adding !math #9

Closed M4GNV5 closed 8 years ago

M4GNV5 commented 8 years ago

Note: this is based on: #8

Math plugin usage:

!math <objective>.<selector> <operator> <expression>

for example:

/scoreboard objectives add money dummy
/scoreboard players set lotteryPot money 1337
!math money.@r += (money.lotteryPot - 10) / 2