Everything posted by SparkleArts
-
Change Texture of a Block/Item using Forge Config doesn't work in 1.18.2
Thank you! I will research this, how to use it properly
-
Change Texture of a Block/Item using Forge Config doesn't work in 1.18.2
I want to change the Nether Bricks (Blocks and Item) to a different Texture if you toggle it inside of the Client Side Configuration. But for some reason it doesn't change. I change the Texture with the WorldEvent.Load Event with this peace of code and before I check if the Configuration Variable is true: if (AWTDTweaksConfiguration.BLACK_NETHER_BRICKS.get()) { if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().bindForSetup(new ResourceLocation("another_world_to_discover:textures/blocks/nether_bricks.png")); Minecraft.getInstance().getTextureManager().register(new ResourceLocation("minecraft:textures/block/nether_bricks.png"), Minecraft.getInstance().getTextureManager().getTexture(new ResourceLocation("another_world_to_discover:textures/blocks/nether_bricks.png"))); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().bindForSetup(new ResourceLocation("another_world_to_discover:textures/blocks/cracked_nether_bricks.png")); Minecraft.getInstance().getTextureManager().register(new ResourceLocation("minecraft:textures/block/cracked_nether_bricks.png"), Minecraft.getInstance().getTextureManager().getTexture(new ResourceLocation("another_world_to_discover:textures/blocks/cracked_nether_bricks.png"))); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().bindForSetup(new ResourceLocation("another_world_to_discover:textures/blocks/chiseled_nether_bricks.png")); Minecraft.getInstance().getTextureManager().register(new ResourceLocation("minecraft:textures/block/chiseled_nether_bricks.png"), Minecraft.getInstance().getTextureManager().getTexture(new ResourceLocation("another_world_to_discover:textures/blocks/chiseled_nether_bricks.png"))); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().bindForSetup(new ResourceLocation("another_world_to_discover:textures/items/nether_bricks.png")); Minecraft.getInstance().getTextureManager().register(new ResourceLocation("minecraft:textures/item/nether_brick.png"), Minecraft.getInstance().getTextureManager().getTexture(new ResourceLocation("another_world_to_discover:textures/items/nether_bricks.png"))); } } else { if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().release(new ResourceLocation("minecraft:textures/block/nether_bricks.png")); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().release(new ResourceLocation("minecraft:textures/block/cracked_nether_bricks.png")); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().release(new ResourceLocation("minecraft:textures/block/chiseled_nether_bricks.png")); } if (world.isClientSide()) { Minecraft.getInstance().getTextureManager().release(new ResourceLocation("minecraft:textures/item/nether_brick.png")); } } }
-
Has net.minecraft.world.entity.RemovalReason an Event?
I found out that I can use the RemovalReason enum Class to check if the Entity that was removed which Reason the Entity was removed. For Example the Reason KILLED. But I don't know if this Enum Class has an Event that you need to call before you can use it. Can someone confirm that? When an Event exist could you tell me the Event for 1.18.2?
-
How can I show a Tooltip on a specific Location on the GUI?
For me it only shows renderTooltipEvent and three subclasses of it.
-
How can I show a Tooltip on a specific Location on the GUI?
I'm making currently a Skill Mod where I want to show a tooltip on different places on the GUI. I'm currently learning with Java and I couldn't find a possible code how to show a Tooltip on the GUI on MC 1.18.2. Can someone help with this?
-
Is it possible to make a mod where you can mind controlling a player?
I have currently an Mod Idea that you can possess any Mob and Player where you can control the Mob and the Player by yourself. Is it possible to do that without teleporting?
-
Is it possible to remove an custom item/block being obtainable through commands?
I hope someone knows the answer.
-
[1.18.2] How to make an Enchantment with more than one Enchantment Category?
Ah ok, sadly you cannot use multiple Categories, but thanks. But what is about the restriction with the Breakable Enchantment Category, when I wann only wanna Axe only Enchantment?
-
[1.18.2] How to make an Enchantment with more than one Enchantment Category?
I want to make an Enchantment that can be only Applied to Swords and Bows. But sadly I found out, that I can only use one EnchantmentCategory. Can someone help me with this Issue?
IPS spam blocked by CleanTalk.