Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by larsgerrits

  1. On 9/18/2019 at 7:34 PM, Tryhard said:

    private World world;

    private PlayerEntity player;

    public BlockPos lookingAt;

    You can't store variables like this in your Item. They are singletons and the data would be shared between all items of that type.


    Assuming you want to spawn a lightning bolt when the user uses your item (i.e. right clicks the item), override the Item#onItemRightClick method.


    You don't need any of the events.


    5 hours ago, Tryhard said:

    woow so useful this forum

    And definitely don't do this. We are spending our free time here (which we don't have a lot of) to help people. Saying this makes you sound like an entitled piece of ****.

  2. 53 minutes ago, Daring Do said:

    This place is full of pretentious people (not everyone, but there are quite a few), so I generally avoid here if I can.

    Calling people pretentious will make sure they won't help you.


    You should have more patience. Everybody on this forum does this in their own free time, without getting paid for anything.

    Minecraft has hard-coded limits for moving too fast. You can't get around this as far as I know.

  3. 1 hour ago, DavidM said:
    9 hours ago, Blue_Atlas said:

    public int getField(int id) { switch(id) { case 0: return this.burnTime; case 1: return this.currentBurnTime; case 2: return this.cookTime; case 3: return this.totalCookTime; default: return 0; } } public void setField(int id, int value) { switch(id) { case 0: this.burnTime = value; break; case 1: this.currentBurnTime = value; break; case 2: this.cookTime = value; break; case 3: this.totalCookTime = value; } }


    That's a copy of the vanilla furnace. Yes, this is how things are done in vanilla.


    1 hour ago, DavidM said:

    Use World#getStateAtPos and IBlockState#getBlock (cannot remember the exact name) or something.

    World#getBlockState and IBlockState#getBlock.

    • Like 1
  4. 18 hours ago, JackMeds said:

    Keep the single core operation mode of the vanilla MC,run the remaining X mods on each core of the Y core computer according to the X/Y-1 formula.

    This is never going to be possible with Minecraft. Or any other game probably.


    Minecraft itself is constantly being updated to be more efficient and in the 1.13 update world generation got its own thread.

    The mod launcher has also been rewritten from scratch to allow parallel mod loading which significantly increase loading times.


    But what you are suggesting is not going to be possible.

  • Create New...

Important Information

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