GlowstoneMC / Glowstone-Legacy

An open-source server for the Bukkit Minecraft modding interface
Other
363 stars 121 forks source link

Crafting recipes for banners/fireworks #438

Open dequis opened 10 years ago

dequis commented 10 years ago

(Edit: added fireworks to title)

The crafting recipes for banners are rather complex:

http://minecraft.gamepedia.com/Banners

I vote for specialcasing this monster.

ZephireNZ commented 10 years ago

I'm already worknig on this. Bukkit itself has no support for this kind of recipe - ones where NBT is either used or edited. (See 'Special recipes' on trello)

I'm creating a 'SpecialRecipe' class, that includes methods for getting a result, given a set of inputs. This is similar to the way that Vanilla does it. Currently it's not just Banners that do this, it also affects Fireworks and their effects, Book and Map duplication, etc.

ZephireNZ commented 10 years ago

Oh, and tool repair as well. That's not related to NBT, but there's still far too many cases to simply deal with in a static file.

ZephireNZ commented 10 years ago

FYI, you should be able to do the static Banner recipes no problem (ie the ones with 6 coloured wool and 1 stick).