Jump to content

Blaze0025

Members
  • Posts

    17
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Blaze0025's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Oh, so would there be any way to make the uses only one? I tried zero, and it had unlimited uses.
  2. Hey. I have a line of code that adds a material type to my game. The material is op, but it is only supposed to have 1 use. However, when I use it, the item doesn't break and instead it says durability 0/1. Any help? Code:
  3. Alright, so I recently created a block that when destroyed, drops an item (action figure). It does drop the item, but I was wondering if there was a way to decrease the chances of it dropping. (Like flint in gravel) Thanks! Code:
  4. welp I guess The internet ISN'T always right PS. At least there isn't an option for PAPYRUS cuz I think THAT's an ugly font that should be burned with fire. COMIC SANS 4 LIEF
  5. Is it really that ugly? I get 3 errors when I do this, but It is what the tutorial told me to do: import net.minecraft.util.ResourceLocation; import net.minecraft.client.model.ModelBox; import net.minecraft.client.renderer.entity.RenderBox; <--here import net.minecraft.entity.Entity; public class RenderNate extends RenderBox <--here { private static final ResourceLocation textureLocation = new ResourceLocation("dm/textures/models/entityTest.png"); public void RenderTest(ModelBox model, float shadowSize) { } @Override protected ResourceLocation getEntityTexture(Entity par1Entity) <-- aaand here { return textureLocation; } }
  6. So... I've been following a tutorial on how to make my entity have a model. The tutorial was for modelBiped, But I wanted to use modelBox. So I used this import that works for modelBiped, but for some reason not modelBox... It's probably pretty obvious, but i'm dumd so here it is: import net.minecraft.client.renderer.entity.RenderBox; thanks
  7. hmm. guess duct tape CAN'T solve everything...
  8. oops my bad! public class ClientProxy extends CommonProxy{ @Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityNate.class, IRenderFactory(new ModelMNate(), 0.5F)); } private Render IRenderFactory(ModelMNate modelNate, float f) { // TODO Auto-generated method stub return null; } }
  9. import blaze0025.Diamines.ModelMNate; import blaze0025.Diamines.RenderMNate; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class RenderNate extends RenderMNate { private static final ResourceLocation textureLocation = new ResourceLocation( "dm:textures/entities/NATEbdy.png"); public RenderNate(ModelMNate model, float shadowSize) { super(); } @Override protected ResourceLocation getEntityTexture(Entity entity) { return textureLocation; } }
  10. Soo, I made a new entity and have no idea why my game crashed, but it did. Here's the report. [18:56:08] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:56:08] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1566 Initialized [18:56:09] [Client thread/INFO] [FML]: Replaced 183 ore recipies [18:56:09] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:56:10] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:56:10] [Client thread/INFO] [FML]: Searching C:\Users\Barry\Desktop\Diamines\eclipse\mods for mods [18:56:18] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:56:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dm] at CLIENT [18:56:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dm] at SERVER [18:56:19] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Diamines [18:56:19] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:56:19] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [18:56:19] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:56:19] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:56:19] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:56:19] [Client thread/INFO] [sTDOUT]: [blaze0025.Diamines.Diamines:preInit:102]: BlockHappy [18:56:19] [Client thread/INFO] [FML]: Applying holder lookups [18:56:19] [Client thread/INFO] [FML]: Holder lookups applied [18:56:19] [Client thread/INFO] [FML]: Injecting itemstacks [18:56:19] [Client thread/INFO] [FML]: Itemstack injection complete [18:56:19] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:19] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [18:56:19] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:56:19] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:56:20] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:56:20] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:20] [sound Library Loader/INFO]: Sound engine started [18:56:21] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas [18:56:21] [Client thread/INFO]: Created: 16x16 textures/items-atlas [18:56:21] [Client thread/INFO] [FML]: Injecting itemstacks [18:56:21] [Client thread/INFO] [FML]: Itemstack injection complete [18:56:21] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:56:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Diamines [18:56:22] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [18:56:22] [Client thread/INFO]: Created: 256x256 textures/items-atlas [18:56:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down... [18:56:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [18:56:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [18:56:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:56:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:56:23] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:56:23] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:56:23] [sound Library Loader/INFO]: Sound engine started [18:56:24] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ---- // Don't do that. Time: 2/21/16 6:56 PM Description: Initializing game java.lang.NullPointerException: Initializing game at cpw.mods.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:139) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:328) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:139) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:328) at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:942) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_31, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 702430944 bytes (669 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1566 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1566-1.7.10.jar) UCHIJA Forge{10.13.4.1566} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1566-1.7.10.jar) UCHIJA dm{1.0} [Diamines] (bin) GL info: ' Vendor: 'Intel' Version: '3.0.0 - Build 8.15.10.2253' Renderer: 'Intel® HD Graphics Family' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel® HD Graphics Family GL version 3.0.0 - Build 8.15.10.2253, Intel GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
  11. So... I'm new to modding and have made a little progress using various sources. But I came across an error in my "RenderNate"(Nate being my custom entity) statement. have a look... public class ClientProxy extends CommonProxy{ @Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityNate.class, new RenderNate(new ModelNate(), 0.5F)); //Error here } }
  12. Ooh yea I thought it might have been that, but I wasn't too sure. I know what my code is too. Thanks!
  13. Hello. So, I have a specific block in my mod that gets removed when right clicked with a tool. But when I right click it with something other than the tool, It still removes it. Code: @Override public void onBlockDestroyedByPlayer(World world, int xPos, int yPos, int zPos, int meta) { double x = xPos; double y = yPos; double z = zPos; world.newExplosion(null, x, y, z, 3F, true, true); } public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer entityplayer, int par6, float par7, float par8, float par9) { world.setBlockToAir(i,j, k); net.minecraft.item.Item equipped = entityplayer.getCurrentEquippedItem() != null ? entityplayer.getCurrentEquippedItem().getItem() : null; if (equipped instanceof ItemDetect); return blockConstructorCalled; thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.