Jump to content

The_Fireplace

Forge Modder
  • Posts

    243
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by The_Fireplace

  1. First, create the repository. Then, clone it, I recommend using Source Tree. Then, set up a new forge workspace in the folder you cloned the repository to. Next, you should probably create a .gitignore file, similar to https://bitbucket.org/The_Fireplace/fireplace-core/src/56815ff806fab68257cbcb79cd91ee3b348aa325/.gitignore?at=master . Next, move the contents of the src folder in your old workspace to this new one.
  2. I have 2 items(Guns) that use ammo. The ammo is saved with ExtendedPlayer. When the guns are fired now, the ammo usually either a.) doesn't spawn or b.)spawns the wrong type of ammo. The Item of the ammo is consumed as it should be, then, when the player leaves the world and rejoins, it is there again, so it seems that the onItemRightClick is only being called on the client side for these items. Sorry if this explanation of the issue is vague. Anyways, here is the code: The 2 guns: https://bitbucket.org/The_Fireplace/unlogic-ii/src/2763b9479b2c4b875fe506e29ea2977ff68f2880/src/main/java/the_fireplace/unlogicii/items/ItemBlockCoalGun.java?at=master https://bitbucket.org/The_Fireplace/unlogic-ii/src/2763b9479b2c4b875fe506e29ea2977ff68f2880/src/main/java/the_fireplace/unlogicii/items/ItemBlockSmartCoalGun.java?at=master The ammo files: https://bitbucket.org/The_Fireplace/unlogic-ii/src/2763b9479b2c4b875fe506e29ea2977ff68f2880/src/main/java/the_fireplace/unlogicii/entity/coal/?at=master And a download of the mod, so you can try it out yourself without having to fork and clone the repository, then set up the workspace. The items are Coal Gun and Smart Coal Gun, and they fire the types of coal in the UnLogic II creative tab, and vanilla coal. http://ge.tt/api/1/files/5OCIQN32/35/blob?download
  3. Is this what you are looking for? http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2136028-get-entity-by-uuid?comment=6
  4. [img width=800 height=202]http://i.imgur.com/J9TBfdk.png[/img] [img width=300 height=72]http://i.imgur.com/WkAwuBP.png[/img] Introducing the successor to [url=http://f1repl4ce.enjin.com/forum/m/19328304/viewthread/12013020-1710unlogic]UnLogic[/url] and [url=http://f1repl4ce.enjin.com/forum/m/19328304/viewthread/10065963-1710discontinueddevons-random-things]Devon's Random Things[/url], UnLogic II. UnLogic II is a mod that adds all kinds of random and useful content. Have you ever wanted Minecraft to have bazookas? Paxels? A quick way to mine obsidian? Cake with magma cream icing? UnLogic II adds all of this, and much more! [url=https://www.youtube.com/watch?v=yuX3hilI5mk]UnLogic II Mod Spotlight[/url] [b]Mod Integration:[/b] This mod has special integration(recipe changes or additions, better compatibility with the mods' features, etc) with the following mods: [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2352456-drcyanos-base-metals]Base Metals by DrCyano[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2428782-power-advantage-power-systems-mod-and-api-for]Power Advantage by DrCyano[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1446339-forge-1-8-steel-industries-everything-that-is]Steel Industries by J3FF97[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2383695-neotech-now-with-item-pipes-updated-04-12-15]NeoTech by Dyonovan[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1279956-chickenbones-mods]NotEnoughItems by chicken_bones[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2091981-version-checker-auto-update-mods-and-clean]Version Checker by Dynious[/url] Real Stone Tools by The_Fireplace [img width=300 height=40]http://i.imgur.com/Mkfdxqd.png[/img] [url=http://thefireplace.clanwebsite.com/210538/topic/unlogic-ii-bs1]UnLogic II on my website[/url] [url=http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2438098-unlogic-ii-paxels-bazookas-crops-cakes-and-more]UnLogic II on the Minecraft Forum[/url] [url=http://www.curse.com/mc-mods/minecraft/231078-unlogic-ii]UnLogic II on Curse[/url] [url=http://www.planetminecraft.com/mod/unlogic-ii/]UnLogic II on Planet Minecraft[/url] [url=https://bitbucket.org/The_Fireplace/unlogic-ii/issues?status=new&status=open]UnLogic II Issue Tracker[/url] [img width=300 height=64]http://i.imgur.com/38whjqZ.png[/img] [b]2.1.0.1:[/b] Fixed players getting a lore book every time they log in Added the Crystal Eye and Crystal Eye Headband Added Gunpowder Substitute and Firestarter Substitute Real Stone Tools integration Bug fixes Optimizations [b]2.0.6.0:[/b] Fixed armor stands not placing(and accompanying console spam) [b]2.0.5.0:[/b] Fixed a rare crash [b]2.0.4.0:[/b] Fixed a crash which seems to have been caused by an invalid written book added by another mod [b]2.0.3.0:[/b] Liquid UnLogic Gems are now made in a Brewing Stand Performance improvements [b]2.0.2.0:[/b] [u]Fixed coal guns not working right[/u] Fixed dedicated server crash Fixed Base Metals paxels being uncraftable Fixed NEI Usage recipes [b]2.0.1.0:[/b] Initial release [img width=300 height=54]http://i.imgur.com/GpSKPyz.png[/img] For information about my version system, see [url=http://thefireplace.clanwebsite.com/210538/topic/my-mod-versioning-system-v28]this thread[/url]. Note: This mod [b]requires[/b] [url=http://thefireplace.clanwebsite.com/210538/topic/18fireplace-core-5df]Fireplace Core[/url]. All downloads can be found on the [url=http://www.curse.com/mc-mods/minecraft/231078-unlogic-ii]Curse page[/url], or on the [url=http://thefireplace.clanwebsite.com/210538/topic/unlogic-ii-bs1]thread on my website[/url]. [img width=300 height=69]http://i.imgur.com/MxpCK7r.png[/img] If you want to include this mod in a mod pack, make sure you have fulfilled the requirements in the license. [b]1.8:[/b] None yet [img width=300 height=85]http://i.imgur.com/8TwVpf4.png[/img] This mod is licensed under the [url=http://thefireplace.clanwebsite.com/210539/topic/fireplace-mod-license-14updated-3182015-rr2]Fireplace Mod License[/url].
  5. If the problem was that it has to be a written book, why do you want me to create my itemstacks in the preinit? I have noticed that many mod authors create them there, but have never understood why, when it seems to work fine created normally. And thanks for your patience and pointing me toward the problem.
  6. Ok, still having the same issue. Here is what changed in the last commit: https://bitbucket.org/The_Fireplace/unlogic-ii/commits/afb9d5777fb429c54b47804480b8348c43958170
  7. 2nd @Mod was a quick way to add them to preinitialization. Not really necessary, and now that I think about it more, I should probably fix that. And oops, forgot that one part about the static initializer. One minute and I will test the new code, then post if there are any issues, and if there aren't, I will mark this as solved.
  8. Ok, I made those changes, and it still doesn't work. The new code can be found at the same location.
  9. No, I don't clone them before giving them to the player. Should I?
  10. I have a custom crop, and it does nothing when bonemeal is used on it. My code: BlockQuartzCrop: https://bitbucket.org/The_Fireplace/unlogic-ii/src/2392e4e390e8d73d5dad09d7312eef6708e79d30/src/main/java/the_fireplace/unlogicii/blocks/internal/BlockQuartzCrop.java?at=master Block5Crops(The superclass, this is where the code is to grow when bonemeal is used): https://bitbucket.org/The_Fireplace/unlogic-ii/src/2392e4e390e8d73d5dad09d7312eef6708e79d30/src/main/java/the_fireplace/unlogicii/blocks/internal/Block5Crops.java?at=master Any help is appreciated
  11. Ok, so I have a custom book, and I was able to read it at one point, but after adding more of them, I can no longer read any of them. Here is my code: ItemLoreBook https://bitbucket.org/The_Fireplace/unlogic-ii/src/2392e4e390e8d73d5dad09d7312eef6708e79d30/src/main/java/the_fireplace/unlogicii/items/ItemLoreBook.java?at=master LoreBooks(Where I define the itemstacks and set the nbt up https://bitbucket.org/The_Fireplace/unlogic-ii/src/2392e4e390e8d73d5dad09d7312eef6708e79d30/src/main/java/the_fireplace/unlogicii/items/LoreBooks.java?at=master Any help is appreciated.
  12. I, too, would like to see the source code, but for a different reason. I would like to be able to add loot to the chests, like how there are ChestGenHooks in Forge for vanilla generated chests.
  13. Looks neat, I can't wait to see what this will become.
  14. I have 2 integers, storedFirestarter and storedGunpowder, which are rendered in my tile entity's GUI. When they change on the server, the numbers rendered in the GUI do not change until I save and quit to title and load the world again(I am testing this with a Singleplayer world). I have tried adding the numbers to getDescriptionPacket() then reading them in onDataPacket(), but that didn't work. Here is my code: TileEntityPopFurnace https://bitbucket.org/The_Fireplace/unlogic-ii/src/1c46ebb535c1627236380c20291ad45a40ef2f5a/src/main/java/the_fireplace/unlogicii/entity/tile/TileEntityPopFurnace.java?at=master GuiPopFurnace https://bitbucket.org/The_Fireplace/unlogic-ii/src/1c46ebb535c1627236380c20291ad45a40ef2f5a/src/main/java/the_fireplace/unlogicii/gui/GuiPopFurnace.java?at=master Any other code you may need can be found in the repository. Let me know if you have any questions.
  15. Use @Optional, and make sure the jars for NEI and CCC are in the forgeroot/libs folder. Example of @Optional: EDIT: Sorry for bumping a thread that is over a year old
  16. I know, I just realized that when looking through my code and came back here to mark this as solved. I could've sworn it was (item, meta, count) at one point, but looking now, it isn't.
  17. Strangely enough, this fixed it... EDIT: the metadata is still wrong on some Items, I am looking in to it right using breakpoints right now. EDIT 2: it seems that before, the data values were being set to the number of items to be output per input, and now, they are getting set to 0.
  18. I have been working on this feature of this mod for 5 hours straight now, first coding the function to process the items, then adapting code to make it all work, then finding and fixing issues with it. Now, I have hit one (hopefully final) issue that I just cannot figure out: When I put an item in the top slot and activate the redstone, the output stack is the wrong damage, and the stack size is 0(the number is in the normal spot for stack size, and it is a red 0). Example: I put 1 glass in the input slot, activate the redstone, and open the inventory, and sitting in the output slot is a stack of 0 Red Sand(it should be 1 regular sand) Seeing as this probably isn't a simple fix, I am, once again, temporarily making my repository public for you to access, fork, and clone, if it will help you solve the problem. Anyways, my code: TileEntityPopFurnace BlockPopFurnace PopFurnaceRecipes Any help is appreciated. EDIT: They are now outputting the correct amount, but the data values are getting set to 0.
  19. I use Java 8, and the only issue that occurs is if you try playing an older version of Minecraft with it. And there is a patch available to fix that.
  20. As in, the line it is pointing to in the crash report? this.worldObj.createExplosion(this, mop.getBlockPos().getX(), mop.getBlockPos().getY(), mop.getBlockPos().getZ(), 1.5F, true); So only two possibilities are: worldObj is null(impossible), or mop.getBlockPos() is null(also impossible) Yeah, that is why I was stumped, too. Perhaps it will help figure it out that the following file for 1.7.10 worked. https://bitbucket.org/The_Fireplace/devons-random-things/src/f24522e68bb28fd2b065836a9f564eaf30e9dbc1/src/main/java/the_fireplace/devonmod/entities/EntityChargedCoal.java?at=master
  21. As in, the line it is pointing to in the crash report? this.worldObj.createExplosion(this, mop.getBlockPos().getX(), mop.getBlockPos().getY(), mop.getBlockPos().getZ(), 1.5F, true);
  22. *sigh* I figured it was something simple that I overlooked, thanks.
  23. So, I added a block with a tile entity, and it is completely transparent when placed in the world. It renders just fine in the inventory. Here is a screenshot: And my code: Block: And the tile entity: And the related json files Any help would be appreciated.
  24. Ok, so my ammo crashes the game when it hits an entity, but if it just hits a block, it explodes, with no issues. Here is the crash report: And my entity code: Anyone know how to fix the issue? Any help is appreciated.
×
×
  • Create New...

Important Information

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