Create Ore Excavation

Create Ore Excavation

10M Downloads

Single Biome .biomeWhitelist Not Working?

CaptainMarTuuk opened this issue ยท 0 comments

commented

I'm using the following script to add Uranium from Alex's Caves as an Ore Vein, but only in Toxic Caves (since that's the only place the actual ore spawns).

`//Uranium from Alex's Caves
event.recipes.createoreexcavation.vein('{"text": "Uranium"}', 'alexscaves:uranium')
	.placement(2, 1, 24825175)
	.biomeWhitelist('alexscaves:toxic_caves')
	.id("kubejs:my_uranium_vein")
event.recipes.createoreexcavation.drilling('alexscaves:uranium', 'kubejs:my_uranium_vein', 800)
	.id("kubejs:my_vein5");`

Everything seem to be working fine, except for the fact that JEI shows no biomes in the biome whitelist when I check. I'm guessing the biomeID is incorrect, but I don't understand how that could be possible when doing /locate biome alexscaves:toxic_caves will take you to the toxic cave. Is there something I'm missing?

Does .biomeWhitelist only accept biome tags rather than allowing biome IDs as well?

EDIT: Just to be clear, I fixed this in my script by using KubeJS to make an alexscaves:has_uranium tag and then putting that tag into the .biomeWhitelist above, but I think it would be helpful to allow biome IDs to be used in the above instance, for niche cases where an ore spawns in only a single biome, such as here.