Jump to content

deadrecon98

Forge Modder
  • Posts

    316
  • Joined

Everything posted by deadrecon98

  1. "ModName".network.sendTo(new "Packet", "EntityPlayerMP"); Is not how you use packets. This is how you use packets.
  2. I hope you read diesbien's reply. That code will never work on a dedicated server.
  3. Oh god no, this sounds way more complex than is necessary. If you really do insist upon this however, see if you can track the bytes from the MInecraft application itself. (I mean use pure java instead of forge or mc to track it.)
  4. The reg crash IS the updated crash. That is impossible. Either you didn't send the entire src file or you sent an outdated version That crash report specifically states that the issue is in line 45 but your code only goes to line 42. Please re-run it and re-submit your crash report.
  5. What? Be clear on what you are asking.
  6. I am not going to sift through your code, send the crash report.
  7. Ill just send you a bit of code that I use whenever I get home.
  8. 1. Read what I just said 2. Basic java. Learn it.
  9. new ItemStack("Armor I want"))) Why are you comparing ItemStack types! Use ItemStack.getItem() == myItem, also read the post above. Minecraft.thePlayer will not work because it is ONLY client side.
  10. I need your updated crash report as well. And put it in a code block otherwise it just fills up the entire page.
  11. 1. You never inserted a null check for the Item Stack. 2. new ItemStack("Armor I want") You aren't creating a new anything.
  12. I need the see your src, specifically MyItems src. Also put the crash report in code tags, it makes it easier to read.
  13. ItemStack itemstack; You never declared itemstack.
  14. Lol it's 1.8. Just accept it.
  15. Oh god... c Block obsidianRail, diamondRail, lapisRail, iceRail, glowstoneRail, diamondNetherRail, diamondObsidianRail, brickRail, emeraldRail, netherStarRail, whiteWoolRail, orangeWoolRail, magentaWoolRail, lightblueWoolRail, yellowWoolRail, limeWoolRail, pinkWoolRail, grayWoolRail, lightgrayWoolRail, cyanWoolRail, purpleWoolRail, blueWoolRail, brownWoolRail, greenWoolRail, redWoolRail, blackWoolRail, enderPearlRail, chainRail, railsCraftingTable, armedRail, monorailDiamond, monorailGlowing, monorailGrayOrange, monorailNether, monorailObsidian, monorailRedGreen, monorailYellowBlue, monorailEmerald, monorailLapis, monorailGold, monorailPowered, monorailIce, monorailChain, monorailArmed, monorailEnderPearl; public static Block triplerailWhite, triplerailOrange, triplerailMagenta, triplerailLightblue, triplerailYellow, triplerailLime, triplerailPink, triplerailGray, triplerailLightgray, triplerailCyan, triplerailPurple, triplerailBlue, triplerailBrown, triplerailGreen, triplerailRed, triplerailBlack; public static Block triplerailDiamond, triplerailGlowing, triplerailGrayOrange, triplerailNether, triplerailObsidian, triplerailRedGreen, triplerailYellowBlue, triplerailEmerald, triplerailLapis, triplerailPowered, triplerailIce, triplerailChain, triplerailArmed, triplerailEnderPearl; public static Item minecartWhite, minecartOrange, minecartMagenta, minecartLightblue, minecartYellow, minecartLime, minecartPink, minecartGray, minecartLightgray, minecartCyan, minecartPurple, minecartBlue, minecartBrown, minecartGreen, minecartRed, minecartBlack; public static Item emeraldBar, diamondBar, obsidi Ok listen up. Client is ONLY for rendering, Keybinds, etc... Things that ONLY relate to the client. The Server is what performs all of the calculations, players inventory, dispensers shooting arrows, etc... One more thing. Never, EVER declare fields like this in a proxy unless they only belong in that proxy. The code above needs to go into it's own class, or possible your mods main class so that they can be called from there. And just so you know public static CommonProxy proxy; That isn't CLIENT proxy, that's server proxy. It would be much more help if you attempted to fix what I just said and then post the new code. EDIT: Also, what? Why is this public static final String modid = "ExpandedRailsMod" inside of your client proxy? This should be in your mod folder! Oh god no.
  16. I'm honestly not sure that this is possible. Try setting it to something like lang.text and go into the lang file and add in lang.text=Text. That might work but I am just telling you this off of the top of my head.
  17. Make ABSOLUTELY sure that the client knows the crafting recipe is valid. Otherwise you're just turning a blind eye to it.
  18. Any time, just let me know if you need help.
  19. You could also set up an entity interact event for it.
  20. Yeah, every other event in that class works fine. I have tried elevating that one to a higher priority and even making it static but nothing is fixing it. I have no idea what's going on here. Is it wrong that I registered it like: MinecraftForge.EVENT_BUS.register(new EventManager());?
  21. This is odd. I assume that I would be using ItemCraftedEvent but it isn't being triggered. Is there something I am doing wrong? To save you time here is the class it is in.
  22. So should I move it all to the forge event of onCreated?
  23. Ok, so now that I have that part fixed could you help me out as to why everything is doubled when I hold shift to get the recipe? It acts like it is run twice but the output is still the same.
  24. Wow, that doesn't make any sense whatsoever. Do you think you could help me out on this then? If you look at the item code you will notice that I already have this set up but I am using VERY improperly. If you could give me a few pointers that would help a ton.
  25. And that is exactly why it's there. Some of my crafting recipes already have a tag, hence it even being there.
×
×
  • Create New...

Important Information

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