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.

With what class do I have to do this, in this condition?

Featured Replies

Posted

Hello good, first of all a greeting to all, I have been programming the mod for a few weeks and I am stuck.
I need the water particles to only run in the init method in the Main of the mod, I've been looking at the forum for 3 days and I decided to register and ask for help, because I can't get it.
The structure is a biome, so I am trying with a condition that executes only when it is in the biome and not in the normal game, from a method that is within the condition.
But I don't know what to put in the condition so that it only runs in the biome and not in the 2.

Class WaterColorParticles.

 public static void onWaterColor()
 {
	if (BiomeRuby.getBiomeForId(1) == BiomeRuby.getBiomeForId(1))
	{
		ParticlesWaterColorRubyBubble.Registery();
	} 
		
}

Class BiomeRuby.

public BiomeRuby() {
	super(new 	BiomeProperties("ruby_biome").setBaseHeight(1.5F).setHeightVariation(1.2F).setTemperature(6F).setWaterColor(ColorRubyBiomeWater.original));
	Biome.REGISTRY.getObjectById(1);
}

As you can see I do not know what to put and try everything and nothing.

Thanks first and greetings to all.

what is the mc version? and what is it that you're trying to do? I didn't really understand you

  • Author

It is 1.12.2 but I switched to 1.16.4 and I will have it when I need it, thanks anyway.

Guest
This topic is now closed to further replies.

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.