ActionZones
ActionZones
Actions|Commands|Permissions
What is ActionZones?
ActionZones is very simple. It has two basic components, zones and actions. When a player enters a zone, or leaves a zone, an action can be triggered. A full list of actions is available at the link above. There are a wide variety of actions that a zone can activate, ranging from teleports, to spawning entire buildings. Zones can overlap, or be in the same location, allowing for complex and diverse creations. Zones can also be chained together to form a series of actions.
Thank konsi for the video!
What can ActionZones do?
- A lot. I will work on some demonstration videos soon.
- You can use it for transportation. You're able to chain teleport zones together to simulate rapid motion. You're able to teleport conditionally, only allowing players to teleport if they pay a fee, have previously entered a specified location, or have an empty inventory.
- You're able to spawn temporary platforms for players to jump on. This is useful for dungeons and adventure maps.
- You can spawn and kill mobs in specified areas when a player triggers a zone action.
- You can launch players into the air in any direction, allowing them to jump massive gaps.
- You can store regions in a SQL database. This allows you to build two buildings in the same location, for instance. You can build one, save it, destroy it and build another and then save it. And they you can toggle between buildings. This is also useful for griefers if you have buildings without protection or want to make a honeypot. Any damage to the building can easily be reverted.
- You can save a players inventory, allowing them to die without risk even when they have a lot of experience and items.
- Create "rides" involving teleports and launches chained together. For instance, you could create a teleport zone which teleports a player into a second teleport zone, which then launches the player into the sky where they enter a third teleport zone which sends them to the nether and saves their inventory. They could then burn to death in lava and then have their inventory restored in a zone that's been set up at spawn.
- Countless other possiblilities. Your imagination is the limit.
How do I use ActionZones?
- Place it in your plugin directory.
- Create a zone with /setzone ["p1" or "p2"] [zone name]
- Link an action to your zone with /linkaction [action name] [zone name]
- Configure additional zone settings if needed. (Check the actions page at the top.)
- Add more zones and actions.
Requirements
- Some features require Vault
- Some features require a MySQL database
Planned Features
Potion effect action.- Console command action.
- Video tutorial.
Smoke effect action.Time change action.Weather change action.- Sound effect action.
- Command block zone.
@Kriptini
Basically, the zone that triggers an action always comes last in any command. So in your example you'll be linking the action placeblocks to zone A and also linking zone B to zone A.
What you gave below is correct. If you want to save a bit of typing you could also do /lact placeblocks A and /lzon B A
RegalOwl,
I know that answer makes sense in your head, but to a scatterbrain like me, it still confusing.
Let's say I have two ActionZones: A & B.
I want to set it up so that when a player steps in zone A, the blocks in zone B change. Would my commands be this:
/linkaction placeblocks A
/linkzone B A
Thanks,
Kriptini
@Kriptini
The zone you're linking to a zone is the one that comes first. I'll hopefully have tutorial videos out soon.
@papand13
Ah, I see. I can work on adding that.
Regal,
Actions that require a linked zone, like placeblocks, are super confusing. Which zone comes first in the /linkzone command? Which zone to I /linkaction to?
Any help would be appreciated.
Thanks, Kriptini
@RegalOwl
What i wish to use it for is the following:
My whole spawn town is no-pvp, the rest of the server is pvp. Alot of people run in and out of spawn's zone so that they dont die. i want to be able to select the edges of spawn, and make it shoot them the opposite direction of spawn when they try to run in again.
With the current setting, i have a too fast velocity, and the direction gets too far off for some of the zone.
With the settings i stated before, the velocity would not be too fast (they would not know either after you added the launch speed) and the direction would be the same.
Example:
@papand13
I just added a new modifier for launchdirection. You can now use /linkvalue to alter the launch speed.
So basically the linked location specifies the direction, and the linked value can specify the velocity.
Is there some specific situation where the above wouldn't be able to do the same as what you describe (and more)?
Hi! Awesome plugin!
There is however an action i could use and would like to suggest, it is a variation of the launchdirection action.
This new action should be added by specifying one of three direction (a,b,c,d) and velocity (1-100). Then if i for example make a zone and set the action to direction b and velocity to 50, it will shoot in the minecraft direction of 1. As you know there are if you press F3 4 directions in minecraft (0,1,2,3). And it will shoot the player with a "medium" velocity, since 50 is specified.
Please tell me if i need to specify.
@Unpluggeddk
Haha, alright. What I'm going to work on will make command block zones much easier and will improve performance even further. I'm thinking I'll add an animation action with "regions". Regions will be just like zones except that they won't trigger actions.
@RegalOwl
Regal.. ! stop all your work on that.. :D
I'm such a deeerrrp.. it was some random dude that told me worldguard couldnt block cmds yet..
But i just found out it actually could..
regards Unplugged
@Unpluggeddk
K, I'll see if I can figure that out next. :)
@RegalOwl
Wow, I like how the LaunchLocation works. I'm going to play around with the others as well. Great going, Owl. I like the LinkValue parameter addition as well, I think that will make everything a lot more flexible.
plzz work on the command block zone next.. :O
Need it very bad..
@RegalOwl
Need the command features when enter in a zone :p
I'll update the help pages soon, but for now I'll just give a basic explanation.
The new actions:
guidedflight = when triggered you fly in the direction that you're looking for the linked duration at the velocity magnitude set by the /linkvalue multiplier.
launchlocation = you are launched through the air, accurately, to any location, assuming there are no obstacles in the way.
setcondition = weather change or time change. You must link a condition to the zone with /linkcondition or /lcon. The choices are storm, sun, night, day, dusk or dawn.
spacelaunch = launches you rapidly into the sky for the linked duration
launchdirection now can use /linkvalue which will set the magnitude of the velocity
Please check your private message! :)
@KeyMasterOfGozer
That's a really good question. When I was making launchdirection I wanted to make it send you at the perfect velocity and direction to land at the linked location. From what I can tell, though, Minecraft has some sort of velocity limit, that prevents accurate launching unless it's a short distance. I'm hoping that there is some workaround for this. It's something I'd like to improve in the future. For now you can sort of estimate and change the location until it launches you to the correct place.
@RegalOwl
Perfect! Works great now. I've been playing around for a few minutes and this is fun.
I have a question. LaunchDirection shoots you off in the direction of the linked location. Is there a technical reason why you can't be launched all the way to the linked location? Kind of like teleport, but you see yourself flying. I don't know if that's possible, or if there is a maximum distance or something.
This is definitely a fun one.
@KeyMasterOfGozer
K, the bug should finally be fixed in this version. Sorry for the delay. :)
https:dl.dropbox.com/u/72185894/ActionZones.jar
@KeyMasterOfGozer
I figured out what's causing it finally. Install Vault and it should work normally. I'll be working on a fix shortly.