Jump to content

VideoGameTaco

Members
  • Posts

    14
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

VideoGameTaco's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I successfully made a custom record disc, but I don't know how to go about making creepers drop it in the standard fashion. I checked the creeper code and it appears that records are dropped outside of the drop event, and I don't know what to do to get around it. Could anyone help me with this?
  2. I've tried setupDecompWorkspace, but the build fails, which doesn't happen with setupDevWorkspace.
  3. I'm getting errors when creating a new mod. When I open the mod with eclipse, I get two errors; Project 'Minecraft' is missing required library: 'C:\Users\VideoGameTaco\Desktop\Modding\material_paint\unresolved dependency - forgeSrc 1.7.2-10.12.0.1025' Minecraft Build path Build Path Problem The project cannot be built until build path errors are resolved Minecraft Unknown Java Problem Here are the two commands I'm using to create the mod. gradlew.bat setupDevWorkspace --refresh-dependencies gradlew.bat eclipse
  4. I think the mod example came like that, with two FMLInitialization events. But I'll get the crash log uploaded.
  5. Also, I checked an the achievement page isn't causing the crash.
  6. I created a new achievement and put it in my achievement page. Whenever I open the new page, my game crashes! Can anyone help with this? Mod File: package vgt.material_paint; import vgt.material_paint.block.VGTBlockSketchingTable; import vgt.material_paint.proxy.ProxyCommon; import vgt.material_paint.villager.TradeHandlerArtist; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.stats.Achievement; import net.minecraft.stats.AchievementList; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.AchievementPage; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.VillagerRegistry; @Mod( modid = VGTmod_MaterialPaint.MODID, version = VGTmod_MaterialPaint.VERSION) public class VGTmod_MaterialPaint { public static final String MODID = "vgt_materialpaint"; public static final String VERSION = "1.0"; @SidedProxy( clientSide = "vgt.material_paint.proxy.ProxyClient", serverSide = "vgt.material_paint.proxy.ProxyCommon") public static ProxyCommon proxy; // Create the 'Sketching Table' block public static final Block sketchingTable = new VGTBlockSketchingTable(500, Material.wood).setStepSound(Block.soundTypeWood).setHardness(3.0F).setResistance(2.5F).setBlockName("sketchingTable").setBlockTextureName("vgt_materialpaint:sketchTable"); // Create the 'Drawn to Life' achievement public static final Achievement buildSketchingTable = new Achievement("achievement.sketchingTable", "buildSketchingTable", 0, 0, sketchingTable, null).initIndependentStat().registerStat(); // Create new achievement page public static AchievementPage vgt_materialpaintAchievements = new AchievementPage("VGT Material Paint", buildSketchingTable); // 'Artist' villager ID public static final int villagerID_artist = 25; // Declare trade handler for 'Artist' villager void registerTradeHandlerArtist(){ VillagerRegistry reg = VillagerRegistry.instance(); TradeHandlerArtist handler_artist = new TradeHandlerArtist(); reg.registerVillageTradeHandler(villagerID_artist, handler_artist); } @EventHandler public void Preinit(FMLPreInitializationEvent event){ // Register 'Sketching Table' block GameRegistry.registerBlock(sketchingTable, "Sketching Table"); // Register new achievement page AchievementPage.registerAchievementPage(vgt_materialpaintAchievements); } @EventHandler public void init(FMLInitializationEvent event){ // Create recipe for 'Sketching Table' GameRegistry.addShapedRecipe(new ItemStack(sketchingTable), new Object[]{ "PPP","WDW","WSW", 'P',Items.paper,'W',Blocks.planks,'D',Items.diamond,'S',Items.stick }); // Create 'Artist' villager VillagerRegistry.instance().registerVillagerId(villagerID_artist); VillagerRegistry.instance().registerVillagerSkin(villagerID_artist, new ResourceLocation("vgt_materialpaint:textures/entity/villager/artist.png")); registerTradeHandlerArtist(); } @EventHandler public void load(FMLInitializationEvent event){ proxy.registerRenderers(); } } Crash Log: ---- Minecraft Crash Report ---- // Would you like a cupcake? Time: 2/6/14 3:40 AM Description: Initializing game java.lang.RuntimeException: java.io.FileNotFoundException: minecraft:font/glyph_sizes.bin at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:151) at net.minecraft.client.gui.FontRenderer.<init>(FontRenderer.java:89) at net.minecraft.client.Minecraft.startGame(Minecraft.java:502) at net.minecraft.client.Minecraft.run(Minecraft.java:850) at net.minecraft.client.main.Main.main(Main.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.io.FileNotFoundException: minecraft:font/glyph_sizes.bin at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:58) at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:148) ... 10 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.client.gui.FontRenderer.readGlyphSizes(FontRenderer.java:151) at net.minecraft.client.gui.FontRenderer.<init>(FontRenderer.java:89) at net.minecraft.client.Minecraft.startGame(Minecraft.java:502) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:850) at net.minecraft.client.main.Main.main(Main.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 113682064 bytes (108 MB) / 291504128 bytes (278 MB) up to 855638016 bytes (816 MB) JVM Flags: 0 total; 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.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 5 mods loaded, 0 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) FML{7.2.116.1024} [Forge Mod Loader] (forgeBin-1.7.2-10.12.0.1024.jar) Forge{10.12.0.1024} [Minecraft Forge] (forgeBin-1.7.2-10.12.0.1024.jar) vgt_materialpaint{1.0} [Material Paint Mod] (bin) vgt_materialpaint{1.0} [Material Paint] (bin) Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: AMD Radeon HD 7300 Series Graphics GL version 4.2.12002 Compatibility Profile Context 9.12.6.0, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null Anisotropic Filtering: Off (1)
  7. Thanks for the replies, but I got it figured out now.
  8. I did what you said, diesieben0, but I don't know how to view the source classes.
  9. I would have done that already, but I don't know where to view the source code. It's not possible in this version of forge.
  10. I'd just like to verify that this does indeed work in 1.7.2, besides the fact that the villager ID and skin need to be declared separately, like so. VillagerRegistry.instance().registerVillagerId(villagerId); VillagerRegistry.instance().registerVillagerSkin(villagerId, new ResourceLocation("modid:yourdirectory/villagerSkin.png")); The resource location of "modid:" is in src/main/resources/assets/modid with 'modid' being whatever the id of your mod is.
  11. Does anyone know how to make a block so that some sides is textured differently (ex: Crafting table, furnace, piston)? Here's the related coding. Mod file: package vgt.material_paint; import vgt.material_paint.block.VGTBlockSketchingTable; import vgt.material_paint.proxy.ProxyCommon; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.stats.Achievement; import net.minecraft.stats.AchievementList; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod( modid = VGTmod_MaterialPaint.MODID, version = VGTmod_MaterialPaint.VERSION) public class VGTmod_MaterialPaint { public static final String MODID = "vgt_materialpaint"; public static final String VERSION = "1.0"; @SidedProxy( clientSide = "vgt.material_paint.proxy.ProxyClient", serverSide = "vgt.material_paint.proxy.ProxyCommon") public static ProxyCommon proxy; // Create the 'Sketching Table' block public static final Block sketchingTable = new VGTBlockSketchingTable(500, Material.wood).setStepSound(Block.soundTypeWood).setHardness(3.0F).setResistance(2.5F).setBlockName("sketchingTable").setBlockTextureName("vgt_materialpaint:sketchTable"); // Create the 'Drawn to Life' achievement public static final Achievement drawnToLife = new Achievement("Drawn to Life", "Craft a sketching table.", -1, 2, sketchingTable, AchievementList.buildWorkBench); @EventHandler public void Preinit(FMLPreInitializationEvent event){ // Register 'Sketching Table' block GameRegistry.registerBlock(sketchingTable, "Sketching Table"); } @EventHandler public void init(FMLInitializationEvent event){ // Create recipe for 'Sketching Table' GameRegistry.addShapedRecipe(new ItemStack(sketchingTable), new Object[]{ "PPP","WDW","WSW", 'P',Items.paper,'W',Blocks.planks,'D',Items.diamond,'S',Items.stick }); } @EventHandler public void load(FMLInitializationEvent event){ proxy.registerRenderers(); } } Block file: package vgt.material_paint.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class VGTBlockSketchingTable extends Block{ public VGTBlockSketchingTable(int id, Material material) { super(material); this.setCreativeTab(CreativeTabs.tabDecorations); } } Also, I'm positive my /assets/{domain}/textures/blocks directory is in the correct spot.
×
×
  • Create New...

Important Information

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