此数据包提供了一种方法,可将资源包中的任何物品模型通过物品展示框转换为世界中可放置的“方块”,且只需一条命令即可完成。
除了破坏已存在的“方块”外,生存模式下没有其他方式获取这些物品;你需要自行实现获取它们的方法。
它可以作为其他数据包的库使用,用于管理物品的获取;
也可以作为“独立”数据包,与一些命令方块配合使用,为玩家提供物品(通过运行 /function 命令,你无需自行定义物品)。
该物品仅可放置在基座上(即另一个支撑方块的顶部)。
由于该数据包使用物品展示框来呈现物品,所有放置的方块都有 8 个旋转方向。
警告:由于该数据包使用物品展示框,不建议将其用于大量方块。最佳用途是用于可放置的装饰性物品。
数据包中包含两个示例函数,其中的命令可提供自定义物品(若无相应的资源包则无法正常工作)。
获取可放置物品的命令为:
在 V1 版本中:
/function zz:infiniframes/give_item {item_name:"Name of this item",item_model:"namespace:example_model_1"}
在 V1.1 版本中:
/function zz:.lib/infiniframes/give_item {item_name:"Name of this item",item_model:"namespace:example_model_1"}
当然,你可以将相应部分替换为你想要使用的物品名称和模型。
你也可以直接使用示例函数,而无需向函数添加任何额外参数(在这种情况下,你需要先在 .mcfunction 文件中修改一次,之后即可直接使用)。
从世界中移除此数据包(如果曾使用过)不会删除已放置的物品,但会停止清理残留的隐形物品展示框,并使物品不再无限次可放置。
This datapack adss the method to convert any item model that is part of the resource pack into placeable "block" in the world using item frames with only one command
it does not have any way of obtaining these items in survival other than braking already existing "blocks", method for obtaining them you need to implement yourself
it can be used as a library for other datapacks that manage obtaining items in the first place
or as "stantalone" datapack in combination with some command blocks that will provide players with items (by runing /function command, you dont have to make item definition yourself)
the item is only placable on ground (on top of another supporting block)
because the dtapack makes items in item frame, all placed blocks have 8 rotations
WARNING: since the datapacks uses item frames it is not recommended having it used for large ammount of blocks, best way to use it is for placeable decoration items
in datapack there are 2 example functions with commands that give custom items (they dont work without apropriate resource pack)
the command for geting the placable item is:
in version V1
/function zz:infiniframes/give_item {item_name:"Name of this item",item_model:"namespace:example_model_1"}
in version V1.1
/function zz:.lib/infiniframes/give_item {item_name:"Name of this item",item_model:"namespace:example_model_1"}
ofcourse with replacing parts with the item name and model you want to use
you can also use the example functions directly, without adding any aditional parameters to the function (in that case you need to modifiy it once in the .mcfunction file and you can use it)
removing this datapack from the world (if it was used) does not delete placeable items, but it stops regulating invisible leftover item frames and makes item not ininetly placable
评论 0
登录后参与评分
还没有评论,来抢沙发吧