
Villfuk02
Members-
Posts
301 -
Joined
-
Last visited
Everything posted by Villfuk02
-
I've figured out how to render textured cuboids, but how do I make them transparent and how do I tint the texture? (It doesn't seem rendering a quad is possible, only cuboids)
-
So I have implemented and registered a TileEntity with TileEntityRenderer but i have no idea how to use it. The vanilla code not being deobfuscated doesn't help either. I just want to render a transparent quad with a tinted texture - supposed to look like water or another liquid. Where do I start?
-
t h n k s
-
I'm having some trouble registering a TileEntityRenderer what am I doing wrong? Code: ClientRegistry.bindTileEntityRenderer(ModTileEntityTypes.DRYER, new DryerTileEntityRenderer(TileEntityRendererDispatcher.instance)); IntelliJ error: tileEntityType: Required type: TileEntityType<T> Provided: TileEntityType<capture of ?> rendererFactory: Required type: Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>> Provided: DryerTileEntityRenderer reason: no instance(s) of type variable(s) T exist so that DryerTileEntityRenderer conforms to Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>> DryerTileEntityRenderer class: public class DryerTileEntityRenderer extends TileEntityRenderer<DryerTileEntity> { public DryerTileEntityRenderer(TileEntityRendererDispatcher p_i226006_1_) { super(p_i226006_1_); } @Override public void func_225616_a_(DryerTileEntity p_225616_1_, float p_225616_2_, MatrixStack p_225616_3_, IRenderTypeBuffer p_225616_4_, int p_225616_5_, int p_225616_6_) { } }
-
Is there a way to store a string array or multiline string? nvm, figued it out
-
Great tutorial, however, I have a couple of questions: What is the specPair thing about? Is there any difference between CLIENT and SERVER configs in terms of setup? Thanks for the reply
-
there's a config file in the config folder and another one gets generated in the serverconfig folder of a save, but it has only default values I thought maybe the values from the global config file are supposed to be in the serverconfig too, because the game is using values from the serverconfig, and why even have the global config if that wasn't the case? Main: Config.loadConfig(FMLPaths.CONFIGDIR.get().resolve("qrystal.toml").toString()); ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, Config.config1, "qrystal.toml"); Config.loadConfig: public static void loadConfig(String path) { final CommentedFileConfig file = CommentedFileConfig.builder(new File(path)).sync().autosave().writingMode(WritingMode.REPLACE).build(); file.load(); config1.setConfig(file); } how do I make the game use the values from the global config? Am I misunderstanding how this works?
-
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
config files are deprecated now? or it's just this one thing -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
I thought I'd make it simple for them, not having to create loot tables and such, just assigning the block to be hammerable Since I'm getting no responses on how, but rather why, I guess it's not really possible (except for mixins???) -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
people who put together modpacks -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
Making certain (not known until startup which) blocks drop dusts instead of their normal drops when mined by a hammer -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
this is pretty convoluted way to say fuck you -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
then how do I make them controlled by configuration? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
because the output depends on the mod configuration well, then how can I do that without loot tables? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
I mean generating them when the game is started -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
but what if it is a mod? how can I generate loot tables dynamically? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
Ok, imagine I reworked it so it's registered in recipe JSONs and not in config, now how do I make this work? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
no, I'm not doing that, it's more like registering recipes -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
then what should I do? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
I've seen ex nihilo use mixin, I guess I could do that... But how? The intro isn't really a tutorial -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
Ok, so you can register new materials in the config and one of the things you register is which ores you want to be hammerable into dusts of that material -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
could you please help me fix the issue instead of judging how I've set up my mod's configuration? -
[1.15] Change block drops when mined with my tool
Villfuk02 replied to Villfuk02's topic in Modder Support
but there is a global multiplier in the config -
I'm trying to make some blocks drop something else if mined with my custom tool - hammer Which blocks and what they drop with the hammer is generated dynamically when starting the game (based on config) When mined without the hammer, they drop their normal drops I've tried modifying loot tables in LootTableLoadEvent, but only vanilla loot tables go through there... Is there any other way?
-
It works, thanks!