Everything posted by larsgerrits
-
[1.8][Solved]Using setBlockState to set block to custom block?
Look at this piece of code: int x = (chunkX*16)+RNG.nextInt(14); int z = (chunkX*16)+RNG.nextInt(14);
-
[1.7.10] Bow Rendering in 3rd Person
- New Unfamiliar Arguments (in attempt to create creative tabs)
Use CreativeTabs.getNextID() instead of 0 .- Getting started with changing vanilla minecraft code
There are plenty of events and hooks for entities. You can use them to modify an entity's behaviour.- [1.8] Partially blank texture shows clear on one block, white on another[SOLVED]
Override getBlockLayer() to return EnumWorldBlockLayer.CUTOUT .- [1.7.10] - setBlock Flags
You probably want to use flag 3, which are flag 1 (block update) and flag 2 (notify clients).- MOVED: "Shutting down internal server..."
This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=30240.0[/iurl]- "Shutting down internal server..."
ExtraUtilities and BuildCraft are clashing. Make sure they are both up-to-date.- [1.8][SOLVED] Attribute Modifier Help
You can safely cast that to a ChatComponentText and use ChatComponentText#getChatComponentText_TextValue() to get the display name.- [1.7.10] Spawning entity with item - onItemUse
You use the alternative constructor. Edit: I just found out there's no alternative constructor, so you'd have to set the position manually using entity.posX/Y/Z = ?- [1.8] How to get Player Postition? [SOLVED]
You can draw to ingame GUI using the RenderGameOverlayEvent.- [1.8] How to get Player Postition? [SOLVED]
You do know Java, right? From the code you got from somebody (bad person, don't give code without explanation), you clearly don't know Java. If you do know it, you can solve the error yourself.- [1.8] How to get Player Postition? [SOLVED]
player.posX/Y/Z ?- [1.7.10] Can't mine blocks while setting stack NBT
When Minecraft detects even a slight change in the ItemStack the player is holding, like changing hotbar slot, or changing the ItemStack's NBT, it resets the break timer, and does that animation. I believe Tinkers' Construct fixes this by not changing the NBT when the tool is used.- [1.7.10] GL11.color4f does not change color of rendered block...
GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8. Ok, i guess i can replace first 2 with GL11.glDisable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_BLEND); But what is third one? Anyways it didn't help... Any more ideas??? The third one you can replace with GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); .- [1.8][Almost Solved]Get block-set block methods/ IWorldGenerator with structures
That should work.- [1.7.10]Make TileEntity compatible with fluid pipes?
If you have IFluidHandler implemented, it should work, as the pipes should do all the work. You just have to fill in all the methods.- [1.7.10][SOLVED] How to find out color of sheep
- [1.8][Almost Solved]Get block-set block methods/ IWorldGenerator with structures
Use Block#getDefaultState() for standard blocks.- [1.7.10][SOLVED] How to find out color of sheep
ArrayList<ItemStack> drops = target.onSheared(itemstack, entity.worldObj, (int)entity.posX, (int)entity.posY, (int)entity.posZ, EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, itemstack)); Shears call IShearable#onSheared , and sheep implement that interface. So go to EntitySheep#onSheared and look how they figure out the color of the sheep.- [SOLVED] Is there any tool to update obfuscation mapping for mod codes?
If you change the mappings, to what mappings did you change it and what is the compile error?- [1.8] How to temporarily change the hue of nearby blocks
http://www.minecraftforge.net/forum/index.php?topic=13154.0 This is the way the Colored Lights mod works, so you might be able to do it the same way his mod does, or use the mod's API.- [1.7.10] GL11.color4f does not change color of rendered block...
GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8.- Wrog Render
Override isOpaqueCube() to return false.- Cannot open my mod
Yep, I deserved that. I meant to say desktop and laptop. - New Unfamiliar Arguments (in attempt to create creative tabs)
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.