-
[1.7.10] Minecraft crashes upon after Forge finishes starting up
You're running an ancient version of PneumaticCraft, that's the problem. So updating PneumaticCraft is the way to go.
-
[1.7.2] How to store wiki type info about a block
We are on the same idea here , with the wiki API. I've done the text reading already, it can be found here to take a look at: https://github.com/MineMaarten/IGW-mod/blob/master/src/igwmod/InfoSupplier.java
-
[SOLVED][1.3.2] TextField won't appear
GuiScreen#initGui() should only be called when you open a GUI or when you change the resolution of your screen. This is already done for you, don't call it every render tick... To maybe solve your problem: Try rendering the textbox after you've drawn your screen. It could be that the textbox is now rendered behind your screen. this.BackGround(); this.username.drawTextBox();
-
[SOLVED] Cancelling a Player placing a block in the onBlockActivated() method?
In that case returning true in onBlockActivated should prevent the player from placing the block.
-
Items use last item's info
Storing in the ItemStack can either be done in 1. damagevalues or 2. NBT. As you're damagevalue probably already has been taken by how much the item is damaged you need to use NBT. And for a beginner that's quite advanced stuff.
-
[SOLVED] SoundLoadEvent not being called
If I look back at how I've done it, it looks the same as how Xenocider described. The difference is that I'm using .ogg files instead of .wav which caused problems for me as well. So try converting the sound file to .ogg and retrying. There is a String only method, look for example at an older version of my Minesweeper Mod: https://github.com/MineMaarten/MinesweeperMod/blob/d9fddc885f6ae5cba9342fd37abe7bd35e35e6be/src/minesweeperMod/client/MinesweeperSoundHandler.java https://github.com/MineMaarten/MinesweeperMod/blob/d9fddc885f6ae5cba9342fd37abe7bd35e35e6be/src/minesweeperMod/common/ItemMineDetector.java
-
Pausing your code without thread.sleep()
You also might have a look at my code to display tutorial messages from my Minesweeper Mod: TutorialHandler.java, when called onUpdate(), it will send messages if a certain timer runs out: https://github.com/MineMaarten/MinesweeperMod/blob/master/src/minesweeperMod/common/TutorialHandler.java MinesweeperTickHandler.java, which manages the TutorialHandlers and calls the onUpdate() every world tick: https://github.com/MineMaarten/MinesweeperMod/blob/master/src/minesweeperMod/common/MinesweeperTickHandler.java
-
[SOLVED] SoundLoadEvent not being called
In 1.5 the folder was called 'mods' instead of 'assets', but the principle mentioned by Xenocider is the same. I'm not 100% this was also being applied for sounds by then, but you can at least try it.
-
Structure
The rotations of the blocks mentioned by you are all saved in a thing what's called block metadata (and with those many more blocks). Also the difference between top/bottom halfslabs and stairs being upside down is saved in metadata. So I suggest looking up metadata (there's much to find on this topic).
-
Spawning mobs from a Tile Entity with custom NBT
Or you could create the entity and inject an altered NBT tag in the Entity. Something like: CustomEntity entity = new CustomEntity(worldObj); NBTTagCompound tag = new NBTTagCompound(); entity.writeEntityToNBT(tag);//create the base tag tag.setShort("Health", (short)10);//alter the tag, for instance here the health is changed. Bit devious but it's an example. entity.readEntityFromNBT(tag);//inject the entity with the altered tag. worldObj.spawnEntityInWorld(entity);
-
Weird TileEntity Array Behaviour...
So apparently updateSides() is only called on the server side. And no you shouldn't have gotten an error or something because you're calling a @SideOnly(Side.CLIENT) annotated method because that only will be the case if you test it on a dedicated server instead of the internal SSP one. You'll then see that just the line @SideOnly(Side.CLIENT) public boolean connect[] = {false, false, false, false, false, false}; will throw an exception as the SideOnly notation only applies to the field and not it's initializer.
-
[SOLVED]Interact with TileEntity/its NBT from Client classes
@Override public Packet getDescriptionPacket(){ NBTTagCompound tag = new NBTTagCompound(); writeToNBT(tag); return new Packet132TileEntityData(xCoord, yCoord, zCoord, 0, tag); } @Override public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt){ readFromNBT(pkt.data); } public void sendDescriptionPacket(){ PacketDispatcher.sendPacketToAllAround(xCoord, yCoord, zCoord, 64D, worldObj.provider.dimensionId, getDescriptionPacket()); } sendDescriptionPacket() is a 'homemade' method with which you can send the nbt packet to the client whenever you want. The fewer packets you send the better though. So the best that you can do is simulating the same behaviour on the client and on the server and only send a packet when you know the client will be desynched.
-
When one block in slot, it is not used
diesieben means if(getStackInSlot(x).stackSize <= 0) setInventorySlotContents(x, null);
-
Rendering Font in Bottom Left Corner
ScaledResolution has your answer: Minecraft minecraft = Minecraft.getMinecraft(); ScaledResolution sr = new ScaledResolution(minecraft.gameSettings, minecraft.displayWidth, minecraft.displayHeight); int y = sr.getScaledHeight(); //gives the screen height.
-
[SORTA SOLVED][1.6.4] getting int with metadata from ItemStack
Create (add, not replace) your own AI class that acceps an ItemStack?
IPS spam blocked by CleanTalk.