printflush msg
sensor prev prv @enabled
op sub page page prev
sensor next nxt @enabled
op add page page next
jump 7 greaterThan page 0
set page 1
getlink msg 0
getlink prv 1
getlink nxt 2
control enabled prv 0 0 0 0
control enabled nxt 0 0 0 0
set BOOK_START_COUNTER @counter
op mul curPageCounter page 2
op add curPageCounter curPageCounter 5
op add curPageCounter BOOK_START_COUNTER curPageCounter
print "[stat]PAGE-"
print page
print "\n[white]"
set @counter curPageCounter
print "[yellow] [P-EBOOK Reader] \n Under GPL 3.0[white]\n"
set @counter 0
print "The P-EBook schematic is a device that enables you to store and read huge amount of text in [stat]<mindustry>[white].\nTo add new page, you need to add instructions:\nprint "text"\nset @counter 0\n\nEach p"
set @counter 0
print "age can store 220 letters.\n\nAs for reproducer or author, you need to follow GPL 3.0 (and the text's license, if there is one).\nSign for yourself is allowed. I recommend a message.\n[blue]By MyIndustry2"
set @counter 0
print "n"
set @counter 0
这是电子书模板中的处理器代码,文本是英文的介绍和规约
用法:按照顺序绑定信息板、开关1(上一页)、开关2(下一页)
添加一个新页面:在代码底部加入下面两句
![[滑稽]](/static/emoticons/u6ed1u7a3d.png)
print "文本"
set @counter 0
当然导入小说的话,肯定要写一个指令生成器了
![[滑稽]](/static/emoticons/u6ed1u7a3d.png)
我写的玩意不怎么样,就不放了吧
@counter真滴好用