Everything posted by larsgerrits
-
[1.7.10] Structure Spawn Multiple Times at same place
Please, use for-loops to place the blocks, not a single setBlock for each of them.
-
MOVED: [1.8] command blocks in custom maps are not working. ¿why
This topic has been moved to Minecraft General. [iurl]http://www.minecraftforge.net/forum/index.php?topic=26422.0[/iurl]
-
Are dimensions server side?
Yes, dimensions are server side.
-
[SOLVED] [1.7.10] ItemStack Item is null
Look at the arguments from the methods...
-
setHarvestLevel
If you have to search for tutorials for this type of very basic Java, you shouldn't be modding. Learn Java and come back then.
-
[SOLVED] [1.7.10] ItemStack Item is null
@EventHandler public void preInit(FMLInitializationEvent event){ ... } @EventHandler public void init(FMLInitializationEvent event){ ... } Copy-Pasting...
-
[1.7.10] Overwriting Vanilla Ore Generations
Just look at the super's class (Event.class) and you'll see it pretty fast.
-
[1.7.10] Custom Item Renderer
The last parameter in your call to model.render() should be 0.0625F instead of 0 .
-
[1.7.10] [SOLVED] ridingEntity and riddenByEntity return null
That's because the standard mods are obuscated to work in a normal environment, and not in a dev-environment. To solve this, add CodeChickenCore to the mods folder, as it will runtime-deobfuscate the mods so they can work in a dev-environment.
-
How about run-time altered icons
Can't you use a custom renderer to render the stone layer first and then render your custom stuff after that?
-
Easiest way to cycle thronugh 16 different blocks.
Or do something like this: Block[] blockArray = new Block[]{block1,block2,block3,block4,...};
-
Easiest way to cycle thronugh 16 different blocks.
You mean a random one of the 16 blocks? If so, add a Block[] and a Random field in your item, and when ou want to place that block, get the Block using Block block = blockArray[random.nextInt(blockArray.length)] .
-
[SOLVED]Custom building not spawning
Ik weet wel hoe groot een chunk is Het is 16 keer 16 keer 256 I know how big a chunk is A chunk is 16 by 16 by 256 Then why do you do random.netInt([b]256[/b]) ? (also, this is an english forum, and lets keep it this way)
-
[SOLVED]Custom building not spawning
And you also don't know how big a chunk is, do you?
-
[SOLVED]Custom building not spawning
Do this:
-
[1.7.10] Custom Tile Entity Renderer has a shadowy overlay
Before the calls to Tessellator#addVertexWithUV() , add Tessellator#setColorOpaque_F(1, 1, 1) .
-
[1.7.10] Increase size of rendered item?
GL11.glScalef(scale,scale,scale)
-
Updating your mod to 1.8
Item.getItemFromBlock(Block)
-
[1.7.10] Pass on data that is saved in an Itemstack to an instance of an Entity
If the entity is yours, you can override the interact(EntityPlayer) method, in which you can get the ItemStack the player is holding (can be null), check if the item is the item you want, and get the variables from the stackTagCompound (can be null) of the item the player is currently holding.
-
[1.7.10] How to include and reference text file?
Class.class.getResourceAsStream isn't related to Forge anyway. It's plain Java, so look up on that.
-
[b1.7.3]Do anybody have a plan how to code mods in beta 1.7.3?
We don't offer help for versions before 1.7. I'd say you're on your own.
-
How to bind command to button?
Don't edit base classes. Forge has everything you need to make this work.
-
[1.7.10] Vehicle hopping blocks
Set this.stepHeight to the amount of blocks the entity can hop. Eg, 1 means 1 block, 3 means 3 blocks and 0.5 mean a half a block (slabs)
-
Item stuck in its slot
Yeah, not gonna download something from a random site. Make a GitHub for your mod, or post the code on pastebin.com with syntax highlighting as java.
-
[1.7.10] Check If Birch Is In Hand?
Does it go INSIDE(!) the if-statement if holding, for example, oak log?
IPS spam blocked by CleanTalk.