Creeper Egg Launch 1.0

Allows you to shoot a Creeper spawn egg

  1. Strahan
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/Strahan201/CreeperEggLaunch
    Built and tested on 1.16, but should really work on most versions.

    Commands

    CREEPEGG
    charged ignited radius:# health:# fuse:#
    creeperegglaunch.creepegg

    Creates the special spawn egg. Pass no args and it makes a generic one with no special effects.

    Arguments:
    charged

    creeperegglaunch.options.charged
    Spawns the creeper as a charged creeper

    ignited

    creeperegglaunch.options.ignited
    Spawns the creeper with its fuse lit already

    radius:#
    creeperegglaunch.options.radius
    Sets the explosion radius

    health:#
    creeperegglaunch.options.health
    Sets the creeper's health value

    fuse:#
    creeperegglaunch.options.fuse
    Sets the time, in ticks, that the fuse will last before detonation​

    CREEPEGGCFG velocity #
    creeperegglaunch.admin.velocity

    Sets the velocity multiplier for the snowball's vector. Leave 1 for standard snowball, or raise it as desired to make the snowball fly faster

    CREEPEGGCFG loretitle #
    creeperegglaunch.admin.loretitle

    Sets the first line of the lore that will apply to the special egg.

    Localization

    I made it so language support other than English would not be difficult. Just edit the config file and you'll see the messages section has the messages that get sent when you use the commands. The localization section has entries for each argument of the main command so you can adjust what the arg names are, so you could change from /creepegg charged to like /creepegg cargada if you so wish. The lore part of localization is what will show in the egg's lore for the feature. Be aware though that if you change the lore settings after the plugin has been in use, eggs created with the old values will no longer function properly. Same with lore title. The plugin looks for the lore title to know it's a special egg, so if you change the title old eggs won't be detected.

    In retrospect, I probably should have tried seeing if I could apply the settings to the spawned item with tags or the persistent data container. I'll do that for version 2 ;)