Ehrm... May I ask why you kill the player to teleport him to spawn? I bet there is a spawn location somewhere inside World and you can use player.teleportTo(...) for teleportation. Unfortunately, I can't look at my code to validate but its defenetly not a good style to kill someone to let him teleport to spawn
It was the easiest way I could think of. I really need an item to teleport me home to finish my mod
I want to assign three commands to go into effect when an item is used, and also destroy that item. Anyone know how to do this?
The commands I want to add are
public class RenderFrenzyBoar extends RenderLiving {
private static final ResourceLocation EntityTexture = new ResourceLocation("sao:textures/entity/boar/boar.png");
protected FrenzyBoar model;
public RenderFrenzyBoar(ModelBase par1ModelBase, float par2) {
super(par1ModelBase, par2);
model = ((FrenzyBoar)mainModel);
}
Your issue here is the path to the resource location. Minecraft does not detect the src/main/rescources/assets part. This should be changed to new ResourceLocation("modid", "textures/entities/boar/boar.png"); the file would then be src/main/resources/assets/modid/textures/entities/boar/boar.png If this does not work remove "/textures" from the start of the resource location. The correct path for the texture is also noted in the console.
None of that had any effect whatsoever. Also, my mobs leg animation doesn't work quite right. The legs swing out past the body. Could that be effecting it?
I have created a custom mob that functions in minecraft using forge/eclipse, but there is no texture. It's stats are all correct, and its body shape, but it has the purple black no texture overlay. When I run minecraft I get this error: "java.io.FileNotFoundException: minecraft:/src/main/resources/assets/textures/entity/boar/boar.png"
And this is the line of code I used to call the texture:
"private static final ResourceLocation EntityTexture = new ResourceLocation("/src/main/resources/assets/textures/entity/boar/boar.png");"
Does anyone know how to fix this? I have searched google and multiple forums for over 18 hours over the past two days regarding this issue and have come up with nothing. The texture and model class were made using Techne.
This would make diamonds a lot more useful but it sounds pretty overpowered considering that you can get a average of 20 diamonds in a average sized strip mine .
So do you think I should make the recipes require more diamonds?
This is my first mod. Any help, suggestions, or comments are greatly appreciated.
This mod provides more things to create with diamonds. It adds "God's Equipment." Currently there is the full set of tools (Pickaxe, Axe, Shovel, Hoe), the Sword, the full set of armor, and two new blocks (Compact Diamond and Window of the World).
Blocks
Compact Diamond
Four Diamond Blocks. Used to make items in this mod.
Window of the WorldFour Compact Diamonds. Allows you to see underground structures and cavesGod's ToolsGod's ArmorThe tools all destroy their respective blocks quicker than it would in creative, and the Sword has over 100 attack power. The armor makes you nearly invincible. All durability is extremely high. Any suggestions for changes or additions are greatly appreciated.
I have one account on Minecraft and want to play LAN with my little brother. When I join game it says name already taken. On the old launcher I would just enter his name as the username and play offline and it would work. Now it doesn't. How do I fix this?
Read the title of the mod very slowly and maybe a couple of times if you need to. Maybe you can find the very important key words in the title to answer your own question
I know it says single player commands, but all over the internet it says this command works easily for LAN. I just can't figure out how.
0
It was the easiest way I could think of. I really need an item to teleport me home to finish my mod
0
The commands I want to add are
/gamerule keepInventory true
/kill
/gamerule keepInventory false
so that the player is teleported to their spawn point without losing anything
0
1
package achilleus.sao.mobs.render;
import achilleus.sao.MainClass;
import achilleus.sao.mobs.FrenzyBoar;
import achilleus.sao.mobs.entity.EntityFrenzyBoar;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.util.ResourceLocation;
public class RenderFrenzyBoar extends RenderLiving {
private static final ResourceLocation EntityTexture = new ResourceLocation("sao:textures/entity/boar/boar.png");
protected FrenzyBoar model;
public RenderFrenzyBoar(ModelBase par1ModelBase, float par2) {
super(par1ModelBase, par2);
model = ((FrenzyBoar)mainModel);
}
public void renderFrenzyBoar(EntityFrenzyBoar entity, double par2, double par4, double par6, float par8, float par9) {
super.doRender(entity, par2, par4, par6, par8, par9);
}
public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) {
renderFrenzyBoar((EntityFrenzyBoar)par1EntityLiving, par2, par4, par6, par8, par9);
}
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
renderFrenzyBoar((EntityFrenzyBoar)par1Entity, par2, par4, par6, par8, par9);
}
@Override
protected ResourceLocation getEntityTexture(Entity entity) {
return EntityTexture;
}
}
0
None of that had any effect whatsoever. Also, my mobs leg animation doesn't work quite right. The legs swing out past the body. Could that be effecting it?
0
And this is the line of code I used to call the texture:
"private static final ResourceLocation EntityTexture = new ResourceLocation("/src/main/resources/assets/textures/entity/boar/boar.png");"
Does anyone know how to fix this? I have searched google and multiple forums for over 18 hours over the past two days regarding this issue and have come up with nothing. The texture and model class were made using Techne.
0
So do you think I should make the recipes require more diamonds?
0
Here are the links. Please use adfly.
adfly: http://adf.ly/pyzS2
MediaFire: https://www.mediafire.com/?5ahrwq0su6xx0h5
Installation:
Just place the .jar file in the mods folder in your .minecraft directory
0
0
SO HAPPY
0
0
0
What version of SPC and Minecraft do you have?
0
0