The only module I can find is outdated, and besides that I kind of wanted to do the commands myself for fun... But I have no idea how to do part of the command structure I would need! For reference, the challenge I want to use is here. My goal is to put Wither and Mining Fatigue on myself if I'm not touching the tree. My problem is that I don't know how to test for if I'm touching the wood/leaves without needing the area I'm standing in to be identical to the one provided to the command block as an example.
I mean, I could do it if all I needed was to test for was if I'm standing on the blocks, but that's not the case. I also need to be able to test for if I'm touching them horizontally or if I'm under a 2 block high ceiling of them. All the challenge really requires is that you're touching the blocks after all, doesn't matter what side you're touching them on.
Sorry if this doesn't make sense, I can try to clarify if needed.
Rollback Post to RevisionRollBack
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
Hook that up to a comparator with an inverter. Then have that signal go to a repeating (requires redstone) command block with whatever you want to happen after failing the challenge. Then all you need to do is repeat the process for each cardinal direction and above them.
P.S. You would probably want to spawn players on a tree because making a sensor that detects the first tree a player breaks would be very hard.
Hook that up to a comparator with an inverter. Then have that signal go to a repeating (requires redstone) command block with whatever you want to happen after failing the challenge. Then all you need to do is repeat the process for each cardinal direction and above them.
P.S. You would probably want to spawn players on a tree because making a sensor that detects the first tree a player breaks would be very hard.
This might've worked except for the fact that for example "minecraft:birch_log" does not exist, as different log types are determined by data values. Also, the same value determines what direction the log is facing, so you'd need 3 testforblock commands for each wood type for each direction. This adds up to an impractically large amount of commands. Also, a mod recently came out that enforces this challenge anyway. So yeah, I think I'll use the command blocks to do some other cool stuff instead. Thanks for trying though!
Rollback Post to RevisionRollBack
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
But it'd only detect logs in the same facing as the one you used to test this command. And only underneath you. Hence why I'm just going to be using the mod, that way I don't have to bother with an impractically large command structure.
Rollback Post to RevisionRollBack
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
The only module I can find is outdated, and besides that I kind of wanted to do the commands myself for fun... But I have no idea how to do part of the command structure I would need! For reference, the challenge I want to use is here. My goal is to put Wither and Mining Fatigue on myself if I'm not touching the tree. My problem is that I don't know how to test for if I'm touching the wood/leaves without needing the area I'm standing in to be identical to the one provided to the command block as an example.
I mean, I could do it if all I needed was to test for was if I'm standing on the blocks, but that's not the case. I also need to be able to test for if I'm touching them horizontally or if I'm under a 2 block high ceiling of them. All the challenge really requires is that you're touching the blocks after all, doesn't matter what side you're touching them on.
Sorry if this doesn't make sense, I can try to clarify if needed.
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
First set up a repeating command block with:
Hook that up to a comparator with an inverter. Then have that signal go to a repeating (requires redstone) command block with whatever you want to happen after failing the challenge. Then all you need to do is repeat the process for each cardinal direction and above them.
P.S. You would probably want to spawn players on a tree because making a sensor that detects the first tree a player breaks would be very hard.
This might've worked except for the fact that for example "minecraft:birch_log" does not exist, as different log types are determined by data values. Also, the same value determines what direction the log is facing, so you'd need 3 testforblock commands for each wood type for each direction. This adds up to an impractically large amount of commands. Also, a mod recently came out that enforces this challenge anyway. So yeah, I think I'll use the command blocks to do some other cool stuff instead. Thanks for trying though!
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
But it'd only detect logs in the same facing as the one you used to test this command. And only underneath you. Hence why I'm just going to be using the mod, that way I don't have to bother with an impractically large command structure.
I hope someday there's more magic in Minecraft, though I know it's not likely to happen. In the meantime, I play modded a lot. I enjoy a lot of other games too, so don't expect me to be on the forums all the time.
To get a command block use this command:
/give (your ign) command_block 64 1
make sure you have a enough room in you inventory.