Creating a new project
Pumpkin plugins use the Go programming language and are compiled to WebAssembly.
Prerequisites
Before we can start, make sure you have the following installed:
Initializing a new module
First, create a new directory for your project and initialize a Go module:
bash
mkdir hello-pumpkin
cd hello-pumpkin
go mod init github.com/yourname/hello-pumpkinNext, add the Pumpkin Go API as a dependency:
bash
go get github.com/Pumpkin-MC/pumpkin-api-goProject Structure
Your project should have at least a main.go file. The structure should look like this:
text
├── go.mod
├── go.sum
└── main.go