This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Using ModPE, is there a way to make a player fall through specific a block, or when a player steps on a specific block make them fall through it? If so how whould I do that?
you could try retexturing a void block...
Or define a block and use modTick to delete the block for one tick when you are on It.
function modTick()
{
if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ()==240))
setTile(Player.getX(), Player.getY()-2, Player.getZ(),0,0)
}
I already tried doing this, but it just makes any block under you disappear.
The block id 240 is a custom block I made.
Quote from alaphant42ยป modTick(){if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ()==240)){setTile(Player.getX(), Player.getY()-2, Player.getZ(),0,0)}} I already tried doing this, but it just makes any block under you disappear.The block id 240 is a custom block I made.
Oh ok
Also thanks for the help, it worked.
Using ModPE, is there a way to make a player fall through specific a block, or when a player steps on a specific block make them fall through it? If so how whould I do that?
you could try retexturing a void block...
UMG.. . ... . TFW??! . . .. rEKT m8! ...
'LY KR4P!
WUT???
Wooooow... #Rekt
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOr define a block and use modTick to delete the block for one tick when you are on It.
function modTick()
{
if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ()==240))
{
setTile(Player.getX(), Player.getY()-2, Player.getZ(),0,0)
}
}
I already tried doing this, but it just makes any block under you disappear.
The block id 240 is a custom block I made.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDo it better so(puts the player a little bit downwards):
function modTick(){
Id=getTile(Player.getX(),Player.getY(),Player.getZ());
if(Id==240){
Entity.setPosition(getPlayerEnt(), Player.getX(), Player.getY()-1, Player.getZ());
}
}
Oh ok
Also thanks for the help, it worked.