-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.20.x' of https://github.com/Uraneptus/Sullys-Mod into…
… 1.20.x
- Loading branch information
Showing
21 changed files
with
190 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/sullysmod/damage_type/throwing_knife.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exhaustion": 0.0, | ||
"message_id": "throwing_knife", | ||
"scaling": "when_caused_by_living_non_player" | ||
} |
62 changes: 62 additions & 0 deletions
62
src/generated/resources/data/sullysmod/modifiers/loot_tables/add_piranha_to_fishing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"modifiers": [ | ||
{ | ||
"type": "entries", | ||
"config": { | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:any_of", | ||
"terms": [ | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"biome": "minecraft:mangrove_swamp" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"biome": "minecraft:jungle" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"biome": "minecraft:sparse_jungle" | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:location_check", | ||
"predicate": { | ||
"biome": "minecraft:bamboo_jungle" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"add": false, | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": 1.0 | ||
}, | ||
"function": "minecraft:set_count" | ||
} | ||
], | ||
"name": "sullysmod:piranha", | ||
"weight": 40 | ||
} | ||
], | ||
"index": 0, | ||
"replace": false | ||
} | ||
} | ||
], | ||
"priority": "normal", | ||
"selector": "minecraft:gameplay/fishing/fish" | ||
} |
14 changes: 14 additions & 0 deletions
14
src/generated/resources/data/sullysmod/tags/entity_types/is_flying_mob.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"values": [ | ||
"minecraft:bee", | ||
"minecraft:parrot", | ||
"minecraft:bat", | ||
"minecraft:wither", | ||
"minecraft:ender_dragon", | ||
"minecraft:ghast", | ||
"minecraft:vex", | ||
"minecraft:phantom", | ||
"minecraft:allay", | ||
"minecraft:blaze" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/uraneptus/sullysmod/core/other/SMLootConditions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,33 @@ | ||
package com.uraneptus.sullysmod.core.other; | ||
|
||
import com.uraneptus.sullysmod.core.other.tags.SMBiomeTags; | ||
import net.minecraft.advancements.critereon.LocationPredicate; | ||
import net.minecraft.advancements.critereon.MinMaxBounds; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.level.biome.Biome; | ||
import net.minecraft.world.level.biome.Biomes; | ||
import net.minecraft.world.level.storage.loot.predicates.AnyOfCondition; | ||
import net.minecraft.world.level.storage.loot.predicates.LocationCheck; | ||
import net.minecraft.world.level.storage.loot.predicates.LootItemCondition; | ||
import net.minecraftforge.common.Tags; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class SMLootConditions { | ||
public static final LootItemCondition.Builder ON_LANTERNFISH_HEIGHT = LocationCheck.checkLocation(LocationPredicate.Builder.location().setY(MinMaxBounds.Doubles.between(-57.0D, 16.0D))); | ||
|
||
public static LootItemCondition.Builder getPiranhaBiomes() { | ||
return biomeConditionCheck(Biomes.MANGROVE_SWAMP) | ||
.or(biomeConditionCheck(Biomes.JUNGLE)) | ||
.or(biomeConditionCheck(Biomes.SPARSE_JUNGLE)) | ||
.or(biomeConditionCheck(Biomes.BAMBOO_JUNGLE)); | ||
} | ||
|
||
public static LootItemCondition.Builder biomeConditionCheck(ResourceKey<Biome> biome) { | ||
return LocationCheck.checkLocation(LocationPredicate.Builder.location().setBiome(biome)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+15.4 KB
src/main/resources/assets/sullysmod/sounds/item/throwing_knife/hit1.ogg
Binary file not shown.
Binary file added
BIN
+17 KB
src/main/resources/assets/sullysmod/sounds/item/throwing_knife/hit2.ogg
Binary file not shown.
Binary file added
BIN
+16.8 KB
src/main/resources/assets/sullysmod/sounds/item/throwing_knife/hit3.ogg
Binary file not shown.
Binary file added
BIN
+15 KB
src/main/resources/assets/sullysmod/sounds/item/throwing_knife/throw1.ogg
Binary file not shown.
Binary file added
BIN
+18.2 KB
src/main/resources/assets/sullysmod/sounds/item/throwing_knife/throw2.ogg
Binary file not shown.