Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Eilux

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Eilux

  1. Dinnerbone recently mentioned a change to the licence that governs the obfuscation mappings. Do these new terms allow for their use in Forge (I know that the initial licence made it so that they were not particularly useful).
  2. I have had the same issue I saw somewhere that it is a bug.
  3. I intend to create a mod that includes multiple custom dimensions. However, I don't know how to add new dimensions. If anyone has some guidance on the subject it would be appreciated.
  4. Thank you thats just what i was looking for.
  5. public static final RegistryObject<Block> SHADESTONE = BLOCKS.register("shadestone", () -> new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(5.0F,3.0F).sound(SoundType.STONE).harvestTool(???).harvestLevel(???))); Here the question marks are where I don't know what to do, I don't know what value these methods require, and thank you i know java.
  6. I KNOW what it dose I MEANT how do you use the harvestTool() and harvestLevel() Methods.
  7. Dose anyone know at least how to create a particle so that I can see if mine works this is also something that I can't find info on.
  8. I was wondering if somebody had guidance for adding custom particles to the game. I have looked around and documentation seems to be scarce, any help would be appreciated.
  9. I've found the problem the method lootTableLoad was not static it is working fine now. Thank you for your help.
  10. It's name HorseMeatDrops because I wasn't sure what the filepath for horse was so i was testing it with the cow, and i do have the LootUtils class.
  11. I can't get it to work I created a test one that is very close to the example provided but it dose not seem to be doing anything. @Mod.EventBusSubscriber(modid = Main.MODID) public class HorseMeatDrops { @SubscribeEvent public void lootTableLoad(LootTableLoadEvent event) { //FamingBase.logger.log(Level.INFO, event.getName()); LootCondition[] chance; LootCondition[] lootingEnchant; LootFunction[] count; LootEntryItem[] item; LootPool newPool; LootTable loot = event.getTable(); if (event.getName().getPath().equals("entities/cow")) { LootUtils.removeLootFromTable(loot, Items.DIAMOND); LootUtils.addItemToTable(loot, Items.DIAMOND, 1, 2, 1, 2, 5, 0, 1, "minecraft:diamond", new LootUtils.IMethod() { @Override public void FunctionsCallback(ArrayList<LootFunction> lootfuncs) { LootCondition[] condition = {new EntityHasProperty(new EntityProperty[]{new EntityOnFire(true)}, LootContext.EntityTarget.THIS)}; LootFunction cooked = new Smelt(condition); lootfuncs.add(cooked); LootFunction looting = new LootingEnchantBonus(null, new RandomValueRange(1, 3), 0); lootfuncs.add(looting); } }); } } }
  12. It still don't seem to work here is my code: @Mod.EventBusSubscriber public class HorseMeatDrops { @SubscribeEvent public void onLootTablesLoaded(LootTableLoadEvent event){ if (event.getName().equals(LootTableList.ENTITIES_HORSE)){ LootEntry rawEntry = new LootEntryTable(new ResourceLocation("eatahorse:raw_horse"), 1, 0, new LootCondition[0], "eatahorse:raw_horse_entry"); LootPool rawPool = new LootPool(new LootEntry[] {rawEntry}, new LootCondition[0], new RandomValueRange(1), new RandomValueRange(0, 1), "eatahorse:raw_horse_pool"); event.getTable().addPool(rawPool); } } } and here is the json file, the filepath to it is: resources/data/eatahorse/loot_tables/entities/raw_horse.json { "type": "minecraft:entity", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "functions": [ { "function": "minecraft:set_count", "count": { "min": 2.0, "max": 3.0, "type": "minecraft:uniform" } }, { "function": "minecraft:looting_enchant", "count": { "min": 0.0, "max": 1.0 } } ], "name": "eatahorse:raw_horse" } ] } ] }
  13. I'm having a bit of trouble getting this to work could you show me some kind of example?
  14. Some of the things like LootPool.builder() and TableLootEntry don't seem to be working is this because of different mappings? if so do you know the 1.12.2 equivalent (using mcp stable_39)
  15. I have tried the following code: @Mod.EventBusSubscriber public class HorseMeatDrops { @SubscribeEvent public void onLootTablesLoaded(LootTableLoadEvent event){ if (event.getName().equals(LootTableList.ENTITIES_HORSE)){ final LootPool main = event.getTable().getPool("main"); if (main != null) { new SetCount(new LootCondition[0],new RandomValueRange(1,3)); main.addEntry(new LootEntryItem(ModItems.RAW_HORSE, 10, 0, new LootFunction[0], new LootCondition[0], "loottable:rawhorse" )); } } } } It dose not seem to be working however any help would be appreciated.
  16. I would like to make a mod that makes the vanilla mobs smarter the obvious way to do this is to overhaul the behavior. However I am unsure of how to do this because I don't know where the vanilla behaviors are stored, and I don't know how to change them. Thanks for any help given.
  17. Wait i was wrong the forge gradle stuff is here its just somewhere else now but I am having problems where there are errors in a lot of places that i have seen no reference to anywhere else here is my main file as an example (pasted in rich text so the errors are visible, the errors are marked in red.) The error my IDE gives for all of them is cannot resolve symbol. package eilux.mod; import eilux.mod.init.ModRecipes; import eilux.mod.util.EventHandler; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraftforge.event.entity.player.AttackEntityEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod(modid = Main.MODID, name = Main.NAME, version = Main.VERSION, acceptedMinecraftVersions = Main.MC_VERSION) public class Main { public static final String MODID = "mc_general_expansion"; public static final String NAME = "Minecraft General Expansion"; public static final String VERSION = "0.0"; public static final String MC_VERSION = "[1.12.2]"; public static final Logger LOGGER = LogManager.getLogger(Main.MODID); @Mod.EventHandler public void preInit(FMLPreInitializationEvent event){ } @Mod.EventHandler public void init(FMLInitializationEvent event){ LOGGER.info(Main.NAME + " says it wants functionality."); ModRecipes.init(); } @Mod.EventHandler public void postInit(FMLPostInitializationEvent event){ } }
  18. thats what I did I downloaded the MDK took out the gradle folder, build.gradle, gradlew, and gradlew.bat and replaced the existing ones with them.
  19. Thank you that guide should be helpful however, I am unsure of how to go about updating the forge version itself. I tried replacing the old gradle folder, build.gradle, gradlew, and gradlew.bat with the new ones although I'm not sure if this is the right thing to do as there are now a bunch of errors and the forge gradle options like runClient and runServer no longer seem to be there.
  20. In light of a recommended build of forge 1.14 being released I decided to update my mod however I have no idea how to do this. it would be greatly appreciated if someone could point me to a guide or just tell me how to do it directly.
  21. when I try to use it with reflection I get the following error: code: Class<?> minecraftClass = Minecraft.getMinecraft(); error: Incompatible Types. required: java.lang.Class found: net.minecraft.client.Minecraft
  22. /** The instance of the Minecraft Client, set in the constructor. */ private static Minecraft instance; ... public static Minecraft getMinecraft() { return instance; } Here is the code in the Minecraft class.
  23. I found the method that dose this however it returns Minecraft instead of Class.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.