-
Notifications
You must be signed in to change notification settings - Fork 0
Debug command
wiki 版本:
0.0.9.4
/customgun debug [enable]
开启或关闭调试模式
-
enable(bool):调试模式开关
/customgun debug testIO [lenient]
测试JSON输入/输出序列化
-
lenient(bool):是否宽松模式
/customgun debug testGunData [rl]
测试读取指定枪械数据并输出到文件
-
rl(字符串):枪械数据的ResourceLocation
/customgun debug testAllData [indent] [path]
将所有已加载的数据包导出到指定路径
-
indent(整数):JSON缩进空格数 -
path(字符串):导出目录路径
/customgun debug mixinTest [target]
验证Mixin是否正确应用
-
target(字面量):测试目标,可选值为ILivingShooter、GunProjectile、IEntityHitboxHistory
/customgun debug testAllRecipes
测试已加载的自定义配方的合成物品
/customgun debug showMagAmmo
查看当前手持枪械子弹
/customgun debug setMagAmmo [ammo]
设置当前手持枪械子弹
/customgun debug testGetSound [rl]
测试指定声音文件是否可被资源管理器加载
-
rl(字符串):声音文件的ResourceLocation
/customgun debug clientMixinTest [target]
验证客户端Mixin是否正确应用
-
target(字面量):测试目标,可选值为IAnimateGeoItem
wiki verison:
0.0.9.4
/customgun debug [enable]
Enable or disable debug mode
-
enable(bool): Debug mode toggle
/customgun debug testIO [lenient]
Test JSON input/output serialization
-
lenient(bool): Lenient mode
/customgun debug testGunData [rl]
Read specified gun data and output to file
-
rl(string): ResourceLocation of the gun data
/customgun debug testAllData [indent] [path]
Export all loaded data packs to the specified path
-
indent(integer): Number of JSON indent spaces -
path(string): Export directory path
/customgun debug mixinTest [target]
Verify that Mixin is correctly applied
-
target(literal): Test target, options areILivingShooter,GunProjectile,IEntityHitboxHistory
/customgun debug testAllRecipes
Test the crafted items from loaded custom recipes.
/customgun debug showMagAmmo
View the ammo of the currently held gun.
/customgun debug setMagAmmo [ammo]
Set the ammo of the currently held gun.
/customgun debug testGetSound [rl]
Test whether the specified sound file can be loaded by the resource manager
-
rl(string): ResourceLocation of the sound file
/customgun debug clientMixinTest [target]
Verify that client Mixin is correctly applied
-
target(literal): Test target, options areIAnimateGeoItem
🌐 Language / 语言
-
Home
- 🛠️Configuration
- ⚙️Common configuration
- ⚙️Client configuration
- ⚙️Server configuration
- ⌨️Command
- 📦Resource introduction
- 📊data
- cgc_data
- attachments
- blocks
- guns
- cgc_index
- ammo
- attachments
- blocks
- guns
- cgc_meta
- cgc_recipe_filters
- cgc_scripts
- cgc_tags
- recipes
- tags
- blocks
- interact_key
- entity_types
- interact_key
- blocks
- cgc_data
- 🖼️assets
- cgc_animations
- cgc_display
- ammo
- attachments
- blocks
- guns
- cgc_info
- cgc_models
- cgc_scripts
- cgc_sounds
- lang
- player_animator
- textures
- 📊data
- ℹ️About
- 🧑💻Developer
- 🛠️Configuration