Code for Random Damage

Started by Brich036 on Mon, 07/18/2016 - 16:52

Topic category: Advanced modding

Last seen on 21:27, 13. Sep 2019
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Code for Random Damage
Mon, 07/18/2016 - 16:52

does somebody know a code to make a sword do random amount of damage between two Numbers (ex. 10-16) and the only other way i know is making a bunch of the same weapon and changing the Damage which will take up to much space in my mcreator Wrokspace.

Last seen on 19:49, 23. Sep 2016
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Isn't it something like you
Tue, 07/19/2016 - 11:03

Isn't it something like you set a range of damages and then you just change the event on left click to pick random?

Last seen on 21:27, 13. Sep 2019
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i see where you getting at
Tue, 07/19/2016 - 18:02

i see where you getting at butin the events there is nothing like that i dont think and im trying to avoid and a bunch of the same item just with differnt  Damage set. I want the Weapon itself to have a random Damage Range between two numbers