Skip to content

Commit

Permalink
Compostable buttercup
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Nov 14, 2024
1 parent 23c7371 commit 8a09991
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fixed strong potion of reaching duration
- Fixed iceologer model
- Fixed carpet profiler incompatibility
- Fixed buttercup not being compostable
- Added more config options
- Added zh_tw translations (Thanks to Lobster0228)
- Added fr_fr translations (Thanks to Franco227)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static void init() {

public static void lateInit() {
FriendsAndFoesBlockEntityTypes.lateInit();
FriendsAndFoesItems.registerCompostableItems();
BiomeModifications.addButtercupFeature();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.faboslav.friendsandfoes.common.init.registry.ResourcefulRegistry;
import com.faboslav.friendsandfoes.common.item.DispenserAddedSpawnEgg;
import com.faboslav.friendsandfoes.common.item.FriendsAndFoesArmorMaterials;
import net.minecraft.block.ComposterBlock;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.*;
Expand Down Expand Up @@ -62,4 +63,8 @@ public final class FriendsAndFoesItems

private FriendsAndFoesItems() {
}

public static void registerCompostableItems() {
ComposterBlock.registerCompostableItem(0.65F, FriendsAndFoesItems.BUTTERCUP.get());
}
}
3 changes: 2 additions & 1 deletion common/src/main/resources/friendsandfoes.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ accessible method net/minecraft/entity/ai/brain/Activity <init> (Ljava/lang/Stri
accessible method net/minecraft/particle/DefaultParticleType <init> (Z)V
accessible method net/minecraft/block/AbstractButtonBlock getClickSound (Z)Lnet/minecraft/sound/SoundEvent;
accessible method net/minecraft/entity/ai/brain/sensor/SensorType <init> (Ljava/util/function/Supplier;)V
accessible method net/minecraft/entity/effect/StatusEffect <init> (Lnet/minecraft/entity/effect/StatusEffectCategory;I)V
accessible method net/minecraft/entity/effect/StatusEffect <init> (Lnet/minecraft/entity/effect/StatusEffectCategory;I)V
accessible method net/minecraft/block/ComposterBlock registerCompostableItem (FLnet/minecraft/item/ItemConvertible;)V

0 comments on commit 8a09991

Please sign in to comment.