Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Using vanilla resources


Zgron
 Share

Recommended Posts

Hi I'm trying to make a kind of volcanic lava that will flow differently. To begin with I can't find the water block or lava block class to use extend from or use as a template or refernse point if that is how you implement fluids in forge and if someone could contribute to some informations about how to make fluids, that would be apprecited.

 

Anyway as the topic I would like to use the same texture that is used in vanilla minecraft for the lava block. However I've done some testing and thought that it would be fine using new ResourceLocation("minecraft", "lava_still") and just use the minecraft assets, but that don't seem to work and forge complains.

 

I don't want to copy the resources and put them in my own resource folder since I want it to take the same appearance as lava even if a resourcepack would be used.

 

Are there any simple way to do this or is it possible to copy the resources I want from the net/minecraft at initialization? In that case I'm unsure about the root folder.

Link to comment
Share on other sites

Hi I'm trying to make a kind of volcanic lava that will flow differently. To begin with I can't find the water block or lava block class to use extend from or use as a template or refernse point if that is how you implement fluids in forge and if someone could contribute to some informations about how to make fluids, that would be apprecited.
You first need to make a new instance of
Fluid

and register it with the

FluidRegistry

(or you can use an existing one from the

FluidRegistry

). Then you can use

BlockFluidClassic

to create a block for your fluid that behaves like vanilla liquids or

BlockFluidFinite

for finite fluids.

 

Anyway as the topic I would like to use the same texture that is used in vanilla minecraft for the lava block. However I've done some testing and thought that it would be fine using new ResourceLocation("minecraft", "lava_still") and just use the minecraft assets, but that don't seem to work and forge complains.
Using Minecraft's resources should be fine, please show exactly what you tried.
Link to comment
Share on other sites

Sorry for the late response. I found the problem. I was doing new ResourceLocation("minecraft", [resource path]); but i found that the first parameter is actually mod id. And I suppose minecraft ain't defined as a forge mod right? :P so I used new ResourceLocation("minecraft/[the rest of the path]");

Link to comment
Share on other sites

Sorry for the late response. I found the problem. I was doing new ResourceLocation("minecraft", [resource path]); but i found that the first parameter is actually mod id. And I suppose minecraft ain't defined as a forge mod right? :P so I used new ResourceLocation("minecraft/[the rest of the path]");

 

HAHAHAaaaaa xD laugh of the night right there. good stuff *high five*.

I'll give some applause.

Link to comment
Share on other sites

Sorry for the late response. I found the problem. I was doing new ResourceLocation("minecraft", [resource path]); but i found that the first parameter is actually mod id. And I suppose minecraft ain't defined as a forge mod right? :P so I used new ResourceLocation("minecraft/[the rest of the path]");

Actually that should have worked. Which resources are you talking about?
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
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.

 Share



×
×
  • Create New...

Important Information

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