But thanks for the code used as a placeholder. BTW, the mod is now stable, expect a release soon. Just tools for Emerald, no Armor yet and no food, and no BlazeSword. Just want some Beta Testers, so... Would you try?
BETA WILL HAVE TO BE PUSHED BACK; my code got corrupted and I couldn't restore it. Minecraft wouldn't launch at all, and now I'm starting over. I still have some stuff in my head, so... shouldn't be too hard, but you always have to be sure.
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2014
Posts:
108
Member Details
Anyone know how to add custom enchantments? I want to make an enchantment which smelts things when mined. I am a noob modder, so this kind of advanced stuff is complicated to me.
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
Those are placeholders for obfuscated functions.. They're very likely to change, depending on how much of MC's source they can deobfuscate. There's no real list of what those functions do.
So... no list or anything then? But if they're placeholders, WHAT will take their place? :?
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
So... no list or anything then? But if they're placeholders, WHAT will take their place? :?
A readable name. The methods are not placeholders, only the name of the method is a placeholder, and only because Mojang doesn't release their code in an unobfuscated format.
For example, in EntityThrowable there is a method: "protected float func_70182_d()" which returns the thrown entity's velocity; I imagine in the future, they will change the name to "protected float getVelocity()" or something equally descriptive of its actual functionality.
A readable name. The methods are not placeholders, only the name of the method is a placeholder, and only because Mojang doesn't release their code in an unobfuscated format.
For example, in EntityThrowable there is a method: "protected float func_70182_d()" which returns the thrown entity's velocity; I imagine in the future, they will change the name to "protected float getVelocity()" or something equally descriptive of its actual functionality.
I was searching around with these methods, and I found a way to implement swords which shoot fireballs, but is there some kind of difference between a fireball and a snowball/egg in the code? I mean, I know that the Blaze's fireball goes straight at you, but a snowball/egg has gravity. It works with snowballs/eggs, but everytime I replace the EntitySnowball/EntityEgg with EntityFireball, Eclipse cannot instantiate the type of the fireball. Help?
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
I was searching around with these methods, and I found a way to implement swords which shoot fireballs, but is there some kind of difference between a fireball and a snowball/egg in the code? I mean, I know that the Blaze's fireball goes straight at you, but a snowball/egg has gravity. It works with snowballs/eggs, but everytime I replace the EntitySnowball/EntityEgg with EntityFireball, Eclipse cannot instantiate the type of the fireball. Help?
Help? Still trying to figure this out. Also, I will be updating to 1.7.2, so... a solution for 1.7.2 of this would be better.
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
Help? Still trying to figure this out. Also, I will be updating to 1.7.2, so... a solution for 1.7.2 of this would be better.
It will be pretty much exactly the same in 1.7.2. If you can't instantiate the type, then change the type or constructor to match... post the code that is causing you the error.
It will be pretty much exactly the same in 1.7.2. If you can't instantiate the type, then change the type or constructor to match... post the code that is causing you the error.
package eclipsis.mod.items;
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityEgg;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityLargeFireball;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.world.World;
public class BlazeSword extends ItemSword{
public BlazeSword(int par1, EnumToolMaterial par2EnumToolMaterial) {
super(2010, par2EnumToolMaterial);
}
@Override
public void addInformation(ItemStack par1ItemStack,
EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
if(par1ItemStack.getEnchantmentTagList() == null){
par1ItemStack.addEnchantment(Enchantment.fireAspect, 2);
}
}
@SideOnly(Side.CLIENT)
public void getSubItems(int itemId, CreativeTabs tab, List list) {
ItemStack enchantedStack = new ItemStack(itemId, 1, 0);
enchantedStack.addEnchantment(Enchantment.fireAspect, 2);
list.add(enchantedStack);
}
/**
* Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
*/
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if (!par3EntityPlayer.capabilities.isCreativeMode)
{
--par1ItemStack.stackSize;
}
par2World.playSoundAtEntity(par3EntityPlayer, "mob.blaze.breathe", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
if (!par2World.isRemote)
{
par2World.spawnEntityInWorld(new EntityFireball(par2World, par3EntityPlayer));
}
return par1ItemStack;
}
}
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
EntityFireball is an abstract class - you cannot create a new instance of it; instead, you must use either EntitySmallFireball or EntityLargeFireball.
Thanks. had some confusion there for quite a while. However the projectiles always rise to the sky. How would I fix this? Would I need to have it set the fireball at the position of the player (X, Y, Z), or some other method to straighten it?
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2014
Posts:
108
Member Details
Thread is not dead, just saying, I am not dead, just saying, and the mod is not dead. Just saying. Also, something popped up with my item textures, which is kinda preventing me from going any further. The texture they display is the missing item texture, but I have the textures in my texture folder, and I have the items set to them. I can't really demonstrate this, but this problem only applies to a specific set of tools. It may have something to do with the ID's? Help please.
Edit: This is still in 1.6.4 since Forge doesn't want to cooperate with me.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2014
Posts:
108
Member Details
Yeah, I did, it was copied from my previous tools which are fine. I took a look at the console of Eclipse when it launches Minecraft, and it says this:
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Axe.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Sword.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Shovel.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Pickaxe.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Hoe.png
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2014
Posts:
108
Member Details
public final Item emeraldSword = new EmeraldSword(4014, emerald).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("emeraldSword")
.setTextureName("eclipsis:emerald_Sword");
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2014
Posts:
108
Member Details
Well if you're asking for the path it's forge\mcp\eclipse\Minecraft\assets\eclipsis\textures\items, other than that I don't understand the question. Oh, and hello again.
Rollback Post to RevisionRollBack
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
BETA WILL HAVE TO BE PUSHED BACK; my code got corrupted and I couldn't restore it. Minecraft wouldn't launch at all, and now I'm starting over. I still have some stuff in my head, so... shouldn't be too hard, but you always have to be sure.
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
I kinda just want it to look fancy, so... :/ yeah... But since you brought it up, can Vanilla make blocks instantly smelted when mined?
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
http://www.minecraft.../#entry29406303
and modify it to check for an enchantmentTag with your enchant's ID?
Art by me: MrPancakeWolfie@DeviantArt
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
So... no list or anything then? But if they're placeholders, WHAT will take their place? :?
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
A readable name. The methods are not placeholders, only the name of the method is a placeholder, and only because Mojang doesn't release their code in an unobfuscated format.
For example, in EntityThrowable there is a method: "protected float func_70182_d()" which returns the thrown entity's velocity; I imagine in the future, they will change the name to "protected float getVelocity()" or something equally descriptive of its actual functionality.
I was searching around with these methods, and I found a way to implement swords which shoot fireballs, but is there some kind of difference between a fireball and a snowball/egg in the code? I mean, I know that the Blaze's fireball goes straight at you, but a snowball/egg has gravity. It works with snowballs/eggs, but everytime I replace the EntitySnowball/EntityEgg with EntityFireball, Eclipse cannot instantiate the type of the fireball. Help?
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
Help? Still trying to figure this out. Also, I will be updating to 1.7.2, so... a solution for 1.7.2 of this would be better.
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
It will be pretty much exactly the same in 1.7.2. If you can't instantiate the type, then change the type or constructor to match... post the code that is causing you the error.
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
Thanks. had some confusion there for quite a while. However the projectiles always rise to the sky. How would I fix this? Would I need to have it set the fireball at the position of the player (X, Y, Z), or some other method to straighten it?
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
Edit: This is still in 1.6.4 since Forge doesn't want to cooperate with me.
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Axe.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Sword.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Shovel.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Pickaxe.png
2014-07-24 19:53:32 [SEVERE] [Minecraft-Client] Using missing texture, unable to load: eclipsis:textures/items/emerald_Hoe.png
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
.setTextureName("eclipsis:emerald_Sword");
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
Art by me: MrPancakeWolfie@DeviantArt
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!
If you thought something was missing in Minecraft, think again.
MoreMine is coming soon for Minecraft 1.7.10
If I helped you, hit that green arrow!