-
Notifications
You must be signed in to change notification settings - Fork 2
/
Portal Gun Mod Long Fall Boots.js
48 lines (42 loc) · 1.25 KB
/
Portal Gun Mod Long Fall Boots.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//Long Fall Boots Mod
//by wilco375
//Don't share or redistribute this mod using the Github link, instead, use this link: http://adf.ly/nBuX7
tickcount = 0
watertickcount = 0
ModPE.langEdit("item.bootsChain.name","Long Fall Boots");
ModPE.setItem(460,"hopper",0,"Long Fall Boot")
Item.addCraftRecipe(460,1,0, [265,6,0, 1,1,0, 264,2,0])
Item.setCategory(460,4)
Item.addCraftRecipe(305,1,0, [460,2,0])
ModPE.overrideTexture("images/items-opaque.png", "http://i.imgur.com/OYznGRZ.png ")
ModPE.overrideTexture("images/armor/chain_1.png", " http://i.imgur.com/M1tWIjs.png ")
function modTick(){
PY3 = getPlayerY() -1
PY4 = getPlayerY() -4
PY1 = getPlayerY() -3
PY2 = getPlayerY() -5
PZ1 = getPlayerZ()
PX1 = getPlayerX()
Block1 = getTile(PX1, PY1, PZ1)
Block2 = getTile(PX1, PY2, PZ1)
Block3 = getTile(PX1, PY4, PZ1)
boots = Player.getArmorSlot(3)
if(boots == 305 && Block1 == 0 && Block2 != 0 && Block3 == 0 && tickcount == 0 && Level.getGameMode() == 0){
setTile(PX1,PY3,PZ1,9,0)
watertickcount = 1
waterx = PX1
watery = PY3
waterz = PZ1
tickcount = 1
}
if(watertickcount == 2){
setTile(waterx,watery,waterz,0,0)
watertickcount = 0}
if(tickcount !=0){
if(tickcount != 10){
tickcount++}
else if(tickcount == 10){
tickcount = 0}}
if(watertickcount != 0){
watertickcount++}
}