#Barrel system

1 messages · Page 1 of 1 (latest)

clear ridge
#

Hi, I need help with making a system in Skript similar to the BreweryX plugin.

I already have code that detects when a player builds a barrel structure (made from stairs and a sign). When the structure is completed, it confirms that the barrel has been created.

Now I want to make it so that:

  1. Every barrel has its own unique inventory (like a chest GUI).
  2. When a player right-clicks a barrel, it opens that barrel’s own inventory.
  3. The inventory should save its contents even after the server restarts.
  4. Each barrel should be separate, so putting items into one barrel does not affect the others.

How to make it please?
When I make barrel, it save location of all blocks of that barrel to {_barrel_loc_1} - {_barrel_loc_8}
Please help me with it
My code to make that barrels:

solar lake
clear ridge
#

please

marsh rock
#

yeah u can add nbt to it

clear ridge
#

some new nbt "barrel_id"

clear ridge
wicked schooner
#

shanebee's backpack snippet will tell you how to store inventories in NBT

clear ridge
#

I want it something like this

#

to all barrels have own chest inventory when I click right on it

wicked schooner
#

Shanebee github