Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
env:
CI_BUILD: true
PR_BUILD: false
VERSION_TYPE: release
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -28,7 +29,7 @@ jobs:
uses: christian-draeger/read-properties@1.1.1
with:
path: gradle.properties
properties: 'mod_id mod_name java_version upload'
properties: 'mod_id mod_name java_version modrinth_id curseforge_id upload'

- name: Setup Java ${{ steps.properties.outputs.java_version }}
uses: actions/setup-java@v3.6.0
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
path: build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}.jar

- name: Publish to maven
if: ${{ steps.properties.outputs.upload }}
if: ${{ steps.properties.outputs.upload == 'true' }}
run: ./gradlew publish
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
Expand All @@ -71,4 +72,31 @@ jobs:
uses: Anvil-Dev/dedicated-server-launch-test@1.21.1-neoforge
with:
mod: build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}.jar
extra-mods: patchouli:1.21-87-neoforge anvilcraft:1.21.1-1.5.0+pre-release.21 create:1.21.1-6.0.6
extra-mods: patchouli:1.21-87-neoforge anvilcraft:1.21.1-1.5.2+hotfix.1650 create:1.21.1-6.0.6

- name: publish neoforge mc mod
uses: Kir-Antipov/mc-publish@v3.3
if: ${{ steps.properties.outputs.upload == 'true' }}
continue-on-error: true
Comment thread
Gu-ZT marked this conversation as resolved.
with:
name: "${{ steps.properties.outputs.mod_name }} For NeoForge v${{ steps.version.outputs.version }}"
version: ${{ steps.version.outputs.version }}
game-versions: 1.21.1
version-type: ${{ env.VERSION_TYPE }}
java: 21
fail-mode: skip

modrinth-id: ${{ steps.properties.outputs.modrinth_id }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true

curseforge-id: ${{ steps.properties.outputs.curseforge_id }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

dependencies: |
create@mc1.21.1-6.0.6(required){modrinth:LNytGWDc}{curseforge:328085}
anvilcraft@1.21.1-1.5.2+hotfix.1650(required){modrinth:vuISAWPc}{curseforge:986251}

files: |
build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}.jar
build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}-sources.jar
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:
curseforge-id: ${{ steps.properties.outputs.curseforge_id }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

dependencies: |
create@mc1.21.1-6.0.6(required){modrinth:LNytGWDc}{curseforge:328085}
anvilcraft@1.21.1-1.5.2+hotfix.1650(required){modrinth:vuISAWPc}{curseforge:986251}

files: |
build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}.jar
build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-${{ steps.version.outputs.version }}-sources.jar
179 changes: 179 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# AnvilCraft Create Addition

English | [中文](./README.md)

## Introduction

AnvilCraft Create Addition is an extension mod designed for the NeoForge modding ecosystem. It provides deep integration between **AnvilCraft** and **Create**, two excellent mods, offering players new possibilities for mechanical crafting, power transmission, and magical enchantments.

## Mod Features

### Core Functionality

- **Cogwheel Amulet**: A unique item combining Create's precision mechanisms with AnvilCraft's amulet system
- **Create Mod Integration**: Deep integration with Create Mod, providing richer power and mechanical solutions
- **Amulet System Extension**: Extends AnvilCraft's amulet functionality through an amulet type system
- **Batch Crafter Unpacking**: Advanced unpacking solutions for Create's batch processing machines
- **Boiler Heater**: Additional boiler heating mechanisms
- **A new way of generating electricity**: Learn about the Faraday Disk Generator.

### Key Features

✨ **Deep Mod Integration** - Seamless fusion of AnvilCraft and Create mod features

⚙️ **Power System Extension** - New power transmission and stress management mechanisms

🛠️ **Crafting Enhancement** - More synthesis methods and crafting possibilities

🎨 **Beautiful Design** - Carefully designed item and block aesthetics

## Technical Information

### Versions

- **Mod Version**: 1.0.0
- **Minecraft Version**: 1.21.1
- **NeoForge Version**: 21.1.152+
- **Java Version**: 21+

### Core Dependencies

- **AnvilCraft**: 1.5.2+hotfix.1650
- **Create**: 6.0.6-107
- **AnvilLib**: 1.4.0+build.172
- **Flywheel**: 1.0.4-30
- **Ponder**: 1.0.56

## Installation Guide

### Requirements

1. **Minecraft**: 1.21.1
2. **NeoForge**: 21.1.152 or higher
3. **Required Mods**:
- AnvilCraft
- Create
- AnvilLib (usually provided by AnvilCraft)

### Installation Steps

1. Download the latest `.jar` file
2. Place the JAR file in your `mods` folder
3. Ensure all required prerequisite mods are installed
4. Launch the game

## Configuration

The mod configuration file is located at `config/anvilcraft_create_addition-common.toml`

### Configuration Options

```toml
# The ratio of the relative linear speed of the copper block and the magnet
# to the amount of charge generated
chargeGeneratedEfficiency = 0.72

# The mysterious coefficient, perhaps related to the stress required by the generator
stressDissipationCoefficient = 1.76
```

## Project Structure

```
AnvilCraft-Create-Addition/
├── src/main/
│ ├── java/dev/anvilcraft/addon/create/
│ │ ├── init/ # Initialization modules (items, blocks, amulets, etc.)
│ │ ├── integration/ # Integration with other mods
│ │ ├── client/ # Client-side code
│ │ ├── data/ # Data generation
│ │ └── util/ # Utility classes
│ └── resources/ # Resource files
├── gradle/ # Gradle configuration
├── build.gradle # Build configuration
└── dependencies.gradle # Dependency definitions
```

## Development

### Environment Setup

This project uses **Gradle** as the build system and **NeoForge** as the mod loader.

### Building the Project

```bash
# Generate IDE configurations
./gradlew genSources

# Build the mod
./gradlew build

# Run development server
./gradlew runServer

# Run development client
./gradlew runClient
```

### Code Style

- Uses **Lombok** library to reduce boilerplate code
- Follows Java naming conventions
- Leverages Java 21 features

## License

### Code

The code in this project is licensed under [LGPL-3.0](./LICENSE) by default.

### Assets

Non-code assets (such as textures, models, etc.) are licensed under [ASSET_LICENSE](./ASSETS_LICENSE) (ARR).

## Contributing

We welcome contributions from the community! If you want to contribute code or report issues:

1. Fork this repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## FAQ

### Q: Can this mod be used standalone?
A: No, this is an extension mod and must be used together with AnvilCraft and Create.

### Q: Which versions does this mod support?
A: Currently only supports Minecraft 1.21.1 and NeoForge 21.1.152+.

### Q: How do I report a bug?
A: Please create an Issue in the GitHub repository with detailed steps to reproduce the problem.

## Related Projects

- [AnvilCraft](https://github.com/Anvil-Dev/AnvilCraft) - Core crafting and amulet system
- [Create](https://github.com/Creators-of-Create/Create) - Mechanical and power systems
- [AnvilLib](https://github.com/Anvil-Dev/AnvilLib) - Shared library

## Acknowledgments

Thanks to the following projects for inspiration and technical support:

- Create Mod team
- AnvilCraft development team
- Dubhe Studio
- Anvil development team

## Contact

- **GitHub**: [AnvilCraft-Create-Addition](https://github.com/Anvil-Dev/AnvilCraft-Create-Addition)
- **Maintainers**: Anvil-Dev Team

---

**Enjoy your game!** 🎮

Loading
Loading