
Jdb100
Members-
Posts
223 -
Joined
-
Last visited
Everything posted by Jdb100
-
another way you could do it is make a custom world type
-
did you specify where your clientproxy and commonproxy are in your mod file also please don't repost a topic for faster help.
-
or another tutorial for you http://www.minecraftforum.net/topic/1483366-universal-subarakis-one-stop-custom-block-tutorial-make-it-with-techne/ also try this works great http://lmgtfy.com/?q=custom+model+for+block+in+minecraft+forge
-
you probably forgot to put the @SideOnly part
-
oh you want to add text underneath well to add text all you have to do is do this @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { { par3List.add("Place your subtext here"); } } P.S. i haven't tested this but it should work. P.P.S you don't need the onItemPickup part now
-
then it is even easier just use on itemPickup event to detect it.
-
nbt is really simple so all you have to do is use NBTTagCompound.setString("whatever") then you can get it with NBTTagCompound.getString("whatever") then just on item crafted check if it is your item then set it with setString then get it in a seperate method and do whatever you need.
-
Nobody is going to take that we might aswell just make it are self and you couldn't say it was my idea even though it is. The only way someone would take it is $20 and all the donations.
-
you messed up on putting the textures in the right place so check your spelling and if that doesn't work post your clientproxy
-
I was wondering how you could overwrite the base gui's such as the ingame menu. I know of a few mods that are doing this such as the mine wars mod and liteloader. I don't need help on the gui as that is pretty simple but if you need it i can just throw together the gui quickly. The only thing that i could think of is having it open on escape but both would open so that would crash the game.
-
i do it differently then you maybe try this EntityPlayerMP thePlayer = (EntityPlayerMP) par3EntityPlayer; if (par3EntityPlayer.dimension != MysticRealms.dimensionID) { thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, MysticRealms.dimensionID , new YourTeleporter(thePlayer.mcServer.worldServerForDimension(MysticRealms.dimensionID))); } else { thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, 0, new YourTeleporter(thePlayer.mcServer.worldServerForDimension(0))); }
-
ok sorry about my stupid mistake all you have to do is edit your tick handler to add thistem public void onTickInGame() { if(YourItemClass.didRightClick == true) { fireTick ++; } if(fireTick == 10) { fireTick = 0; YourItemClass.setAir(); didRightClick = false; } } then add this to your item public void setAir(World par1World) { par1World.setBlock(x, y + 1, z, Block.blocksList[0].blockID); } then change your onItemUse to this public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { par3World.setBlock(par4, par5 + 1, par6, Block.fire.blockID); x = par4; y = par5; z = par6; didRightClick = true; ClientTickHandler.fireTick = 0; return false; } make sure to add these to your item class public int x; public int y; public int z;
-
instead of making a thing called moar tools just have it extend ItemPickaxe then you can just make the classes in moartools static and access those you using a simple method.
-
I don't know if 100 % this would work but it should from what i can tell so in your onItemUse() do this public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { par3World.setBlock(par4, par5 + 1, par6, Block.fire.blockID); didRightClick = true; ClientTickHandler.fireTick = 0; if(ClientTickHandler.setAir == true) { par3World.setBlock(par4, par5 + 1, par6, Block.blocksList[0].blockID); } return false; } also add these in your item class public static boolean didRightClick = false; then in you ClientTickHandler use this method public void onTickInGame() { if(YourItemClass.didRightClick == true) { fireTick ++; } if(fireTick == 10) { setAir = true; fireTick = 0; } } then add these in your ClientTickHandler public static int fireTick = 0; public static boolean setAir = false; something i noticed is you said you wanted it for 10 ticks and i think you mean seconds because 20 ticks is 1 second so if you want 10 seconds do this public void onTickInGame() { if(YourItemClass.didRightClick == true) { fireTick ++; } if(fireTick == 200) { setAir = true; fireTick = 0; } }
-
[Unsolved]Custom Block Rendering Problem.
Jdb100 replied to SoBiohazardous's topic in Modder Support
this might not be right but it could be the render type because the default tracks use the render type 9 and in your IPlateRenderHandler i can't see where you set the render type. -
[Unsolved]Custom Block Rendering Problem.
Jdb100 replied to SoBiohazardous's topic in Modder Support
i can't exactly tell right now but if you could provide your plate logic and your model class -
if you just provide us with the crash log that is pretty useless we also need your mod_Usefull_cobble and BlockMagic
-
[Unsolved]Custom Block Rendering Problem.
Jdb100 replied to SoBiohazardous's topic in Modder Support
explain how it is rendered incorrectly -
the player is going to have an item which when they right click will call the method of the class by the classes id i made sure to call every method the same so it would be easier.
-
I don't know the answer but you could try pming the creator of steve's carts or the railcraft mod creator.
-
i am trying to detect to call by an id but since the player can change the id, I can't use a switch unless i made 512 different cases which i really hope i don't have to. Right now i have a way these methods public int getID() { return ID; } public boolean isIDSame() { NBTTagCompound var2 = new NBTTagCompound(); int var1 = this.getID(); if(var2.getInteger("id") == var1) { return true; } else { return false; } }
-
i dont know exactly how it works but for a 3x3x3 cube this should suffice this.setBlockBounds(0F, 0F, 0F, 3.0F, 3.0F, 3.0F);
-
private void setBounds() { this.setBlockBounds(float, float, float, float, float, float); } Edit:Almost forgot in your block call the method
-
Hate to bump but i cant make any progress till i fix this.
-
thanks for the reply but i highly doubt it because i got the error on the last three worlds i made so i don't know what it is but if i had to guess it would probably be my biome but it was working before which is strange.