EntityOnView

Plugin

This plugin tries to optimize user experience with naturally spawned entities by restricting where an entity can spawn. Only entities that (can be seen)/seen by a player will be spawned. You can think of it as entity culling but in serverside.

Server AdventureGame MechanicsManagement MobsOptimizationTechnologyUtility

116 downloads
4 followers
Created9 months ago
Updated9 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

This plugin tries to optimize user experience with naturally spawned entities by restricting where an entity can spawn. Only entities that (can be seen)/seen by a player will be spawned.

Scructure entities are not included because it is not considered natural but chunk generated entities. As an example config: When a player is on surface, you can prevent hostile mobs spawning in caves, this will lead up to spawning them on surface and further optimizing experience of player. This also requires the change of maximum light level option to 15.

config.yml

# Enable debug logging.
debug: false

# This sets the radius for checking players around the spawn location. The maximum value for this parameter is 128.
radius: 64
yDistanceLimit: 64
traceClosestPlayerLimit: 2

inSight: false

# Determines whether to use Paper's preCreatureSpawnEvent. It is not recommended to use this option in conjunction with transparency enabled if you have a large player base (more than 12 players).
usePaperPreCreatureSpawnEvent: true

# List of entity types for which to cancel spawn events.
cancelSpawn:
  - ZOMBIE
  - SKELETON
  - CREEPER
  - SPIDER

# Determines whether to use blocks in sight to filter out non-visible entities. HEAVY.
raytracing:
  enabled: false
  # List of transparent materials that can be considered for entity visibility checks. See https://minecraft.fandom.com/wiki/Opacity for more information.
  ignoreBlocks:
    - AIR
    - CAVE_AIR
    - VOID_AIR
    - WATER
    - TRIPWIRE
    - TRIPWIRE_HOOK
    - GLASS
    - WHITE_STAINED_GLASS
    - WHITE_STAINED_GLASS_PANE
    - RED_STAINED_GLASS
    - RED_STAINED_GLASS_PANE
    - ORANGE_STAINED_GLASS
    - ORANGE_STAINED_GLASS_PANE
    - PINK_STAINED_GLASS
    - PINK_STAINED_GLASS_PANE
    - YELLOW_STAINED_GLASS
    - YELLOW_STAINED_GLASS_PANE
    - LIME_STAINED_GLASS
    - LIME_STAINED_GLASS_PANE
    - GREEN_STAINED_GLASS
    - GREEN_STAINED_GLASS_PANE
    - LIGHT_BLUE_STAINED_GLASS
    - LIGHT_BLUE_STAINED_GLASS_PANE
    - CYAN_STAINED_GLASS
    - CYAN_STAINED_GLASS_PANE
    - BLUE_STAINED_GLASS
    - BLUE_STAINED_GLASS_PANE
    - MAGENTA_STAINED_GLASS
    - MAGENTA_STAINED_GLASS_PANE
    - PURPLE_STAINED_GLASS
    - PURPLE_STAINED_GLASS_PANE
    - BROWN_STAINED_GLASS
    - BROWN_STAINED_GLASS_PANE
    - GRAY_STAINED_GLASS
    - GRAY_STAINED_GLASS_PANE
    - LIGHT_GRAY_STAINED_GLASS
    - LIGHT_GRAY_STAINED_GLASS_PANE
    - BLACK_STAINED_GLASS
    - BLACK_STAINED_GLASS_PANE
    - TORCH
    - REDSTONE_TORCH
    - REDSTONE_WIRE
    - CAVE_VINES
    - CAVE_VINES_PLANT
    - TWISTING_VINES
    - TWISTING_VINES_PLANT
    - VINE
    - WEEPING_VINES
    - WEEPING_VINES_PLANT
    - SUGAR_CANE
    - GRASS_BLOCK
    - GRASS

Project members

h14turkiye

Owner


Technical information

License
GPL-3.0-only
Project ID