main/Config

Configuration



The maximum distance (in blocks) away from a mob a player can be while still hearing it
maximumDistance: 16

The how often (in ticks) to check mobs for random speech
randomTicks: 600

(0-1) 0 means never do, 1 means always do
threshold:
born: 0.5
random: 0.08
interact: 0.3
attack: 0.1
attacked: 0.05
killed: 0.1
summoned: 0.6
breed: 0.4
babyattacked: 0.3

A general mob layout looks like this:

(Name of the Mob):
name: "&cCreeper" (The mob's name will appear as 'Creeper' in chat (in red))
summoned:
- "I have been summoned!" (Message displayed when the Mob spawns)
- "You dare summon me!?" (Another possible message that can be displayed)
random:
- "Blah blah I am walking around" (Message displayed at random)
interact:
- "Why hello there." (Message displayed when a player right-clicks on the Mob)
attacked:
- "&dLet's brawl!" (Message displayed at random during combat(this one is pink))
killed:
- "Noooo..." (Message displayed when Mob dies)
playerdeath:
- "HAHA!! %player% died!" (Message displayed when a player dies near a Mob)

Every mob will be able to use the above messages. Certain messages only work for some mobs. Here are a list of them:

born:
- "Hello world!!" (Only works with Baby Mobs and is displayed upon birth.
babyattacked:
- "Hey, that's my child!" (Only works with Breedable, non-baby Mobs. Message displayed upon attacking the Baby of a parent Mob.)
attack:
- "I'm gonna rip you apart!" (Only works with Mobs that are naturally hostile, or can become hostile.)
breed:
- "Hey, getting it on here! A little privacy, please?!" (Only works with Breedable, non-baby Mobs. Message displayed upon breeding.
split:
- "Go, my children!!" (Only works with slime, occurs when a slime splits into multiple smaller slimes.)
doorbreak:
- "Let me iiiiinnn!" (Only works on zombies/similar mobs, occurs when an entity tries to break a door)
charge:
- "I can feel the POWER!!!" (Only works on creepers, occurs when a creeper gets hit by lightning .)
zap:
- "OINK!? What happened?!" (Only works with pigs, occurs when a pig gets hit by lightning.)
dye:
- "I'm all pretty!!!" (Only works with sheep, occurs when a player interacts with a sheep while holding a dye.)
caught:
- "Please don't eat me!!" (Only works with fish, occurs when a player catches a fish.)
leash:
- "Don't tie me up!" (Only works with Mobs that can be leashed.)
unleash:
- "I'm free!!!" (Only works with Mobs that can be leashed.)
tame:
- "I love you, %player%!" (Only works with Mobs that are tamable.)


*Important*


- This is YAML (Yet Another Markup Language), therefore you need to make sure that your finished config file has no tab characters (only spaces and new line characters can be parsed)!

- Colours can be added to messages in the standard Bukkit format ('&' followed by the corresponding colour character).

- The receiving player's name can be added to messages using '%player%'.



Comments

Posts Quoted:
Reply
Clear All Quotes