Installation & Configuration/Effects

Effects - How to make your own effects!

This is the structure of an effect:

effects:
    <a-name-of-your-choice>
        type: <the-effect-type>
        args:
        - <an-argument-name>: <an-argument-value>
        - ...
        target:
            type: <the-type-of-the-target>
            args:
            - <an-argument-for-the-target>: <an-value-for-that-argument>
            - ...

Available effect types with arguments:

EffectDescriptionArguments
BurnSets an entity on fireduration(in ticks): how long the entity should be on fire
BreakBreaks a blockpotency: how hard to break->all blocks with an lower hardness than this value will break
ExplosionCreates an explosionsize: how big the explosion should be
LightningStrikes a lightning- - - -
MoveMoves an entityspeed: how fast to move; direction: where to move
ParticleSpaws a particletype: what particle to spawn; amount: how many; gravity: how fast the fall down; max-age: after what time they will despawn; scale: how big is the radius where the particles spawn
PlacePlaces a blockblock: the block id or name to place
PotionApply a potion effect on an entityid: the potion id; duration(in ticks): how long this effect will work; strength: how hard the effect will work
SpawnSpawns an entityentity: the entity name to spawn

Available target types with arguments:

TargetDescriptionArguments
TargetlocationThe location of the targetradius(in blocks): gets all blocks in a sphere of this radius and performs the effect on them
ShooterlocationThe location of the shooterradius(in blocks): gets all blocks in a sphere of this radius and performs the effect on them
TargetentityThe target- - - -
ShooterThe shooter- - - -
FlightpathA flightpath between shooter and targetlength(in blocks): how long the flightpath should be

Examples:

effects:
    burn_effect:
        type: burn
        args:
        - duration: 1200 (=1 minute)
        target:
            type: targetentity
    I-will_explode_you-all:
        type: explosion
        args:
        - size: 5
        target:
            type: flightpath
            args:
            - length: 30
    spawnsomeflames:
        type: particle
        args:
        - type: flame
        - amount: 11
        - gravity: 0
        - max-age: 100
        - scale: 4
        target:
            type: targetlocation
    obsidianbreaker:
        type: break
        args:
        - potency: 51
        target:
            type: targetlocation

Resources:
Available particle types:

  • bubble
  • cloud
  • crit
  • depthsuspend
  • driplava
  • dripwater
  • enchantmenttable
  • explode
  • flame
  • footstep
  • heart
  • largesmoke
  • lava
  • magiccrit
  • mobspell
  • note
  • portal
  • reddust
  • slime
  • smoke
  • snowballpoof
  • snowshovel
  • spell
  • splash
  • suspended
  • townaura

Available direction types (for move effect):

  • push
  • draw
  • launch
  • random

Available entities:

  • chicken
  • cow
  • creeper
  • ghast
  • giant
  • pig
  • pig_zombie
  • sheep
  • skeleton
  • slime
  • spider
  • squid
  • zombie
  • wolf
  • cave_spider
  • enderman
  • silverfish
  • villager
  • blaze
  • mushroom_cow
  • magma_cube
  • snowman
  • ender_dragon
  • boat
  • minecart
  • experienceorb
  • arrow

Available potion ids can be found here: http://www.minecraftwiki.net/wiki/Potion_effects


Comments

Posts Quoted:
Reply
Clear All Quotes