My idea why the smithing recipe isn't providing the metadata you gave it is, that when you upgrade your gear from diamond to netherite the stats like enchantments are put in the new upgraded item and so it may override the metadata provided by the plugin
Bukkit/Spigot are limited and you can not craft custom items, you simply can not do it. The only way for fully custom recipes is for you to create the whole thing from scratch, what I have done is added a new custom item for a workbench, when opening it I cancel the event and show a new GUI made by me, which is literally just a crafting square and a result square and the rest is blocked out by glass panes. Then you will have to handle every single darn click, and by the way, good luck figuring out how to use NMS to send the inventory update packets to the client, it's a gigantic pain in the ass to do all this.
How come he did it then ? Or are you talking about older versions ? Maybe this was added in the latest versions. Thus Hypixel choosing a custom crafting table for skyblock.
I'm having trouble where the RecipeChoice.Exact is accepting any item that is the same base material as my customized item. It seems to ignore attempting to match any of the metadata / lore. Has anyone else had this issue? A deep dive in google tells me this doesn't work, but I feel like there has to be an easier way than doing some sketchy logic in the PrepareItemcraftEvent. Anyone have any ideas?
How can you make it so the recipe requires several of the ingredient in one slot? Example: Compact Diamond, requires a 2x2 grid of 16 diamonds per slot. But the exact ingredient ignores amount
Sadly, I do not think this is possible. If you're thinking of Hypixel skyblock in the making, the reason that works is because they completely remade the crafting table GUI, allowing them to make custom recipes without the recipes system.
u need to make normal recipe,check Crafting inventory for ingredients with amount, next CraftItemEvent, and if they click the recipe, cancel event and if they have ingredients in craftingInventory set item on cursor
if you want to do this in a different class use this instead make sure it gets loaded tho ShapedRecipe kbs = new ShapedRecipe(NamespacedKey.minecraft("kbs"), Ksword); kbs.shape(" A ", " B ", " C "); kbs.setIngredient('A', Material.DIAMOND_BLOCK); kbs.setIngredient('B', Material.DIAMOND_BLOCK); kbs.setIngredient('C', Material.STICK); Bukkit.addRecipe(kbs);
Man really said "I didn't know they added cigarettes to minecraft" when he hovered over SmokingRecipe 😂😂
finally someone caught that hahahah
My idea why the smithing recipe isn't providing the metadata you gave it is, that when you upgrade your gear from diamond to netherite the stats like enchantments are put in the new upgraded item and so it may override the metadata provided by the plugin
Don't feel bad about your glasses my guy!
Bukkit/Spigot are limited and you can not craft custom items, you simply can not do it.
The only way for fully custom recipes is for you to create the whole thing from scratch, what I have done is added a new custom item for a workbench, when opening it I cancel the event and show a new GUI made by me, which is literally just a crafting square and a result square and the rest is blocked out by glass panes.
Then you will have to handle every single darn click, and by the way, good luck figuring out how to use NMS to send the inventory update packets to the client, it's a gigantic pain in the ass to do all this.
How come he did it then ? Or are you talking about older versions ? Maybe this was added in the latest versions. Thus Hypixel choosing a custom crafting table for skyblock.
best explanation out there. thanks:)
Glad it was helpful!
Again First 🎉
Hooray
does this show up in the recipe book area?
you need two iron and one wooden stick for a iron sword
thanks!
No shit surlock
I'm having trouble where the RecipeChoice.Exact is accepting any item that is the same base material as my customized item. It seems to ignore attempting to match any of the metadata / lore. Has anyone else had this issue? A deep dive in google tells me this doesn't work, but I feel like there has to be an easier way than doing some sketchy logic in the PrepareItemcraftEvent. Anyone have any ideas?
Me: OH! So simple fucking algebra! GREAT!
How can you make it so the recipe requires several of the ingredient in one slot?
Example: Compact Diamond, requires a 2x2 grid of 16 diamonds per slot.
But the exact ingredient ignores amount
Sadly, I do not think this is possible. If you're thinking of Hypixel skyblock in the making, the reason that works is because they completely remade the crafting table GUI, allowing them to make custom recipes without the recipes system.
u need to make normal recipe,check Crafting inventory for ingredients with amount, next CraftItemEvent, and if they click the recipe, cancel event and if they have ingredients in craftingInventory set item on cursor
Hey :)
yyoyoyyoyoyo
10:43
Yoyotoyooyoyoyoyooyoyoyooyoyooyooyoyoyoyoyooyo
if you want to do this in a different class use this instead make sure it gets loaded tho
ShapedRecipe kbs = new ShapedRecipe(NamespacedKey.minecraft("kbs"), Ksword);
kbs.shape(" A ", " B ", " C ");
kbs.setIngredient('A', Material.DIAMOND_BLOCK);
kbs.setIngredient('B', Material.DIAMOND_BLOCK);
kbs.setIngredient('C', Material.STICK);
Bukkit.addRecipe(kbs);
I had this problem and I didn't know why it wouldn't work. Thank you so much!
@코딩하는 미르 just make a hashmap, put every custom you're creating, and then just hashmap.get(nameOfTheRecipe)