Beacon
High-level API
Device name:
beaconProvided by beacons connected to a bus interface.
Methods
getLevels():numberGets how many levels the pyramid below the beacon has.
- Returns the levels, from
0 to 4.getPrimaryEffect():stringGets the primary effect the beacon grants.
- Returns the name of the effect, such as
minecraft:speed, if set.getSecondaryEffect():stringGets the secondary effect the beacon grants.
- Returns the name of the effect, such as
minecraft:regeneration, if set.Mid-level API
Device name:
BEACONMethods
1 getLevelsReads how many levels the pyramid below the beacon has.
- Returns one byte, the levels.
2 getPrimaryEffectReads the primary effect the beacon grants.
- Returns the name, such as
minecraft:speed, if set. Read while OCDAV is set to read fully.3 getSecondaryEffectReads the secondary effect the beacon grants.
- Returns the name, such as
minecraft:speed, if set. Read while OCDAV is set to read fully.