Can someone make an advanced tut for making mod scripts. Tell how each fuction works. I know the basics but i want to know the advanced stuff.
All right, you ready?
First, do a JavaScript tutorial. Codecademy: http://www.codecademy.com/tracks/javascript or an older tutorial, JavaScriptKit: http://www.javascriptkit.com/javatutors/
Then, when you've done a tutorial, and know how to do loops/functions/if statements/variables, come back and I'll have the rest of the tutorial written.
All right, you ready?
First, do a JavaScript tutorial. Codecademy: http://www.codecademy.com/tracks/javascript or an older tutorial, JavaScriptKit: http://www.javascriptkit.com/javatutors/
Then, when you've done a tutorial, and know how to do loops/functions/if statements/variables, come back and I'll have the rest of the tutorial written.
I already learned that stuff i just dont get what the fuctions do. Thats all i need to knowMore of how to use the fuctions. Treebl could of given a better explanition.
I already learned that stuff i just dont get what the fuctions do. Thats all i need to know
More of how to use the fuctions. Treebl could of given a better explanition.
- getPlayerX(), getPlayerY(), getPlayerZ(): get the position of the player's head.
- getPlayerEnt(): get the player's entity for use in methods that require an entity.
- getLevel(): get a pointer to the level. Useless for now.
- setPosition(): moves the entity. As far as I know, this actually moves feet coordinates in BlockLauncher; will check on iOS.
ent: an entity such as the player gotten in getPlayerEnt()
- setVelX, setVelY, setVelZ: set the entity's speed along an axis.
ent: n entity such as the player from getPlayerEnt()
- addItemInventory: adds an item to the player's inventory.
id: item ID, as seen on http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition)
count: how many to add
Note that there is no current way to detect a full inventory, so items may be lost.
- rideAnimal: allows the first entity to ride the second.
player: the rider, an entity. Doesn't have to be a player - but can be; use getPlayerEnt()
target: the animal that the rider rides on, an entity.
The two standard hooks:
function useItem(x,y,z,itemId,blockId)
x, y, z: location of the block clicked on. (Not the block to be built - this is the block clicked against.)
itemId: the ID of the tool the player is clicking with. 0 for bare hand.
blockId: the block ID that the player clicked on.
function attackHook(attacker, victim)
attacker: currently always the player entity.
victim: entity getting punched.
- getPlayerX(), getPlayerY(), getPlayerZ(): get the position of the player's head.
- getPlayerEnt(): get the player's entity for use in methods that require an entity.
- getLevel(): get a pointer to the level. Useless for now.
- setPosition(): moves the entity. As far as I know, this actually moves feet coordinates in BlockLauncher; will check on iOS.
ent: an entity such as the player gotten in getPlayerEnt()
- setVelX, setVelY, setVelZ: set the entity's speed along an axis.
ent: n entity such as the player from getPlayerEnt()
- addItemInventory: adds an item to the player's inventory.
id: item ID, as seen on http://www.minecraft...Pocket_Edition)
count: how many to add
Note that there is no current way to detect a full inventory, so items may be lost.
- rideAnimal: allows the first entity to ride the second.
player: the rider, an entity. Doesn't have to be a player - but can be; use getPlayerEnt()
target: the animal that the rider rides on, an entity.
The two standard hooks:
function useItem(x,y,z,itemId,blockId)
x, y, z: location of the block clicked on. (Not the block to be built - this is the block clicked against.)
itemId: the ID of the tool the player is clicking with. 0 for bare hand.
blockId: the block ID that the player clicked on.
function attackHook(attacker, victim)
attacker: currently always the player entity.
victim: entity getting punched.
Um,, well that's a lot to process...
Rollback Post to RevisionRollBack
Zu'u los drog!
I am secretly a modder, who works only for himself, seldom publishes.
- getPlayerX(), getPlayerY(), getPlayerZ(): get the position of the player's head.
- getPlayerEnt(): get the player's entity for use in methods that require an entity.
- getLevel(): get a pointer to the level. Useless for now.
- setPosition(): moves the entity. As far as I know, this actually moves feet coordinates in BlockLauncher; will check on iOS.
ent: an entity such as the player gotten in getPlayerEnt()
- setVelX, setVelY, setVelZ: set the entity's speed along an axis.
ent: n entity such as the player from getPlayerEnt()
- addItemInventory: adds an item to the player's inventory.
id: item ID, as seen on http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition)
count: how many to add
Note that there is no current way to detect a full inventory, so items may be lost.
- rideAnimal: allows the first entity to ride the second.
player: the rider, an entity. Doesn't have to be a player - but can be; use getPlayerEnt()
target: the animal that the rider rides on, an entity.
The two standard hooks:
function useItem(x,y,z,itemId,blockId)
x, y, z: location of the block clicked on. (Not the block to be built - this is the block clicked against.)
itemId: the ID of the tool the player is clicking with. 0 for bare hand.
blockId: the block ID that the player clicked on.
function attackHook(attacker, victim)
attacker: currently always the player entity.
victim: entity getting punched.
Thanks but i wanted more of help putting in the code and a little more explaination but it was handy that i know everything treebl was talking about.
Rollback Post to RevisionRollBack
Youtube: Markmanghost1
To post a comment, please login or register a new account.
Back to modding! Follow me on Twitter @byteandahalf
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAll right, you ready?
First, do a JavaScript tutorial. Codecademy: http://www.codecademy.com/tracks/javascript or an older tutorial, JavaScriptKit: http://www.javascriptkit.com/javatutors/
Then, when you've done a tutorial, and know how to do loops/functions/if statements/variables, come back and I'll have the rest of the tutorial written.
I already learned that stuff i just dont get what the fuctions do. Thats all i need to knowMore of how to use the fuctions. Treebl could of given a better explanition.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium- getPlayerX(), getPlayerY(), getPlayerZ(): get the position of the player's head.
- getPlayerEnt(): get the player's entity for use in methods that require an entity.
- getLevel(): get a pointer to the level. Useless for now.
- setPosition(): moves the entity. As far as I know, this actually moves feet coordinates in BlockLauncher; will check on iOS.
ent: an entity such as the player gotten in getPlayerEnt()
- setVelX, setVelY, setVelZ: set the entity's speed along an axis.
ent: n entity such as the player from getPlayerEnt()
- explode: boom.
x, y, z: center radius: power of the explosion; see http://www.minecraftwiki.net/wiki/Explosion#Properties
- addItemInventory: adds an item to the player's inventory.
id: item ID, as seen on http://www.minecraftwiki.net/wiki/Data_values_(Pocket_Edition)
count: how many to add
Note that there is no current way to detect a full inventory, so items may be lost.
- rideAnimal: allows the first entity to ride the second.
player: the rider, an entity. Doesn't have to be a player - but can be; use getPlayerEnt()
target: the animal that the rider rides on, an entity.
The two standard hooks:
function useItem(x,y,z,itemId,blockId)
x, y, z: location of the block clicked on. (Not the block to be built - this is the block clicked against.)
itemId: the ID of the tool the player is clicking with. 0 for bare hand.
blockId: the block ID that the player clicked on.
function attackHook(attacker, victim)
attacker: currently always the player entity.
victim: entity getting punched.
Um,, well that's a lot to process...
I am secretly a modder, who works only for himself, seldom publishes.
Thanks but i wanted more of help putting in the code and a little more explaination but it was handy that i know everything treebl was talking about.