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
  • Alekseyev

Alekseyev

Members
 View Profile  See their activity
  • Content Count

    46
  • Joined

    August 16, 2017
  • Last visited

    August 14, 2019

Community Reputation

0 Neutral

About Alekseyev

  • Rank
    Tree Puncher

Recent Profile Visitors

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

  1. Alekseyev

    [1.14] Custom Night Vision Effect

    Alekseyev replied to Alekseyev's topic in Modder Support

    Bumping in hope of someone having an idea
    • July 25, 2019
    • 2 replies
  2. Alekseyev

    [1.13.2] Capabilites (Radiation)

    Alekseyev replied to Simon_kungen's topic in Modder Support

    You create a new Capability every time you call getCapability. Return your already existing instance instead. You're trying to cast the LazyOptional of the capability to the capability itself. Instead you should retrieve it by using one the methods that exist for that purpose. I was linked this article some time ago by helpful persons, and it helped me greatly in understanding LazyOptionals (which function mostly the same as regular Optionals) https://www.baeldung.com/java-optional
    • July 22, 2019
    • 8 replies
  3. Alekseyev started following Preventing damage effects altogether, [1.14] Custom Night Vision Effect, Player-based Crafting Recipes and and 1 other July 22, 2019
  4. Alekseyev

    [1.14] Custom Night Vision Effect

    Alekseyev posted a topic in Modder Support

    Hi, I ran into a problem: The night vision's effect of brightening up the surroundings is handled in LightTexture#updateLightmap(float partialTicks) and checks for the potion effect, after which a value (usually 1, if the effect is about to expire 0.7 + a sinus curve) is retrieved. How would I implement my own night vision effect, say, at lower intensity? I don't think it's possible to change that vanilla method to account for another check.
    • July 22, 2019
    • 2 replies
  5. Alekseyev

    Player-based Crafting Recipes

    Alekseyev replied to diesieben07's topic in User Submitted Tutorials

    Considering how you updated your post for 1.12, I thought you might want to do it for 1.14 as well: In 1.14, the WorkbenchContainer also has a "player" field, so the detour over the slot is no longer needed. Instead of using reflection, I used access transformers for the CraftingInventory's container field (called field_70465_c) as well as the PlayerContainer's and WorkbenchContainer's player field: In accesstransformer.cfg: public net.minecraft.inventory.CraftingInventory field_70465_c # container of CraftingInventory, used for conditional crafing recipes public net.minecraft.inventory.container.PlayerContainer field_82862_h # player of PlayerContainer, used for conditional crafting recipes public net.minecraft.inventory.container.WorkbenchContainer field_192390_i # player of WorkbenchContainer, used for conditional crafting recipes The findPlayer method can then be changed as follows: private static PlayerEntity findPlayer(CraftingInventory inv) { try { Container container = inv.field_70465_c; if (container instanceof PlayerContainer) { return ((PlayerContainer) container).player; } else if (container instanceof WorkbenchContainer) { return ((WorkbenchContainer) container).player; } else { // don't know the player return null; } } catch (Exception e) { throw Throwables.propagate(e); } }
    • July 11, 2019
    • 26 replies
  6. Alekseyev

    [1.14.3] Reusing data values within recipes

    Alekseyev replied to Algorythmis's topic in Modder Support

    Oh wow, I am dumb. No idea how I missed that file on Github. I always forget about how you don't have to import things from the same package...
    • July 6, 2019
    • 4 replies
  7. Alekseyev

    [1.14.3] Reusing data values within recipes

    Alekseyev replied to Algorythmis's topic in Modder Support

    @Choonster in your TestMod3 you use a "RecipeUtil.ShapedPrimer", but you don't seem to import it anywhere, nor can I find such a file in the minecraft/forge sources.
    • July 6, 2019
    • 4 replies
  8. Alekseyev

    [1.14.3] Looking for what replaced tick in Block.class

    Alekseyev replied to kwpugh's topic in Modder Support

    Which would be +20 ticks per second if your game runs at full speed, and less if the processor can't keep up with all the things it has to compute.
    • July 3, 2019
    • 14 replies
  9. Alekseyev

    [1.14.2] Lighting/rendering issues with custom block model

    Alekseyev replied to Alekseyev's topic in Modder Support

    Could be fixed for the most part by setting the getRenderLayer to CUTOUT or CUTOUT_MIPPED.
    • July 1, 2019
    • 2 replies
  10. Alekseyev

    [1.14.3] Looking for what replaced tick in Block.class

    Alekseyev replied to kwpugh's topic in Modder Support

    You could also have the inventoryTick function check the modulo of ticksExisted of the entity so that the rest of the code only fires every x ticks.
    • July 1, 2019
    • 14 replies
  11. Alekseyev

    [1.14.3] Confused about custom glass

    Alekseyev replied to kwpugh's topic in Modder Support

    Are you sure that your texture has transparent areas? Could be missing an alpha channel in the PNG.
    • July 1, 2019
    • 9 replies
  12. Alekseyev

    [1.14.2] Lighting/rendering issues with custom block model

    Alekseyev posted a topic in Modder Support

    Hi, I designed a custom block model and got it to load in the world. However, I am facing two issues: 1: The floor below the block is not rendered. 2: The lighting on the model itself is broken on some faces (notably the upper and lower parts of those at an angle. (The textures and z-fighting will be fixed later, but that's not so important right now.)
    • June 29, 2019
    • 2 replies
  13. Alekseyev

    [1.12.2] Give item ability to breed animals

    Alekseyev replied to Enemeez's topic in Modder Support

    Would it also be an option to replace the Item Set with one of your own choice via reflection?
    • June 19, 2019
    • 8 replies
  14. Alekseyev

    [1.12.2] Best way to handle capability data syncing?

    Alekseyev replied to Alekseyev's topic in Modder Support

    I thought about the following: Instead of checking the charge value and being updated on it, the client just has a boolean for "1000 or higher". The server then only sends an update packet whenever the charge value crosses this treshold. However, there is a problem: I also want the charge to be displayed on the HUD later (in the form of a bar of varying size), and to calculate that size, you'd need the value again...
    • May 30, 2019
    • 2 replies
  15. Alekseyev

    Preventing damage effects altogether

    Alekseyev posted a topic in Modder Support

    Hi, I can successfully use LivingHurtEvent or LivingDamageEvent to set damage caused by a certain source to zero or cancel the event right away. However, other effects associated with damage still play, notably the hurt sound and the screenshake. How would I go about removing these depending on the damage source, say, for example, drowning or being on fire?
    • May 30, 2019
    • 1 reply
  16. Alekseyev

    [1.13.2] HarvestCheck, HarvestDropsEvent events

    Alekseyev replied to Yamahari's topic in Modder Support

    HarvestCheck is fired between the destruction of a block and the (optional) creation of drops. I am not 100% sure whether it only fires for blocks with a harvest level of 1 or higher, but I remember something like this. It definitely also includes ordinary blocks like stone or snow, that require a tool to be collected. Haven't used the other event myself yet and no documemtation at hand.
    • May 29, 2019
    • 2 replies
  • All Activity
  • Home
  • Alekseyev
  • Theme

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