Jump to content

Teraxus

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Teraxus

  1. Itemblock json file: { "parent": "txsmod:block/BlockLampOn", "textures": { "layer0": "txsmod:items/BlockLampOn" } } Why does this code not work? The texture in the inventory does not render, it just gives me the default flat texture. Why?
  2. package com.teraxus.mod.events; import java.util.Random; import com.teraxus.mod.init.ModItems; import net.minecraft.entity.passive.EntityBat; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class BatDeathEvent { @SubscribeEvent public void onBatDeath(LivingDeathEvent event) { if(!(event.getEntity() instanceof EntityBat)) { return; } else { EntityBat bat = (EntityBat) event.getEntity(); Random rand = new Random(); int randomInt = rand.nextInt(2) + 1; bat.setDropItemsWhenDead(false); bat.dropItem(ModItems.rawBat, randomInt); } } } When I kill a bat, it drops 2-5 items. ~40% of the items can be picked up, and the others cant be picked up. Why does this happen?
  3. Log: http://pastebin.com/wmfU6tsE The class that registers the block:
  4. But the json file is in models\block, not items\block. Why is it looking for items\block?
  5. Oh *faceplam*
  6. But why does it give me this: Caused by: java.io.FileNotFoundException: txsmod:models/item/BlockTable.json
  7. Thank you , I got it now.
  8. Do I need to initialize it?
  9. How do I do that?
  10. The block is not in the creative inventory and I cant get it by doing /give. I am a total beginner at the Forge API.
×
×
  • Create New...

Important Information

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