#mod-dev-talk Friday 26 November 2021
20 messages2 people
- F
- J
- F
- J00:07So 10 blocks in the aether is 100 in the overworld
- F00:09where is the scaling defined? (I was making my own dimension and I want it to scale but I don't know how)
- J00:10It's not technically defined in terms of the dimension, but in terms of the portals00:10The nether portal has the scale factor, not the nether00:12Here's what our code looks like:
(edited)CustomPortalBuilder.beginPortal() .frameBlock(Blocks.GLOWSTONE) .customPortalBlock(AetherBlocks.BLUE_PORTAL) .destDimID(Aether.locate(Aether.MOD_ID)) .tintColor(55, 89, 195) .lightWithWater() .onlyLightInOverworld() .registerInPortalAmbienceSound(player -> new CPASoundEventData(AetherSoundEvents.BLOCK_AETHER_PORTAL_TRIGGER, player.getRandom().nextFloat() * 0.4F + 0.8F, 0.25F)) .registerPostTPPortalAmbience(player -> new CPASoundEventData(AetherSoundEvents.BLOCK_AETHER_PORTAL_TRAVEL, player.getRandom().nextFloat() * 0.4F + 0.8F, 0.25F)) .registerPortal();00:13Er, actually wait a second - F
- J00:17in
data/[mod_id]/dimension_type/[dimension].json(edited) - F
- J
- F