Giter Site home page Giter Site logo

project-rt / randomtweaker Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 8.0 30.64 MB

Provides many more mods support and great features for CraftTweaker.

Home Page: https://www.curseforge.com/minecraft/mc-mods/randomtweaker

License: MIT License

Java 100.00%
crafttweaker crt minecraft mc

randomtweaker's Introduction


Random Tweaker


Main contents

  1. Create custom Botania Generating / Functional Flowers.
  2. Customize Botania ManaItem / ManaBauble.
  3. Customize Botania Cocoon of Caprice spawns.
  4. Customize the vanilla potion / potion bottle.
  5. Customize the JEI interface.
  6. Customize Thaumcraft aspects.
  7. Customize Astral Sorcery attunement altar recipes.
  8. FTBUltime support, which gives or removes a player's chain effect at any time.
  9. Modified Hydroangeas to accept other fluids, and modified Orechid to accept blocks as input that are not limited to Stone.
  10. New randomtweaker.prop exists in the root directory and can be used to store data for Map< String, String>.
  11. Support some mods and vanilla game expansion.
  12. And more...

↑ Above functions require configuration files for switching

Follow up plans

Support more mods and vanilla game expansion. (PR welcome)

Contributors

Thank you to all the contributors!

randomtweaker's People

Contributors

friendlyhj avatar ikexing-cn avatar jchung01 avatar niyanhhhhh avatar ukmojb avatar water-moon avatar xhl315 avatar

Stargazers

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

Watchers

 avatar  avatar

randomtweaker's Issues

[特性建议]自定义mekanism灌注类型

mekanism的冶金灌注机可以将红石、钻石等转换为浆液灌注进另一样物品进行制作,但是crtwiki称无法自定义新的灌注类型。故可否添加对自定义灌注类型的支持?

希望增加可以直接增加IMutableStack中属性修饰符的方法

希望增加可以直接增加IMutableStack中属性修饰符的方法。
简单来说,比如我要设计一个匠魂属性,内容是“该工具的主手攻击速度增加20%”。
想通过一个类似IItemStack.mutable().addNewModifiers(name as string, slot as string, number as float, addType as int, uuid as string);的方法直接即时修改一个物品的属性修饰符,每个uuid独立作用(可叠加)。

(not actual issue) `FTBUltimine` Mixin trying to inject despite neither `FTBUltimine` mod installed or `AllowCrTControl` option enabled

I don't have FTBUltimine installed, but according to debug.log file, RandomTweaker still trying to inject its code:

[mixin]: @Mixin target com.feed_the_beast.mods.ftbultimine.client.FTBUltimineClient was not found mixins.randomtweaker.mods.json:ftbultimine.MixinFTBUltimineClient from mod unknown-owner

This is also sounds strange since its trying to inject even if this config option set to false:

ftbultimine {
    # If true, Allow Crt to Control the FTBUltimine enable
    B:AllowCrTControl=false
}

I expect, for every tweak in randomtweaker.cfg file, if option is disabled, it should not inject code into other mods. I dont know how mixins works, but i suspect that this would make my modpack load tiny bit faster and reduce incompatibility with other mods that changing same classes.

Server Crash

A typo in this line ("Server" -> "Sever") means the mod will crash every time it is constructed server side.

Crash: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: ink.ikx.rt.impl.internal.proxy.SeverProxy

`setMaterialPriority` not working for main material grid view

Im using this methof to rearrange materials in book:

for matName, power in scripts.equipment.equipData.defaultWeaponMats {
  mods.randomtweaker.tconstruct.IBook.setMaterialPriority(matName, power);
}

Comes out that only detailed pages arranged (were we can see stats and applicable tool parts), but main "grid" view is stay the same:

image

debug.log

[Suggestion: Botania] ability to add mobs to Cocoon of Caprice

it would be cool to have the ability to add custom mobs to the cocoon of caprice from botania, based on items given.

currently the cocoon work by hatching in an animal after a while, and if up to 20 items are given to it, it will hatch in a shulker or a villager based if you gave it chorus fruits or emeralds (each item add 5% chance)

a function like this could have as parameters:
-entity to summon
-item to give

if i'm not wrong, things like time to hatch and probability are always 2 minutes and 5% per items, so i don't think it's needed

an other possibility could be to add a pool of entities to summon given the same item, as for normal cocoon behaviour without items.

a function like this could have as parameters:
-[list of entities]
-[list of probability ordered per entity]
-item to give

`1.4.6` Crash: `UnsatisfiedLinkError: 'long org.lwjgl.opengl.CallbackUtil.ncreateGlobalRef(java.lang.Object)'`

Launching game with a version 1.4.6 causing crash:

java.lang.UnsatisfiedLinkError: 'long org.lwjgl.opengl.CallbackUtil.ncreateGlobalRef(java.lang.Object)'
at org.lwjgl.opengl.CallbackUtil.ncreateGlobalRef(Native Method)
at org.lwjgl.opengl.CallbackUtil.createGlobalRef(CallbackUtil.java:61)
at org.lwjgl.opengl.GL43.glDebugMessageCallback(GL43.java:304)
at meldexun.renderlib.opengl.debug.OpenGLDebugMode$1.enable(OpenGLDebugMode.java:26)
at meldexun.renderlib.opengl.debug.OpenGLDebugMode.setupDebugOutput(OpenGLDebugMode.java:350)
at net.minecraft.client.Minecraft.handler$zei000$init_finishMinecraftLoading(MinecraftAccessor.java:5358)
at net.minecraft.client.Minecraft.init(MinecraftAccessor.java:535)

https://mclo.gs/eYDZLxY

This crash does not happen on 1.4.5.

NullPointerExeption for Entity with no aspects set

I use mods.randomtweaker.thaumcraft.IEntity.getAspects(entity) to get entity aspects list. However if the entity doesn't have any set aspects (like zombie villager) it shows this error:

java.lang.NullPointerException
	at ink.ikx.rt.api.mods.thaumcraft.expand.ExpandIEntity.getAspects(ExpandIEntity.java:21)
	at do\Mithminite_scythe.vitreusCrystalize(do/mithminite_scythe.zs:741)
	at do\Mithminite_scythe.scytheEffectElemental(do/mithminite_scythe.zs:794)

Is there a way to return empty list for this case?

IBook.setMaterialPirority()使用情况出现异常

目前使用了RT的匠魂宝典材料排序功能,然后出现了以下情况:
测试包(只有RT匠魂等最基础的模组)匠魂宝典和盔甲锻造手册都成功被排序
实战环境里盔甲锻造手册被成功排序但是匠魂宝典完全没被排序

用于排序的zs文件https://paste.fastmirror.net/?7e7d09903be8baec#HLYxSyrTvtz8Y8YxbNHz9eYMegkxo4ARDt7dLAdUVDA6

crafttweaker输出文件https://paste.fastmirror.net/?c74a11e131c5ba91#99Wa46XsUatVv1ptMaVQtaYUZSvBna9NHiiQi5PLGZGc

latest文件https://paste.fastmirror.net/?2ca0e0e2c83b8f24#9gRhyisGWRSRGHBgcMegji46PbMJbM2xNChLEJauoXjk

mmexport1699773506753
mmexport1699773508331

凝矿兰魔改优化

使用版本:1.1.17
凝矿兰:魔改代码
getOreWeight 接口会返回空的对象,第23行代码 if (!isNull(ore)) 第25行代码 if (!ore.empty) 如果不写会导致下面 add的时候报错 This ore was empty! 错误原因 和 #35 一样
希望 getOreWeight 不会返回 空的对象

[ERROR] Error loading vanilla ASM: `ClassNotFoundException: ge`

Loading game with RandomTweaker i found this error appear in debug.log file:

[main/ERROR] [ink.ikx.rt.classTransforms.RandomTweakerClassTransformer]: Error loading vanilla ASM
java.lang.RuntimeException: java.lang.ClassNotFoundException: ge
	at ink.ikx.rt.classTransforms.RandomTweakerClassWriter.getCommonSuperClass(RandomTweakerClassWriter.java:19) ~[RandomTweakerClassWriter.class:?]
	at org.objectweb.asm.ClassWriter.getMergedType(ClassWriter.java:1698) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.Frame.merge(Frame.java:1530) ~[asm-debug-all-5.2.jar:5.2]
  [...]

What does this error means? Does this means some of RandomTweaker functionality not working?

魔力池事件导致魔力池没有输出

使用版本:1.1.17
魔力池事件:魔改代码
魔力池:魔改代码
魔力池事件第三十行代码 event.setOutput(event.output); 不管写不写都没有输出。
由于有日志打印,我可以确认第14行被执行到了。
测试例子:
1.丢入我魔改后的物品到魔力池,没有物品输出。
2.丢入曲奇饼到魔力池,这是植物魔法原始的配方,但在魔力池里不会变成魔力曲奇。

`IBook.changeMaterialItem` not working

I used mods.randomtweaker.tconstruct.IBook.changeMaterialItem('xu_magical_wood', <extrautils2:decorativesolidwood:1>); to change item representation in book.
This what i see in logs:

[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: mods\randomtweaker.zs}
[INITIALIZATION][CLIENT][INFO] Changing material fusewood to item <botania:shimmerwoodplanks>
[INITIALIZATION][CLIENT][INFO] Changing material xu_magical_wood to item <extrautils2:decorativesolidwood:1>

This what i see in book. Its didn't changed =(

image

[request] thaumic addition support

hi, sorry to bother you, you are one of the few that is still adding compatibility to crafttweaker, so i wanted to ask if you would like to add some compatibility with thaumic addition to customize some of the feature that does not have any way to be changed:

-Flux concentrator: a way to add recipe for block conversion. this should be possible looking at the code

-vis salt: a way to add/change potion effects to vis salt. basically, every mod that add essentia is not handled by thaumic addition, so those are basically usless. this i don't know if it's possible to do

let me know if you like this ideas and the possibility of implementing at least the first

crash on world loading: NoClassDefFoundError

the game crash while loading a new world in the latest release (1.1.7) and also previous.
tested in a large modpack environment.

vanilla fix said it involves randomtweaker, TaN and lag goggle
matteroverdrive is not in the pack

edit- forgot the log: The mighty Log

Material item doesn't change the material in the material list

I... suppose it's a bug. In my script, I have the fillowing :
mods.randomtweaker.tconstruct.IBook.changeMaterialItem(crystal_matrix, <extendedcrafting:material:24>);
mods.randomtweaker.tconstruct.IBook.changeMaterialItem(fluix_steel, <contenttweaker:fluix_steel>);

When looking at the material list in tconstruct, I see the item being the shards, which is not the texture of these items. Screenshot :
image

But when I look at the item's page, I see this :
image
Which has the right item associated to the material

As such, I am confident my script is right and this is an error in the mod

This function took about 2 seconds `ink.ikx.rt.impl.mods.crafttweaker.CraftTweakerExtension.registerAllClass()`

Im profiled my E2E-E modpack and found that this function took 1.6 seconds to execute.

image

https://spark.lucko.me/1gJaCkUPrm?hl=301592

This is small in comparison to whole modpack, but since i have ~400 mods, i want to be sure each second spent by any mod is improving modpack and not an accidental bug😅
1.6 seconds is concerning for a single mod, when 200 of 400 mods loads in less than 0.1 second.

What does this function do? If it required for some mod feature, how can i disable this feature?

植物魔法给凝矿兰添加矿物转换报错

我在对凝矿兰魔改的时候报错 “This ore was empty!” ,我看了源码如下,判断十分的简单明了,但我可以确定一件事情这个矿物的矿词是存在的,并且我使用原先植物魔法的魔改可以生效。我不清楚是我魔改写的问题,还是哪里的bug。
if (ore.isEmpty()) { CraftTweakerAPI.logError("This ore was empty!"); return; }
使用Modtweaker的魔改代码:https://github.com/Anidlebrain/magic_higanbana/blob/master/magic_higanbana/overrides/scripts/CraftTweaker/mods/botania/Orechid.zs
使用RandomTweaker的魔改代码:https://github.com/Anidlebrain/magic_higanbana/blob/master/magic_higanbana/overrides/scripts/CraftTweaker/mods/randomtweaker/botania/Orechid.zs
两个魔改代码同时运行时的crt的log:https://paste.ubuntu.com/p/5nHpR6pKYM/

RandomTweaker breaking `AstralSorcery` crystal attunment

When RandomTweaker-1.4.2 installed, crystals cant be attuned to constellations:
image

When mod removed, everything working fine:
image

attunementModification config set to false

astralsorcery {
    # If true, Modify attunement and add related events. [default: false]
    B:attunementModification=false
}

Setting this config option to true fixes the issue.

Aspect添加材质加载问题

[步骤]
我创建了一个 stat 的Aspect
var stat as Aspect = VanillaFactory.createAspect("stat", 0x4169E1); stat.register();
在材质\resources\contenttweaker\textures\aspects 放了一个stat.png 但没有成功加载材质
而后我把.png去了,即stat.png改为stat,游戏中正常显示了材质。

[期望]
可以正确的加载stat.png文件而不是stat

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.