Omni Dev - 游戏内开发者工具包
Omni Dev 是一款由开发者为开发者设计的实用模组。
无论你是正在制作大型模组、自定义地图,还是仅仅想测试原版机制。
所有生成的 .nbt 和 .json 文件都会自动导出到你的 saves/YOUR_WORLD/generated/omnidev/ 文件夹中。
工作流程
使用 Omni Dev,创建一个功能齐全的地牢变得像以下步骤一样简单:
构建你的结构并放置箱子。
使用游戏内 GUI(/dev_lootgen)生成自定义战利品。
只需看向箱子即可将保存的战利品表分配给它(/dev_setloot)。
使用 Omni Dev 法杖选择你的建筑。
保存!你现在拥有了一个完整的 .nbt 结构,其中包含完全正常工作的随机化战利品表。
命令
结构工具:
/dev_wand - 给你一根选择棍,用于标记位置 1 和位置 2。
/dev_pos1 & /dev_pos2 - 手动设置你的选择边界。
/dev_save [name] - 将你选择的区域保存为 .nbt 结构文件。
/dev_spawn [structure_id] - 在你的位置生成游戏中的任何结构(支持原版和所有模组添加的结构)。
/dev_clear - 撤销/删除你最近用 /dev_spawn 生成的结构。
战利品表工具:
/dev_lootgen [name] - 打开 GUI,通过可视化的拖放操作将物品放入界面,以生成完全可用的 .json 战利品表,无需编写任何代码。
/dev_setloot [loot_table_name] - 看向任何容器(箱子、桶、发射器),在保存结构之前永久注入现有的战利品表。
战利品模拟:
/simulate_loot [loot_table] [runs] [enchantment_level] [player_kill] 通过在聊天中直接模拟数千次开箱或怪物击杀,即时测试掉落率和概率! enchantment_level 完美模拟了“时运”或“抢夺”附魔效果。
示例
/simulate_loot minecraft:entities/sheep/pink 1000 3 true (模拟玩家使用抢夺 III 击杀 1000 只粉色羊)
/simulate_loot minecraft:chests/desert_pyramid 1000 (模拟开启 1000 个沙漠神殿宝箱)
/simulate_loot minecraft:blocks/diamond_ore 1000 3 false (模拟使用时运 III 挖掘 1000 个钻石矿石)
Omni Dev - The In-Game Developer Toolkit
Omni Dev ist a utility mod designed by developers, for developers.
Whether you are making a massiv mod, a coustom map, or just want to test vanilla mechanics.
All generated .nbt an .json files are automatically exported to your saves/YOUR_WORLD/generated/omnidev/ folder.
The Workflow
With Omni Dev, creating a fully functional dungeon is as easy as:
Build your structure and place your chests.
Generate custom loot using the in-game GUI (/dev_lootgen)
Assign the saved loot table to a chest just by looking at it (/dev_setloot)
Select your building using the Omni Dev Wand.
Save it! You now have a completet .nbt structure with fully working, randomzed loot tables inside.
Commands
Structure Tools:
/dev_wand - Gives you the selection stick to mark Position 1 and Position 2.
/dev_pos1 & /dev_pos2 - Manualy set your selection boundaries.
/dev_save [name] - Saves your selceted area as an .nbt structure file.
/dev_spawn [structure_id] - Spawns any structure in the game at your location (supports Vanilla and all Modded structures).
/dev_clear - undoes/deletes the last structure you spawnt with /dev_spawn.
Loot Table Tools:
/dev_lootgen [name] - Opens a GUI Visually drag and drop items into the interface to generate a fully working .json loot table, completely without writing code.
/dev_setloot [loot_table_name] - Look at any container (chest, barrel,dispenser) to permanently inject an existing loot table into it before saving your structure.
Loot Simulation:
/simulate_loot [loot_table] [runs] [enchantment_level] [player_kill] Instantly test drop rates an percentages by simulating thousands of chest openings or mob kills dircetly in you chat! The enchantment_level perfectly mimics Fortune or Looting.
Examples
/simulate_loot minecraft:entities/sheep/pink 1000 3 true (Simulates 1000 pink sheep kills with Looting 3 by a player)
/simulate_loot minecraft:chests/desert_pyramid 1000 (Simulates opening 1000 desert pyramid chests)
/simulate_loot minecraft:blocks/diamond_ore 1000 3 false (Simulates mining 1000 diamond ores with Fortune 3)
评论 0
登录后参与评分
还没有评论,来抢沙发吧