1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Flagmod: A modification to re-introduce wool to CTF (WIP)

Discussion in 'Capture the Flag' started by Sir_Inge, Feb 19, 2016.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    Okay. So, here's the dealio:
    I have three specific JSON rendering files to allow dropped banners to render as dropped wool blocks, however, banner rendering is somewhat complicated. The color of the banner is determined using block entity data (which is a type of NBT(?)) as shown:
    Screen Shot 2016-02-19 at 6.00.41 PM.png
    So, I'll need to somehow access block entity data/banner/patterns/color and then have a logic gate of if blue then apply bluewool.json
    I'm looking for a workaround that would allow me not to use the modification and instead jump right to a resource pack, but there appears to be none as of yet, so I've decided to go ahead and write a client side modification for the rendering. There's just a minor problem: I've never worked with mine craft style java, so the whole task is dating. I've looked at this tutorial http://www.minecraftforge.net/wiki/How_to_use_NBT_Tag_Compound
    and it seems to be basically what I'm looking for, but I'm still rather unsure.

    By the way it's pretty much impossible for me to re-add helmets to players who are holding the flag. Additionally, this would be misleading as flag holders would appear to have full armor even though they take somewhat significant extra damage (especially heavies).

    Anyways, anyone besides Phanta with coding knowledge specific to Minecraft- it would be very very helpful if you could point me in the right direction at this point. Thanks, Inge.
     
  2. wintergreen3

    wintergreen3 Delta Force Leader | Staff Manager | CTF Admin

    Joined:
    May 17, 2015
    Messages:
    1,259
    Ratings:
    +1,167
    Perhaps @KirbysDreamLand could help? I dunno if he knows anything about this stuff, but I do know that he codes with Minecraft =P
     
  3. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    Anyone with basic mine craft modding knowledge would be really helpful here, I know that @NomNuggetNom (although he thinks I'm quite salty) might be able to help. Actually, any developer who's working for brawl might be able to point me in the right direction. As far as mods go, this should be relatively simple, not unlike adding an item to the game. This is client side versus server side, but some experienced eyes might be able to help.
     
    • Agree Agree x 1
  4. GreenNature

    GreenNature Nature is Creative

    Joined:
    May 18, 2015
    Messages:
    445
    Ratings:
    +122
    What I can tell here is that you're trying to make a banner have the properties of a wool right?
     
  5. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    Sort of. I'm trying to have a banner change it's model JSON based on a tile entity data bit (being color), which, as I've continued reading, is not in fact an NBT. the good news is that since durability can change a texture in 1.9, so can tile entity data, which means that any mod I code will be rendered absolultey obsolete by the 1.9 update, meaning that I might not even bother...

    The most fascinating part of tis dilemma is that I can get the banner to look like a wool block, but i can't get said wool block to change color in the right instances (i.e, when the banner changes color.)
     
  6. williamthegreat

    Joined:
    Jun 13, 2015
    Messages:
    2
    Ratings:
    +0
    Logic gates huh? Although I no not much of JSON, logic gates are fun as hell.
     
  7. ACE_BLUE2

    ACE_BLUE2 Sup'

    Joined:
    May 17, 2015
    Messages:
    1,221
    Ratings:
    +296
    @Codebastian @Avenged_
     
  8. Bill_D

    Bill_D Active Member

    Joined:
    Sep 30, 2015
    Messages:
    238
    Ratings:
    +71
    I understood 7% of what you said, however Mr Kirby and Mr 5ive are both somewhat capable at coding. Maybe they could help.
     
  9. Recovs

    Recovs Unknown Member

    Joined:
    May 17, 2015
    Messages:
    405
    Ratings:
    +196
    Or just tell Nom just one more time and maybe he'll change it cause there's nothing better than more "bring back wool" posts xdxdxd
     
    • Like Like x 1
  10. 915

    915 CTF Developer

    Joined:
    Jul 19, 2015
    Messages:
    62
    Ratings:
    +90
    Well, I don't code mods for Minecraft Forge, but I think this might help you. According to it, the color data is stored in the "Base" attribute of the NBTTagCompound, which will match the color data of wool of that same color.
     
  11. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    What I really need to do is stop the banner from rendering and instead render the wool.
     
  12. Magnificent

    Magnificent Dallas Fuel

    Joined:
    Jul 19, 2015
    Messages:
    1,409
    Ratings:
    +377
    <InsertSomethingThatSoundsSmartHere>
     
    • Funny Funny x 2
  13. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
    I can probably make it. It would be a lot easier to just straight up mod the game than to use forge imo.
     
  14. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    I'm PMing you. Prepare your inbox.
     
  15. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77
     
    • Like Like x 2
  16. Codebastian

    Codebastian Well-Known Member

    Joined:
    May 31, 2015
    Messages:
    484
    Ratings:
    +123
    Discord:
    Codebastian#6945
    I was exposed to some modding when I was younger, However. I don't think I will be able to help you here.
     
  17. KirbysDreamLand

    KirbysDreamLand Well-Known Member

    Joined:
    May 17, 2015
    Messages:
    260
    Ratings:
    +77


    Dat op flag radius needs some fixin' imo.
     
    • Winner Winner x 5
    • Like Like x 1
  18. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    HALLELUJAH, HALLELUJAH! Hale-hale-lujah.
     
  19. obikenobi21

    obikenobi21 Delta Force Jedi

    Joined:
    May 17, 2015
    Messages:
    571
    Ratings:
    +288
    How does it look when dropped on the ground, laike a banner?
     
  20. Sir_Inge

    Sir_Inge Well-Known Member

    Joined:
    May 22, 2015
    Messages:
    2,371
    Ratings:
    +527
    No, inventory rendering is as a banner, but dropped item rendering is a block of wool. Less obvious nut that's why there's compasses.
     
Loading...
Similar Threads Forum Date
Idea Add shaders to the forbidden modifications list Raid Jan 6, 2018
Damage modification Ideas Mar 15, 2016
Alpha 1.0.1 | Brawl Modular Modification Discussion Dec 25, 2015
Modifications Q & A Aug 25, 2015
Class Modifications Capture the Flag Aug 13, 2015
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...