Jump to content

Recommended Posts

Posted

I apologize in an advance if this is a noob level question:  In the class file I'm creating I'm trying to import net.minecraft.nbt.NBTTagCompound

which apparently is no longer in the 1.14.4 MDK but instead is at the MCP folder at  \mcp940\bin\minecraft\net\minecraft\nbt

I have the MCP folder listed in the libraries under project structure (using IntelliJ 2019.3), but in the individual class file I can't get it to make that connection for importing.

How do I do this?

 

(P.S. I've been learning to code Java for an  hour and 13 minutes now (sarcasm), so thanks for helping me with my learning curve.)

Posted

Learn Java before you attempt modding.

Oh, I missed the sarcasm part. However you do seem to be struggling with a few things that I would consider basic.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Why the heck do you even have an MCP folder?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

You know what?  Never mind.  I just created a new package and manually imported it over.  Ugly but effective.

Go ahead and close this ticket.

Posted

This sounds like you're doing things incorrectly and asking us to help when it breaks

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I'm updating code from 1.12.2 to 1.14.4 and learning the joys of trying to keep up with the changes.  If I was a master at JDK 7, then these adjustments would come much quicker.  But since I completed my first Java training series a week ago, I'm a bit to the noobier side.  I just solved the problem of trying to get 5 different pieces of software to cooperate after your push for me to abandon 1.7.10.  (Turns out that allowing IntelliJ to auto-update causes Gradle.build to cease functioning properly.)  Nobody helped with that one.  I figured it out by trial and error and dissecting the files until eliminating the problem.

I have the MCP folder because a video tutorial recommended it.  If you have a better video tutorial series I'll happily watch it and learn accordingly. 

Posted

At this time I have to say McJty's tutorial is the least bad.

If you have an MCP folder you're doing something wrong because MCP is not longer really a thing

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

No need to mess with MCP. Simply download the 1.14 mdk and copy the src from 1.12 to 1.14. Then fix all the mapping changes and other changes with your IDE.

Some tips:

  Reveal hidden contents

 

Posted

Thank you for the input, DaemonUmbra, and DavidM. 

 

To DaemonUmbra:  As I had shared with Diesieben07 in a different ticket, I have devoured (McJty's) Jorrit Tyberghein's "Modding Tutorial 1.14: Episode 1 (IDEA setup, basic mod and first block) after you re-routed me away from 1.7.10.  Prior to that I did the first 7 Mr. Crayfish tuts on mod building with a grain of salt as that series is for 1.7.10 but still has good fundamentals, I hope.

 

To DavidM:  Sounds good to me, but I am little hesitant only because of uncertainty with the complexity of fixing "all the mapping changes and other changes with your IDE. "   If you had a video/tutorial to recommend it would be appreciated.

 

Thanks to you both for your feedback and input.

JMAS 

Posted

This entire issue is apparently surrounding your workspace apparently utilizing some mcp folder which shouldn't exist.

Can you show me where your IDE mentions this mcp folder?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

Solved that problem already ("created a new package and manually imported it over.  Ugly but effective.").  At this point the issue is about the benefit of your experience and skill in receiving direction towards good tutorials in training for java/mod creation in 1.14.4 (and on) that I might become an asset to your endeavours here rather than a stress.

Completed the SoloLearn curriculum, started https://www.java-made-easy.com/java-for-beginners.html

 

Edited by JMAS
more info
Posted (edited)

Looks like I have to eat my words.

 

H:\MCModding\forge-1.14.4-28.1.98-mdk\src\src\main\java\com\JurassicSr\frankenmod\entity\tile\TileEntityAltar.java:10: error: package com.JurassicSr.frankenmod.client.mcp does not exist

import com.JurassicSr.frankenmod.client.mcp.NBTTagCompound;

 

The frustrating part  is that I can see the package created (and the classes) in the left hand Project window in IDEA.

 

The point is to create an altar that certain items appear on when placed.  I'm using a 1.12.2 mod as code foundation framework that accomplishes this means (in 1.12.2). 

Edited by JMAS
more data included
Posted
 
 
 
 
 
 
 
 
  On 12/14/2019 at 11:03 PM, JMAS said:

H:\MCModding\forge-1.14.4-28.1.98-mdk

\main\java\com\JurassicSr\frankenmod\entity\tile\TileEntityAltar.java

Expand  

Something seems wrong, why is there 

  On 12/14/2019 at 11:03 PM, JMAS said:

\src\src

Expand  

I think NBTTagCompound has changed to CompoundNBT

and the import for that is: import net.minecraft.nbt.CompoundNBT;

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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