Code Monkey home page Code Monkey logo

extra-compostables's Introduction

Banner

extra-compostables

A simple, absolutely bare-bones, and performance-optimal way to make more items compostable in a composter block!

Written in just 60 lines of code, this plugin doesn't mess with any behavior and simply registers configured items into the composter block's internal compostables registry. Vanilla handles the rest!

Due to the nature of the implementation, this plugin is currently only compatible with 1.18 servers. If requested, I can add backwards compatibility for older versions.

Inspired by Little Composter. While there's nothing wrong with Little Composter, I did find the implementation very convoluted and poor performance-wise, so I decided to create a far cleaner and easier to use implementation!

extra-compostables's People

Contributors

nkomarn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

extra-compostables's Issues

Can't launch plugin

Hello there, I loved the idea of your plugin but sadly I cannot use it on PaperSpigot 1.81.1

This is the error I get when launching my server

13.01 17:42:07 [Server] INFO Enabling extracompostables v1.0.1
13.01 17:42:07 [Server] ERROR Error occurred while enabling extracompostables v1.0.1 (Is it up to date?)
13.01 17:42:07 [Server] INFO java.lang.NoSuchMethodError: 'java.lang.Object net.minecraft.core.RegistryBlocks.get(net.minecraft.resources.MinecraftKey)'
13.01 17:42:07 [Server] INFO at xyz.nkomarn.extracompostables.ExtraCompostables.registerCompostable(ExtraCompostables.java:57) ~[ExtraCompostables.jar:?]
13.01 17:42:07 [Server] INFO at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
13.01 17:42:07 [Server] INFO at xyz.nkomarn.extracompostables.ExtraCompostables.onEnable(ExtraCompostables.java:27) ~[ExtraCompostables.jar:?]
13.01 17:42:07 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.01 17:42:07 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.01 17:42:07 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
13.01 17:42:07 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:564) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:478) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:727) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:503) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:313) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1202) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-148]
13.01 17:42:07 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
13.01 17:42:07 [Server] INFO Disabling extracompostables v1.0.1

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.