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

Eilux

Members
  • Posts

    52
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Eilux's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

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