Jump to content

Search the Community

Showing results for 'require tool' in topics.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Minecraft Forge
    • Releases
    • Support & Bug Reports
    • Suggestions
    • General Discussion
  • Mod Developer Central
    • Modder Support
    • User Submitted Tutorials
  • Non-Forge
    • Site News (non-forge)
    • Minecraft General
    • Off-topic
  • Forge Mods
    • Mods

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


XMPP/GTalk


Gender


URL


Location


ICQ


AIM


Yahoo IM


MSN Messenger


Personal Text

  1. Hey guys, my LAN Server doesn't work. I have a host client and a normal client (Both have Forge Build 220, OptiFine, ToolRack, ReiMinimap, Frames, SuperSlopes, InvTweaks, Ironchests, TreeFeller and SecretRooms). The host client also haves TMI and Schematica. The host can open the world to LAN but when the normal client trys to join this error appear: ---- Minecraft Crash Report ---- // My bad. Time: 23.08.12 14:33 Description: Unexpected error java.lang.NullPointerException at cpw.mods.fml.common.network.FMLNetworkHandler.bindNetworkId(FMLNetworkHandler.java:260) at cpw.mods.fml.common.network.ModIdentifiersPacket.execute(ModIdentifiersPacket.java:63) at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:88) at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:58) at asv.a(NetClientHandler.java:1290) at ce.a(SourceFile:56) at bb.b(TcpConnection.java:438) at asv.d(NetClientHandler.java:101) at asy.c(SourceFile:69) at net.minecraft.client.Minecraft.l(Minecraft.java:1487) at net.minecraft.client.Minecraft.J(Minecraft.java:834) at net.minecraft.client.Minecraft.run(Minecraft.java:764) at java.lang.Thread.run(Unknown Source) Relevant Details: - Minecraft Version: 1.3.2 - Operating System: Windows 7 (x86) version 6.1 - Java Version: 1.7.0_05, Oracle Corporation - Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation - Memory: 46485496 bytes (44 MB) / 101486592 bytes (96 MB) up to 1037959168 bytes (989 MB) - JVM Flags: 1 total; -Xmx1024m - FML: FML v3.0.108.315 Minecraft Forge 4.0.0.220 Optifine OptiFine_1.3.2_HD_B2 13 mods loaded, 13 mods active Iron Chest (mod_ironchests-client-4.0.2.44.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Minecraft Forge (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Frames (1.3.2 Frames-3.0.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Tool Rack ([1.3.2] ToolRack.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available SuperSlopes - Slopes (1.3.2 SuperSlopes-4.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available mod_ReiMinimap ([1.3.2]ReiMinimap_v3.2_05.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Inventory Tweaks (InvTweaks-1.43b-1.3.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available TreeFeller (mod_TreeFeller_v1.5.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available SuperSlopes - Corners (1.3.2 SuperSlopes-4.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Forge Mod Loader (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available SuperSlopes - IntCorners (1.3.2 SuperSlopes-4.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Wallpaper (1.3.2 Wallpaper-3.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available The SecretRoomsMod (SecretRooms-Forge-latest.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available - LWJGL: 2.4.2 - OpenGL: AMD Radeon HD 6800 Series GL version 4.2.11733 Compatibility Profile Context, ATI Technologies Inc. - Is Modded: Definitely; 'forge,fml' - Type: Client - Texture Pack: Default - Profiler Position: N/A (disabled) How to fix this?
  2. Hello all, I am looking for a software developer(s) for a project. What are some good places to look? I have heard of guru.com but have never contracted anyone through there. Why am I asking on here? Because I have seen a lot of good developers working on Forge and making Minecraft a much better experience IMO and figure someone(s) on here might want to work on this and make money of course! This is the blurb I have been working on (think I should add/remove something?): ----- I have a customer that has an Access database that they want to do more with and then move on from. This will be a multiphase project: Phase 0. (ASAP) Determine if current project is feasible. Phase 1. (1 month?) Add ability for customer to route jobs based on distance from zip-code (nationwide USA) utilizing the current Access DB. Phase 2. (1 year?) Move from Access DB to something multi-user and web modifiable. I am thinking LAMP based. Phase 2a. Enable routing by driving distance not just radius. Phase 3. (1-5+ years?) International, more robust, fault-tolerant, and enterprise. Could still be LAMP but with more hardware and support personnel. So, looks like I am looking for a software developer(s) that is(are) comfortable with updating an Access DB and later converting to a LAMP-based multi-user web-accessible/modifiable DB. I could do it with different developer(s) per phase but unless Phase 1 isn't feasible I am not looking to bypass it. The software developer(s) will do that all-important and fun design and programming portion but will also have input in the: 1. Infrastructure (software repository, hosting, maintenance, etc.) 2. Program management (goals, timelines, etc.) 3. Configuration management (versioning, pulls for official testing/delivery, etc.) 4. Testing (test cases, manual testing, etc.) 5. Documentation Management (doc creation, updating, etc.) Pay will be commensurate with *ability*: we're talking real pay rate that is above board (taxed, contracted, etc.). Can be hourly, portion, or job. Can be individual, individuals, team or company. I am platform and tool agnostic but do prefer OSS to closed;I do appreciate .NET and C# though. Agile software development but not a slave to it. ----- Thanks!
  3. Maybe this tool could help? https://github.com/agaricusb/SrgTools
  4. I also haven't done much modding in Minecraft in general. Many moons ago I made a simple patch to let mobs break blocks, mostly as a coding exercise/intro to modding. Now I've created a tiny mod that will replace a broken tool with another one from your inventory. (I was getting tired of opening up my inventory every time my pick broke.) I did this with MCP alone, but I want to make it available to others and have it play nicely with other mods. It seems like that's what a mod loader like FML is for... am I right? From the little I've read so far about MCForge, it seems like it's mostly designed to help people add new blocks, items, that kind of thing. This mod is a small patch (about 8 new lines) to EntityPlayer.java. If you're just dropping new files into minecraft.jar, my mod will obviously conflict with any other mod that touches that file. Can I use Forge to package my mod in a way that can be merged with other mods? Thanks EDIT: Ok, I'm on my way to answering my own question... found this in the Forge version of EntityPlayer, where my code change went: MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(this, orig)); I think I saw something about events on the wiki... I'll check there. EDIT 2: Got it working.
  5. Sorry for this now. But you are Stupid!!! I do not ask for a function which make tools to tools. I asked for a function which make it possible to make counts at the moment when you are breaking a block. if you are using public boolean onBlockDistroyed(....) than its only 1 count but my damage SYSTEM needs more than 1 count... if you mine a block like obsidian it needs about 5 seconds. and every second you mine the tool should get damage that was my idea.. Here: diamondpickaxe 9999 dirt mined = 0 damage. 25 cobblestone mined = 5 damage 5 Gold ore Mined = 5 Damage 1 Obsidian Mined = 5 Damage and not like this mod file: public void load() { MinecraftForge.registerToolClass(diamondPickaxe, "pickaxe", 3); } why did i write this? public void tryHarvestBlock(ItemStack par1, Block par2, EntityPlayer par3) { // This code should detect if a block get mined. and should updated every 2 ticks. } This code should detect if a block gets mined (when the damage pictures on a block comes) and this function can be used for count something. and this function i need.... thats why i called tryharvestBlock and not StrVsBlock. sry for the stupid but i must say that for that answer....
  6. Made some mock up code, and couple of problems: 1)HarvestCheck is apparently called a lot. Like, every time out click on it. Also, only called when you try to harvest without a tool, which is odd. 2)HashMap wouldn't work, since you still need to be able to save inbetween server restarts.
  7. Moritz

    Boolean

    Hello. Here is the code. and here is the tool: how can i make it that the boolean will be on both sides true if its mining.
  8. You deobfuscate the mod (google Bearded Octo Nemesis or ask Lex for his tool) or you use published APIs if available.
  9. Sorry for the double post - but I fixed that: /** * A function which generates an EntityItem * from an ItemStack, given World and x, y, z coordinates. * @param wObj The world object where the entity will be spawned. * @param result The ItemStack to drop. It will be automatically copied. * @param x X coordinate * @param y Y coordinate * @param z Z coordinate * @author Robertof */ protected void genBlockDrop (World wObj, ItemStack result, int x, int y, int z) { if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) { float var6 = 0.7F; double var7 = (double)(wObj.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; double var9 = (double)(wObj.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; double var11 = (double)(wObj.rand.nextFloat() * var6) + (double)(1.0F - var6) * 0.5D; EntityItem ei = new EntityItem(wObj, (double)x + var7, (double)y + var9, (double)z + var11, new ItemStack (result.itemID, result.stackSize, result.getItemDamage())); if (result.hasTagCompound()) ei.item.setTagCompound((NBTTagCompound) result.getTagCompound().copy()); ei.delayBeforeCanPickup = 10; wObj.spawnEntityInWorld(ei); } } add that to onBlockStartBreak along with something to add damage to the tool used (if you want), then return true and you are good to go.
  10. Yep but as I said - I don't have the access to the original block (and I don't wanna edit the original classes). I just have the access to the tool. By the way I guess I should use a temporary block which drops what is in the metadata. Thanks anyways.
  11. Here's the error message I get after it crashes. I've tried to deduce it myself but I'm not really good at it. I can also give the detailed crash log which I can grab from the crash-reports folder, just let me know. Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Exception ticking world entities A full error report has been saved to /Users/nein/Library/Application Support/minecraft/crash-reports/crash-2012-11-19_17.26.55-server.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT a1d62bdf -------- Full report at: /Users/nein/Library/Application Support/minecraft/crash-reports/crash-2012-11-19_17.26.55-server.txt Please show that file to Mojang, NOT just this screen! Generated 11/19/12 5:27 PM -- Head -- Stacktrace: at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at java.util.AbstractCollection.removeAll(AbstractCollection.java:336) at xv.h(World.java:2020) at in.h(WorldServer.java:473) -- Affected level -- Details: Level name: New World All players: 1 total; [iq['B1LMAN'/261, l='New World', x=398.90, y=66.00, z=-190.70]] Chunk stats: ServerChunkCache: 1102 Drop: 0 Level seed: -8792578969135745911 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: Level spawn location: World: (0,64,0), Chunk: (at 0,4,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 13617 game time, 24858 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 119983 (now: false), thunder time: 31937 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:668) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:587) at bdo.q(IntegratedServer.java:110) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:494) at fy.run(SourceFile:856) -- System Details -- Details: Minecraft Version: 1.4.4 Operating System: Mac OS X (i386) version 10.6.8 Java Version: 1.6.0_37, Apple Inc. Java VM Version: Java HotSpot Client VM (mixed mode), Apple Inc. Memory: 311478528 bytes (297 MB) / 587005952 bytes (559 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar -Xms512M -Xmx1024M AABB Pool Size: 7039 (394184 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: ModTextureStatic, $Proxy3, $Proxy4, ...[atomicstryker.battletowers.client.ClientPacketHandler, ClientProxy, AS_RenderGolem, ...], [atomicstryker.battletowers.common.AS_BattleTowersCore, TowerStageItemManager, AS_TowerDestroyer, ...], [atomicstryker.updatecheck.client.UpdateCheckClient], [atomicstryker.updatecheck.common.UpdateCheckMod, UpdateCheckThread, IProxy, ...], [bspkrs.treecapitator.TreeCapitator, BlockTree], [bspkrs.util.ModVersionChecker], [com.google.common.base.Preconditions, Charsets, Splitter, ...], [com.google.common.cache.CacheLoader, CacheBuilder, Cache, ...], [com.google.common.collect.Multimap, ListMultimap, AbstractMultimap, ...], [com.google.common.eventbus.EventBus, HandlerFindingStrategy, AnnotatedHandlerFinder, ...], [com.google.common.hash.Hashing, HashFunction, AbstractStreamingHashFunction, ...], [com.google.common.io.LineProcessor, Resources, InputSupplier, ...], [com.google.common.primitives.Ints, UnsignedBytes, Bytes], [com.google.common.reflect.TypeCapture, TypeToken, SimpleTypeToken, ...], [com.google.common.util.concurrent.UncheckedExecutionException, ExecutionError, MoreExecutors, ...], [cpw.mods.fml.client.ITextureFX, FMLTextureFX, TextureFXManager, ...], [cpw.mods.fml.client.modloader.ModLoaderClientHelper, ModLoaderKeyBindingHandler], [cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler, KeyHandler, RenderingRegistry, ...], [cpw.mods.fml.common.Loader, LoaderException, WrongMinecraftVersionException, ...], [cpw.mods.fml.common.asm.FMLSanityChecker, MLDetectorClassVisitor, SideOnly], [cpw.mods.fml.common.asm.transformers.AccessTransformer, Modifier, MarkerTransformer, ...], [cpw.mods.fml.common.discovery.ModDiscoverer, ASMDataTable, ModCandidate, ...], [cpw.mods.fml.common.discovery.asm.ASMModParser, ModClassVisitor, ModAnnotationVisitor, ...], [cpw.mods.fml.common.event.FMLLoadEvent, FMLEvent, FMLStateEvent, ...], [cpw.mods.fml.common.functions.ModIdFunction], [cpw.mods.fml.common.modloader.IModLoaderSidedHelper, ModLoaderHelper, ModLoaderVillageTradeHandler, ...], [cpw.mods.fml.common.network.Player, IPacketHandler, IConnectionHandler, ...], [cpw.mods.fml.common.registry.BlockProxy, ItemProxy, LanguageRegistry, ...], [cpw.mods.fml.common.toposort.ModSortingException, ModSorter, DirectedGraph, ...], [cpw.mods.fml.common.versioning.ArtifactVersion, VersionParser, InvalidVersionSpecificationException, ...], [extrabiomes.Extrabiomes, ExtrabiomesLog, Module, ...], [extrabiomes.api.BiomeManager, GenType, DiscoverWorldTypesEvent, ...], [extrabiomes.configuration.EnhancedConfiguration, ExtrabiomesConfig], [extrabiomes.events.ModuleEvent, ModuleInitEvent, ModulePreInitEvent, ...], [extrabiomes.localization.LocalizationHandler, Localization], [extrabiomes.module.amica.Amica], [extrabiomes.module.amica.buildcraft.FacadeHelper, BuildcraftPlugin], [extrabiomes.module.amica.forestry.ForestryPlugin], [extrabiomes.module.amica.ic2.IC2Plugin], [extrabiomes.module.amica.thermalexpansion.ThermalExpansionPlugin], [extrabiomes.module.cautia.Cautia], [extrabiomes.module.cautia.block.BlockManager, BlockQuicksand], [extrabiomes.module.cautia.worldgen.QuicksandGenerator, WorldGenQuicksand], [extrabiomes.module.fabrica.Fabrica], [extrabiomes.module.fabrica.block.BlockManager, BlockCustomWood, BlockCustomWoodSlab, ...], [extrabiomes.module.fabrica.recipe.RecipeManager, PlankOreDictionaryRecipes], [extrabiomes.module.fabrica.scarecrow.ModelScarecrow, RenderScarecrow, EntityScarecrow, ...], [extrabiomes.module.summa.Summa, TreeSoilRegistry], [extrabiomes.module.summa.biome.BiomeManagerImpl, Biome, ExtrabiomeGenBase, ...], [extrabiomes.module.summa.block.BlockManager, BlockAutumnLeaves, BlockCatTail, ...], [extrabiomes.module.summa.tool.LogTurner], [extrabiomes.module.summa.worldgen.WorldGenAcacia, WorldGenFirTreeHuge, WorldGenCustomSwamp, ...], [extrabiomes.proxy.CommonProxy, ClientProxy], [extrabiomes.utility.CreativeTab, MultiItemBlock], [invtweaks.InvTweaksConst, InvTweaksItemTreeLoader, InvTweaksItemTree, ...], [net.minecraftforge.client.ForgeHooksClient, IItemRenderer, ModCompatibilityClient, ...], [net.minecraftforge.client.event.TextureLoadEvent, RenderWorldLastEvent, DrawBlockHighlightEvent, ...], [net.minecraftforge.client.event.sound.SoundEvent, SoundResultEvent, PlayBackgroundMusicEvent, ...], [net.minecraftforge.common.IPlantable, IShearable, ISidedInventory, ...], [net.minecraftforge.event.Event, ListenerList, EventBus, ...], [net.minecraftforge.event.entity.EntityEvent, EntityJoinWorldEvent, PlaySoundAtEntityEvent, ...], [net.minecraftforge.event.entity.item.ItemEvent, ItemTossEvent, ItemExpireEvent], [net.minecraftforge.event.entity.living.LivingEvent, LivingSetAttackTargetEvent, LivingHurtEvent, ...], [net.minecraftforge.event.entity.player.PlayerEvent, ArrowLooseEvent, ArrowNockEvent, ...], [net.minecraftforge.event.world.WorldEvent, Load, Save, ...], [net.minecraftforge.oredict.OreDictionary, OreRegisterEvent, ShapedOreRecipe, ...], [net.minecraftforge.transformers.ForgeAccessTransformer, EventTransformer], [org.millenaire.client.TileEntityLockedChestRenderer, RenderMillVillager, ModelFemaleAsymmetrical, ...], [org.millenaire.client.forge.ClientProxy, ClientTickHandler, ClientGuiHandler], [org.millenaire.client.gui.GuiText, GuiPanelParchment, DisplayActions, ...], [org.millenaire.client.network.ClientReceiver, ClientSender], [org.millenaire.common.MLN, MillWorld, MillenaireException, ...], [org.millenaire.common.block.BlockDecorative, BlockByzantineBrick, BlockCrops, ...], [org.millenaire.common.construction.BuildingPlan, PointType, BuildingFileFiler, ...], [org.millenaire.common.core.MillCommonUtilities, ExtFileFilter, WeightedChoice, ...], [org.millenaire.common.forge.Mill, CommonProxy, ServerTickHandler, ...], [org.millenaire.common.goal.Goal, GoalDeliverGoodsHousehold, GoalGetResourcesForBuild, ...], [org.millenaire.common.item.ItemText, ItemFoodMultiple, ItemMillenairePickaxe, ...], [org.millenaire.common.network.ServerReceiver, ConnectionHandler, StreamReadWrite, ...], [org.millenaire.common.pathing.AStarPathing, Node, Point2D, ...], [org.objectweb.asm.ClassVisitor, ClassWriter, MethodVisitor, ...], [org.objectweb.asm.tree.ClassNode, MethodNode, FieldNode, ...], [reifnsk.minimap.ReiMinimap, WaypointEntity, MinimapException, ...], [twilightforest.TwilightForestMod, TFAchievementPage, TFEventListener, ...], [twilightforest.biomes.TFBiomeBase, TFBiomeDecorator, TFBiomeTwilightOcean, ...], [twilightforest.client.TFClientProxy, ModelTFBoar, ModelTFBighornFur, ...], [twilightforest.structures.StructureTFStrongholdStart, StructureTFMajorFeatureStart], [twilightforest.world.TFGenerator, TFGenCanopyTree, TFGenMangroveTree, ...] IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63 FML: MCP v7.21 FML v4.4.5.443 Minecraft Forge 6.3.0.378 12 mods loaded, 12 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available mod_ReiMinimap [mod_ReiMinimap] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available BattleTowers [battle Towers] (BattleTowers_1.4.4.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available ExtrabiomesXL [ExtrabiomesXL] (ExtrabiomesXL-universal-3.4.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available mod_InvTweaks [inventory Tweaks] (InvTweaks-1.45-1.4.4.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available mod_GenTest [mod_GenTest] (NewDunU V1.8.5.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available AS_UpdateCheck [AtomicStryker Update Check Mod] (UpdateCheckerMod_1.4.4.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available mod_treecapitator [TreeCapitator] ([1.4.4]Treecapitator.ML.1.4.4.r01.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available Millenaire [Millénaire] (millenaire3.2.4.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available TwilightForest [The Twilight Forest] (twilightforest-1.13.0.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 1740 (97440 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Player Count: 1 / 8; [iq['B1LMAN'/261, l='New World', x=398.90, y=66.00, z=-190.70]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'forge,fml' java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at java.util.AbstractCollection.removeAll(AbstractCollection.java:336) at xv.h(World.java:2020) at in.h(WorldServer.java:473) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:668) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:587) at bdo.q(IntegratedServer.java:110) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:494) at fy.run(SourceFile:856) --- END ERROR REPORT 1ab5fcb8 ----------
  12. Hello, is it possible to use MinecraftForge to make a mod that doesn't needs the users to have it? some sort of Bukkit plugin? The reason I'm not using bukkit is because the server uses Feed The Beast mod pack, and I needed a block logging plugin... Simplifying, what I'm trying to make is a simple mod, that won't need users to download, that logs when someone places/destroys a block, is that possible? I was looking at the API and I found this: public boolean removeBlockByPlayer Is removeBlockByPlayer called everytime someone destroys a block, no matter if they used the right tool? Also, to make something be logged by MC, I just need to make it print to MC server console? For that, would the java's print function work?
  13. essentially I want that forge handles all of the id configuration itself instead of have each mod do it themselves with all due concequences for example create a IDRepository class with the method int requestBlockIdFor(Object, String)/requestItemIdFor(Object, String) here's my timeline for how it should work: before any PreInit are called IDRepository will loads its "ids.cfg" and build an internal Map<String,Integer> for used ids (including vanilla ids) then in the PreInit mods will need to call "int modBlockId =getNextFreeBlockId(requestBlockIdFor(this, "modBlock"));" the code for requestBlockIdFor will be something like then the getNextFreeItemId()/getNextFreeBlockId() then should iterate itemsList and blocksList resp for a new free id and check if it hasn't been assigned to another mod first after the preInits are called it will save the config this can also be done for entity ids this will remove all id conflicts (except for rogue mods...) and removes the need for Unofficial Block/Item ID Range Listing, this also allows for the ids.cfg file to be included in maps (and perhaps make a tool to transfer maps from one ids.cfg to another)
  14. I am trying to make a mod which adds a new pickaxe to the game and I cant create a new tool material. Mod Code: package Fel.Cri; import net.minecraft.src.Block; import net.minecraft.src.EnumToolMaterial; import net.minecraft.src.Item; import net.minecraft.src.ItemStack; import net.minecraftforge.common.EnumHelper; import Felcri.Common.CommonProxyFelcri; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; //Info @Mod(modid="Felcri",name="Fel",version="1.0.0") @NetworkMod(clientSideRequired=true,serverSideRequired = false) public class mod_Fel { //blocks/items public static Block BlockFelIron_Ore; public static Item ItemFelIron_Bar; public static Item ItemFelIron_Pick; //texture proxy @SidedProxy(clientSide="Felcri.Client.ClientProxyFelcri", serverSide= "Felcri.Common.ClientProxyFelcri") public static CommonProxyFelcri proxy; @Init public void load(FMLInitializationEvent event){ //blocks/items information BlockFelIron_Ore = new BlockFelIron_Ore(255, 0).setBlockName("BlockFelIron_Ore").setHardness(3F).setResistance(5F); ItemFelIron_Bar= new ItemFelIron_Bar(500).setItemName("ItemFelIron_Bar").setIconIndex(1); ItemFelIron_Pick = new ItemFelIron_Pick(501, Feliron).setIconIndex(0).setItemName("ItemFelIron_Pick"); The error is in the ItemFelIron_Pick and it says Feliron can not be resolved to a variable. //Block Registry GameRegistry.registerBlock(BlockFelIron_Ore); //Material EnumToolMaterial Feliron = EnumHelper.addToolMaterial("Feliron", 2, 300, 6.0F, 2, 14); //Language Registry LanguageRegistry.addName(BlockFelIron_Ore, "Fel Iron Ore"); LanguageRegistry.addName(ItemFelIron_Bar, "Fel Iron Ingot"); LanguageRegistry.addName(ItemFelIron_Pick, "Fel Iron Pickaxe"); //Recipe Registry GameRegistry.addRecipe(new ItemStack(ItemFelIron_Pick,1), new Object[]{ " X ","XSX"," S ", 'X', mod_Fel.ItemFelIron_Bar, 'S', Item.stick }); //Proxy proxy.registerRenderThings(); } }
  15. Which patch tool should I use? BTW what do you think about it? I'd really like to hear your opinion about this!
  16. Hi!, Is there a tool or a mod that regenerate the ores? like I see in ForgeCraft server in Direwolf20 SMP series? because I need to add the ores from my new mod in the already generated chunks. Thanks!
  17. Thanks for replying. I have no idea how to do that. This is my code for the recipe the tool is going to be used in GameRegistry.addRecipe(new ItemStack(carbonDust, 4), new Object[] {"i","c", Character.valueOf('c'), Item.coal, Character.valueOf('i'), ironPress });
  18. From a brief look at the code, it looks like it only fires when the block is harvested with a tool.
  19. Change your recipe so that it uses an ItemStack of your crafting tool with a damage value of -1.
  20. Forge has funtions to register tools and tool effecvtiveness on initialization. Also, when block metadata changes you should replace the old block with a new one with the new valuem which will cause it tup update.
  21. what im saying is when he right clicks with his tool, then it will delete the block and spawn 3 quarter blocks in that block so that it looks like 1/4 was removed Edit: Also, I think that you could check the position of the block you right click, and then get the texture based on ID, then put in the ID as the metadata so that you can drop the item with correct texture when destroyed
  22. Hello! Forgive my freshness in my stream of questions. I've only just started programming in Java and modding using Forge so I'm a bit green to it all, though have spent the past few days pouring over code, tutorials and the javadocs to get a few simple mods working. My question though is this: I've created a tool that I would like to be used on most mobs in the game, similar to shears though giving a different item in each case. From what I gather looking over the source, this interaction is handled in mobs class itself. Would I need to do base edits or is there an event that I can use for this? I've given a good look but can't see a way to it, so a point in the right direction or some confirmation would be greatly appreciated!
  23. you could make a method in your tool that is public boolean tryPlaceIntoWorld(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (!par2EntityPlayer.canPlayerEdit(par4, par5, par6)) { return false; } else { UseHoeEvent event = new UseHoeEvent(par2EntityPlayer, par1ItemStack, par3World, par4, par5, par6); if (MinecraftForge.EVENT_BUS.post(event)) { return false; } if (event.isHandeled()) { par1ItemStack.damageItem(1, par2EntityPlayer);//If you want the Item damaged return true; } int var11 = par3World.getBlockId(par4, par5, par6); if ((par7 == 0 || var11 != Block.BlocksAbleToBeCut)) { return false; } else { Block var13 = Block.BlockToBecome; if (par3World.isRemote) { return true; } else { par3World.setBlockWithNotify(par4, par5, par6, var13.blockID); par1ItemStack.damageItem(1, par2EntityPlayer);//If you want it damaged return true; } } } } Hope this helps, If you need clarification just ask!
  24. this is what metadata is, the getDamage on tools or something is the metadata counting up until it hits the tool material limit so you will want to put a metadata inside of the block you want
  25. So I started modding Minecraft just out of fun and to learn something new, but quickly I started structuring it into a coherent idea and before I consider making this official I still want to experiment a little. This is just to explain why I haven't requested mod status yet, if that's needed. Apologies, if that's the case. To the point: I've created a tool(an ItemSpade) and an item, and I'd like this item to be dropped if the player breaks dirt using this item. I had a real hard time trying to figure out how to manage that. At first I tried changing the BlockDirt class directly, but that would only work when testing from Eclipse. After recompiling and reobfuscating the code and packing it up any changes to Dirt would be ignored. I finally found a solution that involves creating a new class that will behave like BlockDirt, unregister the dirt block at initialization and register mine on top. It works, but sounds to me as incredibly shifty(not to mention possibly non-compatible with other mods). Is there another proper and better way to tamper with existing blocks with Forge?
×
×
  • Create New...

Important Information

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