Revscriptsys
Script Structure
Constructor:
Action()
Event:
onUse(player, item, fromPosition, target, toPosition, isHotkey)
Methods:
register(): Finalizes the definition of the action and registers it.
id(itemId[, itemIds...]):
itemId [Required]: Item id to register the event to.
itemIds [Optional]: All extra item ids to register.
aid(actionId[, actionIds]): Follows the same behavior as the
id(itemId[, itemIds...])
method.uid(uniqueId[, uniqueIds]): Follows the same behavior as the
id(itemId[, itemIds...])
method.allowFarUse(bool):
bool: Accepts true/false values, same behavior as
allowfaruse
in XML.blockWalls(bool):
bool: Accepts true/false values, same behavior as
blockwalls
in XML.checkFloor(bool):
bool: Accepts true/false values, same behavior as
checkfloor
in XML.
Example
Last updated