• 1

    posted a message on DrCyano's Base Metals

    Oops! I put a HUGE bug in version 1.6.3, so here's1.6.4 with THAT bug fixed too.

    Posted in: Minecraft Mods
  • 1

    posted a message on DrCyano's Base Metals

    Yes, that is the bug in version 1.6.2. Changing the "+" to "0" or the other way around will fix it. I'll fix that an push a new version now.


    EDIT: New version 1.6.3 available here.


    For the sake of clarity, here's what's going on. The "+" dimension means all dimensions not explicitly described. Originally, Base Metals only generated in dimensions 0,-1, and 1 (the overworld, the nether, and the end) and required users to manually put in the dimension ID of all dimensions added by other mods that they wanted Base Metals ores to spawn in. Many mods add strange dimensions (e.g. an all diamond dimension) and it didn't make sense for my mods to spawn ores in those dimensions. However, most of my users wanted the opposite default behavior so I added the "+" option.


    The bug happened because vanilla ores are normally only spawned in the overworld, so I set the generated file for vanilla ores to use dimension "0", but with that dimension now explicitly described, the default Base Metals config no longer applies to the overworld. In version 1.6.3, the minecraft.json file uses dimension "+" by default, which might cause too many ores to spawn in custom dimensions added by other mods, depending on whether Base Metals is able to disable their ore generation events.


    In any event, if you have mods that add other dimensions, I recommend taking the time to make an orespawn file for each dimension to give each of them a different ratio of ores to make them feel more different from each other.

    Posted in: Minecraft Mods
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9
    Quote from gurujive»

    is it possible to change its direction through the summon command? or does that only apply when it is shot from the wand?


    definitely raised an eyebrow.


    I think you can set the direction with the extra json properties in the summon command like this (not tested):
    {"direction":[0.0,0.0,-1.0]} -> north
    {"direction":[0.0,0.0,1.0]} -> south
    {"direction":[-1.0,0.0,0.0]} -> east
    {"direction":[1.0,0.0,0.0]} -> west
    Posted in: Minecraft Mods
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9

    The horizontal lightning effect (it's directional, not just horizontal) is an Entity that I added to Wonderful Wands for no purpose other than rendering a lightning bolt. If you have the mod installed, you could summon it with the summon command (though it will self-destruct in about a second). Otherwise, you could make your own mod and copy the lightning entity from Wonderful Wands (be sure to include credits and link to the original source code if you do make a duplicate of my code).

    Posted in: Minecraft Mods
  • 1

    posted a message on DrCyano's Base Metals

    After an interesting discussion on the mod dev forum, I'm going to try using a single tab with intelligent item sorting and a search bar. I think that is going to be most useful for this mod.


    EDIT: new version is released: Base Metals v1.6.2

    This version adds a creative tab and fixes a bug in ore spawning. Also, star-steel blocks now glow so you can see their stars in the darkness.

    Posted in: Minecraft Mods
  • 1

    posted a message on How many tabs is too many?
    Quote from Choonster»

    Adding a search bar should be as simple as overriding CreativeTabs#hasSearchBar to return true.






    I did that, but my search bar is invisible. It works if I make a guess as to where to click and type, but you wouldn't know it had a search function just by looking at it. How do I fix that?


    EDIT: Nevermind. I fixed it by adding setBackgroundImageName("item_search.png"); to the constructor.I now have a working search-and-sort creative tab class:

    public class FunctionalCreativeTab  extends CreativeTabs {
      private final java.util.function.Supplier<Item> itemSupplier;
      private final java.util.Comparator<ItemStack> itemSortingAlgorithm;
      public FunctionalCreativeTab( String unlocalizedName,
          final java.util.function.Supplier<Item> itemSupplier,
          final java.util.function.BiFunction<ItemStack,ItemStack,Integer> itemSortingAlgorithm) {
        super(unlocalizedName);
        this.itemSupplier = itemSupplier;
        this.itemSortingAlgorithm = new java.util.Comparator<ItemStack>(){
          @Override
          public int compare(ItemStack o1, ItemStack o2) {
            return itemSortingAlgorithm.apply(o1, o2);
          }
        };
        setBackgroundImageName("item_search.png");
      }
      @Override
      public boolean hasSearchBar() {
        return true;
      }
      @Override
      @SideOnly(Side.CLIENT)
      public void displayAllReleventItems(List<ItemStack> itemList)
      {
        super.displayAllReleventItems(itemList);
        itemList.sort(itemSortingAlgorithm);
      }
      @SideOnly(Side.CLIENT)
      @Override
      public Item getTabIconItem() {
        return itemSupplier.get();
      }
    }
    Posted in: Modification Development
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9

    I discovered those same bugs while updating Electric Advantage, hence the combined roll-out of the updates.

    Posted in: Minecraft Mods
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9

    Good news:



    https://github.com/cyanobacterium/PowerAdvantageAPI/releases/tag/v1.4.4

    https://github.com/cyanobacterium/SteamAdvantage/releases/tag/v1.5.1

    https://github.com/cyanobacterium/ElectricAdvantage/releases/tag/v1.1.0



    Those updates include bug fixes to fluid machines (especially the steam still and steam pump) and the updated Electric Advantage verion.

    I will put those files on Curse later today (I gotta go to work now).
    Posted in: Minecraft Mods
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9

    I did it! I updated Steam Advantage to 1.8.9! Get it here or here.


    That took a lot more effort than I anticipated. Mostly because the new switch blocks I added to Power Advantage introduced a number of bugs that were challenging to track-down. I'll update the wiki with the new stuff later this week, so here's a short summary now:


    Steam Pump: when powered by steam, it will lower a pipe down to suck-up liquids.

    Oil-Burning Steam Boiler: Like the coal-fired boiler, but only accepts liquids. Give it oil and water to make steam.

    Steam Distiller: A steam-powered fluid smelter. For example, feed crude oil into it, give it some steam, and then it will produce refined oil (and do so very quickly).

    Steam Switch Valve: Turns your steam on and off. Can be manually controlled or set by redstone signal.


    Now to start updating Electric Advantage (but not tonight). Electric Advantage will have the following added to it when it updates: electric pump, electric distiller, electric switch, and plastic refinery (turns refined oil into plastic ingots).


    I need a drink.


    EDIT: You will need to update Power Advantage to version 1.4.3 for everything to work properly (another bug fix).

    Posted in: Minecraft Mods
  • 1

    posted a message on Power Advantage: Power Systems Mod and API for Minecraft 1.9

    I'm working on it now. I was hoping to finish that by the end of this week-end, but I might only have Steam Advantage complete by then.

    Posted in: Minecraft Mods
  • To post a comment, please .