Code Monkey home page Code Monkey logo

noteblockitemsongloader's Introduction

NBT NoteBlock Songs loader

Library and Plugin to load NoteBlockSongs from an item (for example a music disc held by the player).
The NBS file is saved as a byte array inside the item's NBT data and loaded back when needed. It's possible to store up to ~2MB per item.
The only dependency of this plugin is NoteBlockAPI (can be shaded). "commons-io" and "NBTApi" are shaded inside the plugin.
The "commands.*" package contains some examples on how to use this library. The commands can be disabled completely in the config.yml file.
The library supports downloading any file type (you can restrict the file to .nbs manually when checking the url or changing the download process), the nbs metadata is kept (title, author, description, ...) and they can be retrieved when loading back the song.


Why?

With this plugin there is no need to save .nbs files anymore and sync them across servers. You can now attach songs to items (for example: armor sets in RPGs) and play them at any given time. Inventory syncing plugins will also copy the song to all their targets. Lastly in Creative servers players can use their "inventory hotbar save" feature "X+<1-9>" allowing them to play custom songs in their plots or to friends.
Why not saving a link instead? No more file hosting websites needed!
Warning: this plugin is best suited for servers with many songs or where songs are added often, as it doesn't offer any "no duplicated songs" compression or similar.

noteblockitemsongloader's People

Stargazers

 avatar

Watchers

 avatar

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.