使用此功能大概需要以下几步:
- 找到并打开Config/Sponge/Globle.cfg文件
- 在“modules”模块下找到“tileentity-activation=false”,将对应的值改为true
- <b>modules</b> {
- block-capturing-control=true
- bungeecord=false
- entity-activation-range=true
- entity-collisions=true
- exploits=true
- game-fixes=false
- optimizations=true
- # Use real (wall) time instead of ticks as much as possible
- realtime=false
- # Controls block range and tick rate of tileentities.
- # Use with caution as this can break intended functionality.
- <b> tileentity-activation=true</b>
- timings=true
- tracking=true
- }
复制代码
- 找到“tileentity-activation”模块,将“auto-populate”对应的值设置为true
- tileentity-activation {
- # If enabled, newly discovered tileentities will be added to this config with default settings.
- auto-populate=true(笔者注:自动获取可修改的TileEntity并记录在下面)
- # Default activation block range used for all tileentities unless overidden.
- default-block-range=256(笔者注:只有在此范围内有玩家时才为对应的方块激活,否则不会更新)
- # Default tick rate used for all tileentities unless overidden.
- default-tick-rate=1(笔者注:若将默认tick率设为X,获得的Tick为20/X,即当x=10,实际获得2tick/秒)
- # Per-mod overrides. Refer to the minecraft default mod for example.
- mods {}
- }
复制代码
- 保存文件并重启服务端 (注意:此处必须重启服务端侧能生效,亲测重载指令无效)
- 重启后,再次打开Global.cfg,修改对应的TileEntity的Tick值(此处以量子太阳能举例)
- tileentity-activation {
- # If enabled, newly discovered tileentities will be added to this config with default settings.
- auto-populate=true
- # Default activation block range used for all tileentities unless overidden.
- default-block-range=256
- # Default tick rate used for all tileentities unless overidden.
- default-tick-rate=1
- # Per-mod overrides. Refer to the minecraft default mod for example.
- mods {
- "advanced_solar_panels" {
- block-range {
- [b]"advanced_solar_panels:quantum_solar_panel"=512[/b]
- }
- # Set to false if you want mod to ignore tileentity activation rules and always tick.
- enabled=true
- tick-rate {
- [b]"advanced_solar_panels:quantum_solar_panel"=20[/b]
- }
- }
- }
复制代码 此处的量子太阳能将仅在512格内有玩家时才会获得tick,默认每秒获得1tick(每秒产一次电,神特么优化有木有) - 将你认为卡服并且无需获取过多Tick的TileEntity设置完成后,保存文件,在游戏中输入"/Sponge -g reload"
- 大功告成。
|