Skip to content

Commit

Permalink
feat: InfinityExpansion-like storages
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinhong11 committed Nov 3, 2024
1 parent c743beb commit e76bfc4
Show file tree
Hide file tree
Showing 13 changed files with 1,015 additions and 72 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.1-R0.1-SNAPSHOT</version>
<version>1.19.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
12 changes: 9 additions & 3 deletions src/main/java/me/mmmjjkx/betterChests/BCGroups.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
package me.mmmjjkx.betterChests;

import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.groups.NestedItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.groups.SubItemGroup;
import me.mmmjjkx.betterChests.items.BCItemStacks;
import org.bukkit.NamespacedKey;

public class BCGroups {
private static final NamespacedKey MAIN_KEY = new NamespacedKey(BetterChests.INSTANCE, "group_main");

public static final ItemGroup MAIN = new ItemGroup(MAIN_KEY, BCItemStacks.GROUP_MAIN_ITEM);
public static final NestedItemGroup MAIN = new NestedItemGroup(MAIN_KEY, BCItemStacks.GROUP_MAIN_ITEM, 2);
private static final NamespacedKey STORAGES_KEY = new NamespacedKey(BetterChests.INSTANCE, "group_storages");
public static final SubItemGroup STORAGES = new SubItemGroup(STORAGES_KEY, MAIN, BCItemStacks.GROUP_STORAGE_ITEM);
private static final NamespacedKey TOOLS_KEY = new NamespacedKey(BetterChests.INSTANCE, "group_tools");
public static final SubItemGroup TOOLS = new SubItemGroup(TOOLS_KEY, MAIN, BCItemStacks.GROUP_TOOL_ITEM);
private static final NamespacedKey MATERIALS_KEY = new NamespacedKey(BetterChests.INSTANCE, "group_materials");
public static final SubItemGroup MATERIALS = new SubItemGroup(MATERIALS_KEY, MAIN, BCItemStacks.GROUP_MATERIAL_ITEM);
}
19 changes: 18 additions & 1 deletion src/main/java/me/mmmjjkx/betterChests/items/BCItemStacks.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.mmmjjkx.betterChests.items;

import io.github.thebusybiscuit.slimefun4.core.attributes.Radioactivity;
import io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack;
import io.github.thebusybiscuit.slimefun4.utils.LoreBuilder;
import org.bukkit.Material;
Expand All @@ -8,9 +9,16 @@
public class BCItemStacks {
public static final ItemStack TIP = new CustomItemStack(Material.PAPER, "&6&lTip",
"&c&lDon't place too many drawers in one chunk! ",
"The drawers will spawn 3 entities once they were placed.");
"&cThe drawers will spawn 3 entities once they were placed.");

public static final ItemStack GROUP_MAIN_ITEM = new CustomItemStack(Material.CHEST, "&6&lBetter Chests");
public static final ItemStack GROUP_STORAGE_ITEM = new CustomItemStack(Material.BARREL, "&a&lStorages");
public static final ItemStack GROUP_TOOL_ITEM = new CustomItemStack(Material.BLAZE_ROD, "&b&lTools & Machines");
public static final ItemStack GROUP_MATERIAL_ITEM = new CustomItemStack(Material.IRON_INGOT, "&b&lMaterials");

public static final ItemStack GEAR_WHEEL = new CustomItemStack(Material.REDSTONE, "&aGear Wheel", "&7A tool for crafting");
public static final ItemStack TIGHTLY_BLISTERING_INGOT = new CustomItemStack(Material.IRON_INGOT, "&eTightly Blistering Ingot", "&7A high-hardness metal", LoreBuilder.radioactive(Radioactivity.VERY_HIGH));
public static final ItemStack TIGHTLY_BLISTERING_PLATE = new CustomItemStack(Material.IRON_BLOCK, "&eTightly Blistering Plate", "&7A high-hardness metal plate", LoreBuilder.radioactive(Radioactivity.HIGH));

public static final ItemStack LOCATION_RECORDER = new CustomItemStack(Material.COMPASS, "&aLocation Recorder", "&bShift + Right-click to record location", "&bRight-click to open the corresponding machine");
public static final ItemStack CHEST_COLOR_CHANGER = new CustomItemStack(Material.AMETHYST_SHARD, "&aChest Color Changer", "&aRight-click to change the color of the BC chest", "&aShift + Right-click to cycle through colors", "", "&dCurrent color: &6NoColor", "", LoreBuilder.powerCharged(0, 200));
Expand All @@ -28,4 +36,13 @@ public class BCItemStacks {
public static final ItemStack DRAWER_9 = new CustomItemStack(Material.BARREL, "&aDrawer &6Lvl 9", "&bRight-click grab 64 items (when your hand is empty)", "&bRight-click to store items that you hand in", "&dCapacity: 256M");
public static final ItemStack DRAWER_10 = new CustomItemStack(Material.BARREL, "&aDrawer &6Lvl 10", "&bRight-click grab 64 items (when your hand is empty)", "&bRight-click to store items that you hand in", "&dCapacity: 1B");
public static final ItemStack DRAWER_MAX = new CustomItemStack(Material.BARREL, "&aDrawer &6MAX", "&bRight-click grab 64 items (when your hand is empty)", "&bRight-click to store items that you hand in", "&dCapacity: 2.14B");

public static final ItemStack IE_STORAGE_UNIT_1 = new CustomItemStack(Material.OAK_LOG, "&eIE Storage Unit &6Lvl 1", "&bInfinityExpansion-like storage unit", "&dCapacity: 32,000");
public static final ItemStack IE_STORAGE_UNIT_2 = new CustomItemStack(Material.DARK_OAK_LOG, "&eIE Storage Unit &6Lvl 2", "&bInfinityExpansion-like storage unit", "&dCapacity: 128,000");
public static final ItemStack IE_STORAGE_UNIT_3 = new CustomItemStack(Material.ACACIA_LOG, "&eIE Storage Unit &6Lvl 3", "&bInfinityExpansion-like storage unit", "&dCapacity: 1,000,000");
public static final ItemStack IE_STORAGE_UNIT_4 = new CustomItemStack(Material.BIRCH_LOG, "&eIE Storage Unit &6Lvl 4", "&bInfinityExpansion-like storage unit", "&dCapacity: 4,000,000");
public static final ItemStack IE_STORAGE_UNIT_5 = new CustomItemStack(Material.JUNGLE_LOG, "&eIE Storage Unit &6Lvl 5", "&bInfinityExpansion-like storage unit", "&dCapacity: 64,000,000");
public static final ItemStack IE_STORAGE_UNIT_6 = new CustomItemStack(Material.MANGROVE_LOG, "&eIE Storage Unit &6Lvl 6", "&bInfinityExpansion-like storage unit", "&dCapacity: 256,000,000");
public static final ItemStack IE_STORAGE_UNIT_7 = new CustomItemStack(Material.CRIMSON_STEM, "&eIE Storage Unit &6Lvl 7", "&bInfinityExpansion-like storage unit", "&dCapacity: 1,000,000,000");
public static final ItemStack IE_STORAGE_UNIT_8 = new CustomItemStack(Material.WARPED_STEM, "&eIE Storage Unit &6Lvl 8", "&bInfinityExpansion-like storage unit", "&dCapacity: 2,140,000,000");
}
Loading

0 comments on commit e76bfc4

Please sign in to comment.