Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
users[m.GetInt(0)].Physics.AddBlockTouchEvent(9, delegate (PlayerEventArgs e)
{
con.Send("b", 0, x, y, 4);
});
For the code above it deletes 3 blocks...
1 above you.
1 to the left
1 to the right..
Is it possible i can change it to only delete the block infront of you?
I know you can do it without eephysics.. but i want to use eephysics for the sake of saving time.. bc im lazy.
Offline
EEPhysics seems a bit overkill if you're making a digbot (it looks like you are), but with that code if you're touching three grey basic blocks then it'll erase those three blocks. For there to be an "in front of you" you would need to store the last direction that the player moved in, using "m"[7] and "m"[8], and take that as the direction they're facing. Then you check if any of the blocks they're currently touching is "in front" of them, and erase only that one.
But a generic digbot done in this way would be boring to play, because you'd only have to hold down a key to dig a line of blocks, instead of tapping. Adding other features like portal worms or other hazards would be necessary to make it a fun BAL.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Thank you & how do i get edit with bot??
con.Send("access", 1234);
doesn't work.
Offline
con.Send("access", "1234");
I think it needs to be a string
That doesn't work either.
Offline
Yes, I'm testing it in my world.
Offline
I think you are trying to do something like a digbot. I made an example how to make a digbot all code is added you just need to understand how it works.
https://pastebin.com/9EqUSzdR
Offline
PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "[email protected]", "01234567890", null,
"[email protected]", "01234567890"
nice
Offline
PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "[email protected]", "01234567890", null,
"[email protected]", "01234567890"
nice
Don't steal my awesome passwords.
Offline
To actually answer the answer (in case EEPhysics is required for other stuff) You can just request the current position of the player and calculate the delta x and y of the touched block position. If the delta x isn't 0, you can remove the block (or whatever).
In case you don't understand what I mean with delta, it's very simple: Delta is basically the difference, if player is located at ([x,y]) [20,20] and a touched block is at [19,20], then the delta x = -1 and delta y = 0.
P.S. Maybe use a bit more descriptive title next time
Offline
Pages: 1
[ Started around 1745264431.5714 - Generated in 0.048 seconds, 12 queries executed - Memory usage: 1.56 MiB (Peak: 1.74 MiB) ]