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:
- Every barrel has its own unique inventory (like a chest GUI).
- When a player right-clicks a barrel, it opens that barrel’s own inventory.
- The inventory should save its contents even after the server restarts.
- 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: