▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Advanced RGB Lamps
Advanced RGB Lamps

Advanced RGB Lamps

An RGB Lamp mod, with optional colored lighting & computercraft support

Оцените первым
302
4

Advanced RGB Lamps

An RGB lamp mod that has 10 different lamp variations and optional Colorful Lighting & Computercraft support

Demonstration

Usage

Lamp Configurator Tool:

You can use the Lamp Configurator Tool by shift right clicking on a lamp, this opens the color and brightness configuration by default, modes can be switched between Edit, Copy, Paste& Debug by pressing P while holding the tool.

Crafting Recipes

Lamp Configurator Tool:

!Lamp Configurator Tool Crafting Recipe

Led Diode:

!LED Diode Crafting Recipe

Advanced RGB Lamp:

!Advanced RGB Lamp Crafting Recipe

Stonecutter:

!Stone Cutter Variants

CC:Tweaked API Reference

setBrightness(level)

Sets the lamp brightness

ParameterTypeRange
levelinteger0 - 15

Usage:

lamp.setBrightness(8)

setRGB(r, g, b, [, brightness])

Sets the lamp color from individual Red, Green & Blue components

ParameterTypeRangeRequired
rinteger0 - 255yes
ginteger0 - 255yes
binteger0 - 255yes
brightnessinteger0 - 15no

Usage:

lamp.setRGB(255, 128, 0) -- Sets color to orange without changing brightness
lamp.setRGB(255, 128, 0, 15) -- Sets color to orange and brightness to 15

setHex(hex [, brightness])

Sets the lamp color from a hex color string

ParameterTypeRangeRequired
hexstringyes
brightnessinteger0 - 15no

Usage:

lamp.setHex("FF8800") -- Sets color to orange without changing brightness
lamp.setHex("FF8800", 15) -- Sets color to orange and brightness to 15

setHSV(h, s, v [, brightness])

Sets the lamp from Hue, Saturatuon & Value components

ParameterTypeRangeRequired
hnumber0 - 360yes
snumber0 - 100yes
vnumber0 - 100yes
brightnessinteger0 - 15no

Usage:

lamp.setHSV(32, 100, 100) -- Sets color to orange without changing brightness
lamp.setHSV(32, 100, 100, 15) -- Sets color to orange and brightness to 15

setVariant(variant)

Sets the lamp variant (see gallery for all variants)

ParameterTypeRange
variantinteger0 - 9

Usage:

lamp.setVariant(3)

getBrightness()-> level

Gets current lamp brightness

Usage:

local brightness = lamp.getBrightness()

getRGB()->r, g, b`

Gets current color in Red, Green & Blue components

Usage:

local r, g, b = lamp.getRGB()

getHex() -> hex

Gets current color as a Hex string

Usage:

local hex = lamp.getHex()

getHSV() -> h, s, v

Gets current color as Hue, Saturatuon & Value components

Usage:

local h, s, v = lamp.getHSV()

getVariant() -> variant

Gets current variant

Usage:

local variant = lamp.getVariant()

Notes:

The Colorful Lighting mod is required for colored lighting, this mod is not compatible with the sodium/embeddium fork of Colorful Lighting.

Use in modpacks is allowed, no permission is required.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Зависимости

Ссылки


Создатели

Детали

Лицензия:
Опубликован:4 месяца назад
Обновлён:4 месяца назад
Главная