GithubHelp home page GithubHelp logo

notenoughluck's Introduction

auioc

notenoughluck's People

Contributors

lainio24 avatar wakelesssloth56 avatar

Stargazers

 avatar

Watchers

 avatar

notenoughluck's Issues

[新增物品]黄历

  1. 物品id
    • almanac
  2. 获取
    • 手持四叶草,长按右键。若背包中有365或366张纸(根据现实时间是否处于闰年决定),那么会消耗四叶草和这些纸,获得一本黄历。
  3. 使用方法
    • 手持黄历右键,可以打开黄历, 显示昨天、今天、明天的“吉凶”情况。
    • 在黄历界面里,可以输入天数,查看那一天的“吉凶”情况。
  4. 配置文件
    • 是否根据现实时间决定制作时消耗纸的数量:true。(默认为true)
    • 制作时消耗纸的数量,如果上一项为true,则此条无效:365。(默认为365)

[BUG]提喀之骰掷得6点时出现空指针异常

[20:03:25.253][Server thread/ERROR][ne.mi.se.MinecraftServer/]: Encountered an unexpected exception
 net.minecraft.ReportedException: Ticking player
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:145) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:882) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:808) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:86) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:668) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:258) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.effect.MobEffectInstance.getEffect()" because "p_147208_" is null
        at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:887) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.LivingEntity.addEffect(LivingEntity.java:880) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at org.auioc.mods.notenoughluck.common.item.base.DiceItem.inventoryTick(DiceItem.java:63) ~[%2381!/:?]
        at net.minecraft.world.item.ItemStack.inventoryTick(ItemStack.java:484) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Inventory.tick(Inventory.java:235) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Player.aiStep(Player.java:489) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2249) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.world.entity.player.Player.tick(Player.java:234) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:439) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:206) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.network.Connection.tick(Connection.java:233) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:142) ~[forge-1.18.1-39.0.75_mapped_official_1.18.1-recomp.jar%2377!/:?]
        ... 6 more

[新增物品]堤喀之骰

  1. 物品id
    • dice_of_tyche
  2. 获取
    • 有序合成
      四叶草四叶草四叶草
      四叶草骰子四叶草
      四叶草四叶草四叶草
  3. 使用方法
    • 丢出骰子,为掉落物状态的堤喀之骰即显示点数,点数面向上;
    • 玩家捡起堤喀之骰后会在 GUI 中显示点数,然后根据点数:
    1. 获得幸运Ⅰ;
    2. 获得幸运Ⅱ;
    3. 获得幸运Ⅲ;
    4. 获得幸运Ⅳ;
    5. 获得幸运Ⅴ;
    6. 重置堤喀之骰冷却,下一次投掷堤喀之骰获得的效果等级+1(可叠加)。
      这些效果均持续2分钟。堤喀之骰的使用有10分钟冷却时间。
    • 非玩家丢出所创建(投掷器掷出、破坏容器的掉落等)的掉落物以及其在 GUI 中不会显示点数,六面均显示为“?”。
  4. 配置文件
    • 使用堤喀之骰是否移除已有的幸运和霉运效果:true。(默认为true)
    • 通过堤喀之骰获得幸运或霉运持续时间:120秒。(默认为60秒)
    • 堤喀之骰的使用冷却时长:600秒。(默认为600秒)

[新增物品]四叶草

  1. 物品id
    • four_leaf_clover
  2. 获取
    • 破坏草或高草丛,有非常小的概率掉落四叶草。幸运或霉运会根据等级来影响这个概率大小。
  3. 配置文件
    • 四叶草获取概率是否受幸运或霉运影响:true。(默认为true)
    • 是否允许破坏蕨或大型蕨时掉落四叶草:false。(默认为false)

[幸运霉运修正]远程射击

  1. 受幸运影响时,根据等级,弓和弩暴击额外伤害改为RANDOM(0.05n,(0.5+0.25n)D+2)。(n为幸运等级)
  2. 受霉运影响时,根据等级,箭矢只有0.8^n×100%概率造成伤害。

[幸运霉运修正]魔咒

  1. 每有2级幸运,以下魔咒等级+1:时运、抢夺、耐久。
  2. 每有1级霉运,以下魔咒等级-1:时运、抢夺、耐久。

[幸运霉运修正]近战攻击

  1. 受幸运影响时,根据等级触发以下效果:
    幸运Ⅰ:15%概率造成1.25倍伤害(总伤害)。
    幸运Ⅱ:30%概率造成1.5倍伤害。
    幸运Ⅲ:45%概率造成1.75倍伤害。
    幸运Ⅳ:60%概率造成2倍伤害。
    幸运等级为Ⅴ或更高时:75%概率造成1+0.2n倍伤害,25%概率造成0.75+1.5^(n-4)倍伤害。(n为幸运等级)
  2. 受霉运影响时,根据等级,近战攻击只有0.85^n×100%概率造成伤害。

[模组联动]在冠军Champions模组新增精英怪词缀

  • 联动模组:冠军 (Champions)
  • 新增词缀
    • 灾星jinx:被攻击时,随机给予攻击者等级Ⅰ~Ⅲ的霉运,持续5秒。
    • 针刺acupuncture:攻击力下降25%,但无视目标EPF。
    • 驱散dispel:被攻击时移除攻击者一个正面效果。
    • 现实reality:免疫魔法伤害,但受到的其他伤害增加25%。
    • 飓风hurricane:被击杀后将击杀者随机传送到32格内,并给予15秒反胃。

[新增物品]骰子

  1. 物品id
    • notenoughluck:dice
  2. 获取
    • 无序合成:
      石头四叶草-
      ---
      ---
  3. 使用方法
    • 手持骰子右键,骰子会掉落,捡起时骰子会显示掷得的点数,移除身上的幸运和霉运效果,然后根据点数:
    1. 获得霉运Ⅲ;
    2. 获得霉运Ⅱ;
    3. 获得霉运Ⅰ;
    4. 获得幸运Ⅰ;
    5. 获得幸运Ⅱ;
    6. 获得幸运Ⅲ。
      这些效果均持续1分钟。骰子的使用会有15分钟的公共冷却。
  4. 配置文件
    • 使用骰子是否移除已有的幸运和霉运效果:true。(默认为true)
    • 通过骰子获得幸运或霉运持续时间:60秒。(默认为60秒)
    • 骰子的使用冷却时长:900秒。(默认为900秒)

[新增物品]赎罪券

  1. 物品id
    • notenoughluck:indulgence
  2. 获取
    • 村民交易
      职业等级购买物品默认数量价格乘数出售物品数量可交易次数经验值
      牧师大师绿宝石320.25赎罪券1230
  3. 使用方法
    • 手持赎罪券,长按右键,消耗一个赎罪券,使用者第二天的“运势”等级会上升一级(比如从“大凶”变为“中凶”)。
  4. 配置文件
    • 禁用赎罪券交易:false。(默认为false)

[游戏设定]运势

  1. 获得
    • 每天的0点或者玩家出生、重生时,玩家或获得一个反映当天“吉凶”情况的状态效果。
  2. 功能
    • 不同的“吉凶”会持续给予玩家幸运或霉运效果。
      1. “大吉”:幸运Ⅳ
      2. “中吉”:幸运Ⅲ
      3. “小吉”:幸运Ⅱ
      4. “末吉”:幸运Ⅰ
      5. “平”:(不给予玩家幸运或霉运)
      6. “末凶”:霉运Ⅰ
      7. “小凶”:霉运Ⅱ
      8. “中凶”:霉运Ⅲ
      9. “大凶”:霉运Ⅳ
  3. 特点
    • “吉凶”效果的持续时间是一天。
    • “吉凶”效果本身不会被奶桶或其他状态清除能力解除,只有获得新的“吉凶”效果时,才会移除上一个“吉凶”效果。
    • “吉凶”效果每隔1分钟给予玩家一次幸运或霉运,可以用奶桶清除幸运或霉运效果。
  4. 配置文件
    • 是否允许“吉凶”效果被解除:false。(默认为false)

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.