Easy, flexible and high-level scripting wrapper!
RockWrap is a scripting wrapper written in TypeScript, to simplify some of your work, by using some of high-level methods or create your own server wrapper with this.
Our wrapper includes custom event system, API to send webhooks to your Discord cannel, methods converted from default slash commands to API and much more!
- To start using our wrapper, download our repository, then insert it into your scripting folder.
your-addon/
├── src/
│ ├── api/
│ │ └── @rockwrap/
│ └── core/
│ └── > Scripts
├── manifest.json
└── > Other files.
Tip
You can put our wrapper into api
or wrapper
folder, for better import readability.
- Start using our wrapper!
import { world } from "@minecraft/server";
import { BeforeEvents } from "api/@rockwrap/minecraft";
BeforeEvents.MessageSent(({ message, cancelEvent, player }): void => {
// Cancels out the event.
cancelEvent();
// Override default message.
world.sendMessage(`§f${player.name} §8» §7${message}`);
});
Tip
We recommend checking out our documentation, to make development with our API even easier!
Important
Documentation: Documentation
Tip
Tutorials for beginners: Tutorials
Here you can find everyone, who helped with wrapper development process.