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.

big_Xplosion

Members
  • Joined

  • Last visited

Everything posted by big_Xplosion

  1. Damn, was I really that stupid, I never swapped those around before and once you do it's so hard to find... Thanks a lot. And yeah that about the getSubBlocks could work too
  2. I think these pieces of code could help you. And maybe even help you to make your code more simple. https://github.com/UniversalTeam/MineFall/blob/master/src/main/java/universalteam/minefall/proxies/CommonProxy.java#L174 https://github.com/UniversalTeam/MineFall/blob/master/src/main/java/universalteam/minefall/proxies/CommonProxy.java#L187 https://github.com/UniversalTeam/MineFall/blob/master/src/main/java/universalteam/minefall/proxies/ClientProxy.java#L58 https://github.com/UniversalTeam/MineFall/blob/master/src/main/java/universalteam/minefall/items/armor/ItemArmorBasic.java
  3. I'm creating a creative tab that holds a bunch of customs chests that have 1 NBT tag called invName, these itemstacks are added in the creative tab code after they have been read from a JSON file. this all seems to work fine until I take the itemstack from the creative menu and try place it in the world, when I do that the itemstack just disappears and there was no block placed down. Creative tab: https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/creative/CreativeTabSpawnChests.java'>https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/creative/CreativeTabSpawnChests.java Block class: https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/block/BlockSpawnChest.java'>https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/block/BlockSpawnChest.java itemblock class: https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/itemblock/ItemBlockSpawnChest.java'>https://github.com/UniversalTeam/SpawnChests/blob/master/src/main/java/universalteam/spawnchests/itemblock/ItemBlockSpawnChest.java I hope these provided classes suffice and if not this (https://github.com/UniversalTeam/SpawnChests) is the link to the repo or you can ask questions in this thread.
  4. Is there a JSON or XML file that stores all Forge releases and links per Minecraft version? This may be the wrong place to ask but I don't know a better place to ask this.
  5. That method is deprecated you have to use canEntityDestroy
  6. That's what it should be: Zip-Root |__com |__big_xplosion |__flatbedrock |_FlatBedrock.class That's how it is: Zip-Root |__flatbedrock |__com |__big_xplosion |__flatbedrock |_FlatBedrock.class Thanks!! that fixed it (apparently I'm retarded)
  7. I checked it (again) and it is in the right place. (or I'm too retarded to see it )
  8. I have done it this way (I'm not sure if this is an efficient way to do it but it works) @Override public boolean hitEntity(ItemStack stack, EntityLivingBase ent, EntityLivingBase player) { float damage = 0.0f; if (ent instanceof EntityEnderman || ent instanceof EntityDragon) { damage = 25.0f; stack.damageItem(1, player); } DamageSource dmgSource = DamageSource.causePlayerDamage((EntityPlayer) player); ent.attackEntityFrom(dmgSource, damage); return true; }
  9. Here is the mod http://tinyurl.com/qftg9m3 and here is the 1.6.2 forge log http://pastebin.com/sQc7qkYj
  10. Bump (still not working in 1.6)
  11. Put your block initialization in preInit. That's the best place to put it.
  12. maybe this works: @ForgeSubscribe public void onEntityHit(LivingHurtEvent event) { if (!(event.source instanceof EntityDamageSource)) { return; } EntityDamageSource dmgSource = (EntityDamageSource) event.source; Entity ent = dmgSource.getEntity(); if (!(ent instanceof EntityPlayer)) { return; } EntityPlayer player = (EntityPlayer) ent; ItemStack weapon = player.getCurrentEquippedItem(); if (!(weapon.getItem() instanceof *PUT_YOUR_SWORD_CLASS_HERE*)) //EDIT: forgot the .getItem() { return null; } /** * Copied from {@link EntityPlayer#1345} */ boolean flag = player.fallDistance > 0.0f && !player.onGround && !player.isOnLadder() && !player.isInWater() && !player.isPotionActive(Potion.blindness) && !player.isRiding(); if (flag) { event.ammount += *PUT_CRIT_AMOUNT_HERE*; } }
  13. Can you show me your en_US.lang file?
  14. I put it in the mods folder.
  15. is it possible i get this problem because i'm on a mac?
  16. I checked it again and it is a .class file and it is in the right place
  17. I knew it was there and I checked if it was in the zip and it was and still is.
  18. My mod works in mcp but when I install it in a normal minecraft environment and when it is a zip file I get this crash : ForgeModLoader-client-0 but when I unzip it in the mods folder it works fine.
  19. I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
  20. I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
  21. When i'm loading a world in my development evironment I keep getting this crash and i can't figura out how to fix it. (I'm using pahimar's setup) http://pastebin.com/F5h8MShg
  22. When is start the server with my mod i get this crash. and before you ask it works in singleplayer and i've made the common proxy class. Can someone help my to fix this? Server Window: Crash report:

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.