Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Eilux

Members
  • Joined

  • Last visited

  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. Any guidance would be appreciated.
  8. 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.
  9. 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.
  10. I've found the problem the method lootTableLoad was not static it is working fine now. Thank you for your help.
  11. 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.
  12. 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); } }); } } }
  13. 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" } ] } ] }
  14. I'm having a bit of trouble getting this to work could you show me some kind of example?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.