Bellisimo
彩虹桥官方搞笑模组
这是一个为 Rainbow Bridge Server 开发的、可用但制作粗糙的 CC: Tweaked 模组。
你可以随意在自己的服务器或整合包中使用此模组,但该模组是专为该服务器开发的,在其他服务器上可能无法正常运行。
目录
- 聊天外设
- Bellisimo 命令
聊天外设
如果你想从海龟接收聊天消息,你需要像对待普通计算机一样将外设放置在世界中。这一点将在后续版本修复。
聊天外设允许你发送和接收聊天消息。
| 功能 |
描述 |
| open() |
打开外设以监听消息 |
| close() |
关闭外设并停止监听 |
| send(string msg) |
发送一条消息 |
当外设处于打开状态时,计算机会开始接收 chat_message 事件,该事件会返回消息内容以及发送者。
当另一台计算机发送消息时,发送者显示为 Computer <id>。此外,来自同一台计算机的消息不会触发 chat_message 事件。
示例
-- 不要在多台计算机上运行此代码,否则会导致两台计算机互相响应,效果不佳
local chat = peripheral.find("chat_peripheral") -- 获取对 chat_peripheral 的引用
chat.open() -- 开始监听聊天消息
while true do
local _, message, sender = os.pullEvent("chat_message") -- 接收聊天消息事件
chat.send(sender .. " sent " .. message)
end
这会在有人发送消息时在聊天栏中发送一条消息。
Bellisimo 命令
此模组添加了一个 /bellisimo 命令。
该命令有两个子命令:say 和 stop。
Say
/bellisimo say 需要两个参数:一个 ID 和一条消息。这将发送一条仅指定计算机可见的消息。
Stop
/bellisimo stop 需要一个可选参数,仅限 OP 使用,用于阻止某台计算机发送消息。
这是一个切换开关。如果在一台计算机上连续两次运行 /bellisimo stop,则该计算机可以再次发送消息。
如果你不提供任何参数,它将阻止所有计算机发送消息。如果此功能已开启,则没有计算机可以发送消息。即使你在某台计算机上运行了 /bellisimo stop,在该计算机上也无法发送消息,直到你再次不带参数运行 /bellisimo stop。
Bellisimo
The rainbow bridge offical funny
A working yet teribly made CC: Tweaked mod for the Rainbow Bridge Server
Feel free to use this mod on your own server or modpack but this mod is developed for the server and may not work properly on other servers
Table of Contents
- Chat Peripheral
- Bellisimo Command
Chat Peripheral
If you want to recieve chat messages from a turtle you need to put the peripheral in the world like the turtle is a regular computer. This will be fixed later
The chat peripheral lets you send and recieve chat messages
| Function |
Description |
| open() |
Opens the peripheral for listening for messages |
| close() |
Closes the peripheral and stops listening |
| send(string msg) |
Sends a message |
When open computer will start recieving a chat_message event that returns the message and the person who sent the message.
Whenever another computer sends a message the sender would be Computer <id>. You also do not get a chat_message event for messages sent from the same computer
Example
-- DO NOT RUN THIS ON MANY COMPUTERS doing so will cause both computer to respond to eachother and not be good
local chat = peripheral.find("chat_peripheral") -- get a reference to the chat_peripheral
chat.open() -- start listening for chat messages
while true do
local _, message, sender = os.pullEvent("chat_message") -- recieve the chat message event
chat.send(sender .. " sent " .. message)
end
This will send a message in chat whenever someone sends a message
Bellisimo Command
This mod adds a /bellisimo command
this command has two sub command. say and stop
Say
/bellisimo say takes two arguments, a id and a message. This will send a message that only the givin computer can see
Stop
/bellisimo stop takes one optional argument and is op only and lets you prevent a computer from sending messages
This is a toggle. If you run /bellisimo stop on a computer twice then that computer can send messages again
if you provide no arguments then it stops every computer from sending messages. If this is on then no computer can send a message. Even if you run /bellisimo stop on a computer that computer cannot send messages until you run /bellisimo stop with no arguments again.
评论 0
登录后参与评分
还没有评论,来抢沙发吧