1 Unstar Star 0 Fork 0

Himmelt / LightAreaJavaMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
LightArea [点亮区域] spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

点亮区域

简介

该Mod可以在服务端创建特殊亮度的区域,当玩家进入该区域时,其客户端会切换对应亮度(Gamma值), 玩家离开区域时恢复原亮度。

通过提高Gamma值,可以不用添加发光方块而达到提高建筑内部亮度的效果,同时能完美地消除建筑内部极其丑陋的阴影。

如果将Gamma值设置得较低(小于1)还可以实现将指定区域的夜色变得更黑暗的效果。

注意,Gamma值带来的亮度只是画面效果,并不会改变实际亮度,即不会改变阳光传感器检测到的值。

特性

  1. 手持选区工具(默认木斧)左键选择起点,右键选择终点。
  2. 在安装有WE-CUI的客户端,可以像WE一样显示选区边界。
  3. 单文件支持 1.7.10 及以后版本。
  4. 配置文件已转移到主世界存档目录下,单机时每个存档都使用各自的配置文件,服务器则使用主世界存档目录下的配置文件。

指令

/light pos1             设置玩家当前位置为选区起点
/light pos2             设置玩家当前位置为选区终点
/light create [light]   根据选区创建区域,可选参数[light]为亮度级别[-15.0 - 15.0]
/light delete           删除玩家当前所在的区域
/light info             显示玩家当前所在区域的信息,如果客户端安装有WE-CUI,则会显示范围
/light list [dim|all]   列出(某世界的)所有区域,没有参数时为玩家所在世界,参数为all时为全部世界,参数为整数时,为对应维度的世界
/light tp <id>          传送到指定id的区域的中心位置
/light level [light]    查看/设置当前区域的亮度
/light tool             手持为空,查看选区工具;手持非空,设置选区工具为当前手持物
/light speed [speed]    查看/设置亮度变化速度(变化值/tick)

更新日志

1.0.8:
  - 添加 list 指令,列出区域列表,并可以通过点击文字传送
  - 添加 tp 指令,可以传送到指定id区域的中心
  - 修复 原始亮度,原始亮度最大值限制为1.0
1.0.6:
  - 添加 speed 指令,添加亮度变化速度配置项和对应功能
  - 调整 配置文件存放位置调整为存档目录
1.0.5:
  - 添加 1.8|1.8.8|1.8.9|1.9|1.9.4 支持
  - 修复 1.8 事件BUG
  - 添加 区域冲突提示,不允许区域之间有重叠部分
1.0.3:
  - 更新 对 1.7.10|1.10.x|1.11.x|1.12.x 支持
1.0.1:
  - 调整 亮度范围调整为 [-15.0 - 15.0]
1.0.0:
  - 添加 WE_CUI 支持

LightArea

Description

This mod can create areas with specific light. When players move into these areas, their clients will change the light(gamma) to the specific light. When they move out the area, the client will restore the original light.

By increase the gamma value, we can light the buildings' inside without luminous block and erase all the dark corners of the buildings.

If we set the gamma lower than 1.0, we can make the area darker.

Notice, The light of gamma is just video effect, the real light(value of Daylight Sensor) is not changed.

Features

  1. Hold the select tool(default WoodenAxe), left click to set the start point, right click to set the end point.
  2. The client with WE-CUI mod can show the selected area's border.
  3. Single file supports 1.7.10 version and higher.
  4. Config file has been moved to world's save location, each save has a config file. On server side, config is loaded from overworld's save location.

Commands

/light pos1             set player's pos as area start point
/light pos2             set player's pos as area end point
/light create [light]   create area by current selected area, the optional arg is light (range: -15.0 - 15.0)
/light delete           delete the area at player's pos
/light info             show the info of the area at player's pos
/light list [dim|all]   list the world's areas, empty args using player's world, arg "all" will list all world's areas, 
int arg using the world with the dimension
/light tp <id>          teleport to area's center of the id
/light level [light]    get/set the current area's light
/light tool             hand empty, show select tool; hand item,set select tool to the item in hand
/light speed [speed]    get/set light change speed (float/tick)

Comments ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/himmelt/LightArea.git
git@gitee.com:himmelt/LightArea.git
himmelt
LightArea
LightArea
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542