
big_Xplosion
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by big_Xplosion
-
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
-
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.
-
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.
-
[SOLVED] Ore in the End being Destroyed by EnderDragon
big_Xplosion replied to MrProg's topic in Modder Support
That method is deprecated you have to use canEntityDestroy -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
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) -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
I checked it (again) and it is in the right place. (or I'm too retarded to see it ) -
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; }
-
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
Here is the mod http://tinyurl.com/qftg9m3 and here is the 1.6.2 forge log http://pastebin.com/sQc7qkYj -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
Bump (still not working in 1.6) -
can i set the critical hit damage on a sword/tool
big_Xplosion replied to TwIxToR_TiTaN's topic in Modder Support
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*; } } -
Can you show me your en_US.lang file?
-
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
I put it in the mods folder. -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
is it possible i get this problem because i'm on a mac? -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
I checked it again and it is a .class file and it is in the right place -
[SOLVED]My mod can't load in zip format
big_Xplosion replied to big_Xplosion's topic in Modder Support
I knew it was there and I checked if it was in the zip and it was and still is. -
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.
-
I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
-
I can't figure out how i can get vanilla mobs to drop metadata items (i'm using onEntityDead event). Could someone help me.
-
It worked THANKS!!
-
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