Coder Social home page Coder Social logo

Smelly API

Welcome to a Framework designed to add easy, Built in fast modules to make Developing Gametest Addons Eaiser, Faster, and Cleaner.

Features

Smelly API Adds many features that make Building gametest addons eaiser Like:

  • Custom Command Generator
  • Lang system with Predefined Emojies, and Profainty
  • 3 Database Types (Scoreboard, Item, Dynamic Property)
  • Many Scripts that add more funcanility to Verious Mojang Clases
  • Built in Tick Scheduling system and verious formatting options
  • Easy Drop in plugins
  • Build system that Compiles your packs to a Plugin Desier

Npm Commands

Compiles a pack and exports it in build/output/

$ npm run compile <Plugins: String,> [Name: String] [Version: String]

Example

$ npm run compile Factions,"Chat Ranks" Factions 5.0.2

Documentation

Creating a Command:

This is a Simple Spawn Command teleporting the player to Spawn

import { SA } from "../../../../index.js";
import { Location } from "mojang-minecraft";

const command = new SA.Command(
  {
    name: "spawn",
    description: "Teleports you to spawn",
    tags: [],
    aliases: ["s"],
  },
  (ctx) => {
    ctx.sender.teleport(new Location(0, 0, 0), ctx.sender.dimension, 0, 0);
  }
);

Creating a Command using aguments is also very easy

import { SA } from "../../../../index.js";
import { Location } from "mojang-minecraft";

const command = new SA.Command({
  name: "spawn",
  description: "Teleports you to spawn",
  tags: [],
  aliases: ["s"],
})
  .addOption(
    "dimension",
    ["overworld", "nether", "the end"],
    "Dimension to tp in"
  )
  .executes((ctx, { dimension }) => {
    ctx.sender.teleport(
      new Location(0, 0, 0),
      world.getDimension(dimension),
      0,
      0
    );
  });

If You want to make a command where only certin people can use it add tags to the command registry like:

import { SA } from "../../../../index.js";

const command = new SA.Command({
  name: "kick",
  description: "Kicks a player",
  tags: ["staff"],
})
  .addOption("player", "player", "Player to kick")
  .executes((ctx, { player }) => {
    player.runCommand(`kick @s`);
    ctx.reply(`Kicked ${player.nameTag}`);
  });

Support

For support, join the discord: https://discord.gg/dMa3A5UYKX

smelly-api's Projects

chest-gui icon chest-gui

Minecraft bedrock chest GUI template very easy to use and make custom menus

smelly-anti-cheat icon smelly-anti-cheat

Best Anti-Cheat on Minecraft Bedrock, Uses Gametest and one of the most advanced framework.

smelly-api icon smelly-api

A wrapper for the Minecraft Bedrock Gametest Framework.

smelly-leaderboards icon smelly-leaderboards

Create beautiful Leaderboards that update constantly and show player stats for everyone in your game. Smelly Leaderboards are used to display Minecraft bedrock scoreboards in floating text. This is very useful because it allows for great server creativity for map creators and people who love Minecraft!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.