forked from MobiusFlip/CrimsonRevelations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbf2b7b
commit 9daa02e
Showing
5 changed files
with
230 additions
and
1 deletion.
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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/mobiusflip/crimsonrevelations/mixin/EntityCultistPortalLesserMixin.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.mobiusflip.crimsonrevelations.mixin; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
import com.mobiusflip.crimsonrevelations.init.LootTableHandler; | ||
|
||
import net.minecraft.entity.monster.EntityMob; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.world.World; | ||
import thaumcraft.common.entities.monster.cult.EntityCultistPortalLesser; | ||
|
||
@Mixin(value = EntityCultistPortalLesser.class, remap = false) | ||
public class EntityCultistPortalLesserMixin extends EntityMob { | ||
public EntityCultistPortalLesserMixin(World world) { | ||
super(world); | ||
} | ||
|
||
@Override | ||
@Nullable | ||
protected ResourceLocation getLootTable() { | ||
return LootTableHandler.LESSER_CULTIST_PORTAL; | ||
} | ||
} |
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
153 changes: 153 additions & 0 deletions
153
src/main/resources/assets/crimsonrevelations/loot_tables/entities/lesser_cultist_portal.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,153 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"name": "loot_bag", | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"name": "thaumcraft:loot_bag", | ||
"weight": 1, | ||
"functions": [ | ||
{ | ||
"function": "set_data", | ||
"data": 0 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "crimson_material", | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"name": "crimsonrevelations:crimson_fabric", | ||
"weight": 1, | ||
"conditions": [ | ||
{ | ||
"condition": "killed_by_player" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"function": "set_count", | ||
"count": { | ||
"min": 2, | ||
"max": 4 | ||
} | ||
}, | ||
{ | ||
"function": "looting_enchant", | ||
"count": { | ||
"min": 0, | ||
"max": 2 | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "item", | ||
"name": "crimsonrevelations:crimson_plate", | ||
"weight": 1, | ||
"conditions": [ | ||
{ | ||
"condition": "killed_by_player" | ||
} | ||
], | ||
"functions": [ | ||
{ | ||
"function": "set_count", | ||
"count": { | ||
"min": 2, | ||
"max": 4 | ||
} | ||
}, | ||
{ | ||
"function": "looting_enchant", | ||
"count": { | ||
"min": 0, | ||
"max": 2 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "crimson_rites", | ||
"rolls": 1, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:random_chance_with_looting", | ||
"chance": 0.1, | ||
"looting_multiplier": 0.02 | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"name": "thaumcraft:curio", | ||
"entryName": "crimson_rites", | ||
"weight": 1, | ||
"functions": [ | ||
{ | ||
"function": "set_data", | ||
"data": 6 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "curio", | ||
"rolls": 1, | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:random_chance_with_looting", | ||
"chance": 0.5, | ||
"looting_multiplier": 0.1 | ||
} | ||
], | ||
"entries": [ | ||
{ | ||
"type": "item", | ||
"name": "thaumcraft:curio", | ||
"entryName": "arcane_curiosity", | ||
"weight": 1, | ||
"functions": [ | ||
{ | ||
"function": "set_data", | ||
"data": 0 | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "item", | ||
"name": "thaumcraft:curio", | ||
"entryName": "ancient_curiosity", | ||
"weight": 1, | ||
"functions": [ | ||
{ | ||
"function": "set_data", | ||
"data": 2 | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "item", | ||
"name": "thaumcraft:curio", | ||
"entryName": "illuminating_curiosity", | ||
"weight": 1, | ||
"functions": [ | ||
{ | ||
"function": "set_data", | ||
"data": 4 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
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