One Block
One Block 是一款基于 ijaminecraft 制作的 One Block 地图而开发的模组。由于每位玩家都可以拥有自己的专属 One Block,因此该模组支持多人游戏。
- 如果你想体验已经配置好的自定义配置文件,我推荐你尝试我正在开发的整合包:All in One
- RandomLib 现已成为 One Block Plus 1.7.0 及更高版本的依赖项
API
自 1.6.0 版本起,开发者可以为 One Block 添加自定义的条目类型。
条目类型必须继承 WeightedActivable 类,并使用 RegistryEvent.Register<WeightedDeserializer> 事件中的新 WeightedDeserializer 实例进行注册。
条目类型将重写以下方法:
- deserializeItem(CompoundNBT content)。此方法读取 'content' 复合标签 NBT,并返回供 'generate' 方法使用的对应对象。
- serializeItem()。此方法为此条目写入 'content' 复合标签 NBT。
- toStack(int count)。此方法创建一个代表该条目的 ItemStack,并被“/oneblock get”命令调用(“count”为返回的 ItemStack 的物品数量)。
- generate(ServerWorld world, BlockPos pos)。此方法用于在世界中生成该条目的内容。
- vgenerate(TileEntityExNihilo ex_nihilo, ServerWorld world, BlockPos pos, ItemStack stack)。此方法由 Ex Nihilo Generator 调用(“stack”是放置在发电机第二个槽位中的 ItemStack)。发电机的输出槽位通过“ex_nihilo.setOutputs”进行设置。
它是如何工作的?
每位玩家初始背包中都会获得一个 "OBMaker"。

使用此 OBMaker 对方块进行右键点击,即可在此处创建一个新的“单格世界”。

单格世界会根据其等级生成不同的方块。它也可能生成一个箱子。
或者生成一个实体。
在挖掘一定数量的方块后,单格世界将会升级。

创造模式物品栏中包含 3 种工具。
- OBMaker 用于创建新的单格世界。
OBRemover 用于从世界中移除单格世界。 - OBAnalyzer 会在聊天栏中显示单格世界的等级以及已挖掘的方块数量。
配置项

默认配置如下:
- - “平原”:0 个方块挖掘时。(草、原木、树叶、猪、牛、鸡、奖励箱、……)
- - “地下”:350 个方块挖掘时。(石头、沙砾、煤矿、铁矿、原木、泥土、僵尸、苦力怕、地牢宝箱、……)
- - “山地”:900 个方块挖掘时。(草、雪、压实冰、冰、金矿、狼、流浪者、北极熊、冰屋宝箱、……)
- - “海洋”:1800 个方块挖掘时。(海晶块、青金石矿、沙子、沙砾、海绵、钻石矿、鱿鱼、守卫者、宝藏箱、……)
- - 在开采 3000 个方块时解锁「Jungle」(包括圆石、苔石、丛林原木、钻石矿石、鹦鹉、豹猫、女巫、地牢宝箱等)。
- - 在挖掘 4500 个方块时解锁「下界」内容。(下界岩、灵魂沙、下界砖、石英矿石、绿宝石矿石、金矿石、岩浆块、僵尸猪人、烈焰人、凋灵骷髅、下界地牢宝箱等)
- - 在挖掘 5999 个方块时解锁「新 OneBlock」内容。(由 OBMaker 生成)
- - 在挖掘 6000 个方块时解锁「末地」内容。(末地石、末地砖、紫珀块、黑曜石、末影螨、末影人、潜影贝、末地城宝箱等)
命令
[工作中]

这些命令可帮助你自定义模组的配置。
- "chest" 用于将指定位置的箱子添加到对应的一格世界等级(已挖掘方块数)中。
- "clear" 用于清除所有等级。
- "fill" 用于根据所选箱子的内容添加一个等级(如果需要更多格子,可以使用模组提供的箱子)。
- "list" 显示所有按已挖掘方块数划分的等级,或特定等级的所有内容。
- "remove" 用于移除某个等级。
/oneblock fill

结构
OneBlock 1.2.0 允许你将结构添加到可能的掉落结果中。包括来自模组的结构!(例如「星辉魔法」中的「古代神龛」)。
由 OneBlock 生成的铁匠铺。(图片中间的那草方块)

测试世界。「大型结构」的生成。[工作中] 这可能会导致卡顿、高 CPU 占用、崩溃等……请自行承担风险。

Ex Nihilo 兼容
Ex Nihilo 发电机将根据 Block Catalyst 指定的 OneBlock 阶段,生成物品和生物(并自动击杀它们)。



方块催化剂指定一个阶段。附魔书会施加其附魔效果。
方块催化剂使用 "oblevel" NBT 标签。(例如:{oblevel:0},对应“平原”阶段)
若要创建一个仅由 Ex Nihilo Generator 使用的相位,可将其设置为负等级。
例如:"level;-2;WitherGenerator;minecraft:dirt"
注意: 如果你想在 Skyblock 中游玩,你仍然需要一个虚空世界模组。此模组**不会**修改世界生成。
注意 2:活塞(和粘性活塞)无法推动或拉动 oneblock。
欢迎对本模组提供反馈。
使用我的代码 all-in-one 可获得首月 25% 的折扣。
整合包:
只要该整合包包含指向本网页的链接,或在 CurseForge 上发布,您就有权将此模组添加至任何公共整合包中。
我的其他模组:
- Infused ring
- Leveled difficulty
- Mobs' crops
One Block
The one block mod is a mod based on the one block map by ijaminecraft. The mod is playable in multiplayer since each player can have his own one block.
- If you want to play with an already made custom config, I suggest you try the modpack I'm developing : All in One
- RandomLib is now a dependency for One Block Plus 1.7.0 and higher
Api
Since 1.6.0 , devs can add their own entry type for the oneblock.
An entry type must extend the WeightedActivable class and be registered using a new instance of WeightedDeserializer in the RegistryEvent.Register<WeightedDeserializer> event.
An entry type will override the following methods:
- deserializeItem(CompoundNBT content). This method reads the 'content' compoundnbt and return the corresponding object to be used by the 'generate' method.
- serializeItem(). This method writes the 'content' compoundnbt for this entry.
- toStack(int count). This method creates an ItemStack representing this entry and is called by the '/oneblock get' command ('count' is the item count of the returned ItemStack).
- generate(ServerWorld world, BlockPos pos). This method is called to generate the content of this entry in the world.
- vgenerate(TileEntityExNihilo ex_nihilo, ServerWorld world, BlockPos pos, ItemStack stack). This method is called by the Ex Nihilo Generator. ('stack' is the ItemStack placed in the second slot of the generator). The output slot of the generator is set using 'ex_nihilo.setOutputs'.
How does it work ?
Each player starts with an "OBMaker" in his inventory.

A right click on a block with this OBMaker will create a new "one block" at this place.

The one block can generate different blocks depending on its level. It can also generate a chest.
Or an entity.
The one block level up after a certain amount of blocks mined.

The creative inventory contains 3 tools.
- The OBMaker creates a new one block.
The OBRemover removes a one block from the world. - The OBAnalyzer displays the level and the amount of block mined in the chat for a one block.
Configs

The default config is :
- - "Plains" at 0 block mined. (grass, log, leaves, pig, cow, chicken, bonus chest, . . .)
- - "Underground" at 350 blocks mined. (stone, gravel, coal ore, iron ore, log, dirt, zombie, creeper, dungeon chest, . . .)
- - "Mountain" at 900 blocks mined. (grass, snow, packed ice, ice, gold ore, wolf, stray, polar bear, igloo chest, . . .)
- - "Ocean" at 1800 blocks mined. (prismarine, lapis ore, sand, gravel, sponge, diamond ore, squid, guardian, treasure chest, . . .)
- - "Jungle" at 3000 blocks mined. (cobblestone, mossy cobblestone, jungle log, diamond ore, parrot, ocelot, witch, dungeon chest, . . .)
- - "Nether" at 4500 blocks mined. (netherrack, soul sand, nether brick, quartz ore, emerald ore, gold ore, magma block, zombie pigman, blaze, wither skeleton, nether dungeon chest, . . .)
- - "New OneBlock" at 5999 blocks mined. (OBMaker)
- - "End" at 6000 blocks mined. (end stone, end brick, purpur block, obsidian, endermite, enderman, shulker, end city chest, . . .)
Commands
[WIP]

These commands help you to customize the configs of the mod.
- "chest" is used to add the chest at the selected position to the corresponding oneblock level (blocks mined).
- "clear" is used to clear all levels.
- "fill" is used to add a level based on the content of a selected chest (you can use a modded chest if you need more slots)
- "list" shows you all levels by blocks mined or all content of a specific level.
- "remove" is used to remove a level.
/oneblock fill

Structures
oneblock 1.2.0 allows you to add structures to possible results. Including modded ones ! (Like the "Ancient Shrine" from "Astral sorcery" for example).
Blacksmith house generated by the oneblock. (the grass block in the middle of the picture).

Test world. Generation of "big structures". [WIP] This may cause lags, high cpu usage, crashes, . . . Use at your own risks.

Ex Nihilo
The Ex Nihilo Generator generates items and mobs (automatically kills them) from the one block phase specified by the Block Catalyst.



The Block Catalyst specifies the one block phase. The Enchanted Book applies its enchantments.
The Block Catalyst uses "oblevel" nbt tag. (example : {oblevel:0}, for "Plains" phase} )
To create a phase only usable by the Ex Nihilo Generator you can set it to a negative level.
So "level;-2;WitherGenerator;minecraft:dirt" for example.
Note: You still need a void world mod if you want to play in skyblock. This mod does NOT modify the world generation.
Note 2: The pistons (and sticky pistons) can't push or pull the oneblock.
Feel free to give feedbacks about the mod.
Use my code all-in-one to get 25% off your first month.
Modpacks :
You are allowed to add this mod in any public modpack as long as it contains a link to this webpage or it is published on curseforge.
My other mods :
- Infused ring
- Leveled difficulty
- Mobs' crops
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 One Block Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
将部分功能移植至 1.12.2:
- 可在配置文件中禁用起始时的 obmaker。
- Oneblock 粒子效果。
- 挖掘 Oneblock 时不再会掉落。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
原版世界生成优化模组
模组
AE2:一款流行的自动化与存储模组
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
评论 0
登录后参与评分
还没有评论,来抢沙发吧