Everything posted by larsgerrits
-
Saving information after the game is quit?
You make a field in it. Then in the readFromNBT/writeToNBT you read/write your fields to NBT.
-
[1.7.10] Block can't be moved by piston
[lmgtfy]ISBRH[/lmgtfy]
-
[1.7.10] Block can't be moved by piston
Why are you actually using a model? It only has 2 cubes... You should use an ISBRH. That way you don't need a TileEntity so it can be pushed by pistons.
-
[1.7.10] Block can't be moved by piston
That is because your block has a TileEntity. You have to remove the TileEntity for it to be pushable by a piston.
-
How do I create a new boat? [1.8.1]
He doesn't want to spawn a new boat, he wants to make new boat. And yes, you should make a class extending EntityBoat. And yes, you spawn it using world.spawnEntityInWorld(new YourBoat(world,x,y,z));
-
Saving information after the game is quit?
diesieben07 has a implementation here.
-
Updating Player Flight [1.7.10]
You set player.isFlying to false.
-
MOVED: 1.7.10 Modded MC java.lang.IllegalStateException: Already tesselating!
This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=27378.0[/iurl]
-
1.8 CreativeTabs crash
BlockPos.x? Jesus. It might be xpos, or posx, I haven't actually used 1.8 yet, but I can't imagine its that difficult. public void onMinecartPass(World worldObj, EntityMinecart cart, BlockPos pos1) This makes the @Override work and the rail itself works. However when i pass over the rail the game crashes. worldObj.createExplosion(cart, x, y, z, 0.3F, false); worldObj.newExplosion(cart, x, y, z, 3.5F, true, true); createExplosion require 3 int meaning "int x, int y, int z" public Explosion createExplosion(Entity p_72876_1_, double p_72876_2_, double p_72876_4_, double p_72876_6_, float p_72876_8_, boolean p_72876_9_) If i write this, the @Override and the rail properties dont work at all. But it doesnt show any errors. public void onMinecartPass(World worldObj, EntityMinecart cart, BlockPos pos1, int x,int y, int z) I need these "int x, int y, int z" to become "BlockPos x, BlockPos y, BlockPos z" or something like that but then if (worldObj.[b]getBlockState(pos1)[/b].getBlock() == ERMBase.armedRail) { IBlockState blockMetaData = worldObj.[b]getBlockState(pos1)[/b]; these 2 things dont work. No you don't! The BlockPos class has methods to get the x/y/z variables! Use those! No need for "BlockPos x, BlockPos y, BlockPos z"!
-
1.8 CreativeTabs crash
pos1.getX() or someting like that. It REALLY isn't hard to figure this out by yourself.
-
1.8 CreativeTabs crash
- [1.7.10] Problem with invisible TNT entity
That is for blocks, but he has problems with entities...- [1.7.10] Problem with invisible TNT entity
RenderingRegistry.registerEntityRenderingHandler(RozNukePrimed.class, new RenderRozNukePrimed()) Where do you call that method?- updating texture
What the f*** are you doing? registerBlockIcons doesn't have those parameters. getIcon doesn't have those parameters. Its a void method, so you don't return anything. Read up what static means. And a lot more...- rendering
What? Better description.- [1.7.10+] Keeping player (or his clone) after he logs out.
Maybe you can try to catch the GuiOpenEvent , check if the event.gui==GuiIngameMenu and then use event.gui.buttonList.set(0,button) with the a button overriding the onActionPerformed method to first check if you can log out, and if so, proceed, else cancel.- [Hook][1.7.10] mouse sensitivity
What do you want to do with it? You can just access the mouse sensitivity with Minecraft.getMinecraft().gameSettings.mouseSensitivity .- [1.7.10] Modding Help
1) Learn basic Java. Without it, you are gonna have a bad time modding. 2) Start with the basic things. First do it with a tutorial, then try to do it yourself a few times to get comfortable with it, and then move on with more advanced things. But don't expect to become 'amazing at modding' in the next 2 years (probably more).- [1.8] [Solved] Source not found
No! Don't do that! If you run gradlew setupDecompWorkspace eclipse it sets forgeSrc as a dependency in eclipe so you don't have to do that.- [1.7.10][Unsolved]TileEntity saving variables
On the server side, the getDescriptionPacket method is called, and that method returns a S35PacketUpdateTileEntity containing and NBTTagCompound containing the data you have written to it. Then it sends the packet to the client side and it calls the onDataPacket with the packet returned from the getDescriptionPacket , in which you read all the data from the NBTTagCompound in the packet.- Rendering Turbo Model Thingy?
1) Update to 1.7.10. 2) Wavefront model still work in 1.7.- [1.7.10][Unsolved]TileEntity saving variables
TileEntity class.- MOVED: Strange problem my Minecraft launches /w java 32bit not java 64bit
This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=27189.0[/iurl]- [1.7.10] Mod don't work for server
Post your ClientProxy and your CommonProxy.- [1.7.10] Mod don't work for server
How are we supposed to know what's crashing without the crash log? - [1.7.10] Problem with invisible TNT entity
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.