Parchment

Logo

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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit