GithubHelp home page GithubHelp logo

maxopoly / burricos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from civcraft/burricos

0.0 2.0 0.0 245 KB

Expand donkey inventories to the capability of a double chest, without external storage

License: BSD 3-Clause "New" or "Revised" License

Java 100.00%

burricos's Introduction

Burricos

Donkey

Expand donkey inventories to the capability of a double chest, 54 slots instead of 15, without external storage. One slot is reserved for the saddle so the effective number of slots is actually 53.

Usage

  • Fabricate a chest item with Donkey double chest as lore, for example with FactoryMod "Animal husbandry" factory and "Donky double chest" recipe.
  • Click on a tamed, unchested donkey
  • Open donkey, should now have 54 inventory slots instead of the regular 15
  • It will always have a saddle in it's first slot, which cannot be removed.

Features

  • Does not use any kind of external storage, only NMS methods and NBTs
  • Donkeys drop loot normally (including lore'd chest)

Internals

The donkey's 15 slot (+ 1 saddle + 1 armor) inventory is replaced by a 54 slot inventory. When a player interacts with the donley's inventory, it is "zipped" into the NBT of the donkey's saddle item. After being saved to disk on server stop, chunk unload or player logout, later when the entity is loaded into memory again, the single item is "unzipped" into a 54 slot inventory.

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.