jannyboy11 / customrecipes Goto Github PK
View Code? Open in Web Editor NEWIngame recipe management for Spigot servers
Home Page: https://www.spigotmc.org/resources/custom-recipes.11440/
License: BSD 2-Clause "Simplified" License
Ingame recipe management for Spigot servers
Home Page: https://www.spigotmc.org/resources/custom-recipes.11440/
License: BSD 2-Clause "Simplified" License
In the process of adding a recipe for an elytra, I discovered that trying to use shift+click to move items into the interface causes the server to hang until the watchdog stops the server due to the thread becoming unresponsive. I tried this twice then manually moved items into the interface which then didn't crash the server. I'm not sure if this is a conflict with another plugin or something wrong with Paperclip.
This does not generate an error.
I'm using CustomRecipes v2.0.0-SNAPSHOT on Paperclip v1140 (1.12-R0.1-SNAPSHOT)
Here is the output from the watchdog when it detects the hang-up and shuts down (not that it looks terribly useful):
PID: 13 | Suspended: false | Native: false | State: WAITING
Stack:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.util.TimerThread.mainLoop(Timer.java:526)
java.util.TimerThread.run(Timer.java:505)
------------------------------
Current Thread: Paper Async Task Handler Thread - 0
PID: 12 | Suspended: false | Native: false | State: WAITING
Stack:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
------------------------------
Current Thread: Signal Dispatcher
PID: 5 | Suspended: false | Native: false | State: RUNNABLE
Stack:
------------------------------
Current Thread: Finalizer
PID: 3 | Suspended: false | Native: false | State: WAITING
Stack:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
------------------------------
Current Thread: Reference Handler
PID: 2 | Suspended: false | Native: false | State: WAITING
Stack:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.lang.ref.Reference.tryHandlePending(Reference.java:191)
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)
------------------------------
My server can't load the plugins
My server it's 1.11.2
your plugin it's Custom Recipes 2.2.1
also there's no log and i can't remove it while the server is still runing
Hi, I wanted to create a special sword with special items, all containing NBT tags, for example :
iron_ingot with NBT: Unbreakable:1 and HideFlags:63 -> diamond_sword with NBT: Name:Special Sword, etc.
But when the recipe's created, I can craft the Special Sword with any iron_ingot and not just ingots with special NBT tags.
Thanks, btw, my server's on 1.12.
Hey!
So, I've been using CustomRecipes to replace some recipes, and removing the vanilla ones cause an error in console. Hastebin link.
Hope this can be fixed.
Thanks!
First of all, the plugin doesn't seen to work. The commands don't work and recipes are not loaded.
I also get a lot of console errors which seems to be related to recipes:
https://pastebin.com/wTzQRzJq
Thanks.
I'm using 1.12 and the latest version compiled.
Copy pase from Turners forum thread reply:
/removerecipe doesn't seem to be working. It says it removed it but when I try to add a new recipe with the same name (after removed) it does the previous recipe.
[16:56:25] [Server thread/ERROR]: Could not load 'plugins/CustomRecipes-2.2.1 (2).jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_12_R1/inventory/CraftItemStack
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-21fe707-e1ebe52]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_12_R1/inventory/CraftItemStack
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_151]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_151]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:64) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-21fe707-e1ebe52]
... 6 more
Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_151]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_151]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_151]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_151]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:64) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-21fe707-e1ebe52]
... 6 more
I tried 1.12.2 and 1.12.1 versions and 1.12 version
When i try to make a shaped or shapeless craft it says:
Unrecognized recipe type shaped or shapeless. Please choose from [ ].
One feature I've been thinking of, but haven't looked at yet myself, is a nice api and gui system for brewing recipes. In the future, I'd like to have a brewing manager similar to the crafting manager and furnace manager I got now, but I haven't looked into how the brewing stands work. In the ideal situation there's a brewing stand that can have any item as an input, and can have any item as an output, not just potions.
Using essentialsX
Step one: make a count recipe (eg: 100 emeralds=1 diamond)
Step two: max out the second stack because it's only partial
Step three: retrieve the diamond from the results window and the stacks of 64 emeralds turns into stacks of 128 emeralds
I wish the plugin can have the language/message config which can be edit, if it's not too trouble
because most chinese people cant understand the eng
If it have config can be edit, i could translate the message to other people .
Thanks
I made a few nbt recipes to my server and I see that some of them (random) aren't working. I've tried deleting them and making again - all were working before server restart. After restart problem occured again. There aren't any errors/warnings in log file. I've checked plugin folder and all recipes files are in place. I've also some shaped recipes but with them aren't any problems.
Server: PaperSpigot 1.12.2
Plugin version: 2.2.1
(Permission) Crafting recipes with custom player heads seem to cause issues, they are not craftable by players with the permission node but are craftable by ops, attempting to remove a recipe gives a console error.
Version: Paper-1414 (1.12.2)
02/07/2018 21:56:26 [INFO] Rixic issued server command: /removerecipe permission 02/07/2018 21:56:26 [WARN] java.lang.IllegalArgumentException: value already present: com.gmail.jannyboy11.customrecipes.impl.crafting.custom.recipe.PermissionRecipe@72233979 02/07/2018 21:56:26 [WARN] at com.google.common.collect.HashBiMap.putInverse(HashBiMap.java:323) 02/07/2018 21:56:26 [WARN] at com.google.common.collect.HashBiMap.access$800(HashBiMap.java:58) 02/07/2018 21:56:26 [WARN] at com.google.common.collect.HashBiMap$Inverse.put(HashBiMap.java:579) 02/07/2018 21:56:26 [WARN] at com.gmail.jannyboy11.customrecipes.impl.crafting.CRCraftingManager.toNMSRecipe(CRCraftingManager.java:213) 02/07/2018 21:56:26 [WARN] at com.gmail.jannyboy11.customrecipes.impl.crafting.CRCraftingManager.removeRecipe(CRCraftingManager.java:328) 02/07/2018 21:56:26 [WARN] at com.gmail.jannyboy11.customrecipes.impl.crafting.custom.addremove.PermissionRemover.accept(PermissionRemover.java:75) 02/07/2018 21:56:26 [WARN] at com.gmail.jannyboy11.customrecipes.impl.crafting.custom.addremove.PermissionRemover.accept(PermissionRemover.java:17) 02/07/2018 21:56:26 [WARN] at com.gmail.jannyboy11.customrecipes.commands.RemoveRecipeCommandExecutor.onCommand(RemoveRecipeCommandExecutor.java:41) 02/07/2018 21:56:26 [WARN] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 02/07/2018 21:56:26 [WARN] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) 02/07/2018 21:56:26 [WARN] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1472) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1277) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) 02/07/2018 21:56:26 [WARN] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 02/07/2018 21:56:26 [WARN] at java.util.concurrent.FutureTask.run(Unknown Source) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:427) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) 02/07/2018 21:56:26 [WARN] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) 02/07/2018 21:56:26 [WARN] at java.lang.Thread.run(Unknown Source)
No errors in console, i use spigot 1.12.1 my problem is when i create a recipe, and i close the menu, then i can't click furnace or crafting table and 10-20 seconds later the server stop because: timed out... And i dont know how i create a recipe, when i type /addrecipe shaped test this command is open a menu, i place the materials in the table, and then? dont have other button to accept recipe, and dont have place to i place the crafted item... (sorry bad english)
The recipes work until I reboot the server, after which the recipes disappear.
This happens only with the addition of recipes, deleting recipes occurs without bugs.
In the server folder I found the folder with the plugin config, I decided to see what happens when I create or delete craft, during the removal a .dll file with a specific name of craft is created instantly, but nothing is created during the addition!
latest.log
I am trying to create a recipe where the ingredient is a custom item (Fine Sand) and results in a custom result (Fine Glass).
When I try and create the recipe, it overwrites the original furnace recipe where vanilla sand creates vanilla glass. Therefore any type of sand (NOT Fine Sand) can create my Fine Glass item.
I updated to the new 1.12 plugin.
Thanks for that btw!
I never touched my original plugin folder, but since the update, none of the recipes are working.
I had created for example "emerald axe"
When I try create it in a crafting table, nothing happens.
Am I missing something?
Enfait le plugin n'est pas lu ... je pense qu'il n'est pas compatible ... Et n'est donc pas lisible par mon serveur
the GUI for /list recipes is a bit limited. It would be nice to see the ingredients of the recipes in a new inventory when a recipe is clicked.
This is potentially more of a feature request, but it seems as though the plugin comes with a bunch of custom recipes already created. Is it possible to remove all of them (besides removing them one by one). http://i.imgur.com/ASXfvf7.png
Edit: Seem to be hardcoded into the plugin? Not part of the files from what I can see.
Hi there. Often in my server console the following pops up:
Tried to load unrecognized recipe: customrecipes:mbz removed now. CustomRecipes
(mbz is the key of the recipe)
After this, none of the custom recipes work. They all are deleted and don't appear in /listrecipes shapeless.
I'm running 1.12 on my server.
How can I fix? :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.