Sueta

Lasers [Mechanics | Redstone]

2.1.1-SNAPSHOT

Functional Laser redstone devices! Multiple colors & Mirrors

·Plugin

This plugin adds fully functional, craftable Lasers!



I enjoy making all of my plugins for free, but I need your help to keep them for free.

If you are in Minecraft 1.8 or lower, please use version 1.1.1.
If you are using Minecraft 1.9, please use version 1.2.2.

YouTube

Crafting Recipes

Laser Crystal

(Required to craft Emitter & Receiver)

Laser Emitter

Laser Receiver

Mirror Rotator

Blocks

Emitter
The Laser Emitter will create Laser beams if you provide redstone power


Receiver
The Laser Receiver will provide power to an comparator if a Laser beam hits its face

Depending on your configuration, the signal strength is either based on the distance to the last redirect or on the laser beam's color.

Lenses
Lenses (Stained glass) will change the color of the Laser beam


Mirrors
Mirrors (Banners) will redirect Laser beams, depending on the laser's angle. They will also influence the color of the beam

Mirror Rotators
The mirror rotators can rotate mirrors depending on redstone input.

Details on how the rotator redstone works

This is split in two parts, depending on your configuration

Strength mode

This is the easiest mode.
The mirror rotates depending on the signal strength.

Side mode
This one is a bit more complicated.
The rotation depends on the signal strength provided from all 4 sides of the rotator.

  • If power is provided on one side only, it rotates towards in input side.
  • If the signal strength provided from two sides is the same, it rotates by 45° between both sides
  • If the provided signal strength differs, it rotates towards the side with the higher signal strength

More example configurations


Additional notes:

  • The default length of laser beams is 16 blocks if it is not redirected by mirrors
  • Emitters & Receivers can be placed in all directions
  • The provided power of receivers depends on the length of a Laser beam
  • details on the mirror rotation can be found in the spoiler above

Tutorials

YouTube
(German)

Commands
/lasers item <CRYSTAL|EMITTER|RECEIVER> - Gives you the specified item

Config

laser:
  #Interval of the laser particles
  interval: 2
  #Maximum length of laser beams
  length: 16
  #Frequency of the laser particles
  frequency: 0.25
  damage:
    #If lasers damage entities
    enabled: true
    #Damage amount
    amount: 0.25
    #If entities are set on fire
    fire: true
    #Death message
    message: '%player% tried to stand in front of a laser'
color:
  #If mirrors change the laser's color
  mirror: true
  #If glass changes the laser's color
  glass:
    block: true
    pane: true
  #If the colors are mixed. If disabled, the color will be replaced
  mix: true
mirrors:
  #If mirrors are reflective on both sides
  double: false
  rotator:
    #Mode of the Mirror Rotator
    #Available modes:
    #'side' - The rotation depends on the side the power is provided from
    #'strength' - The rotation depends on the signal strength
    mode: 'side'
blocked:
  #If lasers are blocked by non-transparent blocks
  blocks: true
   #If lasers are blocked by living entities
  entities: true
receiver:
  signal:
    #Receiver signal mode
    #Available modes:
    #'distance' - signal strength changes based on the distance to the last redirect (e.g. a Mirror)
    #'color' - signal strength changes based on the laser color (black = 0; red = 1; ...; orange = 14; white = 15)
    mode: 'distance'
    #Tolerance for the color mode (How accurate the color detection is)
    tolerance: 25

Links

Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.

Similar projects

Plugin →