最新稳定版本为 1.8.2。不稳定版本可能会导致破坏、意外崩溃或出现奇怪的行为。
事实上,这是唯一一款允许制作自定义的、真正数据驱动的方块并拥有自定义行为的模组。还有另一款模组允许创建真正的数据驱动方块,但它们只能使用原版行为。这是唯一的。 适用于任何版本的 Minecraft,在任何加载器上。我原本以为到这个时候别人已经找到了方法,但不幸的是,并没有。这个模组包含了一些我近期写过的最混乱的代码,但它 somehow 仍然是唯一一个仍在持续更新的模组。它也是唯一一个能够制作自定义的真正数据驱动药水效果……未来这款模组还会有更多更新。我会确保最终让原版支持数据驱动的方块、物品、实体和药水效果;这是数据包制作社区应得的体验。告别混乱的函数以及无法创建无实体附加的自定义方块的日子。
1.8.2 版本仍然有些小故障,例如模型拒绝在其关联的物品上渲染,并且在极少数情况下,游戏可能无法加载自定义方块。随着自定义启动项(物品、方块、效果)处理时间的增加,这些情况会变得更常见。
已知问题:
- 生成的自定义方块的方块状态 ID 不正确,重新登录可修复
- 由于帧缓冲区使用 F32 而非 I8 存储值,某些值在渲染时会超出原版范围(Bug,直至 26.3 版本)
- 由于 F32 缓冲区,截图有时会导致游戏崩溃
- 出于某种原因,物品的所有组件均为 null,这毫无道理可言(Bug,严重)
- 自定义方块需要资源重载才能加载模型(未完成的功能)
原版优化:
- 射线追踪不再检查不在线路上的方块。对角线射线追踪性能显著提升,轴向对齐则无变化。
现在(几乎)完全兼容 26.1.2! 即将移植至 26.3……
对其他游戏的致谢:
Hytale:\hytale 命令包含了从游戏 Hytale 中借鉴的部分逻辑。如果你喜欢这款游戏,请购买支持!如果你是模组开发者,Hytale 的模组系统比 Minecraft 容易得多;一切都是数据驱动的。
版本 1.7.0
目前我已经添加了太多内容,全部列在此页已无意义。我针对自定义需求制作了以下生成器:
数据驱动方块:方块生成器
数据驱动物品:物品生成器
数据驱动药水效果:实体效果生成器
特定类型方块的附加参数:方块集合类型
所有生成器及本网站本身均为 Misode 的原始数据包生成器 的分叉版本
在 1.21.10 之后的版本中,使用颜色时必须将其指定为 "##rrggbbaa"
请注意:要使方块模型加载,用户每次加入包含自定义方块的存档时都必须进行资源重载([F3+t])。原版方块模型仍会正常加载。
最新版本包含以下命令:
\tpRel <目标> <从> <到> [旋转]
将目标从 [from] 传送至 [to],并保持相同的偏移量。适用于实现无缝过渡。此操作不会影响速度,因此可用于实现无缝过渡。截至最新版本,该功能尚不适用于 Valkyrien Skies 的飞船,但未来计划支持。如果提供了 rot 参数,则将以目标位置为中心,将位置、朝向和速度旋转指定的角度(单位为度)。
\function_silent <参数> 使用与原版 \function 命令相同的参数,但不提供命令反馈。用于优化文本按钮体验。已废弃。
\heal <目标> <数量>
这是 Minecraft 本应具备但缺失的命令。为目标恢复指定数量的生命值。
\air <目标> add|remove|set <数量>
设置目标的剩余空气值。
\entityify <位置> [<移除方块>]
在指定位置召唤一个无重力且方块状态与目标位置方块相同的掉落方块实体。如果提供了 removeBlock 参数且其值为 true,则同时移除该位置的方块。
\for <varname> <start> <end> <increment> <command>
`for(int varname=start;varname<end;varname+=increment) run command`
使用当前循环中 `$(varname)` 替换为对应值的方式执行命令。示例:
\for i 0 10 1 tell @a Loop Iteration $(i)
将向所有玩家发送以下消息:
Loop Iteration 0 Loop Iteration 1 Loop Iteration 2 Loop Iteration 3 Loop Iteration 4 Loop Iteration 5 Loop Iteration 6 Loop Iteration 7 Loop Iteration 8
循环迭代 9
\for 循环可以嵌套!
\with <varname>
value <value> <command>
uuid <target> <command>
data entity|block|storage <selector> <path> <command>
attribute <entity> <attribute> <command>
将 @(varname) 的所有实例替换为你获取到的数据。对于 value 子命令,value 是 @(varname) 被替换的内容。对于 uuid,它会将 @(varname) 替换为 <target> UUID 的字符串表示形式。对于 data,它使用运行 \data 命令所得到的值进行替换。data 子命令仍有缺陷,会在替换内容的末尾添加类型字符不再添加类型字符!attribute 仅获取实体属性。用法示例:获取实体最大生命值
random int|float <min> <max> <command>
将 @(varname) 设置为介于 min 和 max(包含两端)之间的随机整数或浮点数。
calculate <math> <command>
将 @(varname) 设置为由 <math> 计算得出的任意值。数学表达式必须用引号括起来。不允许有空格。
calculateint <math> <command>
将 @(varname) 设置为由 <math> 计算得出的整数值。数学表达式必须用引号括起来。不允许有空格。
修改原版 \execute 命令: 向 \execute 添加 submerged <entity> 条件子命令:
\execute if|unless submerged <entity> ...
函数标签: quality_commands:on_before_player_leave 在该玩家退出游戏前以该玩家身份运行。 quality_commands:on_before_player_join 在该玩家完成加入游戏前以该玩家身份运行。
包含旧版本的 Identity2,供进一步折腾使用。即将进行补丁更新,但不会包含 Identity2 中实际改变游戏玩法的部分。
包含以下方块:
quality_commands:barier
一个不可交互的隐形屏障。具有方块轮廓,仅在手持该方块时才可交互。适用于设置边界(防止玩家进入不应进入的区域),但边界本身不可见。其效果略优于原版 barrier 方块。设计用于玩家不得前往某地点,但仍需能与该处物体交互的场景。
建议在 1.20.1 版本中配合 Function Macro Backport 使用。
目前,本模组的所有功能均无法完全在服务器端运行。
如果模组出现无法正常工作的问题,或有任何新点子建议,请在此处 提交。
点击此处查看我的模组列表(以及我推荐的模组),或者提交你希望我制作的创意!
本项目、描述及图标均未使用 AI 生成,均由一位真正懂行的真人开发者亲手制作,而非由只会胡言乱语且缺乏优化能力的无脑系统产出。
LATEST STABLE VERSION IS 1.8.2 Unstable versions are likely to break, or crash unexpectedly, or have weird behavior.
As it happens, this is the only mod that allows making custom true data-driven blocks with custom behaviors. There is one other mod that allows true data-driven blocks, but they can only have vanilla behaviours. This is the only one. For ANY version of Minecraft, on any loader. I honestly expected that somebody else would have found a way by now, but unfortunately, no. This mod contains some of the jankiest code I've made in a while, but it somehow is the only one that is still going further. It's also the only one that makes custom true data-driven potion effects... Expect even more from this mod in the future. I will make sure that vanilla gets data-driven blocks, items, entities, and potion effects eventually; this is something that the datapacker community deserves to have. A break from messy functions and being unable to create custom blocks without any entities attached.
Version 1.8.2 is still a little glitchy, as models refuse to render on their associated items, and in rare cases, the game can fail to load custom blocks. The cases become more common the more time it takes to do the custom startups (items, blocks,effects)
Known bugs:
- Custom blocks will have the wrong blockstate id when generated, relogging fixes
- Some values go outside vanilla values when rendering due to framebuffers using F32 instead of I8 for values(Bug, Until 26.3)
- Taking a screenshot crashes the game sometimes due to F32 buffers
- For some reason, items have all components null, which doesn't make any sense (Bug, Major)
- custom blocks require a resource reload to load models (Incomplete Feature)
Vanilla optimizations:
- Raytrace no longer checks blocks that are not along line. Significant performance increase for diagonal raycasting, none for axis-aligned.
Now (almost) fully functional for 26.1.2!
will be ported to 26.3 soon...
Credits to other games:
Hytale: \hytale command contains pieces of logic taken from the game Hytale. If you like it, buy the game! If you are a modder, Hytale's modding system is much easier than Minecrafts; everything is data-driven.
Version 1.7.0
At this point, I've added so much stuff, there is NO point in putting it all on this page. I made some generators at the following links for custom:
Data driven blocks: Block Generator
Data driven items: Item Generator
Data driven potion effects: Entity Effect Generator
Supplementary values for certain kinds of block: Block Set Type
All generators, and the site itself, is a fork of The original datapack generator by Misode
In versions past 1.21.10, the when using a color, you must specify it as "##rrggbbaa"
PLEASE NOTE: For block models to load, the user must use a resource reload ([F3+t]) every time they join a world with custom blocks. Vanilla block models still load as usual.
Latest version has the following commands:
\tpRel <target> <from> <to> [rot]
Teleports target from [from] to [to] with same offset. Useful for making seamless transitions. Does not affect velocity and so can be used for a seamless transition. Does not work on Valkyrien Skies ships as of latest version, but that is planned for the future. If rot is present, rotates position, facing direction, and velocity around the target location by rot. This value is in degrees.
\function_silent <args>
Uses the same arguments as the vanilla \function command, but does not give command feedback. For making text buttons better. Deprecated.
\heal <target> <amount>
The command minecraft should have but doesn't. Heals target by amount health.
\air <target> add|remove|set <amount>
Sets targets remaining air.
\entityify <pos> [<removeBlock>]
Summons a falling block entity with no gravity and same blockstate as block pos at pos. If removeBlock exists and is true, removes the block as well.
\for <varname> <start> <end> <increment> <command>
for(int varname=start;varname<end;varname+=increment) run command
runs command with all instances of $(varname) replaced with the value in that loop. Example:
\for i 0 10 1 tell @a Loop Iteration $(i)
would tell all players
Loop Iteration 0
Loop Iteration 1
Loop Iteration 2
Loop Iteration 3
Loop Iteration 4
Loop Iteration 5
Loop Iteration 6
Loop Iteration 7
Loop Iteration 8
Loop Iteration 9
\for loops can be nested!
\with <varname>
value <value> <command>
uuid <target> <command>
data entity|block|storage <selector> <path> <command>
attribute <entity> <attribute> <command>
replace all instances of @(varname) with whatever data you get. For value subcommand, value is what @(varname) is replaced with. For uuid, it replaces @(varname) with the string representation of <target>s uuid. For data, it replaces it with the value you get from running the \data command. The data subcommand is still buggy and adds typechars to end of replacementno longer adds typechars! attribute just gets entity attributes. Example usage: getting entity max health
random int|float <min> <max> <command>
sets @(varname) to a random integer or float between min and max(inclusive).
calculate <math> <command>
sets @(varname) to whatever value is calculated by
calculateint <math> <command>
sets @(varname) to whatever value is calculated by
Modifies the vanilla \execute command: Addes submerged <entity> condition subcommand to \execute:
\execute if|unless submerged <entity> ...
Function tags: quality_commands:on_before_player_leave Runs as a player right before that player leaves the game. quality_commands:on_before_player_join Runs as said player right before they finish joining the game.
Contains an old version of Identity2 for further messing around. Will be patched soon, but will NOT contain the parts of Identity2 that actually make it change gameplay.
Contains the following blocks:
quality_commands:barier
An invisible barrier that cannot be interacted with. Has block outline and can be interacted with only when holding the block. For making boundaries (so that players don't go where they aren't supposed to go) but can't see the boundary. Works slightly better than barriers. Designed for situations where players shouldn't go to a location, but should still be able to interact with the objects there.
Reccomended to be used with Function Macro Backport for 1.20.1.
At this point, none of this mod works entirely serverside.
If any issues with the mod not working or any suggestions for new ideas come up, post them here.
Go here for a list of my mods(and mods i reccomend), or just to post your ideas for things for me to make! No AI was used in the creation of this project, the description, or the icon. All were made by an actual human who actually knows what he is doing, instead of a mindless system that spouts gibberish lies, and doesn't know how to optimize.
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
下载 Quality Commands
重复项补丁!现在一切正常了!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧