Change Moon texture on specific Dimension (no plugins)

Started by gustavowizard123 on

Topic category: Help with MCreator software

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Moon texture on specific Dimension (no plugins)

since now World Renderer is not being updated, and for people that dont want plugins anymore, 

is there a way to make custom moon/sun textures for specific dimensions?

all space mods need this.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you might be able to use…
Sat, 10/25/2025 - 12:19

you might be able to use this,

you'd have to use custom code blocks since you don't want a plugin

 

the first block,

if (world.isClientSide()) {
				TextureManager _textureManager = Minecraft.getInstance().getTextureManager();
				_textureManager.register(ResourceLocation.parse("minecraft:textures/environment/moon_phases.png"), _textureManager.getTexture(ResourceLocation.parse("minecraft:textures/block/dirt.png")));
			}

 

the second block,

if (world.isClientSide()) {
				Minecraft.getInstance().getTextureManager().release(ResourceLocation.parse("minecraft:textures/environment/moon_phases.png"));
			}			

the third block,

if (world.isClientSide()) {
				Minecraft.getInstance().getTextureManager().release(ResourceLocation.parse("minecraft:textures/block/dirt.png"));
			}