Paste #10140: cuboid tag and new tag manager issues

Date: 2014/09/27 21:15:22 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


Location Available:
    #A procedure to determine if a location is 'available'. 
    #To see if the location above it contains entities.
    #Like for beds / chairs
    type: procedure
    definitions: location
    script:
    - define cuboid <def[location]>|<def[location].above>
    - announce <def[cuboid].as_cuboid.list_entities.is_empty||Invalid_Cuboid>
    - if <def[cuboid].list_entities.is_empty> determine true
    - determine false