Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 775 Bytes

File metadata and controls

43 lines (32 loc) · 775 Bytes

DevCore Packet

[English] | [日本語]

DSL for handling fake entities and packets using PacketEvents.

Features

  • Easy-to-use DSL for spawning fake entities
  • Support for fake block changes
  • Integration with PacketEvents for high-performance packet handling

Install (Gradle Kotlin DSL)

dependencies {
  implementation("com.peco2282.devcore:packet:<version>")
}

Usage

Fake Entity DSL

player.sendFakeVisuals {
  spawnEntity(EntityType.ZOMBIE, location) {
    customName = "Fake Boss"
    isGlowing = true
    equipment {
      helmet = ItemStack(Material.GOLDEN_HELMET)
    }
  }
}

Fake Blocks

player.sendFakeVisuals {
  setFakeBlock(location.add(0.0, 1.0, 0.0), Material.DIAMOND_BLOCK)
}