Talk:Mining tutorial
A none working script!!!
Leon_852 The scripts that you put on that page don't work. Could you please go through the scripts and improve them. Sorry to be so pickey!!
Redturner I would really like it if someone could post something on the anvil part, I'm currently working on a item combining machine but I'm having problems making it work.Thanks...
Dwayne I am currently working in an anvil script, please explain your item combiner? I just started work on the anvil script about 5 minutes ago, I should have it done by tomorrow. I will post the finished script on the main page. I was working in a "machine" to make weapons, armor, and arrows when I went to this site to see how I should make a process to mine the ore. I will put a link to my finished mod with the item maker when I am done with it.
Here is a simple anvil script, it is untested so I have no idea if it works. I might get around to testing it later. I had to insert a page break in one location, lines 13 and 14 (not counting blank lines) should be one line and it should not have the text saying I had to insert a page break. Once I test this, I will put it on the main page. Here it is
scn AnvilIronshortSwordScript short choosing short choice Begin OnActivate set choosing to -1 End Begin Gamemode if (choosing == )) return elseif (choosing == -1) ;You may substitute any item name ;add in how many pieces of iron you want it to take to make the item messagebox "Would you like to make an Iron Longsword? It will take xx pieces of iron." "Yes" "No" ;this should be on the above line set choosing to 1 elseif (choosing == 1) set choise ot get button pressed ;you replace the 1 with how many pieces of iron you want it to take to make the item if (choice == 0) if (player.getitemcount iron) >= 1 player.removeitem iron 1 player.additem weapironlongsword ;instead of weapironlongsword, add the item you wan thte anvil to make else set choosing to 0 message "You don't have enough iron!" endif elseif (choice == 1) set choosing to 0 endif endif end