Parchment
Parchment allows rapid scripting of mine craft based on a TCL like scripting language.
Downloads | Source | Tutorial | Command Reference
If you are using Parchment, I would love to get your feedback! I can also help with your scripts, as the documentation isn't that great at the moment. Send me a PM, or look for to basicer on espernet.
Getting Started
- Throw the JAR file in your plugins folder.
- Create a Parchment folder in your plugins older.
- Create a spells folder inside the Parchment folder.
- Throw the below archer.tcl file in the spells folder
- Be an op, type /cast archer
- TCL scripts should be sourced as they are changed without reloading.
- Ignore all the crazy debuging messages.
Quick Examples
Archer
# archer.tcl # Turn the caster into the archer class. # Type `/cast archer` to activate bind cast onCast proc onCast {} { set who $caster player $who clear set bow [item new] item $bow type bow item $bow enchant "Punch 2" item $bow name "Power Bow" item $bow lore "This great bow\nWill Rock your socks." item $bow forceInv $who 0 item $bow bind powerbow set plate [item new] item $plate type diamond_chestplate item $plate equip $who set helmet [item new] item $helmet type diamond_helmet item $helmet equip $who item new type arrow more give $caster }
Jump
# jump.tcl # Hold an item in your hand and type /cast item bind jump # Point toward where you want to go and left click. bind cast x proc x {} { entity $caster still entity $caster teleport 250 entity $caster still }
Differences from TCL
- If is missing elseif.
- Index anything! (Arrays, Lists, Dicts)
- Values are more strongly typed.
- Not all language constructs are implemented yet. (String is noticeably missing).
- Some variables are "prototype" like behavior ($caster, $target, $world, $server).
- Written from scratch by me.
- More bugs.
Required dev.bukkit.org Disclaimer
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- Some unique identifier
- Version information for Java, the server, Metrics, and Parchment
- If your server is in offline mode or not.
- The OS version, name and architecture
- The core count for the CPU
- The number of players online
- The number of scripts loaded
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true. Chances are you already knew that though.
Excellent plugin basicer! I have been messing around with it and i have to say this is a great scripting tool for people who do not know java and want to have a "custom server" with minimal programming knowledge! Good work! There are a few bugs that i see but they don't make the plugin break or anything.
@0dayRUDE
Good catch. I never thought to type /cast with no arguments it seems. Fixed in the next version.
Got a small error upon doing /cast Very cool plugin, started making my own class system with this :P
Pastebin Link - Error
@TheFluffey
I'm working on that for sure. In the mean time you can see a list of commands here:Command List. Also the official TCL documentation has a lot of good info on the command inherited form TCL: TCL Documentation
More documentation would be nice.
So this is meant to allow people who don't understand Java to make their own skills? I'm currently learning Java, but this TCL scripting language will probably be a lot easier for me.