Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Durex77's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. Please just give me a direction. Like you need to rewrite *** Or please take a look on ***.java. As far as I know it can't be done by textures. Almost all animation that I found are done by animeted textures.
  2. I am currently creating a mod that allows upgrading weapons. And I want to add a visual effect to the weapon. The better the weapon, the better is lighting. Example how I want the weapon to look like: What can I use to make such visual effect on the weapon? minecraft version: 1.16.5
  3. Thank you. It helped. I rendered a model over the Button.
  4. I am trying to write my custom GUI. I want to add buttons that looks like an Item stack. I fount that there is ImageButton class that I can use for that purpose. public ImageButton(int xIn, int yIn, int widthIn, int heightIn, int xTexStartIn, int yTexStartIn, int yDiffTextIn, ResourceLocation resourceLocationIn, Button.IPressable onPressIn) {} But the issue is that I can't extract texture resource location from the ItemStack. I tried different things but I failed. How can I get icon resource location from the ItemStack or Item. Or if it is not possible then what is the best approach to create button that looks like an item? Minecraft version: 1.16.5 Forge version: 1.16.5-36.2.35
  5. I rebuilt everything. Cleaned caches. And not everything is fine.
  6. I am trying to use capabilities in my new project. And looks like FMLCommonSetupEvent event is not triggered during world loading. I debuged the code and setup(final FMLCommonSetupEvent event) was called once. After I launched the cliend. But it wasn't called when I created a server (single player server). So as a result my capability wasn't registrated. My Mod class: @Mod(MOD_ID) public class Lineage { public static final String MOD_ID = "lineage"; public static final String MOD_NAME = "Lineage"; // Directly reference a log4j logger. public static final Logger LOGGER = LogManager.getLogger(); public static CommonProxy proxy; public Lineage() { proxy = DistExecutor.safeRunForDist(() -> ClientProxy::new, () -> CommonProxy::new); // Register the setup method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); // Register the enqueueIMC method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::enqueueIMC); // Register the processIMC method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::processIMC); // Register the doClientStuff method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); // Register ourselves for server and other game events we are interested in MinecraftForge.EVENT_BUS.register(this); MinecraftForge.EVENT_BUS.register(new CapabilityHandler()); } private void setup(final FMLCommonSetupEvent event) { CapabilityManager.INSTANCE.register(IPlayerAdditionalProperties.class, new PlayerAdditionalPropertiesStorage(), PlayerAdditionalProperties::new); NetworkHandler.register(); proxy.init(); } private void doClientStuff(final FMLClientSetupEvent event) { MinecraftForge.EVENT_BUS.register(new KeyHandler()); } private void enqueueIMC(final InterModEnqueueEvent event) { } private void processIMC(final InterModProcessEvent event) { } // You can use SubscribeEvent and let the Event Bus discover methods to call @SubscribeEvent public void onServerStarting(FMLServerStartingEvent event) { // do something when the server starts } } Forge version 'net.minecraftforge:forge:1.16.5-36.2.35' Github: https://github.com/salimAbdulIt/lineage
  • Create New...

Important Information

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