Random Rotation Entity

Discussion in 'Plugin Development' started by HeavyMine13, May 31, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    HeavyMine13

    Hey! So I have a snowman which is always snowballing. I want him to change into random rotations. I tried this code but it did not work. Please help.

    Code:java
    1.  
    2. Location lt = .....;
    3. lt.setYaw((float) (Math.random() * 360.0D));
    4. snw.teleport(lt);
     
Thread Status:
Not open for further replies.

Share This Page