Everything posted by GotoLink
-
Issues trying to run Mod on Server 1.6.4 [Not Solved]
import net.minecraft.client.model.ModelIronGolem; Update your imports. Check you don't reference client-side only classes in common classes. Start blocks and items in PreInit phase. Register your items with GameRegistry. Read tutorials for registering entities properly, and localizing things.
-
How do you localize your languages?
Check "localizing" tutorial. If you want to be more technical, start with StatCollector.
-
[SOLVED]HD textures
Put a square texture any size in your mod, register it, done.
-
Arrow Projectile Entity fades back
EntityRegistry.registerGlobalEntityID(EntityWoodArrow.class, "WoodArrow", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(EntityWoodArrow.class, "EntityWoodArrow", 5001, this, 128, 1, true); You are registering twice... Remove the first line.
-
Help with running delays in a block class.
I know this method exists (and it is worth mentioning to OP's knowledge), but needs to be avoided in my case. Concurrency issues between tile entity update, redstone power, user inputs, and setting blocks in world. Not safe.
-
Class.getClass().getResource() working in Eclipse but not when compiled
I'd recommend Class#getResourceAsStream(String) instead.
-
[SOLVED] Help Understanding Crash
getSoundName() == Use .equals(Object) instead. String are immutable. By the way, use event.source to get the sound played, and set event.result to change to the new sound.
-
[SOLVED] Class not found with proper file structure?
You found the way it works. I assure you, all other mods are doing the exact same.
-
[Solved] Damages base items with an overlay texture
Item#getIconFromDamageForRenderPass(damage, pass) Override this, return a different icon depending on pass value. You'll need Item#requiresMultipleRenderPasses() to return true. And override Item#getRenderPasses(int) if you want more than 2 passes.
-
Arrow Projectile Entity fades back
Use the classes or extend them if you need to change things.
-
[SOLVED]Ore not generating and not accepting texture
Man...just System.out.println your block coordinates. You'll probably have to mine the ocean floor, considering you use height<32 and WorldGenMineable.
-
GUIs for Entities
Entity#onInteractFirst(..) is a common place to open a GUI.
-
Help with running delays in a block class.
To be able to change the delays at will, or disrupt updates if anything "bad" happens.
-
Save and Load NBTData to/ from String
CompressedStreamTools That class contains methods to read and write to File with NBTTagCompound.
-
[Request] Tutorial on Scroll Bars for GUI's
Have a look here Override the mouse events, use some scrollPos variable...
-
[UNSOLVED] Generating Custom Flowers in Prexisting Biomes?
Don't use WorldGenMineable. It's for replacing (stone) blocks with other (ores).
-
Save and Load NBTData to/ from String
Then what do you think of NBTBase.readNamedTag(DataInput) NBTBase.writeNamedTag(NBTBase, DataOutput) ?
-
Save and Load NBTData to/ from String
...Do you know how to make a String ?
-
[Unsolved] Error "Registering texture" Crash report
Yes, you didn't put anything inside this array.
-
[SOLVED] Finding Held item in LivingDrops Event
ItemStack itemstack = new ItemStack(IntegratedItems.meatcleaver, 1, OreDictionary.WILDCARD_VALUE); System.out.println("ItemStack found"); if(itemstack != null) { System.out.println("Itemstack is not null!"); if(event.entityLiving.getHeldItem().itemID == itemstack.itemID && event.entityLiving.getHeldItem() != null) itemstack is not null. You just set it. Conditions are checked in the order they are given.
-
Save and Load NBTData to/ from String
NBTTagCompound#setString(String, String) NBTTagCompound#getString(String)
-
Getting all players in a server
MinecraftServer.getServer().getConfigurationManager().playerEntityList Is a List of EntityPlayerMP.
-
I need some help with item id's
Use Configuration#getItem(...)#getInt() to get a free id. Use it directly for your item. GameRegistry.registerItem(Item, String) in FMLPreInitializationEvent.
-
Need a way to add a new type of tool
MinecraftForge.setToolClass(item, tool, level); Using a tool class as "icepick" or something.
-
Help with running delays in a block class.
You can look here. The "Animator" block does a bit more, but uses the same idea.
IPS spam blocked by CleanTalk.