Making a projectile do something random

Started by robbiealexander on

Topic category: Help with MCreator software

Last seen on 15:17, 17. Mar 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a projectile do something random

hello! i'm trying to make a projectile that does something random when it hits an entity, but it's just not working. this is my current setup, i've tried local variables before and it still didn't work. the tutorial i found uses nbt data connected to the original item, but that doesn't seem possible with the trigger i'm using (When projectile hits living entity)

My procedure

 

 

Last seen on 18:19, 9. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need a random integer…
Sat, 10/08/2022 - 14:24

You need a random integer between 1 and 5. Random number gets numbers like 3.676546, which pretty much makes it impossible to return a value that's exactly 3