StartupEvents.registry("block", (e) => {
  Platform.mods.kubejs.name = "Society";
  let createFlowerBag = (type, displayName) => {
    e.create(`society:${type}_bag`)
      .displayName(`${displayName} Bag`)
      .texture("up", `society:block/bag_top_${type}`)
      .texture("down", "society:block/bag_bottom")
      .texture("north", "society:block/bag_side")
      .texture("east", "society:block/bag_side")
      .texture("south", "society:block/bag_side")
      .texture("west", "society:block/bag_side")
      .mapColor("sand")
      .soundType("sand")
      .hardness(1.0)
      .resistance(1.0)
      .requiresTool(false);
  };
  createFlowerBag("poppy", "Poppy");
  createFlowerBag("dandelion", "Dandelion");
  createFlowerBag("white_tulip", "White Tulip");
  createFlowerBag("orange_tulip", "Orange Tulip");
  createFlowerBag("pink_tulip", "Pink Tulip");
  createFlowerBag("allium", "Allium");
  createFlowerBag("blue_orchid", "Blue Orchid");
});
