CoolLord22 / OtherDrops1.13

OtherDrops branch for the latest Minecraft version!
GNU General Public License v3.0
0 stars 5 forks source link

fishing biom #47

Open Blackarr opened 1 month ago

Blackarr commented 1 month ago

Is your feature request related to a problem? Please describe. I have a fishing loottable that is other in every biom. Riverbioms are often narrow bioms so it happens that although a player has its hook in a Riverbiom he is not Standing in it and getting other drop from a diffrent loottable.

Describe the solution you'd like It would be nice if i could get the biom of the Players hook rather then the player itself so that the lootables are always right.

simular to "potionrequirement.victim:" it could look like this:

     - trigger: FISH_CAUGHT
       biome.hook: BEACH
       drop: ...
CoolLord22 commented 3 weeks ago

Opted for slightly different syntax than what was requested here; config parameters are hookbiome, hookbiomes, fishhookbiome, fishhookbiomes

    PLAYER:
      - trigger: FISH_CAUGHT
        message: "&aCaught!" 
        fishingbiome: -sparse_jungle # biome that hook was reeled from
      - trigger: FISH_FAILED
        message: "&cFailed!"
        biome: sparse_jungle # biome that player is standing in
        fishingbiome: RIVER 

Supports same map type as the biome condition (ie, negative biomes, list of biomes, ANY keyword etc)