This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Does any one know how to make Mod that when you step on a block... Something will happen like tp to somewhere, give items or anything...
PLEASE HELP!
function modTick(){
if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ())==Id){ //id is the id of the block
//your Code here
}
a larger example:
https://www.dropbox.com/s/ayaej2pmrcduupj/parkour.js?dl=0
Then what is the code for teleportation?? Hehe
THANKS!
Sorry for my bad English.
I'm a beginner..
Entity.setPosition(Player.getEnt(), x, y, z);
for example:
Entity.setPosition(Player.getEnt(), 10, 70, 1214);
You can use
Entity.setPositionRelative(Player.getEnt(), 5, 0, -7);
to teleport the Player (or another entity) relative to it´s position.
Quote from Clagdriff» Entity.setPosition(Player.getEnt(), x, y, z); for example: Entity.setPosition(Player.getEnt(), 10, 70, 1214); You can use Entity.setPositionRelative(Player.getEnt(), 5, 0, -7); to teleport the Player (or another entity) relative to it´s position.
Does any one know how to make Mod that when you step on a block... Something will happen like tp to somewhere, give items or anything...
PLEASE HELP!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumfunction modTick(){
if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ())==Id){ //id is the id of the block
//your Code here
}
}
a larger example:
https://www.dropbox.com/s/ayaej2pmrcduupj/parkour.js?dl=0
Then what is the code for teleportation?? Hehe
THANKS!
Sorry for my bad English.
I'm a beginner..
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumEntity.setPosition(Player.getEnt(), x, y, z);
for example:
Entity.setPosition(Player.getEnt(), 10, 70, 1214);
You can use
Entity.setPositionRelative(Player.getEnt(), 5, 0, -7);
to teleport the Player (or another entity) relative to it´s position.
It worked!!!
Thank you very much!