Jump to content

I implemented the fluid, now for the next step


Recommended Posts

I finished implementing my Sap in a way that's functional, but the fluid is opaque, which I don't want. How do I not make it opaque?

My registry line for sap block:

BlockList.sap = new FlowingFluidBlock(() -> FluidList.sap, Block.Properties.create(Material.WATER).doesNotBlockMovement().noDrops()).setRegistryName(location("sap"))

and the fluid:

FluidList.sap = (Source) new FluidSap.Source().setRegistryName(location("sap")),
FluidList.flowing_sap = (Flowing) new FluidSap.Flowing().setRegistryName(location("flowing_sap"))

 

(On another note, how do I create a Git repo from an Eclipse project?)

Link to comment
Share on other sites

12 minutes ago, ChampionAsh5357 said:

If you can find the folder where you extracted the forge contents into, you are going to open up a command window (Command Prompt, Powershell, Terminal, etc.) and then type 'git init'. From there, its the same setup as you would a normal git repo for whatever website you are uploading to.

...I don't know how to set up a git repo. Could you please tell me?

Link to comment
Share on other sites

7 hours ago, TheThorneCorporation said:

...I don't know how to set up a git repo. Could you please tell me?

For Eclipse:

 

Make a github accout.

Create an empty repository on github for your mod. It will give you the address to use as the remote.

In Eclipse, right-click on your project, select Team, choose Share Project.

on the Share Project screen, check Use or create repository in parent folder of project

Click Create Repository

Click Finish

Right click your project again, choose Team, then Commit. It will open the Git Staging window at the bottom. add all the files with the green ++ button, which moves them to the bottom window. Click Commit and Push. In this screen, fill in the URI with the address for your repo from github. You can either fill in the username/pw info and save it, or make it prompt you every time, up to you. After this, you should see your project on github.

When you edit/change files, use the git staging window to Commit your changes, and Push when you want to send it to github (you don't have to push every time you change, just when you want to publish it).

 

Do some reading up on git, it's really useful. Branches are great.

  • Like 1
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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