Jump to content

Recommended Posts

Posted

Hello,

I'm not sure if this go's here but i will put it here any way, if i need to move it somewhere else i will gladly move it.

How would i (a) set the "name" of the jar gradlew build creates and how would i set a different path for gradlew build to put that jar in?

 

Thank you,

Drok

Posted

Just to make it easier(instead of having to type out the name every time after i build it and because i want to be able to find the mod in a easier-to-remember place)

Posted

Just to make it easier(instead of having to type out the name every time after i build it and because i want to be able to find the mod in a easier-to-remember place)

 

Doesn't the build.gradle file do this for you?  When I build I think the jar name is combination of the archiveBaseName plus the version, and I think the assetDir sets location it gets put in.  So I've set all my jars from multiple mod projects to pop out in one directory in my workspace.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

you mean add --assetsDir (dirrectory) after the "gradlew build" in the cmd prompted?

 

You can probably set it as a parameter to the command, but I just put it right in my build.gradle file.  What does your build.gradle file look like?  The whole point of the build.gradle file is to control how the build is done -- where the files are, where they go, etc.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

I also have another question.  How do you make a custom mob ONLY spawn on a certain block(or a block that extends that block) in any biome?

 

You shouldn't combine different questions in same thread. 

 

Anyway, there is an event called PotentialSpawns that you can handle.  The event parameter will have a field called list that contains what it thinks it can spawn, and it also has x, y, and z for the position.  You can edit the list in the handler.  So you'd check the position and if it isn't good for your entity you'd edit the list to remove your entity (if it was in the list).

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.