Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/19/18 in all areas

  1. Subscribe to the RegistryEvent.Register<Enchantment> and use RegistryEvent.Register#register to register an enchantment.
    1 point
  2. So that Baby Zombies drop roughly 2.5x more experience from the super call in EntityZombie#getExperiencePoints. If you mean assets/<mod_id>/loot_tables/..., then yes.
    1 point
  3. You've done something horribly wrong if you're attempting to register a model for Air. (By the way, hint: you do not need an IHasModel interface: all items need a model and they're all done the exact same* way: proxy.registerRenderer(item,0,new ResourceLocation(item.getReigstryName().toString(), "inventory") and any block that has an item renderer will already register its item renderer due to the loop over the ModItems.ITEMS list, which contains the item form of the block already, if you don't cast to IHasModel). https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L197-L199 The array there is just a custom object to hold an Item, Metadata, and String resource location, created during preInit and held until the ModelRegistryEvent. There's nothing special there. *Except when they don't, in which case your IHasModel hasn't really saved you anything.
    1 point
  4. You can also use the LootTableLoadEvent to modify the loot table.
    1 point
  5. You can set the EntityLiving#deathLootTable field using reflection to change an entity's loot table. You can also subscribe to LivingDropsEvent to change the item dropped by an entity. You can set the EntityLiving#experienceValue field using reflection to change the amount of experience dropped by an entity, though some entities set this field after the initial spawn (e.g. Baby Zombies do this on death). You can also subscribe to LivingExperienceDropEvent to change the amount of experience dropped by an entity.
    1 point
×
×
  • Create New...

Important Information

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