Cursor rule
.cursor/rules/rules.mdcCursor rules
Quality
92/100
Scores the file, not the repository.Length
501 words
14 headings · 1 code blocksRepository
0
— · pushed 47 days agoLast changed
3 days ago
First indexed 3 days ago.1# Minecraft Fabric Mod Development Rules23## Project Context4You are working on a Minecraft Fabric mod project with the following structure:5- Fabric mod for Minecraft 1.21.5+6- Uses Fabric Loader 0.16.14+ and Fabric API7- Java 21 required8- Gradle build system with Fabric Loom9- CI/CD via GitHub Actions10- Documentation site with Docusaurus1112## Key Technologies13- **Language**: Java 2114- **Build Tool**: Gradle 8.12.1 with Fabric Loom15- **Framework**: Fabric (Minecraft modding)16- **Testing**: Minecraft test server via build.ps117- **Documentation**: Docusaurus (React/TypeScript)18- **CI/CD**: GitHub Actions19- **Publishing**: Modrinth, GitHub Releases2021## Project Structure22```23mods-compostables/24├── src/main/java/ # Java source code25├── src/main/resources/ # Resources (mixins, fabric.mod.json)26├── docs/ # Documentation site (Docusaurus)27├── scripts/ # Utility scripts28├── gradle.properties # Mod configuration29└── build.gradle # Build configuration30```3132## Namespace Convention33- **Organization**: org.survivorsunited34- **Mod ID**: Uses "su-" prefix (e.g., su-compostables)35- **JAR Name**: Uses "su-" prefix36- **Java Package**: org.survivorsunited.mods.{modname}37- **Important**: "SU" prefix is ONLY for JAR names, Modrinth, and GitHub repos - NOT for internal code3839## Configuration Management40All mod properties are centralized in `gradle.properties`:41- Minecraft/Fabric versions42- Mod metadata (name, version, ID, etc.)43- Dependencies44- Use property expansion in fabric.mod.json and build.gradle4546## Development Workflow471. Make changes to Java code or resources482. Run `.\build.ps1` to build493. Run `.\build.ps1 -StartServer` to test with local server504. Update documentation in `/docs` if needed515. Commit changes (mod will be built by CI)526. Tag releases for automatic publishing5354## Build Scripts55- **build.ps1**: Main build script56 - Sets up Java 21 environment57 - Builds mod58 - Optionally starts test server with mod59 - Downloads MC server & Fabric loader automatically6061- **scripts/start-server.ps1**: Advanced server launcher62 - Auto-detects Fabric server JAR63 - Optimized JVM flags (8G-32G RAM)64 - Automatic restart on crash6566## CI/CD Pipeline67GitHub Actions automatically:681. Builds mod on every push/PR692. Deploys documentation to GitHub Pages (main branch)703. On release (tags):71 - Creates GitHub release with changelog72 - Updates Modrinth project description from docs/MODRINTH.md73 - Publishes mod to Modrinth7475## Documentation76- **README.md**: Repository operations and development info77- **docs/**: All gameplay and mod features documentation78- **docs/MODRINTH.md**: Description for Modrinth project page7980## Code Style81- Follow Java conventions82- Use meaningful variable names83- Minimize comments (self-documenting code)84- Use existing patterns in codebase85- NEVER add comments unless explicitly requested8687## Testing88- Use local test server via build.ps189- Test both client and server functionality90- Verify farmer villager interactions91- Check all compostable items work correctly9293## Common Tasks94- **Add new compostable item**: Update Compostables.java and FarmerMixin.java if portable95- **Change composting chance**: Modify value in registerCompostableItems()96- **Update docs**: Edit files in /docs folder97- **Release new version**: Update mod_version in gradle.properties, commit, tag, push9899## Important Files100- `gradle.properties`: Central configuration101- `src/main/resources/fabric.mod.json`: Mod metadata (uses property expansion)102- `src/main/java/.../Compostables.java`: Main mod class103- `src/main/java/.../mixin/FarmerMixin.java`: Villager behavior104- `docs/MODRINTH.md`: Modrinth project description
Also in survivorsunited/mods-su-compostables
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| survivorsunited/mods-su-compostables.cursor/rules/ci-cd-workflow.mdc · 0 | Cursor rules | setupbuildgitsecurity+3 | 63/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/development-workflow.mdc · 0 | Cursor rules | setupbuildteststyle+4 | 86/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/documentation-standards.mdc · 0 | Cursor rules | setupbuildtestlint-format+4 | 91/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/gradle-build-standards.mdc · 0 | Cursor rules | buildstyledependenciesdeployment | 78/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/java-coding-standards.mdc · 0 | Cursor rules | stylearch | 58/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/proj-compostables.mdc · 0 | Cursor rules | archsecuritydeploymentagent-behaviour+1 | 66/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/project-overview.mdc · 0 | Cursor rules | buildarchdeploymentagent-behaviour+1 | 67/100 | 3 days ago | |
| survivorsunited/mods-su-compostables.cursor/rules/recipe-json-standards.mdc · 0 | Cursor rules | lint-formatstylearchtypes | 62/100 | 3 days ago |
Diff against .cursor/rules/ci-cd-workflow.mdc Diff against .cursor/rules/development-workflow.mdc Diff against .cursor/rules/documentation-standards.mdc Diff against .cursor/rules/gradle-build-standards.mdc Diff against .cursor/rules/java-coding-standards.mdc Diff against .cursor/rules/proj-compostables.mdc Diff against .cursor/rules/project-overview.mdc Diff against .cursor/rules/recipe-json-standards.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago |
