Minecraft 版本:Java 版 1.21.1
类型:基于数据包的 Minecraft 项目
核心机制:当玩家破坏方块时,在破坏位置生成一个随机结构。
- 核心系统
该项目应包含:
检测玩家何时破坏方块。
选择一个随机结构。
在破坏方块处或附近生成所选结构。
支持所有正常的下界上层(主世界)方块作为触发器。
防止由结构自身生成的方块导致系统重复触发。
在生存模式中正常工作。
支持多人游戏。
避免因生成过多结构而产生严重卡顿。
包含可配置的冷却时间。
2. 结构类别
包含大量不同类型的结构:
小型
小房子
农场
瞭望塔
营地
水井
破败小屋
中型
村庄房屋
铁匠铺
塔楼
神庙
堡垒
豪宅
矿井入口
大型
城堡
大型村庄
要塞
巨型塔楼
大型豪宅
地下基地
原版风格
废弃传送门
废弃矿道
沙漠神殿
丛林神殿
海底神殿
林地府邸
stronghold(要塞)
远古城市
末地城
3. 生物系统
结构应根据其类型填充生物。
村庄结构
村民
铁傀儡
猫
牛
猪
羊
鸡
马
驴
城堡/要塞
僵尸
骷髅
蜘蛛
苦力怕
女巫
掠夺者
卫道士
唤魔者
劫掠兽
废弃矿道
洞穴蜘蛛
蜘蛛
僵尸
骷髅
苦力怕
女巫
沙漠
尸壳
骷髅
蜘蛛
苦力怕
骆驼
兔子
雪地
流浪者
狼
北极熊
山羊
骷髅
僵尸
海洋
溺尸
守卫者
远古守卫者
鱿鱼
发光鱿鱼
海豚
美西螈
鳕鱼
三文鱼
河豚
下界
烈焰人
凋灵骷髅
猪灵
猪灵蛮兵
僵尸猪灵
恶魂
岩浆怪
疣猪兽
僵尸疣猪兽
末地
潜影贝
末影人
末影螨
4. 稀有结构
使某些结构极其稀有且更加危险。
示例:
远古城市
监守者
骷髅
僵尸
下界要塞
烈焰人
凋灵骷髅
猪灵
末地城
潜影贝
末影人
极稀有首领结构
凋灵
我不希望破坏方块时自动生成末影龙。使首领结构极其稀有并可配置。
- 随机性
使用不同的稀有度等级:
结构 稀有度
小房子 非常常见
农场 非常常见
塔楼 常见
村庄 常见
城堡 不常见
豪宅 罕见
神庙 罕见
废弃矿道 罕见
远古城市 极罕见
末地城 极罕见
首领竞技场 极其罕见
6. 生物生成
不要简单地随机放置生物。
该项目应:
生成结构。
确定结构类别。
选择合适的生物。
在结构内部/周围的合理位置生成它们。
使用随机数量。
例如:
小房子:1–3 个生物
村庄:5–15 个被动生物/村民
城堡:5–12 个敌对生物
废弃矿道:3–8 个敌对生物
远古城市:1–3 个危险生物
末地城:3–8 个末地生物
- 重要技术保护
该项目必须防止以下问题:
结构生成 → 结构包含方块 → 这些方块被破坏/改变 → 另一个结构立即生成。
添加结构生成保护系统,以免数据包生成的方块意外触发另一个结构。
还包括:
仅限玩家触发
冷却时间
结构间距
维度检查
生物上限
防卡顿保护
多人游戏支持
8. 维度
为以下维度配置单独的结构池:
主世界
村庄
房屋
城堡
神庙
废弃矿道
远古城市
废弃传送门
下界
下界要塞
堡垒遗迹风格结构
下界房屋
熔岩塔
末地
末地城
末地塔
末地竞技场
Minecraft version: Java Edition 1.21.1
Type: Datapack-based Minecraft project
Main mechanic: When the player breaks a block, a random structure is generated at the broken-block location.
- Core system
The project should include:
Detect when a player breaks a block.
Select a random structure.
Generate the selected structure at or near the broken block.
Support all normal overworld blocks as triggers.
Prevent the system from triggering repeatedly from blocks generated by the structure itself.
Work correctly in survival mode.
Support multiplayer.
Avoid excessive lag from generating too many structures.
Include a configurable cooldown.
2. Structure categories
Include a large variety of structures:
Small
Small house
Farm
Watchtower
Camp
Well
Ruined hut
Medium
Village house
Blacksmith
Tower
Temple
Fort
Mansion
Mine entrance
Large
Castle
Large village
Fortress
Giant tower
Large mansion
Underground base
Vanilla-inspired
Ruined Portal
Mineshaft
Desert Temple
Jungle Temple
Ocean Monument
Woodland Mansion
Stronghold
Ancient City
End City
3. Mob system
Structures should be populated according to their type.
Village structures
Villager
Iron Golem
Cat
Cow
Pig
Sheep
Chicken
Horse
Donkey
Castle/fortress
Zombie
Skeleton
Spider
Creeper
Witch
Pillager
Vindicator
Evoker
Ravager
Mineshaft
Cave Spider
Spider
Zombie
Skeleton
Creeper
Witch
Desert
Husk
Skeleton
Spider
Creeper
Camel
Rabbit
Snow
Stray
Wolf
Polar Bear
Goat
Skeleton
Zombie
Ocean
Drowned
Guardian
Elder Guardian
Squid
Glow Squid
Dolphin
Axolotl
Cod
Salmon
Pufferfish
Nether
Blaze
Wither Skeleton
Piglin
Piglin Brute
Zombified Piglin
Ghast
Magma Cube
Hoglin
Zoglin
End
Shulker
Enderman
Endermite
4. Rare structures
Make certain structures extremely rare and more dangerous.
Examples:
Ancient City
Warden
Skeleton
Zombie
Nether fortress
Blaze
Wither Skeleton
Piglin
End City
Shulker
Enderman
Very rare boss structure
Wither
I would not automatically spawn the Ender Dragon when breaking a block. Make boss structures extremely rare and configurable.
- Randomness
Use different rarity levels:
Structure Rarity
Small house Very common
Farm Very common
Tower Common
Village Common
Castle Uncommon
Mansion Rare
Temple Rare
Mineshaft Rare
Ancient City Very rare
End City Very rare
Boss arena Extremely rare
6. Mob spawning
Don't simply place mobs randomly.
The project should:
Generate the structure.
Determine the structure category.
Select appropriate mobs.
Spawn them at sensible positions inside/around the structure.
Use random quantities.
For example:
Small house: 1–3 mobs
Village: 5–15 passive mobs/villagers
Castle: 5–12 hostile mobs
Mineshaft: 3–8 hostile mobs
Ancient City: 1–3 dangerous mobs
End City: 3–8 End mobs
- Important technical protection
The project must prevent this problem:
Structure spawns → structure contains blocks → those blocks break/change → another structure immediately spawns.
Add a structure-generation protection system so blocks generated by the datapack don't accidentally trigger another structure.
Also include:
Player-only triggering
Cooldown
Structure spacing
Dimension checks
Mob limits
Anti-lag protection
Multiplayer support
8. Dimensions
Configure separate structure pools for:
Overworld
Villages
Houses
Castles
Temples
Mineshafts
Ancient City
Ruined Portal
Nether
Nether Fortress
Bastion-style structures
Nether houses
Lava towers
End
End City
End towers
End arenas
评论 0
登录后参与评分
还没有评论,来抢沙发吧