Craftopia / 创世理想乡

Craftopia / 创世理想乡

110 个评价
Command Handler
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
95.705 KB
2023 年 6 月 30 日 上午 11:07
9 月 14 日 下午 3:28
27 项改动说明 ( 查看 )

订阅以下载
Command Handler

描述
Command Handler
Utility that manages the registered chat commands for other mods.

You're able to configure command key (commands' prefix) in the .cfg file, or via a chat command in-game. By default, it's . (dot). For example, you can set it to @ by typing ".set_cmd_key @" in the chat. Then all commands will start by @ instead of . (dot). (ie. "@ls" instead of ".ls") Please choose a key that will not interfere with other mods that also use chat commands, such as MisakiCore or ChatItem. I cannot confirm compatibility in those cases as I do not use them.

Commands are also configurable, but only through the .cfg file. For example, if you find ".find_ench wheel" too long to type, you could change "find_ench" to "e" in the .cfg file, and type ".e wheel" instead. Other mods created by me that are using the Command Handler should also have configurable commands in their respective .cfg files. Please note that if it detects an overlapping command, they might be reverted back to their original values.

Please use the List all available commands chat command to get an up-to-date list in-game.

Chat commands
  • .ls - List all available commands
  • .set_cmd_key [char] - Set a new command key
  • .find [name] - Find an item ID by name
  • .find_ench [name] - Find an enchantment ID and effects by name
  • .who [id] - Find who drops an item by ID
  • .whoe [id] - Find who drops an enchantment by ID
  • .what [name] - List drops by enemy name
Commands are configurable in the .cfg file.

About ConfigurationManager
While most toggles can be changed via the ConfigurationManager without trouble, some commands also do extra steps when executed. Therefore, I cannot guarantee that the feature you're trying to change will work as expected. Please use the chat commands whenever possible.

Legacy version
Use this if you are playing on the Legacy version.



For other devs
Modders are free to create mods using this as a requirement. You can decompile mods that use this utility to see how to integrate with it. You can leave a message below, or ping me on the official Discord server (Eradev) if you need further help.



If you enjoy the mod, and would like to see more, you can kindly support me by donating via Ko-Fi.

[ko-fi.com]
热门讨论 查看全部(1)
0
2023 年 7 月 4 日 上午 6:33
Quickstart Guide
Psychloor
12 条留言
RockArmadaZ24 2024 年 12 月 24 日 上午 10:05 
Had time to troubleshoot issue turns out it was steam not mod.Strange that it had no issues until Craftopia updated?
Unforgiven  [作者] 2024 年 12 月 22 日 下午 3:29 
@RockArmadaZ24

If it's caused by this mod (which is unlikely) then post your Bepinex log with the errors in the #modding-vroid channel on the Pocketpair Discord (see the forums for the link).
RockArmadaZ24 2024 年 12 月 22 日 下午 3:18 
Game won't load after update
0fsgiven 2024 年 11 月 3 日 上午 2:52 
going back to crafttopia to check it out again i feel this mod might be handy
Unforgiven  [作者] 2023 年 12 月 7 日 下午 2:21 
It was a problem in QoL which has been fixed.
ZennBen 2023 年 12 月 5 日 下午 3:08 
is this mod updated for most recent update? my game currently wont save and its only when this and Quality of life mod are activated
Unforgiven  [作者] 2023 年 8 月 31 日 上午 7:24 
@Aika-Senpai

This mod doesn't touch crafting at all.
Aika-Natsukawa 2023 年 8 月 30 日 下午 6:56 
Hello, I'm having a problem as soon as I activate this mod... crafting in general is buggy, doing it by hand consumes the material but it says it was insufficient, nothing happens on the tables when I press the button to do the crafting...
Azurianoni 2023 年 8 月 5 日 下午 7:28 
@leoxilone press enter for chat and from there input commands
leoxilone 2023 年 8 月 5 日 上午 8:20 
How do you open the command chat?