Difference between revisions of "Mining tutorial"
Jump to navigation
Jump to search
imported>Axle12693 |
(No difference)
|
Revision as of 16:21, 4 January 2007
Introduction
This article is here because I wanted to put a piece or two of scripting knowlegde here.
What This Teaches
This article teaches how to make a script for:
- A rock to mine ores from
- A furnace to refine the ores
- Different anvils to craft weapons and items
Here we go!
The Rock
The script for the rock is very simple. Be sure to attach this script to a character that is shaped like a rock.
Scriptname AAAminingrockscript Begin onhitwith pickaxe Player.additem ironore 1 end
Lets examine what that means, shall we? We added the part where you hit it with the pickaxe
Begin onhitwith pickaxe
We added the part where you get the iron ore
Player.additem ironore 1
And we ended the script.
end
The Furnace
The Script for the furnace is a bit more complicated. Be sure you attach this script to an activator.
Scriptname aaafurnacescript