跳到正文

Infiniframes lib

作者:G4B8O

(datapack template) - Adds method of converting item models to custom placeable, rotatable blocks using item frames

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

常见问题

Infiniframes lib 支持哪些 Minecraft 版本?

Infiniframes lib 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本。下载时注意选择和你游戏版本一致的文件。

Infiniframes lib 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

G4B8O 的其他作品

查看全部 →