• Recently Browsing

    No registered users viewing this page.

  • Posts

    • You have to override the onReplaced method and tell your block to drop the contents of its tile entity when replaced or broken...look at vanilla chest, hopper etc. for example on how to handle container blocks
    • Since MineCraft Java has updated to launcher 2.1.17784 my son gets a Error Code 0 on start of Forge. Can play standard MineCraft but Forge 12.2.2-14.23.5.2847 crashes on launch. This is just since the latest launcher that was pushed a few days ago. Seems to be a issue with the new DNS system. debug.log
    • yes: package net.luis.cave.enchantment; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentType; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.AxeItem; import net.minecraft.item.HoeItem; import net.minecraft.item.ItemStack; import net.minecraft.item.PickaxeItem; import net.minecraft.item.ShovelItem; public class DoubleDrops extends Enchantment { protected DoubleDrops(Rarity rarityIn, EnchantmentType typeIn, EquipmentSlotType[] slots) { super(Enchantment.Rarity.VERY_RARE, EnchantmentType.DIGGER, slots); } @Override public int getMinLevel() { return 1; } @Override public int getMaxLevel() { return 1; } @Override public boolean isTreasureEnchantment() { return false; } @Override public boolean isCurse() { return false; } @Override public boolean isAllowedOnBooks() { return true; } @Override public boolean canApplyAtEnchantingTable(ItemStack stack) { if (stack.getItem() instanceof PickaxeItem ) return true; if (stack.getItem() instanceof AxeItem ) return true; if (stack.getItem() instanceof ShovelItem ) return true; if (stack.getItem() instanceof HoeItem ) return true; return false; } }   The Register class:   package net.luis.cave.init; import net.luis.cave.Cave; import net.luis.cave.enchantment.DoubleDrops; import net.luis.cave.items.BaseItem; import net.minecraft.enchantment.Enchantment; import net.minecraft.item.Item; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public class CaveEnchantment { public static final DeferredRegister<Enchantment> ENCHANTMENT = DeferredRegister.create(ForgeRegistries.ENCHANTMENTS, Cave.Mod_Id); public static final RegistryObject<Enchantment> DOUBLE_DROPS = ENCHANTMENT.register("double_drops", DoubleDrops::new); }   and the Eclipse Error:    
    • https://forums.minecraftforge.net/search/?q=recipe condition&type=forums_topic&updated_after=any&sortby=relevancy&search_and_or=and
    • The other issue is that you're using argument non-statically. You can chain arguments with then and add the argument in each one, then call execute.
  • Topics

  • Who's Online (See full list)