#Cutom Backpack

15 messages · Page 1 of 1 (latest)

hexed osprey
#

Creating a custom backpack is quite challenging, but there are some ways to make it work.
First, you’ll need a powerful JS 1.7.0 build. Since it's not yet published, you’ll need to build it yourself. (I may release a continuation once I figure out how to bind containers with item handlers and the interation of create stress system.)
For now, all we can do is hoping Prunoideae publishes the item handler.

#

StartUp scripts:

StartupEvents.registry("item", event => {
    event.create("backpack", "basic")
    .maxStackSize(1)
    .attachCapability(CapabilityBuilder.ITEM.itemStack(27))
});
#

ServerScripts:

tight irisBOT
#

Paste version of backpack.js from @hexed osprey

hexed osprey
#

You can use NBT to store items instead of relying on powerfuljs, making a basic backpack is possible with KubeJS.
Althought it sucks

#
const $CompoundTag = Java.loadClass("net.minecraft.nbt.CompoundTag");
proven tulip
#

Would it be hard to add restriction of what kind of items you can store in the container?

crisp swallow
hexed osprey
hexed osprey
echo finch
#

can you add this to a curios slot and then have the open inv set to a keybind? or make it like a portable ender chest :0

hexed osprey
echo finch
#

do you think its doable?

hexed osprey