Recent content by creamgod45

  1. C

    Question try createBlockData got java.lang.NullPointerException: null

    ItemDisplay itemDisplay = world.spawn(location, ItemDisplay.class, entity -> { entity.setItemStack(new ItemStack(Material.END_CRYSTAL)); }); int duration = 5 * 20; // duration of half a revolution (5 * 20 ticks = 5 seconds) Matrix4f mat = new Matrix4f().scale(0.5F); // scale to 0.5x -...
  2. C

    Question try createBlockData got java.lang.NullPointerException: null

    So do I need to try using ItemDisplay.class? Thanks
  3. C

    Question try createBlockData got java.lang.NullPointerException: null

    Server Version: paper-1.21.1-130.jar , paper-1.21.1-128.jar JDK: 21 I have tried three ways to create it but none of them worked and the error message shown in the picture appeared. Does anyone have a better way? error log World world = player.getWorld(); Location location =...