Giter VIP home page Giter VIP logo

bdspyrunner's Introduction

Hi there 👋 I'm twoone3

  • 🔭 I’m currently studying on XTU
  • 🌱 I’m currently learning Android Development
  • 👯 I’m looking to collaborate on CPython ScriptX
  • 📫 How to reach me: telegarm
  • 😄 Pronouns: He
  • ⚡ Fun fact: ping pong

Anurag's GitHub stats

bdspyrunner's People

Contributors

huohuas001 avatar jfishing avatar lgc2333 avatar mewnojs avatar shrbox avatar xiaoqch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bdspyrunner's Issues

【Pyr 1.9.5】registerCommand API callback无效

控制台输出

[03:48:08 Info][Server] Player connected: Moxiners, xuid: 2535416022XXXX
[03:48:24 Info][Test] onCmdTest
[03:49:01 Info][Server] Player disconnected: Moxiners, xuid: 2535416022XXXX

游戏输出

onCmd

建议

[-] 删除registerCommand的callback,或 默认callback = None!

这是我写的Test.py,可以作为测试使用

import time
import mc
PluginName = "Test"
class PrintLog:
    '''标准化输出'''   
    def GetTime():
        '''获取当前时间'''
        return time.strftime("%H:%M:%S")

    def InfoLog(concent:str):
        '''输出Info通知'''
        mc.logout(f"\033[0m[{PrintLog.GetTime()} Info][{PluginName}] {concent}\n\033[0m")
    
    def WarmLog(concent:str):
        '''输出Warm警告'''
        mc.logout(f"\033[1;33m[{PrintLog.GetTime()} Info][{PluginName}] {concent}\n\033[0m")
    
    def ErroeLog(concent:str):
        '''输出Erroe错误'''
        mc.logout(f"\033[1;31m[{PrintLog.GetTime()} Info][{PluginName}] {concent}\n\033[0m")
        
def RegTest(e):
    player = e["Player"]
    PrintLog.InfoLog("regTest")
    player.sendText("regTest")

def onCmdTest(e):
    player = e["Player"]
    PrintLog.InfoLog("onCmdTest")
    player.sendText("onCmdTest")
# mc.setListener("onPlayCmd",Test)
mc.registerCommand("test",RegTest,"测试")
mc.setListener("onPlayerCmd",onCmdTest)

[建议]将设置指令说明api更改为注册指令api

如题。如果只设置指令说明的话,使用时会提示未知指令,影响游戏体验。
LiteLoader提供了指令注册api,可否至少在插件被LiteLoader加载时提供指令注册api?
(题外话,pyr并不支持最新版bdxcore和支持liteloader(<1.0.3)两点应该在wiki说明的)

[求助] 如何引入外部库

我想引入apscheduler.schedulers.background库,已经使用pip安装完成,原版Python也可以import
但在BDSpyrunner里却提示
ERROR [BDSpyrunner] ModuleNotFoundError: No module named 'apscheduler'

真的不考虑下AIP吗=w=

麻烦您可以只做一个小小的修改:给我们一个配置文件拿来修改python插件的加载路径
如果配置文件不存在直接按照默认的Py来加载
就只要这一点就行=w=

getAllItem & setAllItem方法存在部分nbt无法正常使用的情况

如烟花的颜色nbt,在getAllItem后不会正常显示,同时即使手动添加"FireworkColor1" : 0这一项,在执行setAllItem后,烟花依然是颜色标签丢失的状态,这给备份玩家背包和给予玩家指定颜色的烟花带来了一定困难,望作者大大修复

[建议]新增api

新增爆炸函数 栗子: setExplore(pos.x, pos.y, pos.z, dim , Explosive power[int], Explosive range[int] , Fire[bool])
这个函数既然有了监听, 建议增加调用

Eror 127

20:06:26 ERROR [LiteLoader] Fail to load plugin <BDSpyrunner.dll>
20:06:26 ERROR [LiteLoader] Error: Code[127] The specified procedure could not be found.

python 3.7.9 installed

libs???

hi,

what libraries to use ???
I see that each plugin has "import mc; import json; import os"
what is it and where to get it from?

Error 126 can not found lib

if i just install the plugin
look:
image

console show this:(Fail to load plugin <BDSpyrunner.dll>)
image

python version:(3.7.9)
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.