Jump to content

Villfuk02

Members
  • Posts

    301
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Villfuk02's Achievements

Diamond Finder

Diamond Finder (5/8)

1

Reputation

  1. 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)
  2. 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?
  3. 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_) { } }
  4. Is there a way to store a string array or multiline string? nvm, figued it out
  5. 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
  6. 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?
  7. config files are deprecated now? or it's just this one thing
  8. 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???)
  9. Making certain (not known until startup which) blocks drop dusts instead of their normal drops when mined by a hammer
  10. then how do I make them controlled by configuration?
  11. because the output depends on the mod configuration well, then how can I do that without loot tables?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.