Awesome!
https://youtu.be/Prdu6ntzJHA?si=UlleBmRsfZhaY0Fy
about 3:50 you mentioned the computer has obstacle detection. I assume it’s from your friend’s Metaphysics mod, is that right? can you tell us a bit more about how the obstacle detection works using the mod? I assume you use a raycast but how would you set it up in game? do you need to craft a laser or something?
Obstacle detection is not a metaphysical mod, it can also be done by command_computer alone (commands.getblockinfo), but it is limited in speed (requires a 1tick return result), and my friend’s metaphysical mod has no 1tick limit (instant return result). Detect obstacles: Map the barrel coordinates (calculate the coordinate difference between the bolt and the ship’s center of mass, then use the ship quaternion - rotation coordinate difference, then add to the ship’s world coordinates), fire a laser from the barrel coordinates (fake laser, just the velocity vector xyz, I can get it from the player detector) and use commands.getblockinfo to get the result (wait 1tick), so I switched to my friend’s metaphysical mod and got the result instantly
OH I get it now. Now I understand what you meant by “commands.getblockinfo” you literally draw a line in space and go through the blocks that’s intersecting it
My friend’s metaphysics mod also has this: Player detector without latency
metaphysics:player detector… it’s a block right? I don’t think I recognized it in the video. So it can read CBC gun contraption data beside player data too?
I uploaded a video. About CC: Tweaked implementation of raycaster
It only provides some APIs, such as player scanner, environment scanner, no peripherals are required, and there is no need to wait for 1tick to return.
oh wait or is the “player detector” from advanced peripherals? cause I didn’t know they can detect gun contraptions like that
I get how you can raycast from a player and get the attack coordinates but how do you raycast from the ship? I think I missed that part in the video
At 1:14 in the video I map the CBC breech block coordinates to world coordinates, and then use the raycaster method to shoot a ray
The API of the metaphysics mod does not require command compute. However, NBT acquisition still requires command compute:2dstare:
I hope he can also get the NBT data of the blocks, but he said he encountered a problem, maybe he will solve it…
might be smart to have the NBT scanner thing as an optional method. I imagine it being a huge bottleneck to scan for terrain data
like maybe have method option for the Environment Scanner return only coordinates
I saw your video before I made these and it was pretty cool
This conversation is on Discord · Reply there
getMonster.png