Jump to content

SparkleArts

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by SparkleArts

  1. Thank you! I will research this, how to use it properly
  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")); } } }
  3. 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?
  4. For me it only shows renderTooltipEvent and three subclasses of it.
  5. 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?
  6. 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?
  7. 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?
  8. 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?
×
×
  • Create New...

Important Information

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