claimInventory:
type: inventory
inventory: chest
debug: false
gui: true
size: 54
title: Your Claim
definitions:
p: claimPane
procedural items:
- define core <player.flag[claims.openedCore]>
- define coreSlot 23
- define listy <list>
- foreach <[core].flag[claims.areas]> as:area:
- define slot
- repeat 25:
- define listy:->:claimLockedSlot
- determine <[listy]>
slots:
- [p] [p] [] [] [] [] [] [p] [p]
- [p] [p] [] [] [] [] [] [p] [p]
- [p] [p] [] [] [x] [] [] [p] [p]
- [p] [p] [] [] [] [] [] [p] [p]
- [p] [p] [] [] [] [] [] [p] [p]
- [p] [p] [p] [p] [p] [p] [p] [p] [claimSettings]
hi there, i want to make a claim system where you can buy slots of chunks. im trying to floodfill algorithm from the center "x" and adding coords to the chunk to check if the chunk is claimed or not via a flag. any ideas how to start?