Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/11/17 in all areas

  1. 1) Just for grins, could you add a "this." in front of each call to each instance method and then recompile? 2) Did you compile your server jar using gradlew build? i ask because your build.gradle file looks like the default with group = "com.yourname.modid" still in it.
    1 point
  2. https://github.com/xt9/DeepMobLearner/blob/master/src/main/java/xt9/deepmoblearning/common/items/ItemDeepLearner.java#L24 No, you must open a container on both the server and the client. Opening it on the client only leads to all kinds of bugs including the one you are experiencing. How would a container be opened on client only if the server needs to know about inventory changes? Remove the isRemote check and everything will work fine.
    1 point
  3. That is weird. Last time I checked setUnlocalizedName had no SideOnly annotation so it should work fine on both server and client. In any case if you need to call methods that only exist on client use proxies.
    1 point
  4. You have the hand the player clicks your block with as an argument. That argument is called hand. Do not reinvent the wheel. That method already exists at TileEntityFurnace and it is public and static. Offhand - 40. Mainhand - player.inventory.currentItem. => playerIn.getHeldItem(hand).shrink(1); As for your issue itself try debugging it. Set some breakpoints up, see which method fails the checks, try figuring out why. Edit: Okay, just want to clarify something as my response may seem weird at the point of me talking about the hand argument as you clearly see it existing. To clarify - the issue here is me failing to see any reason as to why are you ignoring the offhand completely and only do things for the main hand. I also tested your code with hand and method references corrected and I do not have the issue.
    1 point
  5. Use v3 resources. You are currently using v2 which is outdated. Create a pack.mcmeta file in your resources folder and in it define pack_format property as 3. You should also define a description property. Example structure of your pack.mcmeta file can be found in forge's example mod that is shipped with MDK or here. Then rename en_US.lang to en_us.lang(convert it's name to lowercase) and you should be good to go. V3 works just fine in 1.12 for me.
    1 point
  6. My guess is Mercurius hasn't been updated yet. Uncheck the box for it in the installer.
    1 point
×
×
  • Create New...

Important Information

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