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.

Teraxus

Members
  • 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.

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.