Giter Site home page Giter Site logo

cocktail-spigot's Introduction

Cocktail (spigot) ๐Ÿธ

Cocktail is a Spigot plugin designed to expand the capabilities of Minecraft Datapacks via useful and powerful commands and utilities.

Requires CommandAPI

Features

Datapack Updater

Update your datapacks in a jiffy! Add your link to the config, and it'll download your datapacks updates on reload or start up

datapack-name-here:
  # Make sure the link either redirects to a download page or is a direct link to a zip of the pack
  url: "https://your-datapack.link/here.zip"

Advanced Commands

Cocktail adds many commands, these commands are accessible to datapacks unlike traditional Spigot commands.

  • Use /velocity for velocity manipulation,
  • Use /damage to damage exactly the specified damage to an entity,

And many more commands! (see the wiki)

More to come!

Disclaimers

cocktail-spigot's People

Contributors

hoodierocks avatar diamonddp avatar fiyrr avatar

Stargazers

Dannyx avatar  avatar  avatar  avatar HeDeAn avatar

cocktail-spigot's Issues

Suggestion/Feature request: /watch command

Is your feature request related to a problem? Please describe.
Checking for block updates is, for the most part, not realistically possible within a datapack. The best you can get is either scanning blocks for updates, having a tick loop on markers representing blocks, or having a scoreboard set up for checking when a certain block type is placed, and raytracing from the players position. All of them can get really laggy really fast in certain scenarios, and aren't all that fun to set up.

Describe the solution you'd like
The /watch command watches for block updates. An example of a proposed syntax for the /watch command is as follows:

# watches for block updates at a certain position
watch position <x> <y> <z> <function-name> [start|stop]
# watches for block updates anywhere of a specific block type
watch block <block-id> <function-name> [start|stop]
# watches for block updates resulting from direct player interaction (like chest contents or placing/breaking)
watch player <selector> <function-name> [start|stop]

This would allow you to set up events for when a block is modified, and will run the specified function name at the position of the modified block (it would also run it as the entity/player that interacted with the block.

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.