Jump to content

big_Xplosion

Members
  • Posts

    24
  • 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. Put your block initialization in preInit. That's the best place to put it.
  11. 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*; } }
  12. is it possible i get this problem because i'm on a mac?
  13. I checked it again and it is a .class file and it is in the right place
  14. I knew it was there and I checked if it was in the zip and it was and still is.
  15. 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.
  16. I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
  17. I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
  18. 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
  19. 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:
×
×
  • Create New...

Important Information

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