Jump to content

Recommended Posts

Posted

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).

Posted (edited)
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
Posted (edited)

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.

Posted
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

  • 4 months later...
Posted

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?

Posted (edited)
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
Posted (edited)
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
Posted

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
Posted

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

Posted
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
Posted
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)😁

Posted
Just now, Nyko said:

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

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

 

  • Thanks 1
Posted
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

Posted
Just now, Nyko said:

Decoratable#rangeUniform

generates the feature between the first and second value

1 minute ago, Nyko said:

Decoratable#rangeTriangle

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

ore_distribution.jpg

  • Thanks 1
Posted
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)))

 

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



×
×
  • Create New...

Important Information

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