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

squidlex

Members
  • Content Count

    168
  • Joined

  • Last visited

Community Reputation

4 Neutral

About squidlex

  • Rank
    Creeper Killer

Recent Profile Visitors

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

  1. Hi! I am creating my potion recipes using the BrewingRecipeRegistry.addRecipe() method however I am experiencing some overwriting issues in-game. Here is my code: BrewingRecipeRegistry.addRecipe(Ingredient.fromStacks(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTION), FEATHERS)), Ingredient.fromStacks(new ItemStack(Items.REDSTONE)), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTION),LONG_FEATHERS)); BrewingRecipeRegistry.addRecipe(Ingredient.fromStacks(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTION), FEATHERS)), Ingredient.fromStacks(new
  2. Hi there! I have a mod that stores values inside the player as Capabilities and am thinking of switching over to using attributes instead. It currently stores integer values for weight, stamina and stamina regeneration for each player, which are accessed on both the Client and Server frequently for GUI and Logic. I'm not too familiar on the attributes system so if anyone has the time to answer these questions I would really appreciate it! Is it worth switching from Capabilities to Attributes for these values? How would I go about creating custo
  3. I have imported my project from GitHub in order to streamline my development, however I am experiencing the above issue. My mods.toml file is as such: modLoader="javafml" loaderVersion="[35,)" license="All rights reserved" [[mods]] modId="elenaidodge" version="2.0.4" displayName="Elenai Dodge 2" #displayURL="https://www.curseforge.com/minecraft/mc-mods/elenai-dodge-2" credits="ElenaiDev" authors="Elenai" description=''' Placeholder ''' [[dependencies.elenaidodge]] modId="forge" #mandatory mandatory=true #mandatory versionRange="[35,)" #mandatory ordering="NONE"
  4. Sorry to be a hassle, but what command line instructions do you use? I'm using gradlew genEclipseRuns gradlew eclipse
  5. Okay well sorry for taking up your time as the issue is on my end. Thank you!
  6. Thank you and I thought as much, however when I do this the mod is still present at runtime. repositories { maven { name = "CurseForge" url = "https://minecraft.curseforge.com/api/maven/" } } dependencies { minecraft 'net.minecraftforge:forge:1.16.5-36.0.42' compileOnly "tough-as-nails:ToughAsNails-1.16.5:4.0.1.14:universal" } This wouldn't matter, however I'm experiencing an issue where my workspace is refusing to import access transformers from other mods, so when tough as nails is run as a dependency I get a crash.
  7. Hi! My mod has integration for a bunch of other mods that I don't want to run in my testing environment, however I need the import to ensure I can actually build my project. Is there a way I can only import them at runtime?
  8. Thank you! And it is but it seems to get the job done 😉
  9. I see, thank you. What I meant was I'm calculating how high to render my GUI by using this. int rows = MathHelper.ceil(dodges / 20.0F); int rowHeight = Math.min(Math.max(10 - (rows - 2), 3), 10); int top = (screenHeight - ForgeIngameGui.right_height) - ((rows * rowHeight) - 10); Which seems to make room for other mods. Is there a way to maintain this effect whilst not having my GUI cancelled when the render event is canceled if it is ElementType.FOOD?
  10. After using mods such as 'Armor Toughness Bar' and 'Rustic' for reference, I am rendering my GUI above the foodbar in a manner that will automatically make room for other mods by using if (event.getType() == ElementType.FOOD) The issue is that if any other mod cancels this event, (to hide or replace the hunger bar) then my GUI is not rendered. Is there a workaround for this so that my GUI will still appear correctly above or below GUIs added by other mods?
  11. I am trying to stop my ClientTickEvent from running when the game itself is paused. Whilst I could check to see if the player has a Gui/Screen open, this would prevent the code from running when the game is paused on a server or LAN World, which I don't want. How can I check if the game itself is not paused? I know I could use the PlayerTickEvent for this, however I want to use the ClientTickEvent as I am interacting with Client Side values for my GUI.
  12. Hi! I am sending a message to the server from the player using this: PacketHandler.instance.send(PacketDistributor.SERVER.noArg(), new SWeightMessage(intWeight)); When it arrives it updates the player's capability like so. @Override public void handle(SWeightMessage message, Supplier<Context> supplier) { supplier.get().enqueueWork(() -> { supplier.get().getSender().getCapability(WeightProvider.WEIGHT_CAP).ifPresent(w -> { w.set(message.weight); }); }); supplier.get().setPacketHandled(true); } The issue is that this is changing the Weight of EV
  13. Thank you for the answer and additional detail!
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.