Open main menu
Home
Random
Log in
Settings
About Forge Community Wiki
Disclaimers
Forge Community Wiki
Search
Changes
← Older edit
Newer edit →
Dynamic Loot Modification
(view source)
Revision as of 00:16, 22 April 2021
2 bytes removed
,
00:16, 22 April 2021
m
→The LootModifier Subclass
:
fix wrong comment
Line 76:
Line 76:
@Override
@Override
public List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) {
public List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) {
−
/
/*
+
/*
* Additional conditions can be checked, though as much as possible should be parameterized via JSON data.
* Additional conditions can be checked, though as much as possible should be parameterized via JSON data.
* It is better to write a new ILootCondition implementation than to do things here.
* It is better to write a new ILootCondition implementation than to do things here.
−
*
/
/
+
*/
int numSeeds = 0;
int numSeeds = 0;
for(ItemStack stack : generatedLoot) {
for(ItemStack stack : generatedLoot) {
SizableShrimp
Trusted users
59
edits