Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • PlayPrey

PlayPrey

Members
 View Profile  See their activity
  • Content Count

    26
  • Joined

    June 26, 2015
  • Last visited

    September 5, 2017

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events
  • Event Comments

Everything posted by PlayPrey

  1. PlayPrey

    [1.12.1]Randomly set fire to nearby wooden blocks.

    PlayPrey replied to PlayPrey's topic in Modder Support

    Well I had forgotten to enable ticking on the block... Now to figure out the following error:
    • September 5, 2017
    • 5 replies
  2. PlayPrey

    [1.12.1]Randomly set fire to nearby wooden blocks.

    PlayPrey posted a topic in Modder Support

    Greetings,- I am trying to have my block "emulate" being so hot it sets nearby wooden structure on fire. I have looked trough BlockFire and BlockLiquid in attempt to figure out how it's done, but to no success. Am I looking in the right classes even?
    • September 5, 2017
    • 5 replies
  3. PlayPrey

    [1.12.1] Awkward to admit, I can't setup a block

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you.. I thought I had looked trough the log properly but I somehow missed the most important line, it now works.
    • August 31, 2017
    • 5 replies
  4. PlayPrey

    [1.12.1] Awkward to admit, I can't setup a block

    PlayPrey replied to PlayPrey's topic in Modder Support

    So I changed things up so my class extends ItemBlock, which when I think about it was a obvious fix, this required a logical parameter "Block". I can now place my block around using my itemBlock for it, thank you However now I need to fixed the Model rendering for it when it's held. Main Mod File: ModItems: BasicOreItem: SPOILER edition of the error log: And Pastebin version: https://pastebin.com/yS1SzPL7 Also thank you jeffryfisher, Ill look into that as soon as I got them up and going
    • August 31, 2017
    • 5 replies
  5. PlayPrey

    [1.12.1] Awkward to admit, I can't setup a block

    PlayPrey posted a topic in Modder Support

    Greetings, I am having some issues getting as much as a basic block working,- so I just need someone to point me in the right direction. I register the block itself using the following: Main Mod File: ModBlocks: BasicOre: ModItems: BasicOreItem: I know this won't work as the item has no connection the the block itself ever in the code, how do I do that the proper way? Also the item shows up just like a screenshot I used for a earlier problem. (It's for an item, but it has the exact same look but with different text) I've tried to understand the tutorials & documentation but I struggle with it so I bet the solution is the easiest thing ever. Thank you for reading. Oh and heres the JSON file at assets/ppextreme/blockstates/silverore.json:
    • August 31, 2017
    • 5 replies
  6. PlayPrey

    [1.12.1] Item's not using textures given and looks like a block.

    PlayPrey replied to PlayPrey's topic in Modder Support

    That solved that. Thank you. I bet i'll run into issues when trying to render tools and blocks but that will be a problem for later. Thanks again
    • August 27, 2017
    • 5 replies
  7. PlayPrey

    [1.12.1] Item's not using textures given and looks like a block.

    PlayPrey replied to PlayPrey's topic in Modder Support

    Alright slap me in the head with a fish would ya,- been trying to figure out ModelLoader for a few hours now and now that you arrived and basically said nothing "helpful" I got it working, so thank you! I guess However,- it's too late for me to keep working on it today,- would you mind telling me how to rotate the item so it's pointing the correct direction? Like a normal item? None of the changes I do for the item's JSON seem to do anything (except for locating the texture file). One of my JSON files in it's current state:
    • August 27, 2017
    • 5 replies
  8. PlayPrey

    [1.12.1] Item's not using textures given and looks like a block.

    PlayPrey posted a topic in Modder Support

    Hello good sir's and possibly madams even though I doubt that. I have not been modding this game for a long time, so I am still learning how to register new things properly,- I don't quite get the documentation Forge has and I am honestly about to lose motivation about the entire thing. I have managed to successfully have the item itself be added ingame, with a proper name from the lang file and all,- however it has the wrong model and texture. (no texture) Can someone teach me with examples how one does this these days? I found one tutorial showing something about assigning the item with a model renderer, however when I did that I got the item's texture (pink and black) in the middle of the screen, with the text "item.name#inventory" in blue. I lose motivation quick so I hope someone is willing to explain better than the documentation does.
    • August 27, 2017
    • 5 replies
  9. PlayPrey

    [1.7.10]Block Model not rendering as Icon

    PlayPrey posted a topic in Modder Support

    Hello! I made a lamp for minecraft, custom model made in techne and everything. However, I can't seem to get the icon for it to work. I'm not 100% sure what file is the cause, be it the render- tilentity or the block itself, but heres what I got in the block's files: Block http://pastebin.com/zj1j93J1 Render http://pastebin.com/awQkgc3T ClientProxy http://pastebin.com/UAJsPsLv TileEntity simply extends the standard TileEntity class.
    • July 14, 2015
    • 1 reply
  10. PlayPrey

    [1.7.10][1.8]Save a block to be called later

    PlayPrey replied to PlayPrey's topic in Modder Support

    The idea is to require the player to open a specific chest in a world and then unlock a achievement- opening a different one would not unlock the achievement. This isnt important, but I though it could be fun to require the player to open the first crafted chest.
    • July 3, 2015
    • 4 replies
  11. PlayPrey

    [1.7.10][1.8]Save a block to be called later

    PlayPrey posted a topic in Modder Support

    Hello, I want to save a block that has been crafted so the mod will remember that block. I tried to do: public static Block theChest; (inside a onCraft event) theChest = e.crafting.GetItem() This obviously gives the error that block cant be converted to an item. I am having trouble converting the GetItem into a GetBlock kind of thing, I cant find a way to use 'getItemFromBlock' for it.
    • July 3, 2015
    • 4 replies
  12. PlayPrey

    [1.7.10][1.8] .getItem() and metadata items

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you! It now works flawlessly Also; diesieben07 ; I tried to say I had NOT touched Java since 2012 - So stuff is a little difficult to begin with. Im sorry about this.
    • June 29, 2015
    • 3 replies
  13. PlayPrey

    [1.7.10][1.8] .getItem() and metadata items

    PlayPrey posted a topic in Modder Support

    Hello once again; Sorry for asking so many questions in a short period of time. I have managed to get my mod to detect when something is smelted, however; I can't figure out how to do it with for example charcoal, or cactus green. I tried (prepare to facepalm!) if (e.smelting.getItem() == new ItemStack(Items.coal,1)) { player.addStat(AE.burnFuel_to_receiveFuel, 1); } The error is [incompatible operand types Item and ItemStack]
    • June 29, 2015
    • 3 replies
  14. PlayPrey

    [Almost Solved][1.8] Detect Player Using Furnace or Craft's an item

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you! The game now gives the achievement and outputs the text! Just wondering though, why does the message appear at a random amount? Sometimes I get the message 4 times, sometimes 2, others 5 and so on... If I were to try and count the amount of times something has been smelted, I would get a completely wrong resoult. (int bakedPotatos; (inside method) bakedPotatos += 1; ) If I did that It would get more than just one.
    • June 28, 2015
    • 9 replies
  15. PlayPrey

    [Almost Solved][1.8] Detect Player Using Furnace or Craft's an item

    PlayPrey replied to PlayPrey's topic in Modder Support

    Hehe sorry; Dont know why I tried equals. Here's the up to date code: (Not including the proxy classes) Main.java http://pastebin.com/9PCZ05hS CraftingHandler.java http://pastebin.com/qz4RKLx7 Additional notes; -Yes the achievement is being registered. -The other handler's (found in main.java) work fine for what I use them for.
    • June 28, 2015
    • 9 replies
  16. PlayPrey

    [Almost Solved][1.8] Detect Player Using Furnace or Craft's an item

    PlayPrey replied to PlayPrey's topic in Modder Support

    Hmm, just noticed that some code didnt get pasted. So I got; @SubscribeEvent public void onSmelt(PlayerEvent.ItemSmeltedEvent e) { EntityPlayer player = (EntityPlayer) e.player; player.addChatMessage(new ChatComponentText("TYETJOASD")); if (e.smelting.equals(Items.baked_potato)) { player.addStat(AE.bakePotato 1); } } But the achievement is still not unlocking, neither am I getting the chat message. What am I missing here? (Also; I do know basic Java, but it has been 3 years since I programmed with Java, so things go about slowly. Also; Forge was diffrent back then.. Very diffrent , Nothing of my old code was usable.. ) So I am sorry for the stupid questions; I really am. But how do I compare with the event, and an Item? (Also x2: I know what == does, it compares 2 values to see if theyre the same... right? )
    • June 28, 2015
    • 9 replies
  17. PlayPrey

    [Almost Solved][1.8] Detect Player Using Furnace or Craft's an item

    PlayPrey posted a topic in Modder Support

    Hello, this is something I could do fine (3 years ago)... Now I returned and see that this is completely diffrent. How do I check if the player has smelted or crafted an item? I tried: public class CraftingHandler (Usually I could implement CraftingHandler, however its now gone??? ) { @SubscribeEvent public void onSmelt(EntityPlayer player, ItemStack item) { if (item == new ItemStack(Items.baked_potato)) { player.addStat(AE.bakePotato, 1); } } } I am sorry for all the stupid questions, but it has been a long time since I modded Minecraft, I lost almost all the knowledge I had
    • June 28, 2015
    • 9 replies
  18. PlayPrey

    [1.8] Game crashes when wolf kills a rabbit

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you!! That extra instanceof check fixed the problem!
    • June 27, 2015
    • 3 replies
  19. PlayPrey

    [1.8] Game crashes when wolf kills a rabbit

    PlayPrey posted a topic in Modder Support

    Hello, I am making a achievement mod, and my mod tracks the deaths of entities. I wanted to be able to release a version today, but that is not happening with this bug. Crash Report: http://pastebin.com/WJ0UXPHj I am not trying to cast EntityWolf to Player on purpose, I think its being casted when the wolf kills a rabbit, why it casts to the player confuses me. Code used: (imports lots of stuff) public class SlayHandler { @SubscribeEvent public void KillEntity(LivingDeathEvent event) { EntityPlayer player = (EntityPlayer) event.source.getSourceOfDamage(); } }
    • June 27, 2015
    • 3 replies
  20. PlayPrey

    [1.8] Is it possible to check the stats from the player?

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you, I think I almost have it now I tried doing ".readStat(StatList.mobKillsStat)" and ".readStat(StatList.timeSinceDeathStat)" however they all seem to return the value 0. Even though I have killed mobs, and I have survived longer than 0 seconds.. Also, do you know how to define what mobs I want to look for in "mobKillsStat"?
    • June 27, 2015
    • 11 replies
  21. PlayPrey

    [1.8] Is it possible to check the stats from the player?

    PlayPrey replied to PlayPrey's topic in Modder Support

    It's filled with field_146546_t and func_148210_b and also p_148129_1_ values. I don't know how to use them to get the value I want.
    • June 27, 2015
    • 11 replies
  22. PlayPrey

    [1.8] Is it possible to check the stats from the player?

    PlayPrey replied to PlayPrey's topic in Modder Support

    Thank you; I did find that StatList might work, I tried to do something like; public int blahblah; (in a void) blahblah = StatList.damageDealtStat; However, now "blahblah" has to become a StatBase for the new value to be applied, but then I cannot check blahblah as if it was an int "if(blahblah == 4)" Am I missing something?
    • June 27, 2015
    • 11 replies
  23. PlayPrey

    downloading forge

    PlayPrey replied to wckddrgn4's topic in Modder Support

    The numbers and words tell you why it didn't work, if you don't understand them, post them here.
    • June 27, 2015
    • 3 replies
  24. PlayPrey

    [1.8] Is it possible to check the stats from the player?

    PlayPrey replied to PlayPrey's topic in Modder Support

    @Failender ; Yes, I want to access the vanilla statistics to track certain things, but I have no clue what method to use for that, could you aid me?
    • June 26, 2015
    • 11 replies
  25. PlayPrey

    [1.8] Is it possible to check the stats from the player?

    PlayPrey posted a topic in Modder Support

    Hello, I was wondering if it was possible to check a statistic from the client side player? For example, distance walked or amount of creepers killed.
    • June 26, 2015
    • 11 replies
  • All Activity
  • Home
  • PlayPrey
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community