climate stuff
This commit is contained in:
parent
7f17533c4e
commit
d366f42302
1 changed files with 18 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
const $ICalendar = Java.loadClass('net.dries007.tfc.util.calendar.ICalendar')
|
||||
|
||||
const $LerpFloatLayer = Java.loadClass('net.dries007.tfc.world.chunkdata.LerpFloatLayer')
|
||||
|
||||
const TICKS_IN_HOUR = $ICalendar.TICKS_IN_HOUR;
|
||||
const TICKS_IN_DAY = $ICalendar.TICKS_IN_DAY;
|
||||
const SIX_TIMES_TICKS_IN_HOUR = TICKS_IN_HOUR * 6;
|
||||
|
|
@ -133,6 +135,22 @@ TFCEvents.registerClimateModel(event => {
|
|||
model.setAirFog((level, pos, calendarTicks) => 0)
|
||||
model.setWaterFog((level, pos, calendarTicks) => 0.25)
|
||||
model.setWindVector((block, calendarTicks) => event.newVec2(0, 0))
|
||||
|
||||
//model.setCreateChunkData((level, chunkAccess, chunkData) => {
|
||||
|
||||
// const rainfallLayer = new $LerpFloatLayer(0, 0, 0, 0);
|
||||
// const tempLayer = new $LerpFloatLayer(-5, -5, -5, -5);
|
||||
|
||||
// chunkData.generatePartial(rainfallLayer, tempLayer, "none", 0, 0);
|
||||
|
||||
// let heightArray = [];
|
||||
// let aquiferArray = [];
|
||||
// for (var i = 0; i < 16 * 16; i++) {
|
||||
// heightArray[i] = 64;
|
||||
// aquiferArray[i] = 0;
|
||||
// }
|
||||
// chunkData.generateFull(heightArray, aquiferArray);
|
||||
//})
|
||||
})
|
||||
|
||||
event.registerClimateModel('tfg:mars_climate', model => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue