Skip to content
#

minecraft-server

Here are 1,093 public repositories matching this topic...

cksmith51
cksmith51 commented Jun 19, 2021

Expected behavior

I melee a TNT Minecart with a knockback 2 sword and expect my message listening on EntityKnockbackByEntityEvent to print out the EntityTypes of both #.getEntityType() and #.getHitBy().getEntityType(). (The event should trigger properly.)

Observed/Actual behavior

No message is printed out because hitting a TNT Minecart (or regular minecart) does not trigger EntityKnockb

caelunshun
caelunshun commented Mar 2, 2021

Implement entity physics: gravity and collisions with blocks.

The basic algorithm for Minecraft entity physics is, each tick, to:

  1. Add velocity to position.
  2. For each axis (X/Y/Z) individually, check for collisions between the entity's bounding box and blocks. If there are any, clamp the entity's position to the edge of the block. There are some useful details on collision detection [here
Minestom
kezz
kezz commented Apr 23, 2021

The UpdateOption class is essentially a worse version of the Duration class with fewer features and the inability to use it throughout other APIs.

The UpdateOption class should be deprecated and replaced with the Duration class. The same goes for the TimeUnit class which should be using Java's ChronoUnit class and potentially the tick class introduced in #205.

Improve this page

Add a description, image, and links to the minecraft-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the minecraft-server topic, visit your repo's landing page and select "manage topics."

Learn more