projectors

Feb 24, 2019
projectors

  • You can't set individual projectors, They are now grouped to synchronize their movements.
    Each group is identified by a color (red,blue,green,light_purple,ect...)

    1. Create your first group:
    /pnc projector place <groupcolor>
    Available groups: red,blue,yellow,light_purple,dark_purple,gold,green,dark_green,white

    /pnc projector place red
    The plugin will give you an end_rod inside your inventory, use it to place projectors for group red
    When you have finished you can execute the command again to toggle the mode. (/pnc projector place red)

    If you made a mistake in your projector placement:
    You can't quickly fix it right now ( I will implement /pnc projector remove <group> <id> soon)
    So you need to start over by resetting the group color in projector.yml, just remove the entire red section
    Code (Java):
    groupsColor:
      red:
        rotation:
          UpSideDownRotation:
            together: false
            random: true
            maxDownUpDegree: 40
          CircleProgressiveRotation:
            radius: 30
            speed: 5
            distanceBetweenEachProjector: 10
          InfiniteProgressiveRotation:
            radius: 30
            speed: 5
            distanceBetweenEachProjector: 10
          LeftSideRightRotation:
            together: false
            random: true
            maxDownUpDegree: 40
          LeftRightWaveRotation:
            maxLeftRightDegree: 140
            speed: 5
          UpDownWaveRotation:
            maxUpDownDegree: 60
            speed: 5
          RandomRotation:
            speedDrag: 5
            radius: 20
        '0':
          support:
            ==: org.bukkit.Location
            world: world
            x: 101.0
            y: 82.0
            z: -62.0
            pitch: 27.90885
            yaw: 89.28662
          position: WEST
        '1':
          support:
            ==: org.bukkit.Location
            world: world
            x: 101.0
            y: 82.0
            z: -60.0
            pitch: 27.90885
            yaw: 89.28662
          position: WEST
        '2':
          support:
            ==: org.bukkit.Location
            world: world
            x: 101.0
            y: 82.0
            z: -58.0
            pitch: 27.90885
            yaw: 89.28662
          position: WEST

    You should have something like that:
    groupsColor: {}

    or
    groupsColor:
    blue:
    ect..

    2. Synchronize your group

    If you want to use synchronized rotation (for example, all projectors will draw a circle) you should synchronize they direction. (All projectors will target the same direction) Because when you are placing the projector it will target you.

    You can synchronize your group only if all projectors are placed on the same line

    [​IMG]
    Or
    [​IMG]


    But these projectors are not on the same line, So you will probably get a glitched synchronization

    [​IMG]


    You can check this video if you need help:

    The command: /pnc projector sync <group>
    Now you can move where you want projector target.
    if you are satisfied you can now use /pnc projector sync confirm or /pnc projector sync cancel.

    You can now open the menu to test the projector rotations: /pnc menu (this command will give you a special item to open the menu)

    3. Last step, configure rotation movements:

    Each projector groups has a rotation part inside projector.yml

    Code (Text):
     
    UpSideDownRotation:
            together: false //if false pair projectors will rotate up and down, and unpair will rotate down and up
            random: true // if true, the up and down pitch will be random
            maxDownUpDegree: 40
          CircleProgressiveRotation:
            radius: 30
            speed: 5
            distanceBetweenEachProjector: 10
          InfiniteProgressiveRotation:
            radius: 30
            speed: 5
            distanceBetweenEachProjector: 10
          LeftSideRightRotation:
            together: false
            random: true
            maxDownUpDegree: 40
          LeftRightWaveRotation:
            maxLeftRightDegree: 140
            speed: 5
          UpDownWaveRotation:
            maxUpDownDegree: 60
            speed: 5
          RandomRotation:
            speedDrag: 5 // a higher value will slow the rotation
            radius: 20
    When your config is ready, just use /pnc nightclub reload

    4. You can now setup effects
  • Loading...
  • Loading...