Minecraft Data Packs / Technology

[MCdatapack]Random Terrain Generation Pack(随机生成地形算法)

  • check_circle Functions
  • check_circle Predicates
  • 487 views, 6 today
  • 54 downloads, 0 today
  • 2
  • 3
dreamson_'s Avatar dreamson_
Level 10 : Journeyman Miner
1
中文介绍:

——————————————数据包介绍——————————————

这个数据包实现了随机生成地形的功能

对原有的地形算法进行了扩展、优化以及修补

每次生成的地形都不一样

生成的内容有:草、花、2种树木、树林、岩浆湖、矿物

树木总会有一块正方形的树木地带作为森林

花的种类有:蒲公英(dandelion)、虞美人(poppy)、兰花(blue orchid)、绒球葱(allium)、茜草花(azure bluet)、红色郁金香(red tulip)、橙色郁金香(orange tulip)、白色郁金香(white tulip)、橙色郁金香(pink)、滨菊(oxeye daisy)、矢车菊(cornflower)、林兰(lily_of_the_valley)

树木分为白桦树和橡树,比例为7:3

岩浆湖在地底随机生成分布

矿物分布分为3层,每层的矿物分布都不一样

——————————————使用方法——————————————

先试用命令加载数据包

/function random_generate:import

警告:加载数据包会破坏原有的地形并生成边界!请使用超平坦或虚空世界加载数据包!!

然后使用指令开始生成地形

/function random_generate:start_generate

警告:数据包生成时会填充大量的方块,可能会导致一些卡顿,但切记不要退出游戏。生成仅需40秒,期间可以仔细阅读本篇文章。

——————————————特别鸣谢——————————————

感谢b站@明灯owo和b站@ms12667所提供的算法原理基础教程

——————————————国内视频——————————————

https://www.bilibili.com/video/BV1zW421c7Ls/?spm_id_from=333.999.0.0&vd_source=b42dbe551e66558c395e84685c7d6e4a



English:

-------------------------PACK DESCRIPTION-------------------------

This packet implements random terrain generation.

It extends, optimizes and patches the existing terrain gennerate algorithm.

The terrain generated is different every time.

Generated content: grass, flowers, 2 types of trees, woods, lava lakes, different ores.

Trees always have a square area of trees as a forest.

Flowers: dandelion, poppy, blue orchid, allium, azure bluet, red tulip, orange tulip, white tulip, pink, oxeye daisy, cornflower, lily of the valley.

Trees are divided into birches and oaks in a ratio of 7:3.

Lava lakes are randomly generated and distributed underground

Ores distribution is divided into 3 layers, each with a different ore distribution.

-------------------------HOW TO USE-------------------------

First, load the data pack with the command:

/function random_generate:import

WARNING: Loading datapacks will destroy existing terrain and generates borders! Please use a flat or void world to load the data pack!

Then use the command to start generating terrain

/function random_generate:start_generate

WARNING: The generation will fill a lot of blocks and may cause some lag, but do not quit the game. Generation takes only about 40 seconds, during which time you can read this passage carefully.

------------------------- SPECIAL THANKS-------------------------

Thanks to two uploaders on BiliBili for the basic tutorial on the principles of algorithms

Here’s the link: https://www.bilibili.com/video/BV1vV411T7iY/?spm_id_from=333.999.0.0&vd_source=b42dbe551e66558c395e84685c7d6e4a

https://www.bilibili.com/video/BV1X54y1T7Yr/?spm_id_from=333.999.0.0&vd_source=b42dbe551e66558c395e84685c7d6e4a
Creditdreamson_xiaoyuanzi
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome