|
Revelationary(揭示模组)Github |相关wiki |源站链接支持: fabric , quilt数据驱动的方块和物品揭示系统。在游戏中逐步发现!
*概述*
Revelationary添加了一种通过数据包或API(用于其他模组)来门控世界中新方块发现的方式。使用Revelationary,您可以设计包/模组的进程,使玩家在开始新的游玩时感到不那么不知所措。只有当玩家解锁特定进度时,他们才能察觉到世界生成的这些方块,使这些方块对他们可见。
举例:
玩家将某个特定矿石视为石头。当他们打败末影龙后,他们现在可以在世界中看到并挖掘到您的矿石——这个矿石一直存在。对于每个玩家而言都是独立的,并且性能非常出色。
*揭示*
\"揭示是某种真理或知识的揭示或披露\"
如果您是基于进程的模组或模组包的设计人员,那么您来对地方了。
使用Revelationary,您可以使用数据包或揭示API逐渐在玩家进展时在世界中揭示方块。例如,一个普通的充满矿石和生命的岩缝可能在玩家打败某一个boss或达到重要的里程碑时被揭示出来。
只要玩家没有必要的进展,通过Revelationary注册的方块和物品就只有神秘的名字,并且在方块的情况下,会掉落与其伪装为的方块相同的掉落物,让玩家能够无缝地体验而不被未知的资源淹没,他们一开始就无法使用。相反,您可以在需要时引入资源。
*限制*
除了视觉和掉落外,伪装方块保留原始方块的所有属性:碰撞箱,光线通过的方式,以及其他一切。在搜索适合的候选时要记住这一点。您的矿石的完美伪装可能是石头或深板岩,因为它们有很多相似之处。类似的,您可以使用罂粟伪装您的神秘植物:两者都有一个小碰撞箱,玩家可以穿过它们。
如果您是程序员,您可以使用Revelationary API根据玩家是否可见动态地改变方块的属性。这样,您甚至可以将您的花朵伪装成空气:当伪装时给它一个空的碰撞箱,您的玩家甚至可能根本就不知道它在那里,直到他们能够看到它们!
在Revelationary的wiki中找到数据包和API的许多示例:
*通过数据包注册揭示*
必须放置在文件夹`resources/data/<>/revelations`
json
{
\"advancement\": \"spectrum:milestones/reveal_quitoxic_reeds\",
\"block_states\": {
\"minecraft:grass\": \"minecraft:beacon\",
\"minecraft:tall_grass\": \"minecraft:obsidian\",
\"minecraft:tall_grass[half=upper]\": \"minecraft:netherite_block\"
},
\"items\": {
\"minecraft:nether_star\": \"minecraft:gunpowder\"
}
}
*注册一个“揭示感知”的方块或物品*
java
public class CloakedItem extends Item implements RevelationAware {
Identifier cloakAdvancementIdentifier;
Item cloakItem;
public CloakedItem(Settings settings, Identifier cloakAdvancementIdentifier, Item cloakItem) {
super(settings);
this.cloakAdvancementIdentifier = cloakAdvancementIdentifier;
this.cloakItem = cloakItem;
registerCloak();
}
@Override
public Identifier getCloakAdvancementIdentifier() {
return cloakAdvancementIdentifier;
}
@Override
public HashtablegetBlockStateCloaks() {return new Hashtable<>();}
@Override
public PairgetItemCloak() {return new Pair<>(this, cloakItem);}
@Override
public void onCloak() { }
@Override
public void onUncloak() { }
}
*注册揭示发生时的回调*
java
RevelationHolder.registerRevelationCallback(new RevelationHolder.UncloakCallback() {
@Override
public void trigger(Listadvancements, Listblocks, Listitems) {for(Block block : blocks) {if(Registry.BLOCK.getId(block).getNamespace().equals(MOD_ID)) {...<我不知道。像显示一个弹出框之类的东西。您告诉我>...break}}}});
Discord
您会在Spectrum的Discord上找到许多乐于助人的人。总是有友好和乐于助人的人在附近。如果您愿意,也可以随便来这里一转!
https://discord.com/invite/EXU9XFXT8a]链接
截图:
https://i.sodamc.com/modrinth/qWAQ95LWOU.jpg?x-oss-process=style/forge2] https://i.sodamc.com/modrinth/Y1xfQEQw2V.jpg?x-oss-process=style/forge2] https://i.sodamc.com/modrinth/HxPcWFzrV1.jpg?x-oss-process=style/forge2]
来自Modrinth所有游戏版本1.21.11.21.51.21.41.20.11.20.51.20.61.20.21.19.41.19.31.19.21.191.18.2所有类型neoforgefabricquiltRevelationary 1.4.0+1.21.1revelationary-neoforge-1.4.0+1.21.1.jar下载1.4.0+1.21.1#Release展开版本: 1.4.0+1.21.1支持游戏: 1.21.1类型:NeoForgeRelease下载次数: 241Revelationary 1.3.9+1.21.1revelationary-1.3.9+1.21.1.jar下载1.3.9+1.21.1#Release展开版本: 1.3.9+1.21.1支持游戏: 1.21.1类型:FabricRelease下载次数: 1,034Revelationary 1.3.7+1.20.5revelationary-1.3.7+1.20.5.jar下载1.3.7+1.20.5#Release展开版本: 1.3.7+1.20.5支持游戏: 1.21.5类型:FabricRelease下载次数: 89Revelationary 1.3.8+1.21.1revelationary-1.3.8+1.21.1.jar下载1.3.8+1.21.1#Release展开版本: 1.3.8+1.21.1支持游戏: 1.21.1类型:FabricRelease下载次数: 446Revelationary 1.4.0+1.21.4revelationary-1.4.0+1.21.4.jar下载1.4.0+1.21.4#Release展开版本: 1.4.0+1.21.4支持游戏: 1.21.4类型:FabricRelease下载次数: 114Revelationary 1.3.9+1.20.1revelationary-1.3.9+1.20.1.jar下载1.3.9+1.20.1#ReleaseMinor EMI compat fix展开版本: 1.3.9+1.20.1支持游戏: 1.20.1类型:FabricRelease下载次数: 39,657Revelationary 1.3.8+1.20.1revelationary-1.3.8+1.20.1.jar下载1.3.8+1.20.1#Release展开版本: 1.3.8+1.20.1支持游戏: 1.20.1类型:FabricQuiltRelease下载次数: 19,235Revelationary 1.3.7+1.20.5revelationary-1.3.7+1.20.5.jar下载1.3.7+1.20.5#ReleasePorted to 1.20.5.Thank you, pizzer!展开版本: 1.3.7+1.20.5支持游戏: 1.20.5, 1.20.6类型:FabricQuiltRelease下载次数: 177Revelationary 1.3.7+1.20.1revelationary-1.3.7+1.20.1.jar下载1.3.7+1.20.1#ReleaseAdded compat with Sinytra Connector.Thank you lots, eehunter!展开版本: 1.3.7+1.20.1支持游戏: 1.20.1类型:FabricRelease下载次数: 18,622Revelationary 1.3.6+1.20.1revelationary-1.3.6+1.20.1.jar下载1.3.6+1.20.1#ReleaseFixed startup issue on Quilt展开版本: 1.3.6+1.20.1支持游戏: 1.20.1类型:FabricQuiltRelease下载次数: 3,864Revelationary 1.3.5revelationary-1.3.5.jar下载1.3.5#ReleaseUpdated to 1.20.2展开版本: 1.3.5支持游戏: 1.20.2类型:FabricQuiltRelease下载次数: 191Revelationary 1.3.5+1.19.4revelationary-1.3.5+1.19.4.jar下载1.3.5+1.19.4#Release1.19.4 port展开版本: 1.3.5+1.19.4支持游戏: 1.19.4类型:FabricQuiltRelease下载次数: 167Revelationary 1.3.5+1.20.1revelationary-1.3.5+1.20.1.jar下载1.3.5+1.20.1#ReleaseUpdated to 1.20.1展开版本: 1.3.5+1.20.1支持游戏: 1.20.1类型:FabricRelease下载次数: 264,997Revelationary 1.3.5revelationary-1.3.5.jar下载1.3.5#ReleaseImproved handing of advancement-reset packets from server->client展开版本: 1.3.5支持游戏: 1.19.3类型:FabricQuiltRelease下载次数: 142Revelationary 1.3.5revelationary-1.3.5.jar下载1.3.5#ReleaseImproved handing of advancement-reset packets from server->client展开版本: 1.3.5支持游戏: 1.19.2类型:FabricQuiltRelease下载次数: 27,388Revelationary 1.3.3revelationary-1.3.3.jar下载1.3.3#Release- Added a new advancement criterion \"advancement_count\". It can match gotten advancements with min/max counts.- Invalid revelations now log an error展开版本: 1.3.3支持游戏: 1.19.3类型:FabricQuiltRelease下载次数: 87Revelationary 1.3.3revelationary-1.3.3.jar下载1.3.3#Release- Added a new advancement criterion \"advancement_count\". It can match gotten advancements with min/max counts.- Invalid revelations now log an error展开版本: 1.3.3支持游戏: 1.19.2类型:FabricRelease下载次数: 552Revelationary 1.3.2revelationary-1.3.2.jar下载1.3.2#Release- Added a new advancement criterion \"advancement_count\". It can match gotten advancements with min/max counts.- Invalid revelations now log an error展开版本: 1.3.2支持游戏: 1.19.3类型:FabricRelease下载次数: 76Revelationary 1.3.2revelationary-1.3.2.jar下载1.3.2#Release- Added a new advancement criterion \"advancement_count\". It can match gotten advancements with min/max counts.- Invalid revelations now log an error展开版本: 1.3.2支持游戏: 1.19.2类型:FabricRelease下载次数: 257Revelationary 1.3.2revelationary-1.3.2.jar下载1.3.2#Release- Added a new advancement criterion \"advancement_count\". It can match gotten advancements with min/max counts.- Invalid revelations now log an error展开版本: 1.3.2支持游戏: 1.19类型:FabricRelease下载次数: 111Revelationary 1.3.0revelationary-1.3.0.jar下载1.3.0#Release- Added Commands to sync player progress, unlock specific advancement trees and more (thanks a lot Maya & Falseresync!)- Fixed drops for mods using the RevelationAware interface on dedicated servers- Added a new config system with various settings around revelations展开版本: 1.3.0支持游戏: 1.19.2类型:FabricRelease下载次数: 2,667Revelationary 1.3.0revelationary-1.3.0.jar下载1.3.0#Release- Added Commands to sync player progress, unlock specific advancement trees and more (thanks a lot Maya & Falseresync!)- Fixed drops for mods using the RevelationAware interface on dedicated servers- Added a new config system with various settings around revelations展开版本: 1.3.0支持游戏: 1.19.3类型:FabricRelease下载次数: 1051.2.0-1.19.3revelationary-1.2.0.jar下载1.2.0#ReleaseAdded a config! Here you are able to specify to use the name of cloaked blocks / items to use their target blocks / items, or specify your own.展开版本: 1.2.0支持游戏: 1.19.3类型:FabricRelease下载次数: 901.2.0-1.19.2revelationary-1.2.0.jar下载1.2.0#ReleaseAdded a config! Here you are able to specify to use the name of cloaked blocks / items to use their target blocks / items, or specify your own.展开版本: 1.2.0支持游戏: 1.19.2类型:FabricRelease下载次数: 4,4481.1.0-1.18.2revelationary-1.1.0.jar下载1.1.0#Release- Added ability to add alternate translations for not yet revealed items and blocks.- Syncing Revelation data from server to client on join展开版本: 1.1.0支持游戏: 1.18.2类型:FabricRelease下载次数: 2,8721.1.0-1.19.2revelationary-1.1.0.jar下载1.1.0#Release- Added ability to add alternate translations for not yet revealed items and blocks.- Syncing Revelation data from server to client on join展开版本: 1.1.0支持游戏: 1.19.2类型:FabricRelease下载次数: 5281.0.2+1.19.2revelationary-1.0.2+1.19.2.jar下载1.0.2+1.19.2#Release- More failsafe handling of block drops in combination with other mods that modify block drops.- Fixed trying to load a mixin on dedicated servers for a class that does not exist. (cosmetic error)展开版本: 1.0.2+1.19.2支持游戏: 1.19.2类型:FabricRelease下载次数: 4541.0.2revelationary-1.0.2.jar下载1.0.2#Release- More failsafe handling of block drops in combination with other mods that modify block drops.- Fixed trying to load a mixin on dedicated servers for a class that does not exist. (cosmetic error)展开版本: 1.0.2支持游戏: 1.18.2类型:FabricRelease下载次数: 2,5501.0.1+1.19.2revelationary-1.0.1+1.19.2.jar下载1.0.1+1.19.2#ReleaseSodium compat展开版本: 1.0.1+1.19.2支持游戏: 1.19.2类型:FabricRelease下载次数: 781.0.1revelationary-1.0.1.jar下载1.0.1+1.18.2#ReleaseSodium compat展开版本: 1.0.1+1.18.2支持游戏: 1.18.2类型:FabricRelease下载次数: 961.0.0+1.19.2revelationary-1.0.0+1.19.2.jar下载1.0.0+1.19.2#ReleaseUpdated to 1.19.2展开版本: 1.0.0+1.19.2支持游戏: 1.19.2类型:FabricRelease下载次数: 941.0.0revelationary-1.0.0.jar下载1.0.0#ReleaseInitial Release展开版本: 1.0.0支持游戏: 1.18.2类型:FabricRelease下载次数: 156全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
Revelationary(揭示模组)-MOD模组 |
楼主
2025-8-10 19:07:42
回复(0)
收起回复
|