[FUN/MECH] Offering v1.4 - Let players create altars that let them do cool stuff [1000]

Discussion in 'Inactive/Unsupported Plugins' started by islendingabok_team, Aug 10, 2011.

?

Is the plugin explanation too confusing?

  1. Yes

    60 vote(s)
    60.6%
  2. No

    39 vote(s)
    39.4%
  1. [FUN/MECH] Offering v1.4 - Let players create altars that let them do cool stuff [1000]

    [gunpowder][fire][diamondblock][fire][gunpowder]

    THIS PLUGIN HAS BEEN MOVED TO BUKKIT DEV:
    http://dev.bukkit.org/server-mods/offering/

    Overview:
    Offering is a plugin that allows players on your server to create single-block altars to which offerings can be presented (clicking on the altar with a certain item in hand) in order to obtain a reward. Rewards could be an instant teleport to certain coordinates or full health restored, although a wide range of rewards are currently possible. In addition, rewards, the material type of altar and offering blocks, and even the mouse button pressed (LEFT or RIGHT) can be customized by server admins by editing the plugin's config.yml file. On top of all of this, it is possible for users to input there own values, or variables, to an altar, such as inputing a set of coordinates to an altar for teleportation and to monitor which users can use which altars via Permissions.

    Video:
    The text description below can be quite confusing. I would only use it for reference and information about advanced uses of the plugin such as customization. For a basic intro, check this video:

    Note: this video was made using the first (and outdated) version of the plugin. More has been added since then.

    How It All Works:
    When a user left-clicks on an altar block with an offering, he or she will get the reward specified for the altar-offering combination in the config.yml file. For example, if the config.yml is set to the default, it will fully restore the health of users who left-click a gold block altar with a clay ball offering. A slightly more complex example is the default teleport offering. When a user left-clicks a golden altar with a slime-ball, he or she will be teleported to coordinates specified by signs placed on the blocks around the altar (the signs must be in the same y-plane as the altar block and adjacent to it). This type of user input is very useful, and can be regulated or replaced with static values by admins who edit the config.yml. Regardless, the syntax for an input sign is the variable name preceded by a dollar sign ($) on the second line, and the value desired by the user on the third line. For each variable in an altar, you need a separate sign. In the case of our example, the variables for the coordinates will be $x, $y, and $z, so there will be three signs. If the user wishes to be teleported to (x: 5, y: 80, z: 432), he or she would write:
    Show Spoiler

    Code:
     
    $x
    5
     
    
    on the first sign, and:
    Code:
     
    $y
    80
     
    
    on another sign, and:
    Code:
     
    $z
    432
     
    
    on a third sign. Although variables are slightly confusing, they are not necessary to this plugin, but just add a much more customizable and practical use to the altars.


    Editing the Config File:
    All of the data describing the types of altars and offerings that can be edited is stored in /plugins/Offering/config.yml. Your config file by default will look something like:
    Code:
    rewards:
        zeus:
            lightning: $x $y $z
        tp:
            tp: $x $y $z
        day:
            time: 0
        cookies:
            give: COOKIE 5
        fullheal:
            heal: 20
    altars:
        GOLD_BLOCK:
            gifts:
                DIAMOND_SWORD:
                    reward: zeus
                CAKE:
                    reward: cookies
                CLAY_BALL:
                    reward: fullheal
                WATCH:
                    amount: 3
                    reward: day
                SLIME_BALL:
                    reward: tp
    decay: true
    click-type: LEFT
    
    Editing above can be quite difficult if you don't understand it. It is perfectly alright to leave it to the default, only change it if you want something custom. You can leave comments below for help with this. Here is a brief explanation of what all the YAML means:
    Show Spoiler

    • Under altars, each item signifies a type of block that can act as an altar (eg. GOLD_BLOCK)
    • Under each type of altar block (like GOLD_BLOCK), there is a category gifts
    • In this gifts category go all the types of inventory items that can be counted as offerings to the altar (eg. SLIME_BALL)
    • Under each type of gift (like SLIME_BALL), there is a field reward, which specifies the type of reward that goes along with the offering at the altar
    • The amount field specifies the number of offerings (eg. SLIME_BALLs) needed
    • Under the rewards list, all the possible rewards (eg. fullheal) are defined (the same rewards referred to in the bullet above)
    • Under each reward (such as fullheal) attributes which represent reward-actions can be found (eg. heal: 20)
    • Each reward-action actually "does" something: admin-defined rewards can use one or more of them with arguments to create the desired reward
    • Each argument in a reward action is separated by a space after the colon (eg. COOKIE 5)
    • Values that are preceded by a dollar sign ($) (eg. $x) represent variables which are to be filled in by signs placed around the altar
    • Click-type specifies whether the left or right mouse should be counted as "clicking" on the altar
    • If decay is set to true, items will go away after being given to the altar

    Below is a list of the supported reward-actions (such as lightning, tp, and heal in the example above):
    Show Spoiler

    1. tp: [x] [y] [z] - teleports the player to the given location
    2. worldtp: [world name] [x] [y] [z] - teleports the player to the given location in the given world
    3. lightning: [x] [y] [z] - creates a lightning bolt that strikes the given location
    4. heal: [amount] - changes the player's health by the amount given
    5. weather: [rain/thunder/clear] - sets the weather to either sun or storm (not thoroughly tested yet)
    6. time: [o-24000] - sets the time to the specified time of day, 0 being sunrise
    7. give: [item name] [amount] - give the player a certain amount of an item
    8. spawnmob: [mob name] - spawns a mob of the specified type on top of the altar


    And here is a list of all the block names:

    Show Spoiler


    STONE
    GRASS
    DIRT
    COBBLESTONE
    WOOD
    SAPLING
    BEDROCK
    WATER
    STATIONARY_WATER
    LAVA
    STATIONARY_LAVA
    SAND
    GRAVEL
    GOLD_ORE
    IRON_ORE
    COAL_ORE
    LOG
    LEAVES
    SPONGE
    GLASS
    LAPIS_ORE
    LAPIS_BLOCK
    DISPENSER
    SANDSTONE
    NOTE_BLOCK
    BED_BLOCK
    POWERED_RAIL
    DETECTOR_RAIL
    PISTON_STICKY_BASE
    WEB
    LONG_GRASS
    DEAD_BUSH
    PISTON_BASE
    PISTON_EXTENSION
    WOOL
    PISTON_MOVING_PIECE
    YELLOW_FLOWER
    RED_ROSE
    BROWN_MUSHROOM
    RED_MUSHROOM
    GOLD_BLOCK
    IRON_BLOCK
    DOUBLE_STEP
    STEP
    BRICK
    TNT
    BOOKSHELF
    MOSSY_COBBLESTONE
    OBSIDIAN
    TORCH
    FIRE
    MOB_SPAWNER
    WOOD_STAIRS
    CHEST
    REDSTONE_WIRE
    DIAMOND_ORE
    DIAMOND_BLOCK
    WORKBENCH
    CROPS
    SOIL
    FURNACE
    BURNING_FURNACE
    SIGN_POST
    WOODEN_DOOR
    LADDER
    RAILS
    COBBLESTONE_STAIRS
    WALL_SIGN
    LEVER
    STONE_PLATE
    IRON_DOOR_BLOCK
    WOOD_PLATE
    REDSTONE_ORE
    GLOWING_REDSTONE_ORE
    REDSTONE_TORCH_OFF
    REDSTONE_TORCH_ON
    STONE_BUTTON
    SNOW
    ICE
    SNOW_BLOCK
    CACTUS
    CLAY
    SUGAR_CANE_BLOCK
    JUKEBOX
    FENCE
    PUMPKIN
    NETHERRACK
    SOUL_SAND
    GLOWSTONE
    PORTAL
    JACK_O_LANTERN
    CAKE_BLOCK
    DIODE_BLOCK_OFF
    DIODE_BLOCK_ON
    LOCKED_CHEST
    TRAP_DOOR
    IRON_SPADE
    IRON_PICKAXE
    IRON_AXE
    FLINT_AND_STEEL
    APPLE
    BOW
    ARROW
    COAL
    DIAMOND
    IRON_INGOT
    GOLD_INGOT
    IRON_SWORD
    WOOD_SWORD
    WOOD_SPADE
    WOOD_PICKAXE
    WOOD_AXE
    STONE_SWORD
    STONE_SPADE
    STONE_PICKAXE
    STONE_AXE
    DIAMOND_SWORD
    DIAMOND_SPADE
    DIAMOND_PICKAXE
    DIAMOND_AXE
    STICK
    BOWL
    MUSHROOM_SOUP
    GOLD_SWORD
    GOLD_SPADE
    GOLD_PICKAXE
    GOLD_AXE
    STRING
    FEATHER
    SULPHUR
    WOOD_HOE
    STONE_HOE
    IRON_HOE
    DIAMOND_HOE
    GOLD_HOE
    SEEDS
    WHEAT
    BREAD
    LEATHER_HELMET
    LEATHER_CHESTPLATE
    LEATHER_LEGGINGS
    LEATHER_BOOTS
    CHAINMAIL_HELMET
    CHAINMAIL_CHESTPLATE
    CHAINMAIL_LEGGINGS
    CHAINMAIL_BOOTS
    IRON_HELMET
    IRON_CHESTPLATE
    IRON_LEGGINGS
    IRON_BOOTS
    DIAMOND_HELMET
    DIAMOND_CHESTPLATE
    DIAMOND_LEGGINGS
    DIAMOND_BOOTS
    GOLD_HELMET
    GOLD_CHESTPLATE
    GOLD_LEGGINGS
    GOLD_BOOTS
    FLINT
    PORK
    GRILLED_PORK
    PAINTING
    GOLDEN_APPLE
    SIGN
    WOOD_DOOR
    BUCKET
    WATER_BUCKET
    LAVA_BUCKET
    MINECART
    SADDLE
    IRON_DOOR
    REDSTONE
    SNOW_BALL
    BOAT
    LEATHER
    MILK_BUCKET
    CLAY_BRICK
    CLAY_BALL
    SUGAR_CANE
    PAPER
    BOOK
    SLIME_BALL
    STORAGE_MINECART
    POWERED_MINECART
    EGG
    COMPASS
    FISHING_ROD
    WATCH
    GLOWSTONE_DUST
    RAW_FISH
    COOKED_FISH
    INK_SACK
    BONE
    SUGAR
    CAKE
    BED
    DIODE
    COOKIE
    MAP
    SHEARS
    GOLD_RECORD
    GREEN_RECORD



    Examples Config Fragments:
    Code:
    rewards:
        teleportToSpawn:
        #teleport a user to spawn
            tp: 0 80 0
            #assuming spawn is at (x:0, y:80, z:0)
    altars:
        IRON_BLOCK:
        #instead of gold
            COOKIE:
            #cookie is the offering
                reward: teleportToSpawn
                #link it up to the reward we made above
    
    More coming in the future. Feel free to post your own examples.

    Permissions Support:
    Without Permissions, anyone can use any altar. This is fine in most cases. However, the both classic Permissions and Permissions EX can be used to specify who can access which altar (SuperPerms is unsupported). The following formula can be used to obtain the Permissions node for a reward [reward]:
    Code:
    Offering.rewards.[reward]
    
    Using this pattern, the Permissions nodes for the default rewards are:
    • Offering.rewards.fullheal
    • Offering.rewards.tp
    • Offering.rewards.zeus
    • etc.
    TODO/Progress:
    The next update:
    • predefined variables like the location of the altar and player name
    • redstonestateset, godmode, and other new reward actions
    • custom messages on a reward
    Future goals:
    • allowing other plugins to create rewards
    • allowing altars to edit Permissions groups
    • built-in Bukkit Permissions support
    If you have either any ideas for improvements to the plugins or suggestions of how I can achieve these goals, please let me know! Either leave a comment below or PM me.

    Also, should the user have to register the altar with a command? This might prevent parts of people's houses from turning into altars. Personally I think it's better without a command, but a few users have expressed interest in adding command registration. Let me know what you think below.

    Changelog:
    • Offering-v1.4 - Updated weather reward action.
    • Offering-v1.3 - More reward actions (spawnmob, worldtp, and improved heal).
    • Offering-v1.2 - Permissions system updated.
    • Offering-v1.1 - Amount specification, decay, and time and give reward actions added.
    • Offering-v1.0-beta - Plugin created. Features include rewards, reward-actions, altars, and offerings.
    Download:
    Click here, then hit "View Raw."

    Source:
    For you developers out there, check out the project on GitHub. If you want to get involved, feel free to PM me. I'm looking for at least one developer who would be willing to help me with this plugin.

    Servers:
    If your server uses the plugin, either PM me or comment below and I will advertise it here.
    • Islendingabok Nation-Based PVP

    Please let me know how you like the plugin, I'd love to get your feedback.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
    Stormbow likes this.
  2. Just wondering if you ever thought about adding multiworld teleporting? Lets Say I have a library with its alter allowing time change, maps n such rewards, also travel (same world xyz, other worlds_other xyz "world_nether 0,80,0") Thanks :D
     
  3. that is very easy to do from a programming standpoint and seems like it could add an RPGish benefit to the plugin (since divine offerings to mystical altars can be associated with teleportation to a different realm :)). Maybe when I have some free time this weekend I'll add it :D

    EDIT: it has been added to my official TODO list, if that means anything :p
     
  4. While creating my config, I have ran into a few (minor) problems I did face with names of items.
    All Wooden named items are "wood"
    Shovel items are "Spade"
    Golden named items are "gold"
    Lapis Lazuli... still can't figure out its name in code. The dye
    *Not sure if you wanted to place them under helpful info*


    Future suggestions.
    lightning: [hurt/passive]- [x y z / player x y z] "Toggle-able damage and variable location"
    heal: [+/- amount]- "More control on adjusting health rather then static health guage"
    tp: [world x y z] "Multi world support"
    spawnpoint: [player x y z] "Adjust bed spawn point, used for checkpoints / save stones"
    spawncreature: [altar x y z] "spawn mobs and animals"

    Code:
    ***way future*** permissionchange: [custom user code here] "Used to adjust permissions for multi uses".
    *example config:
    rewards:
        Warrior_Job:
            permissionchange: user.groups. Warrior: = true user.groups .Archer: = false
        Archer_Job:
            permissionchange: user.groups. Archer: = true user.groups .Warrior: = false
    altars:
        DIAMOND_BLOCK:
            gifs:
                WOOD_SWORD:
                    reward: Warrior_Class
                BOW:
                    reward: Archer_Class
    decay: true
    click-type: LEFT*
    ------------------------------------------------------------------------------
    Now other uses are endless aswell, Block restrictions, cross plugin permission adjustments (long as its superperms or what ever perms you go with), ect.


    Like always, thank you for your time And your wonderful Plugin.
     
  5. First of all, thanks for all the suggestions. I'll try to follow everything you said in order to make my response as comprehensible as possible :p.

    Below is a list of all compatible item names, I guess I'll add them somewhere on the main thread as well.
    Show Spoiler

    STONE
    GRASS
    DIRT
    COBBLESTONE
    WOOD
    SAPLING
    BEDROCK
    WATER
    STATIONARY_WATER
    LAVA
    STATIONARY_LAVA
    SAND
    GRAVEL
    GOLD_ORE
    IRON_ORE
    COAL_ORE
    LOG
    LEAVES
    SPONGE
    GLASS
    LAPIS_ORE
    LAPIS_BLOCK
    DISPENSER
    SANDSTONE
    NOTE_BLOCK
    BED_BLOCK
    POWERED_RAIL
    DETECTOR_RAIL
    PISTON_STICKY_BASE
    WEB
    LONG_GRASS
    DEAD_BUSH
    PISTON_BASE
    PISTON_EXTENSION
    WOOL
    PISTON_MOVING_PIECE
    YELLOW_FLOWER
    RED_ROSE
    BROWN_MUSHROOM
    RED_MUSHROOM
    GOLD_BLOCK
    IRON_BLOCK
    DOUBLE_STEP
    STEP
    BRICK
    TNT
    BOOKSHELF
    MOSSY_COBBLESTONE
    OBSIDIAN
    TORCH
    FIRE
    MOB_SPAWNER
    WOOD_STAIRS
    CHEST
    REDSTONE_WIRE
    DIAMOND_ORE
    DIAMOND_BLOCK
    WORKBENCH
    CROPS
    SOIL
    FURNACE
    BURNING_FURNACE
    SIGN_POST
    WOODEN_DOOR
    LADDER
    RAILS
    COBBLESTONE_STAIRS
    WALL_SIGN
    LEVER
    STONE_PLATE
    IRON_DOOR_BLOCK
    WOOD_PLATE
    REDSTONE_ORE
    GLOWING_REDSTONE_ORE
    REDSTONE_TORCH_OFF
    REDSTONE_TORCH_ON
    STONE_BUTTON
    SNOW
    ICE
    SNOW_BLOCK
    CACTUS
    CLAY
    SUGAR_CANE_BLOCK
    JUKEBOX
    FENCE
    PUMPKIN
    NETHERRACK
    SOUL_SAND
    GLOWSTONE
    PORTAL
    JACK_O_LANTERN
    CAKE_BLOCK
    DIODE_BLOCK_OFF
    DIODE_BLOCK_ON
    LOCKED_CHEST
    TRAP_DOOR
    IRON_SPADE
    IRON_PICKAXE
    IRON_AXE
    FLINT_AND_STEEL
    APPLE
    BOW
    ARROW
    COAL
    DIAMOND
    IRON_INGOT
    GOLD_INGOT
    IRON_SWORD
    WOOD_SWORD
    WOOD_SPADE
    WOOD_PICKAXE
    WOOD_AXE
    STONE_SWORD
    STONE_SPADE
    STONE_PICKAXE
    STONE_AXE
    DIAMOND_SWORD
    DIAMOND_SPADE
    DIAMOND_PICKAXE
    DIAMOND_AXE
    STICK
    BOWL
    MUSHROOM_SOUP
    GOLD_SWORD
    GOLD_SPADE
    GOLD_PICKAXE
    GOLD_AXE
    STRING
    FEATHER
    SULPHUR
    WOOD_HOE
    STONE_HOE
    IRON_HOE
    DIAMOND_HOE
    GOLD_HOE
    SEEDS
    WHEAT
    BREAD
    LEATHER_HELMET
    LEATHER_CHESTPLATE
    LEATHER_LEGGINGS
    LEATHER_BOOTS
    CHAINMAIL_HELMET
    CHAINMAIL_CHESTPLATE
    CHAINMAIL_LEGGINGS
    CHAINMAIL_BOOTS
    IRON_HELMET
    IRON_CHESTPLATE
    IRON_LEGGINGS
    IRON_BOOTS
    DIAMOND_HELMET
    DIAMOND_CHESTPLATE
    DIAMOND_LEGGINGS
    DIAMOND_BOOTS
    GOLD_HELMET
    GOLD_CHESTPLATE
    GOLD_LEGGINGS
    GOLD_BOOTS
    FLINT
    PORK
    GRILLED_PORK
    PAINTING
    GOLDEN_APPLE
    SIGN
    WOOD_DOOR
    BUCKET
    WATER_BUCKET
    LAVA_BUCKET
    MINECART
    SADDLE
    IRON_DOOR
    REDSTONE
    SNOW_BALL
    BOAT
    LEATHER
    MILK_BUCKET
    CLAY_BRICK
    CLAY_BALL
    SUGAR_CANE
    PAPER
    BOOK
    SLIME_BALL
    STORAGE_MINECART
    POWERED_MINECART
    EGG
    COMPASS
    FISHING_ROD
    WATCH
    GLOWSTONE_DUST
    RAW_FISH
    COOKED_FISH
    INK_SACK
    BONE
    SUGAR
    CAKE
    BED
    DIODE
    COOKIE
    MAP
    SHEARS
    GOLD_RECORD
    GREEN_RECORD


    as for passive lightning.. this does not seem possible :(. however, it is possible to heal the person right after they were hit, using the heal reward. that's the best solution i can think of. maybe after a little research I can come up with something better.
    I'm sorry but I do not fully understand what you mean. Do u mean to say incrementing the person's health rather than setting it to a certain value? ie. "heal 5" would add 5 to the persons health rather than setting it to 5? cause that seems much better than how it currently is now and I think I will change it.
    Totally agree, on my TODO list :D
    This seems interesting, although it might not work out too well because the plugin would be conflicting with other spawn plugins installed on the server, probably causing both to stop working..
    Definitely! As of now this is also on my changelist xD

    Wow! that sounds awesome :D... This is definitely doable, but only with the new Bukkit-integrated Permissions, not to my knowledge with the classic one that the plugin currently supports. I suppose that when I am in the mood for a major update, I might attempt this. Its benefits seem to be endless, either allowing users to obtain a job, or allowing explorers who find hidden altars to "level up."

    Alright, so in conclusion I think that the *next* version of the plugin will include the following features that you suggested:
    better healing
    multi-world
    spawn-creature
    and mayb if i can get them to work:spawnpoint

    the permissions stuff is cool but would require a lot of time and a major update :D, which I will probably do some time in the future.[/CODE][/quote][/FONT][/SIZE][/COLOR][/quote]
     
  6. Offline

    Fuqqthesystem

    every item i get from the altar disappeares from the inventory, if i use it :confused: for example bows or swords
     
  7. Im sorry, but what exactly do you mean? When you click on the altar with an item, it will get used up.

    Plugin is updated! :)

    New version includes:
    • multi-world tps
    • better healing
    • mob spawning
    Refer above or ask below for specifics about the new features
    (Note, the argument on the mob spawn command is in all caps, such as ZOMBIE, or SKELETON)

    EDIT: as always, let me know about any bugs or glitches you may notice

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  8. Offline

    Fuqqthesystem

    I mean the items i get spawned from the altar :D
    for example i get a bow, so i take a shot with it and it disappears. same thing with a sword or a pickaxe... they even disappear, if i use a button or a lever with this item in hand.
     
  9. hmm..that is really odd.. to be honest I don't know why. maybe when you click with the item you are clicking on the altar again?
     
  10. great job on the new features :)
    I did run into an abnormally, I believe you have Weather: Storm and Weather: Sun being the same thing. When an item is given to an Altar, you get the same (warm front approaching ) type message. I think you might have :Storm reward call the Sun event.

    Btw: If the weather is currently raining, : Sun does indeed clear out the storm :)

    Random bugish behavior: interesting Active "use" action bar glich? with give:
    You must have the item you want to give to the altar with no empty action button in front of it, else plugin does not decay nor give an item. However reward message and "your inventory gets heavier" does appear.
    Fix: Not sure @_@

    Action Bar GUI: [1][2][3][4][5][6][7][8][9]
    x = Used action button
    0 = Unused action button
    * = Item you want to give

    [x][x][x][*][x][x][x][x][x] <--- works
    [x][x][x][x][x][*][0][0][0] <--- works
    [x][x][x][x][x][*][x][0][x] <--- works
    [x][x][0][*][x][x][x][x][x] <--- Does not work
    [x][0][x][x][x][x][x][x][*] <--- Does not work
    [0][*][0][0][0][0][0][0][0] <--- Does not work
    Full Inventory = bye bye item: if your inventory is full. with give:
    If you give an Item to your alter with an full inventory, you will not get the new item back. Plugin doesn't check if you have room to receive a new item type.
    Fix: Might be possible to "throw out" new item on the floor? if players inventory is full.

    I thought to help others see the possibilities of this plugin I'll submit a few altars as I make them.

    Anvil type Altar: Used to repair equipment (Once placed can't be removed without destroying block, good anti mobility) *would suggest any fist destructible blocks "no drops"*
    decay: true (to stop duplicating items)
    click-type: LEFT (to stop tools from "picking up" the block) *right if you want it mobile*

    Code:
    rewards:
        #Anvil rewards
        Leather_Helm_Repaired:
            give: LEATHER_HELMET 1
        Leather_Armor_Repaired:
            give: LEATHER_CHESTPLATE 1
        Leather_Leggings_Repaired:
            give: LEATHER_LEGGINGS 1
        Leather_Boots_Repaired:
            give: LEATHER_BOOTS 1
        Chain_Helm_Repaired:
            give: CHAINMAIL_HELMET 1
        Chain_Armor_Repaired:
            give: CHAINMAIL_CHESTPLATE 1
        Chain_Leggings_Repaired:
            give: CHAINMAIL_LEGGINGS 1
        Chain_Boots_Repaired:
            give: CHAINMAIL_BOOTS 1
        Iron_Helm_Repaired:
            give: IRON_HELMET 1
        Iron_Armor_Repaired:
            give: IRON_CHESTPLATE 1
        Iron_Leggings_Repaired:
            give: IRON_LEGGINGS 1
        Iron_Boots_Repaired:
            give: IRON_BOOTS 1
        Gold_Helm_Repaired:
            give: GOLD_HELMET 1
        Gold_Armor_Repaired:
            give: GOLD_CHESTPLATE 1
        Gold_Leggings_Repaired:
            give: GOLD_LEGGINGS 1
        Gold_Boots_Repaired:
            give: GOLD_BOOTS 1
        Diamond_Helm_Repaired:
            give: DIAMOND_HELMET 1
        Diamond_Armor_Repaired:
            give: DIAMOND_CHESTPLATE 1
        Diamond_Leggings_Repaired:
            give: DIAMOND_LEGGINGS 1
        Diamond_Boots_Repaired:
            give: DIAMOND_BOOTS 1
    
        Wood_Sword_Repaired:
            give: WOOD_SWORD 1
        Stone_Sword_Repaired:
            give: STONE_SWORD 1
        Iron_Sword_Repaired:
            give: IRON_SWORD 1
        Gold_Sword_Repaired:
            give: GOLD_SWORD 1
        Diamond_Sword_Repaired:
            give: DIAMOND_SWORD 1
        Wood_Axe_Repaired:
            give: WOOD_AXE 1
        Stone_Axe_Repaired:
            give: STONE_AXE 1
        Iron_Axe_Repaired:
            give: IRON_AXE 1
        Gold_Axe_Repaired:
            give: GOLD_AXE 1
        Diamond_Axe_Repaired:
            give: DIAMOND_AXE 1
        Wood_Pickaxe_Repaired:
            give: WOOD_PICKAXE 1
        Stone_Pickaxe_Repaired:
            give: STONE_PICKAXE 1
        Iron_Pickaxe_Repaired:
            give: IRON_PICKAXE 1
        Gold_Pickaxe_Repaired:
            give: GOLD_PICKAXE 1
        Diamond_Pickaxe_Repaired:
            give: DIAMOND_PICKAXE 1
        Wood_Shovel_Repaired:
            give: WOOD_SPADE 1
        Stone_Shovel_Repaired:
            give: STONE_SPADE 1
        Iron_Shovel_Repaired:
            give: IRON_SPADE 1
        Gold_Shovel_Repaired:
            give: GOLD_SPADE 1
        Diamond_Shovel_Repaired:
            give: DIAMOND_SPADE 1
        Wood_Hoe_Repaired:
            give: WOOD_HOE 1
        Stone_Hoe_Repaired:
            give: STONE_HOE 1
        Iron_Hoe_Repaired:
            give: IRON_HOE 1
        Gold_Hoe_Repaired:
            give: GOLD_HOE 1
        Diamond_Hoe_Repaired:
            give: DIAMOND_HOE 1
    
        Shears_Repaired:
            give: SHEARS 1
        Fishing_Rod_Repaired:
            give: FISHING_ROD 1
    altars:
        #Anvil altar
        IRON_BLOCK:
            gifts:
                LEATHER_HELMET:
                    reward: Leather_Helm_Repaired
                LEATHER_CHESTPLATE:
                    reward: Leather_Armor_Repaired
                LEATHER_LEGGINGS:
                    reward: Leather_Leggings_Repaired
                LEATHER_BOOTS:
                    reward: Leather_Boots_Repaired
    
                CHAINMAIL_HELMET:
                    reward: Chain_Helm_Repaired
                CHAINMAIL_CHESTPLATE:
                    reward: Chain_Armor_Repaired
                CHAINMAIL_LEGGINGS:
                    reward: Chain_Leggings_Repaired
                CHAINMAIL_BOOTS:
                    reward: Chain_Boots_Repaired
    
                IRON_HELMET:
                    reward: Iron_Helm_Repaired
                IRON_CHESTPLATE:
                    reward: Iron_Armor_Repaired
                IRON_LEGGINGS:
                    reward: Iron_Leggings_Repaired
                IRON_BOOTS:
                    reward: Iron_Boots_Repaired
    
                GOLD_HELMET:
                    reward: Gold_Helm_Repaired
                GOLD_CHESTPLATE:
                    reward: Gold_Armor_Repaired
                GOLD_LEGGINGS:
                    reward: Gold_Leggings_Repaired
                GOLD_BOOTS:
                    reward: Gold_Boots_Repaired
    
                DIAMOND_HELMET:
                    reward: Diamond_Helm_Repaired
                DIAMOND_CHESTPLATE:
                    reward: Diamond_Armor_Repaired
                DIAMOND_LEGGINGS:
                    reward: Diamond_Leggings_Repaired
                DIAMOND_BOOTS:
                    reward: Diamond_Boots_Repaired
    
                WOOD_SWORD:
                    reward: Wood_Sword_Repaired
                STONE_SWORD:
                    reward: Stone_Sword_Repaired
                IRON_SWORD:
                    reward: Iron_Sword_Repaired
                GOLD_SWORD:
                    reward: Gold_Sword_Repaired
                DIAMOND_SWORD:
                    reward: Diamond_Sword_Repaired
    
                WOOD_AXE:
                    reward: Wood_Axe_Repaired
                STONE_AXE:
                    reward: Stone_Axe_Repaired
                IRON_AXE:
                    reward: Iron_Axe_Repaired
                GOLD_AXE:
                    reward: Gold_Axe_Repaired
                DIAMOND_AXE:
                    reward: Diamond_Axe_Repaired
    
                WOOD_PICKAXE:
                    reward: Wood_Pickaxe_Repaired
                STONE_PICKAXE:
                    reward: Stone_Pickaxe_Repaired
                IRON_PICKAXE:
                    reward: Iron_Pickaxe_Repaired
                GOLD_PICKAXE:
                    reward: Gold_Pickaxe_Repaired
                DIAMOND_PICKAXE:
                    reward: Diamond_Pickaxe_Repaired
    
                WOOD_SPADE:
                    reward: Wood_Shovel_Repaired
                STONE_SPADE:
                    reward: Stone_Shovel_Repaired
                IRON_SPADE:
                    reward: Iron_Shovel_Repaired
                GOLD_SPADE:
                    reward: Gold_Shovel_Repaired
                DIAMOND_SPADE:
                    reward: Diamond_Shovel_Repaired
    
                WOOD_HOE:
                    reward: Wood_Hoe_Repaired
                STONE_HOE:
                    reward: Stone_Hoe_Repaired
                IRON_HOE:
                    reward: Iron_Hoe_Repaired
                GOLD_HOE:
                    reward: Gold_Hoe_Repaired
                DIAMOND_HOE:
                    reward: Diamond_Hoe_Repaired
    
                SHEARS:
                    reward: Shears_Repaired
                FISHING_ROD:
                    reward: Fishing_Rod_Repaired
    decay: true
    click-type: LEFT
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  11. Offline

    Fuqqthesystem

    no :D i just run around and when i want to use them, they disappear
     
  12. That is really odd, though it is probably the same glitch that JadeKnightblazer is reporting.

    I'll look around the source code and see if I notice a bug :)

    EDIT: also, the storm glitch has been fixed and will be updated in the next version. the command was also expanded by a project collaborator, and once the new version is released, will support the options 'rain' 'thunder' and 'clear'
     
  13. Offline

    xmagicx60

    I love the IDEA, but I'd like to be able to have it edit permissions groups... Say, basicly Demigods, using this, combined with magicspells.
     
  14. Yeah I agree with you as far as Permissions editing goes. I think it would be great if the plugin could change your Permissions group. However to be honest I'm not sure how to do that from a programming standpoint. I'll look into it in the Bukkit documentation, and if any other devs have any advise on how to do this, please let me know :D.
     
  15. This plugin supports Permissions EX! lol I didn't realize it until now.. but.. it does :)
     
  16. Offline

    xmagicx60

    Uhh, I've been using it with PeX lol
     
  17. Offline

    Donmon

    so... my custom thing doesn't work could you tell me what i did wrong?

    rewards:
    spawnmob: MOOSHROOM tp:
    tp: $x $y $z
    day:
    time: 0
    cookies:
    give: COOKIE 5
    fullheal:
    heal: 20
    altars:
    GOLD_BLOCK:
    gifts:
    LEATHER:
    reward: spawnmob CAKE:
    reward: cookies
    CLAY_BALL:
    reward: fullheal
    WATCH:
    amount: 3
    reward: day
    SLIME_BALL:
    reward: tp
    decay: true
    click-type: LEFT


    I just want to let Mooshrooms spawn... and yes i deleted the sttorm thingy
     

  18. Hey, the issue is that I haven't updated the plugin to the recent builds of Bukkit where Mooshrooms are supported (i.e. your code is correct, the plugin is just not up to date). I'll try to get it updated by tomorrrow
     
  19. Offline

    Donmon

    Ok thank you!
     
  20. Offline

    mikeyagoto

    wow! really love the idea of the plugin! just a few ideas to add some more functionality to it, can you make it so multiple of an item is required? like a stack of bonemeal or something? Also this will probably be in the future but allow it to give potion like bonuses to the user? and also allow it to repair items (maybe already requested?) I would love to use this as part of a cleric/priest class because I like the idea of having the alters.
     
  21. Offline

    snitride

    Hi there, first i want to thanks you for this great plugin!
    But i having some Erros with Minecraft 1.0 and Bukkit #1520.
    Here the Java Errors.
    Code:
    2011-12-07 12:53:02 [SEVERE] Could not pass event PLAYER_RESPAWN to Demigods
    java.lang.NullPointerException
            at com.WildAmazing.marinating.Demigods.DemigodsPlayerListener.onPlayerRespawn(DemigodsPlayerListener.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.java:274)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at net.minecraft.server.ServerConfigurationManager.moveToWorld(ServerConfigurationManager.java:262)
            at net.minecraft.server.ServerConfigurationManager.moveToWorld(ServerConfigurationManager.java:222)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:933)
            at net.minecraft.server.Packet9Respawn.a(SourceFile:26)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-07 12:53:35 [SEVERE] java.net.SocketException: Socket closed
    2011-12-07 12:53:35 [SEVERE]    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)
    2011-12-07 12:53:35 [SEVERE]    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    2011-12-07 12:53:35 [SEVERE]    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    2011-12-07 12:53:35 [SEVERE]    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    2011-12-07 12:53:35 [SEVERE]    at java.io.DataOutputStream.flush(DataOutputStream.java:123)
    2011-12-07 12:53:35 [SEVERE]    at net.minecraft.server.NetworkWriterThread.run(SourceFile:104)
    
    Luckily the plugin is still running stable also with this errors!
    I am keeping my Demigods up to date with the DemigodsDownloader

    Greetings,

    snitride
     
  22. Perhaps this is the wrong thread :p? This isn't the plugin Demigods :)

    thanks :)

    this can currently be done.. look in the example up top for "amount:" under some of the items

    I'll have to look into this

    that actually hasn't been suggested but sounds cool

    Also, I'd like to take this opportunity to announce the changelist for the next update:
    • Official update to MC 1.0
    • Permissions-altering capability
    • Item repairing
    • Potions

    Eventually I'd like to add an API and NPC interaction

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  23. Offline

    mikeyagoto

    That sounds good! by potions do u mean potion effects? or actually give the potion item?
     
  24. effects
    effects. potion items are already possible I think
     
  25. Offline

    mikeyagoto

    @islendingabok_team I have one other request, would it be possible to summon an ender dragon, but one that could only destroy leaves and logs? that way its a bit more like fire breathing and he doesn't totally destroy the terrain. Or is this already possible with the summon mob reward?
     
  26. When I release the next updated version of the Plugin this will be possible by using ENDER_DRAGON with spawnmob. I am sorry to announce that it may take me longer than expected to release this, probably around Wednesday next week. As far as making the Ender Dragon only destroy leaves and logs, that would not be possible with this plugin (sorry!). You might be able to do it with WorldGuard or some equivalent.
     
  27. Offline

    mikeyagoto

    yes, i found a plugin that should do that :) thank you!
     
  28. Offline

    Blondberd

    I can already see what I'm gonna use this for, amazing work!

    Some suggestions/requests though.

    1: Offering two items: could be used in different ways like, one iron block and two lapis blocks will give you one diamond block. Or like a instant furnace. Supply raw materials (say 64 cobble) and fuel (8 coal) and you get your finished product, (64 pressed stone.)

    2: Able to activate redstone: Say you offer a gold bar to the church alter, you hear pistons open a hidden door leading under the church to the preacher's secret portal room. Or something like that. Basicly you offer you gift and the alter sends out a redstone signal. Or it can place a redstone torch at certain cords, although that would a one time use thing so maybe it makes a spicifect block send out a 3 second redstone signal.

    3: I am kinda OCD: *Sigh* I'm sorry but... the signs just don't look right in a temple. Yes I know the are ways to hide them but, it doesn't look right. For tp alters I think admins should be able to right click it with something like a blaze rod or something and be able to set the cords in the chat and the gift need for them. Frankly that would look better and you could have multiple places you could go depending on what you gave it.

    4: Money: do you think you could set this up with some money pluggin so people have to pay to get their gear fixed for example? I think that would be great.

    5: I want purple glitter: it would be awesome if alters had a partical effect so you can tell they're alters. And be able to chose which say gold block is an alter. If I have a server I wouldn't want people to be able to use any gold block as an alter. Maybe and admin, or some one with permissions, can set it up as a alter.

    Personally this would be a great trading thing, say you give it 64 dirt and you get 32 cobble. You give it 64 cobble and it gives you 32 pressed stone. And if you have it so you can do two things, you give it pressed stone and any thing that comes from a ore, coal diamonds, redstone, lapis, and it will give you the ore block. Basicly I'm going to use this as a trade table. So if you have too much of something you can trade it for something better. Eventualy turning dirt into diamonds.
     
  29. First of all, thank you for your feedback and praise of the plugin! I have considered many of the suggestions you made and will probably add them next time I get the time to release a new build (sorry I have been busy lately).
    Interesting.. I'd have to change a significant amount of code which could cause some potential issues but maybe I'll give it a try.

    This is definitely a planned feature and will be in the next update.. whenever that is.
    Lol, I know what you mean about the signs, but for the near future this is probably not going to happen because it would be hard to implement with the way I have setup the plugin.

    Should be easy, I'll look into it.

    Interesting idea with the glitter.. I'll figure out how to do that. The second idea you had would be nice but is a little annoying to code due to the way I have set it up and would make the plugin more CPU-intensive.

    Personally this would be a great trading thing, say you give it 64 dirt and you get 32 cobble. You give it 64 cobble and it gives you 32 pressed stone. And if you have it so you can do two things, you give it pressed stone and any thing that comes from a ore, coal diamonds, redstone, lapis, and it will give you the ore block. Basicly I'm going to use this as a trade table. So if you have too much of something you can trade it for something better. Eventualy turning dirt into diamonds.[/quote]
    Agreed. I'll find a way to add this.

    Again thanks for the feedback :)
     
  30. Offline

    Blondberd

    No problem! :)
     
  31. Offline

    Blondberd

    Is there a way to set XP as money for alters? I was thinking of making a mini game where you have to fight though mobs to get enough XP to move on.
     

Share This Page