More Dragon Eggs

More Dragon Eggs

22M Downloads

[1.16] Incompability with Endergetic Expansion

GrigLog opened this issue ยท 6 comments

commented

EE overrides vanilla dragon nest and makes it 1 block higher. EE tweaks vanilla code to make the egg spawn 1 block higher, but your codee does not and 2+ eggs dont spawn.
Solution: change the code to

World world = event.getEntity().getEntityWorld();
BlockPos pos = world.getHeight(Heightmap.Type.MOTION_BLOCKING, EndPodiumFeature.END_PODIUM_LOCATION);
while (world.getBlockState(pos).getBlock() != Blocks.AIR) pos.up();
world.setBlockState(pos, Blocks.DRAGON_EGG.getDefaultState());

commented

Screenshot_238
nest 4 blocks height instead of vanilla 3

commented

BlockPos pos = world.getHeight(Heightmap.Type.MOTION_BLOCKING, EndPodiumFeature.END_PODIUM_LOCATION);

This gets the topmost empty position at that location. I don't think moving the block higher would help?

commented

BlockPos pos = world.getHeight(Heightmap.Type.MOTION_BLOCKING, EndPodiumFeature.END_PODIUM_LOCATION);

This gets the topmost empty position at that location. I don't think moving the block higher would help?

It gets the topmost position for vanilla generation. EE replaces bedrock blocks with its own (and it does it very strange, because, for example, when you delete DIM1 folder and let The End generate second time, it generates without the nest (?!?)).
And Ive just built this code and tested with EE, it works.

commented

Hmm it might only see full blocks.

commented
  • no working in 1.19.2
commented

BlockPos pos = world.getHeight(Heightmap.Type.MOTION_BLOCKING, EndPodiumFeature.END_PODIUM_LOCATION);
This gets the topmost empty position at that location. I don't think moving the block higher would help?

It gets the topmost position for vanilla generation. EE replaces bedrock blocks with its own (and it does it very strange, because, for example, when you delete DIM1 folder and let The End generate second time, it generates without the nest (?!?)). And Ive just built this code and tested with EE, it works.

give please 1.19.2 Forge worked build