Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by DavidM

  1. You can replace the registry value with your own implementation of UnbreakingEnchantment.

    Although depending on what you want to do, it might be better to listen for certain events (break block, etc) and check if the player has an unbreaking item in hand.

  2. 7 minutes ago, xX_deadbush_Xx said:

    It's still not putting the translucent texture onj the block... It does work on the blockitem though. I have tried only having it render the translucent part and that worked so it seems like the block cant have more than one RenderType at once... Any other ideas? If nothing works i will try using a TESR

    Blocks can have more than one render layer. Have you tried TheGreyGhost’s solution?

  3. 51 minutes ago, Paul L said:

    I don't think it is possible the mod source code as far as I know doesn't include the code for player controls that would be very cool though and I would be interested to see it if someone else knows more.

    It is definitely possible, but I haven't seen any mod that does what OP suggested.

  4. AFAIK that acts as a storage (cache?) for skins you see in-game. They are skins of other players you see on multiplayer.

    I'm not sure why the game doesn't clear the folder periodically (it might do so, but not very often).

  5. 1 hour ago, TowerMX said:

    ItemStack item_stack = new ItemStack(item_var);

    You cannot do that statically (well not exactly static, but the block is constructed way before the correct time to do this). The item isn't initialized at that time, and the object holder is still null. You probably don't want it to be singletons anyways.

    Create a new stack and give it to the player inside onBlockActivated.

     

    You are also adding to the player's inventory on both sides, while it should only be done on the server. Use World#isRemote (returns false on server and true on client) to check if you are on the server side.

  6. 1 hour ago, AlierrisBrisingr said:

    But I would need some advice on why minecraft doesn't work

    To conclude your issue: stop downloading from repost sites like Minecraft-France.

    Only download your mods from CurseForge or an official page.

    In this case, TrashSlot is causing the problem. Remove your copy of it and download the latest version from CurseForge.

  7. 1 hour ago, DeDxYk594 said:

    @SubscribeEvent

    public void onBlockHarvested(BlockEvent.BreakEvent event)

    { IWorld world=event.getWorld();

    world.setBlockState(event.getPos(),new BlockState(new Stump(),new ImmutableMap<String,String>()));

    }

    You are also setting the block on both sides. Interactions like block placement should only happen on the server side.

  8. 1 hour ago, judeflear said:

    I have used the JVM arguments method and it still doesnt work

    This crash have nothing to do with JVM arguments whatsoever. Please don't blindly follow these random "solutions to crash" on YouTube/Reddit/etc, as each crash has a specific cause, and blindly changing stuff might result in bigger problems.

     

    1.12.2 is no longer supported on these forum due to its age.

    Please update to a modern version of Minecraft to receive support.

  9. 19 hours ago, Ugdhar said:

    Just for the record, I never said that, you shouldn't quote things people didn't actually post/say.

    I think OP is trying to quote something you said and reply to that, but accidentally replaced the quote instead of appending to the end of the post. I've seen quite a few people do that due to unfamiliarity with the forum software. @Jesus Christ Please be careful in the future, as misquoting someone can lead to serious confusion.

     

    In addition, debug.log include everything in other logs with an addition of messages logged at debug level. debug.log is the most optimal log to post when asking for help.

  10. 2 minutes ago, Zanexm said:

    Um is there a way to do this without admin rights

    I don't think so.

    If I recall correctly installations like Java would need administrator. You should contact the administrator for your computer.

×
×
  • Create New...

Important Information

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