Advanced RGB Lamps 图标

Advanced RGB Lamps

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/advanced-rgb-lamps
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: decoration technology

资源介绍

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

Parameter Type Range
level integer 0 - 15

Usage:

lamp.setBrightness(8)
setRGB(r, g, b, [, brightness])

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

Parameter Type Range Required
r integer 0 - 255 yes
g integer 0 - 255 yes
b integer 0 - 255 yes
brightness integer 0 - 15 no

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

Parameter Type Range Required
hex string yes
brightness integer 0 - 15 no

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

Parameter Type Range Required
h number 0 - 360 yes
s number 0 - 100 yes
v number 0 - 100 yes
brightness integer 0 - 15 no

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)

Parameter Type Range
variant integer 0 - 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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
WGame

价格:0 墨喵币
下载量:0

查看详情
Vanilla Horizons

价格:0 墨喵币
下载量:0

查看详情
Craft

价格:0 墨喵币
下载量:0

查看详情
Fallen

价格:0 墨喵币
下载量:0

查看详情