Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • KidKoderMod033109

KidKoderMod033109

Members
 View Profile  See their activity
  • Content Count

    105
  • Joined

    August 25, 2019
  • Last visited

    Yesterday at 03:59 PM

Community Reputation

1 Neutral

About KidKoderMod033109

  • Rank
    Creeper Killer

Converted

  • URL
    kidkoder.net

Recent Profile Visitors

888 profile views
  • MsaterSgnt

    MsaterSgnt

    August 28, 2019

  • diesieben07

    diesieben07

    August 26, 2019

  1. KidKoderMod033109 started following [1.16] TileEnity has no "read" functiom., [1.16] Change tooltip of an item on a per-item basis, [1.16] Editing code without restarting game and and 1 other October 17, 2020
  2. KidKoderMod033109

    [1.16] Change tooltip of an item on a per-item basis

    KidKoderMod033109 posted a topic in Modder Support

    Hi, I'm working on a battery to store power in my mod and would like to the power to be displayed in a tooltip. I'm using this code to change the tooltip: @OnlyIn(Dist.CLIENT) @Override public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); tooltip.add(new StringTextComponent("Power" + power)); } How can I make it so that the tooltip is different for every item in the inventory? Eg. in slot 1 the battery has 10 power and in slot 2 the battery has 5 power. Then when a battery is destroyed all power is lot Thank in advance
    • October 17, 2020
    • 1 reply
  3. KidKoderMod033109

    [1.16] Editing code without restarting game

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Hello?
    • October 17, 2020
    • 3 replies
  4. KidKoderMod033109

    [1.16] Editing code without restarting game

    KidKoderMod033109 posted a topic in Modder Support

    Hi, I'm working on a mod in IntelliJ IDEA, and I've seen people on Eclipse edit their code and update their game, but they didn't restart the modded instance. I'm wondering how I can do this myself? Thanks in advance
    • October 17, 2020
    • 3 replies
  5. KidKoderMod033109

    [1.16] Game crashes when

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Ahh. That would explain it
    • October 17, 2020
    • 4 replies
  6. KidKoderMod033109

    [1.16] Game crashes when

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    The code is here https://github.com/KidKoder09923/SimplyCopper
    • October 17, 2020
    • 4 replies
  7. KidKoderMod033109

    [1.16] Game crashes when

    KidKoderMod033109 posted a topic in Modder Support

    Hi, I was working on making a TE. But, when I place it down, the game crashes. Here is the crash log: https://gist.github.com/KidKoder09923/2d0ac3ddfd76360d2b825a315615fe4c EDIT: Here is line 23-25: public TileEntity createTileEntity(BlockState state, IBlockReader world) { final TileEntity tileEntity = ModTileEntityTypes.COPPER_CORE.get().create(); return tileEntity; } Thank in advance
    • October 17, 2020
    • 4 replies
  8. KidKoderMod033109

    [1.16] TileEnity has no "read" functiom.

    KidKoderMod033109 posted a topic in Modder Support

    Hi, I working on making my Tile Entity store data, but when I tried to override the read function, there was no such thing. Here is my code: public class CopperCoreTileEntity extends TileEntity implements ITickableTileEntity { public int x, y, z; private int power = 0; private int tick; private boolean inited; public CopperCoreTileEntity(TileEntityType<?> tileEntityTypeIn) { super(tileEntityTypeIn); } public CopperCoreTileEntity() { this(ModTileEntityTypes.COPPER_CORE.get()); } public void tick() { if(!inited) init(); tick++; if(tick==6000 && power > 0) { power--; } } private void init() { inited = true; x = this.pos.getX() - 1; y = this.pos.getY() - 1; z = this.pos.getZ() - 1; tick = 0; } @Override public CompoundNBT write(CompoundNBT compound) { compound.put("initvalue", NBTHelper.toNBT(this)); return super.write(compound); } } How do I override the read function? Thanks in advance, Kid Koder
    • October 16, 2020
    • 3 replies
  9. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Got it! this(ModTileEntityTypes.COPPER_CORE.get()); Works like a charm(I think. No error are preview in IntelliJ)
    • October 16, 2020
    • 12 replies
  10. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Also, So how to I register that?
    • October 16, 2020
    • 12 replies
  11. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    super(new TileEntityType<CopperCoreTileEntity>); Does that work?
    • October 16, 2020
    • 12 replies
  12. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Wait..
    • October 16, 2020
    • 12 replies
  13. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    But I'm currently registring that Type.
    • October 16, 2020
    • 12 replies
  14. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    But then what do I pass in to the super() method?
    • October 16, 2020
    • 12 replies
  15. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    Ahh...
    • October 16, 2020
    • 12 replies
  16. KidKoderMod033109

    [1.16] Can't register Tile Entity with DefferedRegister

    KidKoderMod033109 replied to KidKoderMod033109's topic in Modder Support

    ^ No parameters specified Oh, I see. How do I pass the parameters. And what do I pass. Do I do TileEntityType<CopperCoreTileEntity>?
    • October 16, 2020
    • 12 replies
  • All Activity
  • Home
  • KidKoderMod033109
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community