• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

Water sourcing

Pride

Verified Member
is there a way to disable snow from being water sourced?

Code:
sourceBlock = BlockSource.getWaterSourceBlock(player, selectRange, ClickType.SHIFT_DOWN, false, false, true);
ive declared my source block using this, but snow blocks are still able to become water sourced
any ideas?
 

xNuminousx

Verified Member
Wouldn't that be in the config under what is waterbendable? The server would have to define it in their config and it would effect all of their abilities. So I guess just ignore sourceBlock if it happens to equal a snow block.
 

xNuminousx

Verified Member
This is probably what's causing your issue.
Code:
  Water:
    CanBendWithWeapons: true
    IceBlocks:
    - ICE
    PlantBlocks:
    - SAPLING
    - LEAVES
    - LEAVES_2
    - DEAD_BUSH
    - YELLOW_FLOWER
    - RED_ROSE
    - RED_MUSHROOM
    - BROWN_MUSHROOM
    - CACTUS
    - PUMPKIN
    - HUGE_MUSHROOM_1
    - HUGE_MUSHROOM_2
    - MELON_BLOCK
    - VINE
    - WATER_LILY
    - DOUBLE_PLANT
    - CROPS
    - LONG_GRASS
    - SUGAR_CANE_BLOCK
    - PUMPKIN_STEM
    - MELON_STEM
    SnowBlocks:
    - SNOW
    NightFactor: 1
    FullMoonFactor: 1
    PlaySound: true
    WaterSound: BLOCK_WATER_AMBIENT
    IceSound: ITEM_FLINTANDSTEEL_USE
    PlantSound: BLOCK_GRASS_STEP
 

Pride

Verified Member
im sure in plant blocks there isnt an option where you can source snow blocks
thats weird. anyways, im sure server owners can fix it on their own time

as for me. im out, peace bois
 

xNuminousx

Verified Member
Well there's a snow block list under the plant blocks. Maybe there's a method where you can check if your sourceBlock is snow. Surely they would set something like that up since they have the waterbendable blocks separated by type.
 
Top