Everything posted by newboyhun
-
why recipe no work?
Second parameter should be an Object[].
-
Ore generation
..... Do it as you did at zCoord or xCoord ....
-
Tinted Block Overlay?
Check this:http://www.minecraftforge.net/wiki/Multiple_Pass_Render_Blocks
-
crafting
Eh? Can you rewrite your question,because i can't understand it. But if you want to use a potion in a crafting recipe,then you need to make the recipe with ItemStack,like: new ItemStack(Item.potion,1,damage) Example for Potion of Regeneration: new ItemStack(Item.potion,1,8193)
-
Tinted Block Overlay?
I think you will need to make a custom renderer for it.
-
Double Slabs? [Solved]
For registering name,i have used: LanguageRegistry.instance().addStringLocalization(((BlockStoneSlabs)YourSingleSlab).getFullSlabName(0)+".name", "Your Slab");
-
Questin about Strings
In the loop you aren't using the elements,you should: letters But for understanding from minecraft is a really terrible thing,because of the variable names. You should start making you own games,like a simple top-down shooter games,platform games,pacman any easy game do it. And i recommend you LWJGL and Slick2D
-
Double Slabs? [Solved]
It's because of the slab is an itemblock,you need a custom itemblock for it,but a more simple thing is to put a line in the FMLPostInitializationEvent : Item.itemsList[YourSingleSlab.blockID] = (new ItemSlab(YourSingleSlab.blockID - 256, (BlockHalfSlab)YourSingleSlab, (BlockHalfSlab)YourDoubleSlab, false)).setItemName("YourSlabName");
-
Questin about Strings
Are you new to Java? =) Yes with enum you can do that,but if you want the same thing to do when it starts with 'X' letter,then you just make an array,or an arraylist,any collection do it,then loop it through.
-
Increase world's minimum height
Hi all! I'm trying to increase the sea level and ground level,i already achieved this (to 128 from 64) BUT,the whole world is flat (except lakes,oceans etc). I have edited the ChunkProviderGenerator,i think the problem should be arond the noise generators,is there anyway to fix this?
-
Drawing mob towards a block
Oh sorry did you made the field for the movedEntity? private EntityLiving movedEntity;
-
Block Drops
Then resend your source with the changes so i can see what you changed.
-
Block Drops
change getCurrentEquippedItem() with inventory.getCurrentItem()
-
Slabs - Metadata 0 - 7 are on the ground, 8-15 are on top
It's because the minecraft uses metadata to checking if it's on bottom or on top. You can only use the first 8 metadata because the last 8 metadata is the top one. You will need two block for wool,one for the first 8 ,one for the last 8.
-
Gui, Container and not being able to open them.
Probably you shouldn't register the gui into the CommonProxy,you need a seperate GuiHandler http://www.minecraftforge.net/wiki/Containers_and_GUIs For opening gui i'm using : par5EntityPlayer.openGui(YourMod.instance, YourGuiID, par1World, par2, par3, par4); par2,par3,par4 are coordinates: x,y,z
-
Block Drops
Did you tried to add messages to check what is going in the code? System.out.println("This will appear in the console."); Do you know what the par3 mean in the idDropped() ? Btw,the problem could be at par2Random.nextInt(10 - par3 * 3). Check the Minecraft's source next time. (BlockGravel) Add this snippet if (par3 > 3) { par3 = 3; } before return par2Random.nextInt(10 - par3 * 3) == 0 ? Item.flint.shiftedIndex : this.blockID;
-
Drawing mob towards a block
Simple ,and a really good idea This snippet goes in your block's file. public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving) { List var4 = par1World.getEntitiesWithinAABB(EntityZombie.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool(par2 - 20, par3, par4 - 20, par2 + 20, par3 + 1, par4 + 20)); if (!var4.isEmpty()) { Object e = var4.get(0); if (e instanceof EntityLiving) { ((EntityLiving) e).getNavigator().tryMoveToXYZ(par2, par3 + 1, par4, ((EntityLiving) e).getAIMoveSpeed()); this.movedEntity = ((EntityLiving)e); } } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if (!par1World.isRemote) { if (this.movedEntity != null) if (par5Entity.entityId == this.movedEntity.entityId) { if (par5Entity instanceof EntityLiving) { EntitySkeleton sk = new EntitySkeleton(par1World); sk.setLocationAndAngles(this.movedEntity.posX, this.movedEntity.posY, this.movedEntity.posZ, this.movedEntity.rotationYaw, this.movedEntity.rotationPitch); par1World.spawnEntityInWorld(sk); sk.initCreature(); ((EntityLiving)par5Entity).setDead(); } } } }
-
problem with creative menu tabs
First,you don't need to do the nextID() thing because the CreativeTabs do it automatically. Just construct it with only the label parameter. Secondly,the erros is can be because the item isn't exists,that's why it says null at CreativeTabs.java:209, getIconItemStack() creates an itemstack from your item. What does this mean? Within your getTabIconItemIndex you are using an variable that stores the id of the things. Because they are items you need to make it shifted. So @SideOnly(Side.CLIENT) public int getTabIconItemIndex() { return mcextcore.Core.ItemChestPlateID + 256; } I hope i helped you.
-
Edited server version throws a LoaderException. Something to do with the Proxy
Did you added the annotation? @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy") http://www.minecraftforge.net/wiki/Tutorials/Basic_Modding#Proxy_Classes
-
Item decay over time
What is the problem? What do you mean on glitch? Screenshot or a little video would be nice.
-
Custom Block Render
Here is a link,this should work ( i'm using this too) http://www.minecraftforge.net/wiki/Upgrading_To_Forge_for_1.3.1#Custom_Block_renders
-
Custom Block Rendering (HELP)
If i'm sure this is the forge's command for registering block rendering,if you meant this. RenderingRegistry.instance().registerBlockHandler ClientRegistry.bindTileEntitySpecialRenderer
-
moving a block, good ways to learn
Did you registered the entity?
-
[SOLVED]Resend tileentity data to client when variable changed
Hi all,so whati want is in the title =)
-
[SOLVED] How to replace an item stack?
Probably the player don't get the changes,add this after changing itemstack. ((EntityPlayer)entity).inventoryContainer.detectAndSendChanges();
IPS spam blocked by CleanTalk.