but where does support for knowing what to switch to come from?
In the elemental arrows mod by Eugeen, when the arrow hit the block it would call a method that handled whatever happened after impact. The only code required was calling that method. In the same sense, when the player started hitting a block it could put the tool required in the player's hand.
In the elemental arrows mod by Eugeen, when the arrow hit the block it would call a method that handled whatever happened after impact. The only code required was calling that method. In the same sense, when the player started hitting a block it could put the tool required in the player's hand.
This is true, if we could call for the code and get it, we could call for the code on each block.
I think that if someone did make it, it should work like this -
Player starts mining block - If tool for that block is already selected, then stay on tool. If tool to break it best is in hot bar, then switch to that. Otherwise, switch to block or fist as to not waste extra durability.
P.S - Certain hack packs (all my friends are hackers XD) have that feature, so there must be some way to do it.
Rollback Post to RevisionRollBack
IGN: SonOfASelkie, can't change forum name. RIP.
To post a comment, please login or register a new account.
but where does support for knowing what to switch to come from?
In the elemental arrows mod by Eugeen, when the arrow hit the block it would call a method that handled whatever happened after impact. The only code required was calling that method. In the same sense, when the player started hitting a block it could put the tool required in the player's hand.
-
View User Profile
-
View Posts
-
Send Message
Retired StaffThis is true, if we could call for the code and get it, we could call for the code on each block.
Click on an image to view the section rules!









that makes sense.
but will the tool have to be in the hotbar?
I'm not sure, I'm just pretty sure it's possible
-
View User Profile
-
View Posts
-
Send Message
Retired StaffPlayer starts mining block - If tool for that block is already selected, then stay on tool. If tool to break it best is in hot bar, then switch to that. Otherwise, switch to block or fist as to not waste extra durability.
P.S - Certain hack packs (all my friends are hackers XD) have that feature, so there must be some way to do it.
IGN: SonOfASelkie, can't change forum name. RIP.