Jump to content

[1.16.5] overwriting the maximum build height


Nyko

Recommended Posts

I'm currently writing a mod in which I change vanilla features and add a few new features (from version 1.17).

now I want or try to enlarge the world size (height).

since i have no idea if this is possible and if so.

which I would then have to overwrite. my goal would be to expand the world by 128 down (to -128) and 64 up (to 320).

I assume that the whole thing will not be easy because I have to overwrite the whole world generation (ores, caves, decoration, etc).

Link to comment
Share on other sites

22 minutes ago, diesieben07 said:

World generation is your smallest problem. The save format doesn't support this in 1.16, so you basically can't.

it is possible to create a custom save format

Edit: or copy one from a old version like 1.15

Edited by Nyko
Link to comment
Share on other sites

Not easily.

And older save formats don't support an increased world height either.

(In fact, I'm pretty sure the current save format goes back to like 1.7. Edit: just checked, Anvil has been in use since 1.2.1)

Edited by Draco18s
  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

9 hours ago, Draco18s said:

Not easily.

And older save formats don't support an increased world height either.

thanks for the info, since the whole thing sounds pretty complicated, I will probably not change it

Link to comment
Share on other sites

  • 4 months later...

Minecraft 1.17 update is out and the Forge version is finally out too,
vanilla's datapack makes it possible to change the height of the world, is this also possible for a mod?

if it is possible how do i change the height?

Link to comment
Share on other sites

2 minutes ago, Nyko said:

if it is possible how do i change the height?

yes it is possible you have to overwrite the dimension-type file of the dimension in which you want to change the height (the values min_y and height)

Edited by Luis_ST
  • Thanks 1
Link to comment
Share on other sites

7 minutes ago, Luis_ST said:

yes it is possible you have to overwrite the dimension-type file of the dimension in which you want to change the height (the values min_y and height)

can I only use the vanilla values, so like y_min=-64 and height=384 or its possible to create a larger world?
so like y_min=-256 and height= 512?

Edited by Nyko
Link to comment
Share on other sites

yes you can create a world with max size 4112 (i think), so y_min=-2056 and height=2056
but the values you set in y_min or height should be:

value % 16 == 0

if this is not the case minecraft will use the default values so like y_min=0 and height=256

  • Thanks 1
Link to comment
Share on other sites

sorry, for asking but is it possible that the VerticalAnchor only work in the positive direction,
because i move currently my features into the new world height (-1024<->1024)
and if the VerticalAnchor is negativ they will not generate

Link to comment
Share on other sites

Just now, Nyko said:

sorry, for asking but is it possible that the VerticalAnchor only work in the positive direction,
because i move currently my features into the new world height (-1024<->1024)
and if the VerticalAnchor is negativ they will not generate

yep is possible i have the same problem, and i currently not found a solution for this problem

side question does your world load fine with a size of 2048?😅

  • Thanks 1
Link to comment
Share on other sites

1 minute ago, Luis_ST said:

yep is possible i have the same problem, and i currently not found a solution for this problem

okay thanks do you have an idea what i can do instead

 

1 minute ago, Luis_ST said:

side question does your world load fine with a size of 2048?😅

with a RenderDistance of 8 yes (i normally use the max value)😁

Link to comment
Share on other sites

1 minute ago, Luis_ST said:

very simple, move the world into positive direction so form -1024<->1024 to 0<->2048

omg i stupid
Another question what is the difference between Decoratable#rangeUniform and Decoratable#rangeTriangle

Link to comment
Share on other sites

1 minute ago, Luis_ST said:

generate the feature in a triangle like the new ores
like that:

so that would generate the feature like the coal ore in the picture:

.range(new RangeDecoratorConfiguration(TrapezoidHeight.of(VerticalAnchor.absolute(0), VerticalAnchor.absolute(192), 96)))

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • They were already updated, and just to double check I even did a cleanup and fresh update from that same page. I'm quite sure drivers are not the problem here. 
    • i tried downloading the drivers but it says no AMD graphics hardware has been detected    
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system  
    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.