此数据包增加了更改物品外观的功能!
所有玩家:
要查找并应用模型,请执行命令:
/trigger FindModel
用于在内置的模型数据库中搜索可能应用于你的物品的模型!然后,点击你希望应用的模型名称!
在生存模式下应用一个模型需要消耗一级经验等级,而在创造模式下则无需消耗。
此外,还有一个特殊的“默认(Default)”选项。这将移除已应用于该物品的模型。
选择“默认”选项不消耗任何经验等级。
对于拥有权限的玩家(OP):
要添加新模型,请执行以下操作:
在_铁砧_中重命名一个物品。具有自定义名称格式的物品将无法正常工作。
确保该物品已应用了期望的物品模型。
执行命令:
/function para_item_model_applicator:add_model
同时手中持有该物品。该模型的条目将被添加到对应物品上。
要移除模型,请执行以下操作:
首先,找到模型的索引号(可以通过应用一个模型并查看报告的数字来完成),
然后运行命令:
/function para_item_model_applicator:remove_model {index:[找到的索引号]}
将方括号 [] 中的文本替换为 FindModel 报告的数字。
如果你决定不想删除该模型,请运行命令:
/function para_item_model_applicator:restore_model
请注意,只有最近删除的模型才能被恢复!假设所有你删除的模型都将永久消失!
要更新模型:
找到你要更新的模型的索引号(参见移除模型部分)。
手持一个符合要求的物品(参见添加模型部分)。
然后运行命令:
/function para_item_model_applicator:update_model {index:[找到的索引号]}
这将覆盖旧模型。这意味着旧模型无法恢复!
要移除所有重复的模型:
运行命令:
/function para_item_model_applicator:remove_duplicates
然后等待处理完成。数据库每注册 20 个模型,该过程将耗时 1 秒。当聊天栏中出现“Models has removed duplicate entries”消息时,即表示已完成。如果此操作无效,可能是:该模型并非真正的重复项,或者:你需要增加以下游戏内规则数值:
/gamerule maxCommandChainLength
/gamerule maxCommandForkLength
注意事项:
此数据包将尝试加载所提供资源包中所有可用模型的数据库。如果你希望禁用这些模型,可以运行命令移除所有模型:
/data remove storage para_item_model_applicator:storage
之后所有模型都将被移除,你可以重新开始。
关于合成的警告:在物品上使用下界合金锻造模板会替换其模型。这是有意的——否则,下界合金剑上的模型仍会显示为钻石剑的样子。只需应用一个新模型即可。
由于 Minecraft 的合成配方系统限制,必须首先应用不同的模型才能实现这一效果。请使用资源包中的“smithingreplace”信息,否则会出现缺失纹理。在此操作后,手持该物品的主手物品栏会将其重置为默认模型,然后你就可以正常使用了。
“但是如果我不希望玩家在我的自定义物品上替换模型怎么办?”
别担心!任何带有自定义数据组件 "lock_model" 的物品都会报告该模型无法被此数据包更改。例如,请参阅我的 Tomes 数据包。
“是否有计划添加更多模型?”
当然!首先我需要为所有捆扎袋(bundle)颜色制作模型,因为目前只有默认的捆扎袋有可用的模型。然后我希望能扩展到食物方面。
所有模型和纹理均由我制作。许多直接灵感来源于 Minecraft Dungeons、Minecraft Legends,部分灵感来源于 Hermitcraft。我没有从其他数据包中窃取任何模型或纹理,并尝试为每个纹理使用原版配色,因此某些纹理可能与 Dungeons/Legends 的纹理不完全匹配。
This data pack adds the ability to change the appearance of items!
For all players:
To find and apply a model, run the command:
/trigger FindModel
in order to search the built-in database of models for ones that may be applied to your item! Then, click on the name of the model which you wish to apply!
Applying a model cost one level in survival and zero in creative.
Additionally, there is a special "Default" option. This will remove the model applied to the item.
Selecting the "Default" option does NOT cost any levels.
For operators:
To add a new model, perform the following actions:
Rename an item in an anvil. Items with custom name formatting will not work properly.
Ensure that the item has the desired item model applied.
Run the command:
/function para_item_model_applicator:add_model
while holding the item in your hand. The model will be added for that item.
To remove a model, perform the following actions:
First, find the model's index (this can be done by applying a model and looking at the number reported),
Then run the command:
/function para_item_model_applicator:remove_model {index:[the index you found]}
while replacing the text in brackets [] with the number reported by FindModel.
If you decide that you did not want to delete that model, run the command:
/function para_item_model_applicator:restore_model
Be warned, only the most recently deleted model can be restored! Assume that all models you delete will be gone for good!
To Update a Model:
Find the index of the model you wish to update (see remove model).
Hold an acceptable item (see add model).
Then run the command:
/function para_item_model_applicator:update_model {index:[the index you found]}
This will OVERWRITE the old model. That means that the old model cannot be restored!
To remove all duplicate models:
Run the command:
/function para_item_model_applicator:remove_duplicates
Then wait until the process is done. It will take 1 second for every 20 models registered in the database. You will know that it has finished when the message "Models has removed duplicate entries" appears in chat. If this does not work, either: The model is not a true duplicate, or: You may need to increase these game rules:
/gamerule maxCommandChainLength
/gamerule maxCommandForkLength
NOTES:
This data pack will attempt to load a database of all models available in the provided resource pack. If you wish to disable these models, you can remove all models by running the command:
/data remove storage para_item_model_applicator:storage
after which all models will be removed and you will be able to start afresh.
Warning with crafting: using the netherite smithing template on an item will replace its model. This is purposeful - otherwise, a model for a diamond sword would still be diamond on the netherite sword. Simply apply a new model.
The way that this has to be done (because of minecraft's crafting recipe system) is that it has to apply a different model first. Please use the resource pack's "smithingreplace" information otherwise missing textures will appear. Holding an item in your mainhand will reset it to the default model after this, and then you will be good to go.
"But what if I don't want players replacing the model on my custom item?"
Don't worry! Any item with the custom data component "lock_model" will report that the model cannot be changed by this pack. For examples, see my Tomes datapack.
"Are there any plans for more models?"
Absolutely! First I need to make models for all of the bundle colors, because currently only the default bundle has any available. Then I'm hoping to move on to foodstuffs.
All models and textures were made by me. Many are directly inspired by minecraft dungeons, minecraft legends, and some by hermitcraft. I did not rip any models or textures from other packs, and tried to use vanilla coloring for each texture, so some may not match the dungeons/legends textures perfectly.
评论 0
登录后参与评分
还没有评论,来抢沙发吧