Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

  • Author

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)

  • Author

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?

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/

  • Author

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

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/

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/

  • Author

ok so i found what you are talking about... now if i DONT want it in my forge folder i would just do something liek "C:\Test123\123"

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.