Add celseed: Minecraft seed finder with CEL filter expressions
Single-file C CLI program that searches Minecraft seeds using cubiomes for biome/structure generation and a built-in CEL-subset expression evaluator for filtering. Supports all MC versions from Beta 1.7 to 26.3. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
843f1ce8f3
8 changed files with 1286 additions and 0 deletions
37
Makefile
Normal file
37
Makefile
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
CC = gcc
|
||||
CFLAGS = -O2 -Wall -Wextra -std=c11
|
||||
|
||||
CUBIOMES_SRCS = \
|
||||
cubiomes/biomenoise.c \
|
||||
cubiomes/biomes.c \
|
||||
cubiomes/finders.c \
|
||||
cubiomes/generator.c \
|
||||
cubiomes/layers.c \
|
||||
cubiomes/noise.c \
|
||||
cubiomes/quadbase.c \
|
||||
cubiomes/terrainnoise.c \
|
||||
cubiomes/util.c \
|
||||
cubiomes/xradv.c \
|
||||
cubiomes/features/abandoned_camp.c \
|
||||
cubiomes/features/end_city.c \
|
||||
cubiomes/features/fortress.c \
|
||||
cubiomes/features/ore.c \
|
||||
cubiomes/features/stronghold.c
|
||||
|
||||
CUBIOMES_OBJS = $(CUBIOMES_SRCS:.c=.o)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: celseed
|
||||
|
||||
celseed: celseed.o $(CUBIOMES_OBJS)
|
||||
$(CC) -o $@ $^ -lm
|
||||
|
||||
celseed.o: celseed.c
|
||||
$(CC) $(CFLAGS) -Wno-format-truncation -Wno-stringop-truncation -c -o $@ $<
|
||||
|
||||
$(CUBIOMES_OBJS): %.o: %.c
|
||||
$(CC) $(CFLAGS) -Icubiomes -w -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f celseed celseed.o $(CUBIOMES_OBJS)
|
||||
Loading…
Add table
Add a link
Reference in a new issue