HomeJavaDatapacksInfiniframes lib
Infiniframes lib
DatapacksJava

Infiniframes lib

by G4B8O · on Modrinth

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

⬇ Download on Modrinth

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

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more