diff --git a/src/main/java/carpet/script/CarpetExpression.java b/src/main/java/carpet/script/CarpetExpression.java
index 41ca65e9..87c4e4dc 100644
--- a/src/main/java/carpet/script/CarpetExpression.java
+++ b/src/main/java/carpet/script/CarpetExpression.java
@@ -32,6 +32,8 @@ import com.google.common.collect.Sets;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
+import it.unimi.dsi.fastutil.longs.LongSet;
+import it.unimi.dsi.fastutil.objects.ObjectSortedSet;
import net.minecraft.block.BarrierBlock;
import net.minecraft.block.BedrockBlock;
import net.minecraft.block.Block;
@@ -617,6 +619,20 @@ public class CarpetExpression
* but chunks can only be valid in a few states: full, features, liquid_carvers,
* and structure_starts. Returns null if the chunk is not in memory unless called with optional
* true.
structures(pos), structures(pos, structure_name)Returns structure information for a given block position. Note that strucuture information is the same for
+ * all the blocks from the same chunk. structures function can be called with a block, or a block and
+ * a structure name. In the first case it returns a map of structures at a given position, keyed by structure name,
+ * with values indicating the bounding box of the structure - a pair of two 3-value coords (see examples). When
+ * called with an extra structure name, returns list of components for that structure, with their name, direction
+ * and two sets of coordinates indicating the bounding box of the structure piece.
structure_references(pos), structure_references(pos, structure_name)Returns structure information that a chunk with a given block position is part of.
+ * structure_references function can be called with a block, or a block and
+ * a structure name. In the first case it returns a list of structure names that give chunk belongs to. When
+ * called with an extra structure name, returns list of positions pointing to the lowest block position in chunks that
+ * hold structure starts for these structures. You can query that chunk structures then to get its bounding boxes.
suffocates(pos)Boolean function, true if the block causes suffocation.
*power(pos)