Jump to content

Recommended Posts

Posted
20 hours ago, RobinCirex said:

Hey, I want to replace all the lava in the nether with water when a world is generated. Does anyone have a clue how I could do that?

Why you want to do that ?

 

NVM

 

Make a new dimension , same as the nether !

The only way !

 

 

Posted
On 3/29/2020 at 4:39 PM, Wintersky20 said:

Why you want to do that ?

 

NVM

 

Make a new dimension , same as the nether !

The only way !

 

 

Hey 

I did that now and everything works, the only thing I don't know is how to change the "destination" of the nether portal. Do you know that?

Posted
3 minutes ago, RobinCirex said:

Hey 

I did that now and everything works, the only thing I don't know is how to change the "destination" of the nether portal. Do you know that?

Override the nether portal block in the block registry with your own that sends you to your dimension. However I'm not sure creating your own dimension is the only way. Not that I have an alternate way to propose.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)
15 minutes ago, Animefan8888 said:

Override the nether portal block in the block registry with your own that sends you to your dimension. However I'm not sure creating your own dimension is the only way. Not that I have an alternate way to propose.

Oh, i didn't know overwriting blocks in the registry works. Can you tell me how? Pretty sure that'll help me in the future, thanks for that :D 

Edited by RobinCirex
Posted
Just now, RobinCirex said:

Can you tell me how?

I believe you just need to register a Block with the same registry name and it must have all the same block properties IE it's BlockState properties must all be the same.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

I think you can do the same for the Nether's dimension type; override it in the registry. Not sure if it's great for cross-mod compatibility, but it should be a little cleaner.

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Posted
2 hours ago, Animefan8888 said:

Override the nether portal block in the block registry with your own that sends you to your dimension. However I'm not sure creating your own dimension is the only way. Not that I have an alternate way to propose.

In 1.13-1.15 its harder to change vanilla blocks .. without chrashing your game !

 

2 hours ago, Animefan8888 said:

I believe you just need to register a Block with the same registry name and it must have all the same block properties IE it's BlockState properties must all be the same.

Registering blocks with the same name will crash your game

 

2 hours ago, imacatlolol said:

I think you can do the same for the Nether's dimension type; override it in the registry. Not sure if it's great for cross-mod compatibility, but it should be a little cleaner.

Overriding a whole dimension is harder then changing vanilla blocks !

 

2 hours ago, RobinCirex said:

However I'm not sure creating your own dimension is the only way

you are right 

Another idea is to change water behavior using som events !

then try to spawn the water in the same way that lava is spawned using world generator 

Search the water and lava classes and nether dimension class , for more information !

Posted (edited)

Why noone do not suggest to use implementation IWorldGenerator for replace all generated lava?

It's may be lagged?

Edited by hohserg
Posted
1 minute ago, hohserg said:

Why noone do not suggest to use implementation IWorldGenerator for replace all generated lava?

Actuall , if you look above @diesieben07 comment , I sad that in another format!

But you need to change water behavior if you wanna keep the water in the nether!

If I remember correctly , is not possible to place water in nether ..right ?

Posted
3 hours ago, diesieben07 said:

If it does that is a bug and you should report it properly, with code and logs (make a thread here).

Actually , I think this is intended .. you cannot have 2 or more blocks with the same registry name and the same id ..

@Animefan8888 suggest to 

6 hours ago, Animefan8888 said:

register a Block with the same registry name

But , as I seid , It will crash!

Posted (edited)

Yeah, I see it now, sorry. But it's not have mention to concrete classes(like ReplaceBiomeBlocks?).

 

11 minutes ago, Wintersky20 said:

to change water behavior if you wanna keep the water in the nether!

Logic of vaporizing located in ItemBucket, so generated water can be keep, but players can't add more water

Edited by hohserg
Posted
6 minutes ago, hohserg said:

Yeah, I see it now, sorry. But it's not have mention to concrete classes(like ReplaceBiomeBlocks?).

 

Logic of vaporizing located in ItemBucket, so generated water can be keep, but players can't add more water

Oh , ok , you are right :) I miss that piece of code in the BucketItem:

if (worldIn.dimension.doesWaterVaporize() && this.containedBlock.isIn(FluidTags.WATER))

But he can add an event like :

PlayerInteractEvent.RightClickBlock

just for the nether dimension to place a water source and stop the actual water from the bucket to be placed , if i'm correct !

 

15 minutes ago, hohserg said:

But it's not have mention to concrete classes(like ReplaceBiomeBlocks?).

Yeh , you are right , i dont give him the correct classes to look! My bad, sorry ! 

  • Like 1
Posted
1 hour ago, Wintersky20 said:

Actually , I think this is intended .. you cannot have 2 or more blocks with the same registry name and the same id ..

@Animefan8888 suggest to 

No this is wrong. You are allowed to override the registry of other mods/Minecraft itself. It would not be intended behavior to crash. It would be intended behavior to crash if you registered a block from your modid twice.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
13 hours ago, Wintersky20 said:

Oh , ok , you are right :) I miss that piece of code in the BucketItem:


if (worldIn.dimension.doesWaterVaporize() && this.containedBlock.isIn(FluidTags.WATER))

But he can add an event like :


PlayerInteractEvent.RightClickBlock

just for the nether dimension to place a water source and stop the actual water from the bucket to be placed , if i'm correct !

 

Yeh , you are right , i dont give him the correct classes to look! My bad, sorry ! 

 

13 hours ago, hohserg said:

Yeah, it may useful for accept water in nether

 

 

11 hours ago, Animefan8888 said:

No this is wrong. You are allowed to override the registry of other mods/Minecraft itself. It would not be intended behavior to crash. It would be intended behavior to crash if you registered a block from your modid twice.

Just to clear everything up: I have already done it, as said before, here's my code https://github.com/RobinCirex/WaterNether

It's not that clean but it works :D Water doesn't vaporize immediately, it only does when placed by a player, not when spawned. I had to overwrite a lot of things because the chunk generation has a lot of different classes and properties :D

Posted
18 minutes ago, RobinCirex said:

 

 

Just to clear everything up: I have already done it, as said before, here's my code https://github.com/RobinCirex/WaterNether

It's not that clean but it works :D Water doesn't vaporize immediately, it only does when placed by a player, not when spawned. I had to overwrite a lot of things because the chunk generation has a lot of different classes and properties :D

Oh , ok .. It's a good point !

you make that when player is changing dimension instead of spawning in nether , you spawn in the new dimension ! 

And i think it's clean enough for a mod that do just one thing !

Posted
15 minutes ago, Wintersky20 said:

Oh , ok .. It's a good point !

you make that when player is changing dimension instead of spawning in nether , you spawn in the new dimension ! 

And i think it's clean enough for a mod that do just one thing !

yea, as you said, I think "cleanness" doesn't really matter for small mods lol 

  • Haha 1
Posted (edited)

If you want to prevent water from vaporizing, set doesWaterVaporize to false in the dimension's constructor method.

Additionally, you should really be using DimensionManager's register methods for the sake of compatibility.

Edited by imacatlolol

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Posted
5 hours ago, imacatlolol said:

Additionally, you should really be using DimensionManager's register methods for the sake of compatibility.

They also should be using the Registry Events to register things that belong in a registry...

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
1 hour ago, Animefan8888 said:

They also should be using the Registry Events to register things that belong in a registry...

Oh dang, that's become so second-nature to me that I didn't even notice!

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Also check the worldsave / serverconfig folder If there is no such file, make a test without this mod  
    • Hi, I've been having trouble trying to use forge as it shows a black screen when I open the game, but I can still interact with it and hear the music.  I've done all of the step by steps and most common fixes like updating drivers, keeping up to date with Java, deleting and reinstalling minecraft, restarting my computer MANY times, even smaller things like splash.properties (I didn't have that file so I added it and set it to false thinking it would do something, definitely not) and making sure to prioritize my rtx 3070 in the settings but with no luck. Minecraft works as intended when I uninstall forge and I also don't have any mods currently, it just gives me this issue when I install forge. I also increased the ram usage, made sure my hardware isn't full or anything, and even changed the resolution in hopes it would fix things. I checked my antivirus and firewall but that isn't the issue either. Trust me, I've done everything I can think of. For some reason the black screen does flicker a little into the main menu, but obviously unplayable. I couldn't even make my way to the settings with how little it flickered. I'm not sure if it flickered randomly or if it was because I was messing around moving and clicking a bunch, I didn't really test it that much.  
    • I've had a really weird issue recently,  I wanted to add the Depper and Darker mod on my dedicated server (MC 1.21 with Fabric 0.16.9, hosted on nitroserv.com) but whenever I do add the mod the sever stops doing anything after listing the mods, and I get no crash or error or anything, just a stuck server. Here's a normal log of the server booting up: https://pastebin.com/JipFF2Eh and here's the log of the server doing the weird thing: https://pastebin.com/W4JBh3eX I just don't understand it. I've tried removing other mods (somewhat randomly) but deeper and darker still breaks my server whenever I add it. NitroServ support staff is about as confused as I am and I've had no response from the Deeper and Darker support staff... Now I know this is the Forge support not the Fabric support but I'm just trying to know if anyone has any kind of idea to fix this (aside from not using the mod obviously) Also I still have a bunch of errors and warnings whenever the server does start properly, are there any of them I should be worried about?
  • Topics

×
×
  • Create New...

Important Information

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