EntityJS change mob biome spawns and height
I want help regarding adding mob biome spawns and changing at what height the mob spawns in
this is a ticket continuation from a another thread
@LiopyuAlt
EntityJSEvents.biomeSpawns(event => {
//Adds a spawn to the given entity type in the given biomes
event.addSpawn('alexscaves:gloomoth', ['lunarnether:outrocks'], 20, 3, 5)
event.addSpawn('alexscaves:corrodent', ['lunarnether:outrocks'], 120, 3, 5)
event.addSpawn('alexscaves:trilocaris', ['lunarnether:outrocks'], 20, 3, 5)
})
EntityEvents.checkSpawn('alexscaves:corrodent', event => {
if (event.type != "NATURAL") return
if (event.level.dimension == 'steamsmith:the_nether' && event.entity.block.y < 141) {
event.success(false)
}
})
so right where we left off
it doesnt seem to work apparently
explain the issue for new people who may want to help
sure one sec
by modifying your post description please
should do
and have you tried the script yet?
↶ Replying to Aaby : ```EntityJSEvents.biomeSpawns(event => {
//Adds a spawn to the given entity type in the given biomes
event.addSpawn('alexscaves:gloomoth', …
these were the last changes
are these alexscaves mobs just weird?
cus i feel like this shouldnt really take all this work ðŸ˜
i was really just expecting it to work off of the example scripts but oh well
remove the checkspawn event and see if they'll spawn at all
have they ever spawned in the nether in your testing?
↶ Replying to LiopyuAlt : have they ever spawned in the nether in your testing?
↶ Replying to LiopyuAlt : remove the checkspawn event and see if they'll spawn at all
yup can confirm
removing the checkspawn spawns them in
but at very odd y levels thats why i want to shift them up
ok good, then invert the "<" again ig 

its something to do with that if statement, i would also console.log(event.type) and make sure its "NATURAL"
↶ Replying to LiopyuAlt : its something to do with that if statement, i would also console.log(event.type) and make sure its "NATURAL"
good, now do the same for
event.level.dimension
and event.entity.block.y
then make sure your conditions are correct
oh wait
↶ Replying to LiopyuAlt : good, now do the same for `event.level.dimension` and `event.entity.block.y`
one did spawn but it did not really respect the conditions
or i am not even sure if these guys instantly dig down when they spawn??
so hard to tell
liopyu if you dont mind, are you able to test this on your own? you would really just need 2 mods "lunar nether" and alexs caves ofc
i just wanna make sure its not me ðŸ˜
only if you can btw
ah i see why they always spawn there
i think in the nether mob spawning always require them to be under a roof or something?