Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • squidlex

squidlex

Members
 View Profile  See their activity
  • Content Count

    144
  • Joined

    April 8, 2020
  • Last visited

    7 hours ago

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. squidlex

    How to get the sum of all enchantment levels equipped

    squidlex replied to squidlex's topic in Modder Support

    hahaha I'm very tired. (and an idiot from the looks of things)
    • 7 hours ago
    • 5 replies
  2. squidlex

    How to get the sum of all enchantment levels equipped

    squidlex replied to squidlex's topic in Modder Support

    Thanks Diesieben! I added this to my Utils class. I used this for reference whilst doing it, thanks Tavi!
    • 7 hours ago
    • 5 replies
  3. squidlex started following How to cancel an event without subscribing to it, How to get the sum of all enchantment levels equipped, Check if player wakes up in the Morning and and 3 others 8 hours ago
  4. squidlex

    How to get the sum of all enchantment levels equipped

    squidlex posted a topic in Modder Support

    Hi! I'm trying to get the total enchantment level of a specific enchantment equipped when wearing armor. For example, if the player has: Boots with CUSTOM_ENCH V Helmet with CUSTOM_ENCH III I will get the value 5 + 3 = 8. I've figured out how to get the max level, (e.g. the example above would return 5 as it's larger than 3), however I haven't figured out how to get the cumulative value. Thanks for your help!
    • 8 hours ago
    • 5 replies
  5. squidlex

    Check if player wakes up in the Morning

    squidlex replied to squidlex's topic in Modder Support

    This is perfect, thank you!
    • 10 hours ago
    • 2 replies
  6. squidlex

    How to create the regeneration effect on hearts for other HUD elements

    squidlex replied to squidlex's topic in Modder Support

    Thank you!
    • 10 hours ago
    • 2 replies
  7. squidlex

    Check if player wakes up in the Morning

    squidlex posted a topic in Modder Support

    Hi, I'm trying to detect when the player wakes up in the morning. The Player Wakes Up Event is firing whenever I press wake up.. So I'm wondering if there's a workaround to only run my code if the player slept through the night? Checking if the world is daytime isn't working, as the event seems to fire before the time is changed. Thanks for your help!
    • 11 hours ago
    • 2 replies
  8. squidlex

    How to create the regeneration effect on hearts for other HUD elements

    squidlex posted a topic in Modder Support

    I have a custom HUD above the hunger bar that I want to imitate the 'wave' effect applied on the player's hearts when they have the regeneration effect. I've tried to make sense of the Class for this, however it seems incredibly confusing as the variables are very shortly named. Any help would be greatly appreciated! Of course I'm not asking for someone to do this for me, just if anyone knows any tips or pointers to get me started.
    • Tuesday at 08:37 PM
    • 2 replies
  9. squidlex

    How to run code every time a Potion effect is applied

    squidlex replied to squidlex's topic in Modder Support

    I see, thank you so much for all your help!
    • Tuesday at 02:24 PM
    • 4 replies
  10. squidlex

    How to run code every time a Potion effect is applied

    squidlex replied to squidlex's topic in Modder Support

    Thank you! My Potion isn't using Attribute modifiers however, is there a way I can still use this?
    • Tuesday at 01:57 PM
    • 4 replies
  11. squidlex

    How to run code every time a Potion effect is applied

    squidlex posted a topic in Modder Support

    I'm currently using a tick event to check if the Player has the Potion Effect, with a Boolean Capability to only run the code on the first tick of the potion effect being applied. PSEUDOCODE: tickEvent(PlayerTickEvent event) { if(we're on the server){ if(player doesn't have effect capability && player has potion effect) { // Do stuff give player active effect capability; } else if (player has effect capability && player does not have potion effect) { // Do stuff remove player active effect capability } } } The issue here is that if the potion effect is applied again whilst the player has it, the first line of code doesn't run. Is there a workaround to this? Thanks for your help!
    • Tuesday at 01:24 PM
    • 4 replies
  12. squidlex

    Attach Attribute to an existing entity

    squidlex posted a topic in Modder Support

    Hi, I'm wondering if anyone knows the best way to attach a custom attribute to a pre-existing entity. Thanks for your help!
    • Tuesday at 11:10 AM
  13. squidlex

    How to correctly setup a Cancelable event

    squidlex posted a topic in Modder Support

    I have a custom event with the @Cancelable annotation, that I want to only do something if it isn't canceled. At the moment, I'm doing something like: if (!event.isCanceled()) { //Do Something } Which obviously doesn't work. How would I go about making an event that when fired, only runs code if it isn't cancelled? Thanks for your help!
    • Saturday at 01:06 PM
    • 1 reply
  14. squidlex

    How to cancel an event without subscribing to it

    squidlex replied to squidlex's topic in Modder Support

    It's my own custom one. That's a shame but thank you for your quick reply!
    • Saturday at 12:40 PM
    • 2 replies
  15. squidlex

    How to cancel an event without subscribing to it

    squidlex posted a topic in Modder Support

    In my Mod I need to cancel a client event from the server side, and I haven't figured out a way to achieve this. Right now I'm sending a packet to the Client, but I don't know where to go from there. Any help would be greatly appreciated!
    • Saturday at 12:29 PM
    • 2 replies
  16. squidlex

    Could not resolve: net.minecraftforge:forge:1.16.4-35.1.36_mapped_snapshot_20201028-1.16.3

    squidlex replied to squidlex's topic in ForgeGradle

    Thanks for your help! Reinstalling gradle by deleting .gradle fixed the issue.
    • January 13
    • 3 replies
  • All Activity
  • Home
  • squidlex
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community