fixed ad astra's lamps so they actually emit light lmao
This commit is contained in:
parent
7075f7eff1
commit
5805f9c082
2 changed files with 15 additions and 1 deletions
14
kubejs/startup_scripts/ad_astra/modifications.js
Normal file
14
kubejs/startup_scripts/ad_astra/modifications.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// priority: 0
|
||||
|
||||
function registerAdAstraBlockModifications(event) {
|
||||
|
||||
// these lamps don't actually emit light for some reason
|
||||
global.MINECRAFT_DYE_NAMES.forEach(color => {
|
||||
event.modify(`ad_astra:${color}_industrial_lamp`, block => {
|
||||
block.lightEmission = 15
|
||||
})
|
||||
event.modify(`ad_astra:small_${color}_industrial_lamp`, block => {
|
||||
block.lightEmission = 15
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ StartupEvents.registry('block', event => {
|
|||
* Событие изменения блоков.
|
||||
*/
|
||||
BlockEvents.modification(event => {
|
||||
// modifyFirmaCivBlocks(event)
|
||||
registerAdAstraBlockModifications(event)
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue