Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by DavidM

  1. 9 hours ago, AlexInCube said:

    this.world.notifyBlockUpdate(this.pos, state, state, 3);

    You are still doing this. Don't do this on the client, as it does nothing (well it might do something, but definitely not what you are expecting).

     

    Only send a packet to update your tile entity if the angle changes. Don't do it every tick.

    If the angle is not unpredictable and only change as part of an animation, send a packet to the client when the animation starts and handle the animation on the client side.

  2.     @Override
        public void onDataPacket(NetworkManager net, SUpdateTileEntityPacket pkt) {
            super.onDataPacket(net, pkt);
            readFromNBT(pkt.getNbtCompound());
    
            BlockState state = this.world.getBlockState(this.pos);
            this.world.notifyBlockUpdate(this.pos, state, state, 3);
        }

    World#notifyBlockUpdate is used to notify a block update, not actually update the block on the client side. All you have to do is to read data packet in onDataPacket.

  3. 46 minutes ago, Boy132 said:

    This should work:

    
    @Override
    public boolean hasContainerItem()
    {
      return true;
    }
    
    @Override
    public ItemStack getContainerItem(ItemStack itemStack)
    {
      ItemStack stack = itemStack.copy();
      if(stack.attemptDamageItem(1, random, null))
      {
        stack.shrink(1);
        stack.setDamage(0);
      }
      return stack;
    }

     

     

    EDIT: And of course set the max damage in your item's properties. (maxDamage)

    Please don’t post copy-pasta code like this in the future. Others will just copy it without learning anything.

  4. I understand that people might want to remove Forge for whatever reason, but deleting the launcher has nothing to do with Forge. Doing so would delete the Launcher of Minecraft, not Forge.

    Forge versions are located under the versions folder under your game directory.

  5. 50 minutes ago, ImpoliteSand868 said:

    I've actually just started using it. I mean, its not much for "The best Minecraft mod maker" - MCreator.

    But it is accessible, and easy to use, they just really need to add a lot more features to it. Like the ability to make custom player model gui's but hey, at least now I got 100+ blocks I didn't need. 

    It is not a feature-related problem. If you learn programming in the future, you will realize why creating mods with MCreator (and mod makers in general) is a bad idea.

    The reasons of this has been repeated at least 100 times on this forum. Do a forum search if you are interested in finding out why.

  6. 18 hours ago, Harry12OK said:

    But IItemTier is an interface.It isn't a class.How am i supposed to pass an instance of it.I could only implement it.

     

    Sorry if i asked some foolish thing,i just have knowledge of basic core java.

    An instance of a class implementing IItemTier is also an instance of IItemTier.

    In terms of class hierarchy as OOP concept, class and interface are treated the same way. Phrases such as “instance of” and “superclass of” apply to both classes and interfaces.

    • Thanks 2
  7. 16 minutes ago, ImpoliteSand868 said:

    It seems to work a little better for me if i don't run any other apps.

    That's good. However such effect varies heavily on setup may not happen on all devices. USB RAM is always significantly slower than normal.

     

    16 minutes ago, ImpoliteSand868 said:

    Also DavidM, do you know any apps or good youtube to tutorials on updating old mods from 1.13? I've seen some but they aren't for the mod I talked about in my last forum post, just throwing this in.

    I wouldn't recommend any YouTube videos on the topic. Your best bet is to learn modding and update them yourself (make sure to contact the author for permission).

  8. 18 minutes ago, ImpoliteSand868 said:

    ok, but would it increase my pc's overall performance? I heard to do this Windows's readyboost is a good option, and it makes me able to allocate more ram to minecraft.

    It probably won’t.

    From a system’s perspective, RAM is used as runtime memory storage mainly due to its high speed compared to disk. Turning disk storage into VRAM defies this purpose. Yes, doing this will allow you to load large resource packs that was previously too large for your allocated memory, but expect the FPS to drop by 4-5 times even when not using resource packs (given that your game actually applies the extra “memory”).

     

    Unless you are doing stuff like data science, and want to, say, load larger batches of data at a time, then there is no point in using USB as RAM.

  9. 3 hours ago, kornfan6589 said:

    That is easier said than done; i have tried it without a few specific mods as they are the only ones i suspect could cause this issue. Namely "The Midnight, Nether Portal Fix, and Progressive Bosses". if i remove all the mods i doubt the server will start without a fresh world file. which kind of defeats the purpose of the test. I can try to remove others individually to see if it is in fact a particular mod causing the issue but im not aware of any of them modifying the way a player would teleport to the end. I do know, that recently the way player teleportation to the end is handled has changed; and im wondering if using older versions of forge, before the change to iteleport, and then upgrading your server to the newer version of forge, is causing this issue. Previously this server was running with forge 31.1.37 and was updated to 31.1.46. The end portal was not an issue before but it appears to be now.

    The problem might be caused by other mods. If you haven’t tested this without mods then there is nothing much Forge can do.

  10. If you are just looking for a way to AFK in Hypixel SkyBlock (as indicated by the picture) then there are mods out there that disables the client rendering at all (even the window itself).

    However, If you want to make a general mod for disabling parts of the rendering, you need to use reflection to change certain aspects like the WorldRenderer (as TGG mentioned above), or unbind renderers from TEs if you want to disable TESRs from rendering while keeping world rendering the same. You might want to check out https://github.com/davidmaamoaix/StopRender (the code is for 1.12.2, but the concept haven’t change much).

×
×
  • Create New...

Important Information

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