Is there anyway you could make a modpe script where you press a button or tap the ground with something that it could make a force shield so that mobs cant get you.
Is there anyway you could make a modpe script where you press a button or tap the ground with something that it could make a force shield so that mobs cant get you.
You could make a dome of glass around you. I'm not sure that's what you want, though.
So a mob cant get into a 1 block radius of your character?
Yes i dont want a dome i want something to where you tap the ground or press a button to where it makes a 2 by 2 cobblestone square and the mobs cant get pass the cobblestone. Hey yoshi!!
Yes i dont want a dome i want something to where you tap the ground or press a button to where it makes a 2 by 2 cobblestone square and the mobs cant get pass the cobblestone. Hey yoshi!!
Use something like Invisible Bedrock... Then it gets destroyed when you deactivate it.
exactly or in ultimacraft mod one of the spells (protego i think) makes a wall of invisible bedrock every where you walk and mobs cant pass through (+if you touch a mob with the bedrock you suffocate the mob)
var shield = 0; //variable shield
function useItem(x, y, z, itemId, blockId, side) //use function hook
{
if(itemId==341) //if slime ball
{
shield = 1; //shield now equals one
setTile(getPlayerX()+1, getPlayerY(), getPlayerZ(), 20); //set a glass block
}
else if(shield==1) //if the shield is 1
{
shield = 0; //shield now equals 0
Level.destroyBlock(getPlayerX()+1, getPlayerY(), getPlayerZ()); //destroy the block glass at the x coord
}
}
var shield = 0; //variable shield
function useItem(x, y, z, itemId, blockId, side) //use function hook
{
if(itemId==341) //if slime ball
{
shield = 1; //shield now equals one
setTile(getPlayerX()+1, getPlayerY(), getPlayerZ(), 20); //set a glass block
}
else if(shield==1) //if the shield is 1
{
shield = 0; //shield now equals 0
Level.destroyBlock(getPlayerX()+1, getPlayerY(), getPlayerZ()); //destroy the block glass at the x coord
}
}
Why is that you dont just use booleans if you're just using 0 and 1? Too me it doesn't make much self.
Is there anyway you could make a modpe script where you press a button or tap the ground with something that it could make a force shield so that mobs cant get you.
already made by mcpemodder, check Ultimacraft, there is a harry potter spell which creates a shield of invisible bedrock and it is moving with you.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
You could make a dome of glass around you. I'm not sure that's what you want, though.
You could probably use connors magic carpet script and just change the layout of the carpet to a dome
Yes i dont want a dome i want something to where you tap the ground or press a button to where it makes a 2 by 2 cobblestone square and the mobs cant get pass the cobblestone. Hey yoshi!!
Then how will you see???
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
I like Triangles...
I like Triangles...
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumvar shield = 0; //variable shield function useItem(x, y, z, itemId, blockId, side) //use function hook { if(itemId==341) //if slime ball { shield = 1; //shield now equals one setTile(getPlayerX()+1, getPlayerY(), getPlayerZ(), 20); //set a glass block } else if(shield==1) //if the shield is 1 { shield = 0; //shield now equals 0 Level.destroyBlock(getPlayerX()+1, getPlayerY(), getPlayerZ()); //destroy the block glass at the x coord } }Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Why is that you dont just use booleans if you're just using 0 and 1? Too me it doesn't make much self.
already made by mcpemodder, check Ultimacraft, there is a harry potter spell which creates a shield of invisible bedrock and it is moving with you.