Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Please_Help, Jun 12, 2021.
Hello! I was just wondering how to make a colored banner material to set to a block in a world.
Use BannerMeta.addPattern(new Pattern(DyeColor.YOURCOLOR, PatternType.BASE)).
Sorry, while looking at the 1.8.8 javadocs, I don't think there was BannerMeta back then. You have to use
Updating a few versions up will allow you to have Material.[COLOR]_BANNER.
The only thing is that I would like to set a location to a colored banner. How would I do this with an item stack?
I really want to :'D but I also want to keep the 1.8 PvP.
This shows how to set the color of a banner in an itemstack. I would like to set a block to a colored banner, hence I need a colored banner material. Can I set a block in the world to an itemstack somehow?
Hey, you would set the block to a banner in 1.8.8. Than you would cast your block.getState() to a banner block to modify color and pattern.