Supplementaries

Supplementaries

82M Downloads

[Suggestion] ComputerCraft Tweaked support for the speaker block

Ch1216 opened this issue ยท 10 comments

commented

I dont know if this is possible but if it is, you should be able to interact with the speaker block with a ComputerCraft Tweaked computer you should be able to switch narrator or chat message mod and put your own message too

commented

I'm not very familiar at all with computer craft. Could you elaborate on how that would work? How would a computer block be able to reference a speaker block from its code?

commented

added in 0.17.9

commented

Thanks for adding it, although I'm wondering are you gonna make any documentation for it? right now I'm going off the commit in the GitHub. also unless I'm doing it wrong, only the get/isNarratorEnabled commands seem to work in the interactive Lua prompt, but they work in a program, also when i run a program with the speaker block it says something about yielding, the 1 other mod i know has compabilty has a stop function, but it might only be usefull to there case

commented

Hmm to be fair I didn't test those that well. It was all very straight forward so I assumed they would all work. I didn't add any documentation cause I thought you could view all the functions from the computer peripheral view in the suggested functions. There should be a setter and a getter for volume, narrator, message and block name. I did have another user test it (infact he asked about comoat shortly after you did.. crazy) and he told me they were working but maybe he didn't try them all

commented

ok, also if there could be some kind of shortcut to power the speaker block, that would be great,

commented

Hm why not. Seems like something you can already do with redstone controlled by computers but i guess it couldn't hurt. Also regarding the functions that are there, do I need to fix them or they work already?

commented

You you can do it already with Redstone code in computers, but it would be a nice shortcut, and the functions do work in programs but the setter functions don't work in the Interactive Lua prompt which you can access by just typing Lua in a computer and you could think of it as live coding or just putting in functions live

commented

Huh that's odd then. Not sure what I only the setters don't work and why it only happens there. In fact by not working you mean they can't be called or they have no effect?

commented

they have no effect

commented

it seems to work now 0.17.11, thanks for adding the activate method too