• 1

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from MuriloGordon»

    eh... tbh i thienk this is dead but maybe just maybe cubic is working on 1.0.6 version or hasn't had the time to chat or work on the mod... well we don't know



    "hasn't had the time to chat or work on the mod" = Correct. I also haven't had the time to check this page until recently, but I'm pretty sure my schedule will fill up again..sorry.

    Posted in: Minecraft Mods
  • 0

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from MuriloGordon»

    after watching atlantic craft now i want to have a basketball which you can throw at players and they get slowed '-'



    That sound like fun! How slow should they get? Like normal-slow or statue-slow?

    Posted in: Minecraft Mods
  • 1

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from Ultraflyingpig»

    So has anyone figured out my problem?


    Well, from what the report says, "FML has discovered extracted jar files in the mods directory.This breaks mod loading functionality completely.Remove the directories and replace with the jar files originally provided." It seems FML found something that isn't a mod in your mod folder, which is strange, and the report doesn't point out any mods as the cause. For now, it's a mystery.
    Posted in: Minecraft Mods
  • 1

    posted a message on TattleTail Craft: Mama's Coming!
    Quote from jonathah2»

    so is this topic abandoned?


    Not really. The mod is still being developed, it's just taking a while. Comments are a different story.
    Posted in: Minecraft Mods
  • 0

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from superluigi2007»

    When is Version 1.0.6 being released?


    There were many planned release dates, but stuff happens. There currently isn't a release date.
    Posted in: Minecraft Mods
  • 0

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from MuriloGordon»

    how's the progress of the next update so far?


    So far, I've got most of the coding done, it's just converting the models that's delaying the release.
    Posted in: Minecraft Mods
  • 0

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from Ultraflyingpig»

    ---- Minecraft Crash Report -------- Minecraft Crash Report ----// Shall we play a game?
    Time: 8/24/17 11:05 AMDescription: FML has discovered extracted jar files in the mods directory.This breaks mod loading functionality completely.Remove the directories and replace with the jar files originally provided.
    java.lang.RuntimeException: Extracted mod jars found, loading will NOT continue at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:273) at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:221) at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90) at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67) at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126) at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

    A detailed walkthrough of the error, its code path and all known details is as follows:---------------------------------------------------------------------------------------
    -- System Details --Details: Minecraft Version: 1.7.10 Operating System: Mac OS X (x86_64) version 10.11.6 Java Version: 1.8.0_74, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 75299304 bytes (71 MB) / 127139840 bytes (121 MB) up to 2134114304 bytes (2035 MB) JVM Flags: 5 total; -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0


    What mods are you using? Do you have one that isn't a .jar or .zip?
    Posted in: Minecraft Mods
  • 0

    posted a message on NeighborCraft: The Hello Neighbor Mod!
    Quote from Ultraflyingpig»

    Hey, does anybody here know why my game crashes when ever i use a neighborcraft version of 1.0.5 or higher.Please try to help!!!


    Do you have a crash-report?
    Posted in: Minecraft Mods
  • 0

    posted a message on Replacing a vanilla block
    Quote from FBalazs»

    A workaround could be to add a crafting recipe which converts the vanilla piston into yours.


    Sounds good, I'll do that.
    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block
    Quote from Melonslise»

    That's not a very good idea. It's much better/safer to remove the old itemstack and pass in a new one.

    Also don't forget to replace all existing pistons on the map and from every inventory.


    What would be the best way to do that? Through NBT or one of the methods in ItemStack?
    World is somewhat easy, I forgot about inventory though..and I have no clue where to begin with that one.
    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block

    I went scrolling through the ItemStack code and found func_150996_a, which let's me set an ItemStack to any item. Using that, I got all the recipes to work. Now that the original pistons' crafting recipes have been removed and replaced in the creative tab, I can mark this topic as solved.

    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block
    Quote from Melonslise»

    Ah right, make sure to check if the entry is not null first before doing anything.

    Thanks, it doesn't crash now.
    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block
    Quote from Melonslise»

    Can you post line 145 of your MCraftingManager class?


    Line 145 is
    					Item item = stacks[i1].getItem();
    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block
    Quote from Melonslise»



    1.Why are you still not using iterators? I hope I won't have to explain how they work to you.
    2. You're still not actually changing the recipes, but changing your list reference.
    3. I don't see any "shaped" method. What exactly are you talking about? If you're getting a crash, post it. Preferably via pastebin.
    4. Arrays are pretty basic java. Read up on them here.




    1. I'm currently just trying to make them run without crashing before I start making changes.
    2. See first. Changing it fixed a crash.
    3. I'll post below.


    if(recipe instanceof ShapedRecipes){
    				ItemStack[] stacks = ((ShapedRecipes)recipe).recipeItems;
    				
    				for(int i1 = 0; i1 < stacks.length; i1++){
    					Item item = stacks[i1].getItem();
    					
    					if(item == Item.getItemFromBlock(Blocks.piston)){
    						item = Item.getItemFromBlock(MBlocks.piston);
    					}
    					if(item == Item.getItemFromBlock(Blocks.sticky_piston)){
    						item = Item.getItemFromBlock(MBlocks.stickyPiston);
    					}
    				}
    			}




    Crash (Pastebin put the java syntax on there): https://pastebin.com/i7qbY67J

    4. I've used arrays before, just never in forge, just with base java and opengl. Though that article could teach me something I didn't know (Java always has it's ways of surprising me).

    Posted in: Modification Development
  • 0

    posted a message on Replacing a vanilla block
    Quote from Melonslise»

    1. Please use spoilers.

    2. I'm just blind, they're not private :facepalm:

    3. As for the list, first, you're not iterating through it correctly. It's always better to use the iterator when working with a list. Second, you're casting the list's objects to Item, however they are always ItemStack. Third, instead of running straight back here you could've taken a look at how vanilla handles this by looking at the ShapelessRecipes' methods. And fourth, lists have a method that convert them to an array, however that is not necessary since lists are better than arrays anyway.

    5. You're not actually replacing the crafting items, you're replacing their references :facepalm:



    1. Yes, I probably should.
    3. first: Yep. second: Yeah, I have no clue why I have Item there. In the other method it's ItemStack, not Item..so at least I got one right. third: Well, I actually did..but that was around like 3 or 4 in the morning..so I didn't understand a lot of it at the time (I'm going to reread it after I post this). forth: noted.
    5. Yeah, I should probably do something about that.


    EDIT:


    I changed the shapeless method to

    if(recipe instanceof ShapelessRecipes){
    				List list = ((ShapelessRecipes)recipe).recipeItems;
    				// It's either 'list.iterator()' or 'list.listIterator()'
    				Iterator<List> iterator = list.iterator();
    				
    				// I'll be using iterators in a little while.
    				for(int i1 = 0; i1 < list.size(); i1++){
    					ItemStack stack = (ItemStack)list.get(i1);
    					Item item = stack.getItem();
    					
    					if(item == Item.getItemFromBlock(Blocks.piston)){
    						list.set(i1, Item.getItemFromBlock(MBlocks.piston));
    					}
    					if(item == Item.getItemFromBlock(Blocks.sticky_piston)){
    						list.set(i1, Item.getItemFromBlock(MBlocks.stickyPiston));
    					}
    				}
    			}

    Now, this works if I get rid of the shaped method, and I haven't changed that one yet. If I don't get rid of the shaped method it crashes.

    Also: ItemStack[] does not have a .set method like a list, is there an equivalent method?

    Posted in: Modification Development
  • To post a comment, please .