···18621862 val x = pos.getComponentAlongAxis(axis)
18631863 if x < 0 || x >= 11 then boundary.break(false)
18641864 true
18651865- ItemTooltipCallback.EVENT.register: (stack, ctx, lines) =>
18661866- stack.getItem match
18671867- case _: Mediaweave if Option(stack.getNbt).exists(_.get("lock") != null) =>
18681868- lines.append(Text.literal("Tied").styled(_.withColor(0x782fe0)))
18691869- lines.append(Text.literal("Cannot be unequipped and won't be dropped on death.").styled(_.withColor(0x4b1d8c)))
18701870- lines.append(Text.literal("Use ").append(Text.empty().append(InlinePatternData(sw"aqeqqqwqqqqqaqwqa").asText(withExtra=false)).styled(_.withColor(0x782fe0))).append(" to untie.").styled(_.withColor(0x4b1d8c)))
18711871- case _ =>
18721865 // dump patterns
18731866 val out = Files.newOutputStream(Path.of("patterns.csv"))
18741867 try