Changing Shader yet again due to complaints, many adds, few removes
highlights: Complementary Unbound shaders because savannah won't stop complaining that she can't see anything. She configured this one I haven't seen it. Yung structures JER integrates with JEI to show monster loot tables (useful for this type of pack) loot integrations ars noveau addons moremob variants and compatibility with fresh anims alexcaves submarine & such removed some shitty mods for being shitty.
This commit is contained in:
@ -1,51 +1,16 @@
|
||||
// priority: 0
|
||||
/*
|
||||
// Visit the wiki for more info - https://kubejs.com/
|
||||
EntityEvents.entityCheckSpawn(event => {
|
||||
const { entity, level, pos, spawnReason } = event;
|
||||
/*EntityEvents.spawned(event => {
|
||||
const { entity } = event;
|
||||
|
||||
// Only apply restrictions to natural spawns
|
||||
if (spawnReason !== 'natural') return;
|
||||
if (entity.spawnReason !== 'natural') return;
|
||||
|
||||
const spawnRules = {
|
||||
'minecraft:creeper': {
|
||||
dimensions: ['minecraft:the_nether'],
|
||||
blockWhitelist: ['minecraft:netherrack'],
|
||||
minLight: 0,
|
||||
maxLight: 14,
|
||||
timeRange: [0, 24000] // Night
|
||||
},
|
||||
'minecraft:enderman': {
|
||||
dimensions: ['minecraft:overworld'],
|
||||
blockWhitelist: ['minecraft:grass_block'],
|
||||
minLight: 0,
|
||||
maxLight: 7,
|
||||
timeRange: [12000, 24000] // Late dusk/night
|
||||
}
|
||||
};
|
||||
switch (entity.type) {
|
||||
case "entity.man.
|
||||
|
||||
const rule = spawnRules[entity.type];
|
||||
if (!rule) return; // No restrictions
|
||||
|
||||
const dimMatch = rule.dimensions.includes(level.dimension);
|
||||
const blockBelow = level.getBlock(pos.down()).id;
|
||||
const blockMatch = rule.blockWhitelist.includes(blockBelow);
|
||||
const light = level.getRawBrightness(pos);
|
||||
const lightMatch = light >= rule.minLight && light <= rule.maxLight;
|
||||
const timeOfDay = level.dayTime % 24000;
|
||||
const timeMatch = timeOfDay >= rule.timeRange[0] && timeOfDay <= rule.timeRange[1];
|
||||
|
||||
if (!(dimMatch && blockMatch && lightMatch && timeMatch)) {
|
||||
event.cancel();
|
||||
}
|
||||
});
|
||||
|
||||
EntityEvents.removeSpawn(event => {
|
||||
event.remove('minecraft:overworld', 'minecraft:creeper');
|
||||
event.remove('minecraft:the_end', 'minecraft:enderman');
|
||||
}); GPT GARBAGE
|
||||
*/
|
||||
|
||||
/*
|
||||
@silytonta
|
||||
Is there a way for me to make mobs spawn in a dimension/biome that they usually dont?
|
||||
|
Reference in New Issue
Block a user