How to make a customized banner?

Discussion in 'Skript' started by bramar, Jan 16, 2020.

Thread Status:
Not open for further replies.
  1. I am trying to make a banner with customized pattern. (I uses 1.14.4)
    I search on google and ended up like this:

    ItemStack banner = new ItemStack(Material.WHITE_BANNER);
    ItemMeta bannermeta = banner.getItemMeta();
    bannermeta.setDisplayName(ChatColor.BLUE + "Banner");
    banner.setItemMeta(bannermeta);
    BannerMeta bannerpattern = (BannerMeta) banner.getItemMeta();
    List<Pattern> pattern = new ArrayList<Pattern>();
    pattern.add(DyeColor.BLACK, PatternType.BORDER);
    bannerpattern.setPattern(pattern);
    banner.setItemMeta(bannerpattern);

    But, it doesn't work. Please help
     
Thread Status:
Not open for further replies.