Everything posted by ZL123
-
Modded Tutorials in 60 Seconds
Mekanism tutorials!
-
Modded Tutorials in 60 Seconds
Modded Minecraft tutorials in 60 seconds! Check out the playlist here. Modder? Hit me up if you'd like quick, snappy tutorials of blocks, items, or any concepts of your mod!
-
Help - Information under item when mouseover (like music disc)
This works for me: @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("Line I"); par3List.add("Line II"); }
-
Bar in GUI doesn't work
Bump! Sorry about these, but I'm pretty stumped as to what is happening with this. Can someone please help? Thanks.
- Bar in GUI doesn't work
-
Bar in GUI doesn't work
I'm working on a machine (called the Glowstone Infuser) that stores an amount of 'glowFuel'. When an item is added to a slot, it removes that item and adds to the 'glowFuel'. There is supposed to be a bar to show how much there is on it. However, my code for that doesn't work. It definitely adds the 'glowFuel', as I tested that with a "print" function (and the machine also processes items), so it is the GUI that is the problem. Also, while we're on the subject, how do I make it so that when the mouse is hovered over the bar it shows how much fuel is in the machine (sort of like an Item tooltip)? I've been studying a bit of BuildCraft, but it seems complicated. Is there a fairly easy way or am I going to have to make a whole lot of classes and code? [move][glow=yellow,2,300]Thank you![/glow][/move] Links: GitHub GitHub Issue Glowstone Infuser's GUI Glowstone Infuser's TileEntity
-
3 errors I have no idea how to fix...
For the last one, registerEntityEgg is not a built-in method. Anyway, if it was, you would need to reference it with its class name since it's in another class.
-
My Mod's Achievements Duplicate Stat id's
Instead of referencing your AchievementHelper and others in your @Init or @PostInit, do it in the @PreInit.
-
Crafting: how to get an item back?
Where you set your item instance: itemKnife = new ItemKnife(6000).setUnlocalizedName("knife") you add .setContainerItem(itemKnife) so it becomes itemKnife = new ItemKnife(6000).setContainerItem(itemKnife).setUnlocalizedName("knife").
-
Permenantly setting booleans and integers?
No, you have a method which sets a boolean to true, and when you exit, it will save the boolean to NBT, and when you enter, it will read it from NBT.
-
Permenantly setting booleans and integers?
Basically, NBT is a thing that Notch made to save states of things, if I'm not mistaken. Lots of things use it, like Furnaces. I can't really explain it much further. But has your mob class extended EntityTameable? I think that does it for you.
-
i can't use cocoa beans in a crafting/smelting recipe
The way you get Cocoa Beans is: new ItemStack(Item.dyePowder, 1, 3)
-
Permenantly setting booleans and integers?
Use an NBT Tag. I think this should work: http://paste.minecraftforge.net/view/432625b0
-
Container throws items out?!
I'm creating a mod called GlowTools, and I'm working on a machine. At the moment it works fine, except when it changes state from idle to active it throws some items out of itself into the World, and takes ghost blocks in their places. Any help will be much appreciated! GitHub: https://github.com/ZL123/GlowTools TileEntity: https://github.com/ZL123/GlowTools/blob/master/glowTools_common/glowTools/tileentity/TileEntityGsInfuser.java More Details in GitHub Issue: https://github.com/ZL123/GlowTools/issues/2
-
[1.5.1] Can't create configuration file! :(
Before compiling the mod, it would be in mcp/jars/config. After compiling the mod and adding it to a regular Minecraft, it would be in .minecraft/config.
-
Set Light Value on Event
Is it possible to make something change to a certain light value when it is right-clicked, without changing the Block ID or Metadata? I've actually made a button so that when it gets right-clicked it gives off a light-level 15, but when it's de-activated it still gives off the light (even after it is destroyed and re-placed)! Could you please help? Thanks so much. EDIT: I've made a seemingly better version; this doesn't seem very reliable though... http://paste.minecraftforge.net/view/embed/18cd8ff8
-
Modloader addOverride in Forge?
Paint.NET is quite pixel-precise if you zoom in all the way. Also once you've selected something it will show you at the bottom the x and y, so if both are multiples of 16 you know that it's the start of a new sprite section, if you know what I mean. Also the rulers are quite handy as well.
-
Spawning EntityItem
Thank you so much! It worked.
-
Spawning EntityItem
Thank you. Now how do I make it destroy the diamond block and how do I make the main class use PlayerHelper? Thanks!
-
Spawning EntityItem
Hello! Do you know how to spawn an EntityItem? Basically, I have this Scepter, and I want so that when I right-click it on a diamond block the diamond block disappears and transforms into another Scepter. Sort of like how you make a Thaumonomicon in Thaumcraft. Thanks a lot!
IPS spam blocked by CleanTalk.