Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Hall of Fame: Ranzear (Aug 18, 2011)

KoryuObihiro edited this page Aug 19, 2011 · 3 revisions

Originally found here, posted by Ranzear:

Aliases:
    Item:
        pickaxe:
        - WOOD_PICKAXE
        - STONE_PICKAXE
        - IRON_PICKAXE
        - GOLD_PICKAXE
        - DIAMOND_PICKAXE
        spade:
        - WOOD_SPADE
        - STONE_SPADE
        - IRON_SPADE
        - GOLD_SPADE
        - DIAMOND_SPADE
        hoe:
        - WOOD_HOE
        - STONE_HOE
        - IRON_HOE
        - GOLD_HOE
        - DIAMOND_HOE
        axe:
        - WOOD_AXE
        - STONE_AXE
        - IRON_AXE
        - GOLD_AXE
        - DIAMOND_AXE
        sword:
        - WOOD_SWORD
        - STONE_SWORD
        - IRON_SWORD
        - GOLD_SWORD
        - DIAMOND_SWORD
        other:
        - '!AIR'
Damage:
    - 'switch.attacker.type':
        mob:
            - 'if Attacker.Y.lessthan.42':
                - '2'
            - 'if target.wearing.GOLD_CHESTPLATE':
                - 'if binom.60':
                    - 'attackereffect.setfireticks':
                        - '60'
            - 'if target.wearing.IRON_CHESTPLATE':
                - '-2'
            - 'if target.wearing.LEATHER_CHESTPLATE':
                - 'if binom.20':
                    - 'set.0'
            - 'if target.wearing.DIAMOND_CHESTPLATE':
                - 'attackereffect.Hurt': '3'
        NPC:
            - 'if Attacker.Y.lessthan.42':
                - '2'
            - 'if target.wearing.GOLD_CHESTPLATE':
                - 'if binom.60':
                    - 'attackereffect.setfireticks':
                        - '60'
            - 'if target.wearing.IRON_CHESTPLATE':
                - '-2'
            - 'if target.wearing.LEATHER_CHESTPLATE':
                - 'if binom.20':
                    - 'set.0'
            - 'if target.wearing.DIAMOND_CHESTPLATE':
                - 'attackereffect.Hurt': '3'
        Player:
            - '-5'
            - 'if attacker.wielding.AIR':
                - '4'
                - 'roll.4'
                - 'if target.type.ZombiePigman':
                    - '-3'
                    - 'roll.2'
                - 'if target.type.Zombie':
                    - '-2'
                    - 'roll.2'
                - 'if target.type.Skeleton':
                    - '1'
                    - 'roll.2'
            - 'if attacker.wielding._sword':
                - '4'
                - 'roll.4'
                - 'if target.type.ZombiePigman':
                    - '3'
                    - 'roll.2'
                - 'if target.type.Zombie':
                    - '3'
                    - 'roll.2'
                - 'if target.type.Skeleton':
                    - '-6'
                    - 'roll.2'
            - 'if attacker.wielding._axe':
                - '3'
                - 'roll.4'
                - 'if target.type.ZombiePigman':
                    - '-5'
                    - 'roll.2'
                - 'if target.type.Zombie':
                    - '-4'
                    - 'roll.2'
                - 'if target.type.Skeleton':
                    - '3'
                    - 'roll.2'
            - 'if attacker.wielding.BOW':
                - '-2'
                - 'roll.4'
                - 'if target.type.ZombiePigman':
                    - '-1'
                    - 'roll.2'
                - 'if target.type.Zombie':
                    - '-1'
                    - 'roll.2'
                - 'if target.type.Skeleton':
                    - '-4'
                    - 'roll.2'
            - 'if Target.Y.lessthan.42':
                - '-2'
            - 'if target.wearing.GOLD_CHESTPLATE':
                - 'if binom.60':
                    - 'attackereffect.setfireticks':
                        - '60'
            - 'if target.wearing.IRON_CHESTPLATE':
                - '-2'
            - 'if target.wearing.LEATHER_CHESTPLATE':
                - 'if binom.20':
                    - 'set.0'
            - 'if target.wearing.DIAMOND_CHESTPLATE':
                - 'attackereffect.Hurt': '3'
            - 'if attacker.wielding._pickaxe':
                - '3'
                - 'roll.2'
                - 'if target.type.Skeleton':
                    - '-2'
                    - 'roll.2'
            - 'if attacker.wielding._spade':
                - '2'
            - 'if attacker.wielding._hoe':
                - '1'
            - 'if attacker.wielding.DIAMOND_AXE':
                - 'if binom.40':
                    - 'roll.12'
            - 'if attacker.wielding.GOLD_AXE':
                - 'if binom.50':
                    - 'targeteffect.explode': '1'
            - 'if attacker.wielding.DIAMOND_SWORD':
                - 'if binom.30':
                    - 'roll.8'
            - 'if attacker.wielding.GOLD_SWORD':
                - 'if binom.75':
                    - 'targeteffect.setfireticks':
                        - '60'
        animal:
            - 'if Attacker.Y.lessthan.40':
                - '2'
            - 'if target.wearing.GOLD_CHESTPLATE':
                - 'if binom.60':
                    - 'attackereffect.setfireticks':
                        - '60'
            - 'if target.wearing.IRON_CHESTPLATE':
                - '-2'
            - 'if target.wearing.LEATHER_CHESTPLATE':
                - 'if binom.20':
                    - 'set.0'
            - 'if target.wearing.DIAMOND_CHESTPLATE':
                - 'attackereffect.Hurt': '3'
        lightning:
            - '-2'
            - 'roll.6'
        lava:
            - '2'
            - 'if target.wearing.DIAMOND_BOOTS':
                - '-4'
            - 'if target.wearing.GOLD_BOOTS':
                - '-6'
            - 'if target.wearing.IRON_BOOTS':
                - '-2'
            - 'if target.wearing.LEATHER_BOOTS':
                - '-1'
        explosion:
            - 'if target.wearing.DIAMOND_HELMET':
                - 'div.2'
                - '-3'
            - 'if target.wearing.GOLD_HELMET':
                - 'div.2'
                - '-4'
            - 'if target.wearing.IRON_HELMET':
                - 'div.2'
                - '-2'
            - 'if target.wearing.LEATHER_HELMET':
                - 'div.2'
        fall:
            - 'if target.wearing.DIAMOND_BOOTS':
                - '-2'
            - 'if target.wearing.GOLD_BOOTS':
                - '-6'
            - 'if target.wearing.IRON_BOOTS':
                - '-1'
            - 'if target.wearing.LEATHER_BOOTS':
                - '-3'
        void:
            - 'set.20'
        burn:
            - 'if target.wearing.DIAMOND_LEGGINGS':
                - '-3'
            - 'if target.wearing.GOLD_LEGGINGS':
                - '-5'
            - 'if target.wearing.IRON_LEGGINGS':
                - '-2'
            - 'if target.wearing.LEATHER_LEGGINGS':
                - '-1'
            - '2'
        fire:
            - 'if target.wearing.DIAMOND_BOOTS':
                - '-4'
            - 'if target.wearing.GOLD_BOOTS':
                - '-6'
            - 'if target.wearing.IRON_BOOTS':
                - '-2'
            - 'if target.wearing.LEATHER_BOOTS':
                - '-1'
            - '2'
        drowning:
            - '3'
            - 'targeteffect.addairticks': '40'
        cactus:
            - '-2'
            - 'roll.3'
        ZombiePigman:
            - '2'
            - 'roll.6'
            - 'if event.environment.NETHER': '2'
        Creeper_Normal:
            - 'if target.wearing.DIAMOND_HELMET':
                - 'div.2'
                - '-3'
            - 'if target.wearing.GOLD_HELMET':
                - 'div.2'
                - '-4'
            - 'if target.wearing.IRON_HELMET':
                - 'div.2'
                - '-2'
            - 'if target.wearing.LEATHER_HELMET':
                - 'div.2'
        Creeper_Charged:
            - 'targeteffect.explode': '2'
            - 'if target.wearing.DIAMOND_HELMET':
                - 'div.2'
                - '-3'
            - 'if target.wearing.GOLD_HELMET':
                - 'div.2'
                - '-4'
            - 'if target.wearing.IRON_HELMET':
                - 'div.2'
                - '-2'
            - 'if target.wearing.LEATHER_HELMET':
                - 'div.2'
        Spider:
            - '-3'
            - 'roll.5'
        Giant:
            - 'roll.4'
        Zombie:
            - '2'
            - 'roll.2'
        Slime:
            - 'roll.8'
            - 'if event.value.greaterthan.7':
                - 'attackereffect.setsize': '8'
            - '-4'
        Skeleton:
            - '-1'
            - 'roll.4'
        Ghast:
            - '2'
        Wolf_Wild:
            - '-2'
            - 'roll.4'
            - 'if event.environment.NETHER':
                - 'targeteffect.setfireticks':
                    - '40'
        Wolf_Tame:
            - '-2'
            - 'roll.4'
    - 'if target.type.Spider':
        'if attacker.wielding.AIR':
            - 'attackereffect.Hurt': '1'
    - 'if target.type.Player':
        - 'if event.value.lessthanequals.0':
            - 'set.1'
            - 'if attacker.type.player':
                - 'set.0'
    # mob:
    # armor:
    # ranged:
    # humans:
    # melee:
    # animal:
    # Creeper:
    # Spider:
    # Giant:
    # Slime:
    # Ghast:
    # snowball:
    # bow:
    # egg:
    # fireball:
    # other:
    # pickaxe:
    # AIR:
    # spade:
    # hoe:
    # axe:
    # sword:
# animal:
    # Chicken:
    # Sheep:
    # Pig:
    # Squid:
    # Wolf:
    # Cow:
Death:
Food:
debugging: normal
Spawn:
    - 'switch.target.type':
        # Creeper:
        # Chicken:
        # Sheep:
        # Giant:
        # Slime:
        ZombiePigman:
            - 'range.32.36'
        Spider:
            - 'range.10.14'
        # Pig:
        # Squid:
        Wolf:
            - 'range.10.14'
        Zombie:
            - 'range.28.32'
        Cow:
            - '2'
        # Ghast:
        Skeleton:
            - 'range.7.9'

Ranzear tells about his config like so:

At the very least it demonstrates the methods I've found to get the behavior I want (Such as 'if a player takes damage, but it is reduced to zero or less, hit them for 1 damage anyway').

Other neatness to note: Holding any item disables hitting things for damage. This is to encourage people leveling and making use of the mcmmo hand-to-hand skill as much as to catch people off guard with their hands full. It took me forever to figure out to use 'AIR' as an item for an empty hand.

Punching Spiders with your bare fists just gets you bitten.

Drowning happens in bigger hits but spaced longer apart by giving the player some air ticks back, so you take 1 1/2 hearts every 3 seconds or so instead of 1/2 heart every second.

Helmets give explosive protection, boots give fire/lava exposure and fall damage protection, leggings give fire tick damage reduction, and bodies have a special effect that I may extend to each set as a theme with an extra bonus to that effect if wearing the whole set.

Gold items have a fire affinity. Gold Chestplate sets attackers on fire while Gold Swords set their target on fire. Gold Axes just make things explode (which is surprisingly damaging to the target but the explosion is so small as to not hurt the attacker).

Diamond set will reflect damage.

Iron set reduces damage from all sources (but, per the function noted, you should always take at least half a heart from any source).

Leather Set will give a straight chance to dodge any damage source.

Clone this wiki locally