Jump to content

TheRPGAdventurer

Members
  • Posts

    642
  • Joined

  • Last visited

Everything posted by TheRPGAdventurer

  1. I updated it but it still doesn't drop anything can you see what's wrong with it?https://pastebin.com/HAKGmKp3
  2. I actually based on the sheep's the second pool never existed and what probably causing the bug.
  3. Wait, you don't need to register it just like minecraft's loottablelist and the location is in the JSON itself?
  4. Here is one of the loot tables JSON, I made 5 per breed, https://pastebin.com/E1BkEF05
  5. So there's nothing wrong in the class I made?
  6. I did, I mean in the loot table class.
  7. So you're telling me that minecraft van put anything without name property but modders need to? Am I forgetting something? package com.TheRPGAdventurer; import static com.TheRPGAdventurer.RealmOfTheDragonsLootTables.RegistrationHandler.create; import com.TheRPGAdventurer.RealmOfTheDragons; import java.util.HashSet; import java.util.Set; import net.minecraft.util.ResourceLocation; import net.minecraft.world.storage.loot.LootTable; import net.minecraft.world.storage.loot.LootTableList; public class RealmOfTheDragonsLootTables { public static final ResourceLocation ENTITIES_DRAGON_AMETHYST = create("amethsyt"); public static final ResourceLocation ENTITIES_DRAGON_GARNET = create("garnet"); public static final ResourceLocation ENTITIES_DRAGON_JADE = create("jade"); public static final ResourceLocation ENTITIES_DRAGON_RUBY = create("ruby"); public static final ResourceLocation ENTITIES_DRAGON_SAPPHIRE = create("sapphire"); /** * Register this mod's {@link LootTable}s. */ public static void registerLootTables() { RegistrationHandler.LOOT_TABLES.forEach(LootTableList::register); } public static class RegistrationHandler { /** * Stores the IDs of this mod's {@link LootTable}s. */ private static final Set<ResourceLocation> LOOT_TABLES = new HashSet<>(); /** * Create a {@link LootTable} ID. * * @param id The ID of the LootTable without the testmod3: prefix * @return The ID of the LootTable */ protected static ResourceLocation create(String id) { final ResourceLocation lootTable = new ResourceLocation(RealmOfTheDragons.MODID, id); RegistrationHandler.LOOT_TABLES.add(lootTable); return lootTable; } } }
  8. So you're telling me that minecraft van put anything without name property but modders need to?
  9. Here is one of the lootables, I based with sheep's. https://pastebin.com/BeJD1GQN
  10. Do I have to extend my lootable list to minecraft's LootTableList?
  11. Hi everyone, I wondered why my mob doesn't drop anything, so I used the loot tables for the sheep and it works, I returned to the webpage where I learned to make loot tables it turns out it was posted 5 years ago, HAHA Idiot me, so I was looking for a tutorial on making custom loot tables thanks a bunch.
  12. Nothing happened, I'm in the middle of the night still figuring it out. Say what country do you live in?
  13. what if I removed the getSheared() method will it still be evaluated?
  14. Thanks a lot man, i'll try that out if i can run my program tho cause I updated my java to 131 thinking eclipse is smart that it knew that I updated java, how can I access preferences by the way.
  15. well yes they are, but the problem is when I make the dragon drop the same item it works but when I make them drop different items per breed it will disappear in the world as if it was never there.
  16. I will post the source codes, this is the main Entity Class, It's called EntityTameableDragon https://pastebin.com/nMZRYnBE. this is the DragonBreedClass, https://pastebin.com/NYRZus6D an example of dragon breed the original mod based it's breeds on elements like water fire but I based mine with gemstones https://pastebin.com/jUwkX7KP another example of a breed https://pastebin.com/XtgrUwqg the class that enumerates each breed EnumDragonbreed https://pastebin.com/Lqk6jKKS what I want is that each breed has different drops, I am really struggling for this mod is not originally mine. He just gave us the source code as if he was giving gold for free.
  17. also what is DyeDamage in EnumDyeColor?
  18. Oh I mean the loot tables, just like the one's in the sheep, you know multiple methods.
  19. Oh it's you again Sir! I also want it shearable i don't want it to be used by ordianary shears i mean diamond shears for shearing the tough scales of the dragon.
  20. Hi everyone, I have a dragon mod using BarracudaATA's dragon mounts source code and the dragon has different breeds and each breed Has it's own class and I want my dragon with different breeds drop different items, Do I need a custom Drop Item? or something.
  21. thank you for your time sir, I will try your advices. I will still ask questions tho if you don't mind. btw where is the location of RenderLivingBase ?
×
×
  • Create New...

Important Information

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