Skip to content

Commit 2821f83

Browse files
committed
- Remade Readme
- Remade BurnTime System again, switching to neoforge datamaps for simplicity - Added compostability to some items/blocks
1 parent 00e0582 commit 2821f83

File tree

9 files changed

+69
-74
lines changed

9 files changed

+69
-74
lines changed

README.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
1+
# Artemis' Flora Expansion
12

2-
Installation information
3+
Description
34
=======
45

5-
This template repository can be directly cloned to get you started with a new
6-
mod. Simply create a new repository cloned from this one, by following the
7-
instructions provided by [GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template).
6+
Bring new life to your world with Artemis’ Flower Expansion — a NeoForge mod that enhances Minecraft’s natural beauty with new flora, foliage layers, and ambient forest life.
7+
8+
Discover new flower species, realistic leaf litter, pine cones, forest snacks, and interactive natural blocks that make every forest, field, and grove feel alive.
9+
Perfect for players who love immersive worldbuilding, detailed landscapes, and nature-themed survival experiences.
810

9-
Once you have your clone, simply open the repository in the IDE of your choice. The usual recommendation for an IDE is either IntelliJ IDEA or Eclipse.
11+
Installation information
12+
=======
1013

11-
If at any point you are missing libraries in your IDE, or you've run into problems you can
12-
run `gradlew --refresh-dependencies` to refresh the local cache. `gradlew clean` to reset everything
13-
{this does not affect your code} and then start the process again.
14+
Built for Minecraft 1.21.1 using NeoForge.
1415

15-
Mapping Names:
16+
Acknowledgments
1617
============
17-
By default, the MDK is configured to use the official mapping names from Mojang for methods and fields
18-
in the Minecraft codebase. These names are covered by a specific license. All modders should be aware of this
19-
license. For the latest license text, refer to the mapping file itself, or the reference copy here:
20-
https://github.com/NeoForged/NeoForm/blob/main/Mojang.md
18+
19+
Some ambient sounds and textures are inspired by or adapted from vanilla Minecraft assets.
20+
21+
Community
22+
==========
23+
24+
This mod is developed as part of the Intelligence Modding Team.
25+
Follow our projects or join our community for updates, modding help, and previews of upcoming content!
26+
27+
* **Discord:** [Invite](https://discord.intelligence-modding.de/)
28+
29+
* **GitHub:** [Intelligence Modding Team](https://github.com/IntelligenceModding) or [Personal](https://github.com/DoomedArtemis)
30+
31+
* **Modrinth:** coming soon
32+
33+
* **CurseForge:** *coming soon*
34+
2135

2236
Additional Resources:
2337
==========
24-
Community Documentation: https://docs.neoforged.net/
25-
NeoForged Discord: https://discord.neoforged.net/
38+
* **Community Documentation:** [Link](https://docs.neoforged.net/)
39+
* **NeoForged Discord:** [Invite](https://discord.neoforged.net/)

src/main/java/de/artemis/floraexpansion/common/block/ModBlocks.java

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package de.artemis.floraexpansion.common.block;
22

33
import de.artemis.floraexpansion.FloraExpansion;
4-
import de.artemis.floraexpansion.common.blockItem.ModBlockItem;
5-
import de.artemis.floraexpansion.common.item.ModItem;
64
import de.artemis.floraexpansion.common.item.ModItems;
75
import net.minecraft.world.item.BlockItem;
86
import net.minecraft.world.item.Item;
9-
import net.minecraft.world.item.Rarity;
107
import net.minecraft.world.level.block.Block;
118
import net.minecraft.world.level.block.SoundType;
129
import net.minecraft.world.level.block.state.BlockBehaviour;
@@ -23,33 +20,19 @@ public class ModBlocks {
2320
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(FloraExpansion.MODID);
2421

2522
public static final DeferredBlock<Block> PINE_LITTER = registerBlock("pine_litter",
26-
() -> new PineLitterBlock(BlockBehaviour.Properties.of().mapColor(MapColor.PLANT).noCollission().sound(SoundType.PINK_PETALS).pushReaction(PushReaction.DESTROY)), 100
27-
);
23+
() -> new PineLitterBlock(BlockBehaviour.Properties.of().mapColor(MapColor.PLANT).noCollission().sound(SoundType.PINK_PETALS).pushReaction(PushReaction.DESTROY)));
2824

2925
public static final DeferredBlock<Block> LEAF_LITTER = registerBlock("leaf_litter",
30-
() -> new LeafLitterBlock(BlockBehaviour.Properties.of().mapColor(MapColor.PLANT).noCollission().sound(SoundType.PINK_PETALS).pushReaction(PushReaction.DESTROY)), 100
31-
);
32-
33-
private static <T extends Block> DeferredBlock<T> registerBlock(String name, Supplier<T> block, int burnTime) {
34-
DeferredBlock<T> toReturn = BLOCKS.register(name, block);
35-
registerBlockItem(name, toReturn, burnTime);
36-
return toReturn;
37-
}
26+
() -> new LeafLitterBlock(BlockBehaviour.Properties.of().mapColor(MapColor.PLANT).noCollission().sound(SoundType.PINK_PETALS).pushReaction(PushReaction.DESTROY)));
3827

3928
private static <T extends Block> DeferredBlock<T> registerBlock(String name, Supplier<T> block) {
4029
DeferredBlock<T> toReturn = BLOCKS.register(name, block);
41-
registerBlockItem(name, toReturn, 0);
30+
registerBlockItem(name, toReturn);
4231
return toReturn;
4332
}
4433

45-
private static <T extends Block> void registerBlockItem(String name, DeferredBlock<T> block, int burnTime) {
46-
if (burnTime > 0) {
47-
ModItems.ITEMS.register(name,
48-
() -> new ModBlockItem(block.get(), new Item.Properties(), burnTime));
49-
} else {
50-
ModItems.ITEMS.register(name,
51-
() -> new BlockItem(block.get(), new Item.Properties()));
52-
}
34+
private static <T extends Block> void registerBlockItem(String name, DeferredBlock<T> block) {
35+
ModItems.ITEMS.register(name, () -> new BlockItem(block.get(), new Item.Properties()));
5336
}
5437

5538
public static void register(IEventBus eventBus) {

src/main/java/de/artemis/floraexpansion/common/block/PineLitterBlock.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ public void animateTick(@NotNull BlockState state, @NotNull Level level, @NotNul
166166
}
167167

168168
if (random.nextFloat() < 0.2F) {
169-
double x = pos.getX() + 0.3 + random.nextDouble() * 0.4; // centered within block
169+
double x = pos.getX() + 0.3 + random.nextDouble() * 0.4;
170170
double z = pos.getZ() + 0.3 + random.nextDouble() * 0.4;
171171
double y = pos.getY() + 0.05 + random.nextDouble() * 0.1;
172172
double angle = random.nextDouble() * Math.PI * 2;
173-
double speed = 0.012 + random.nextDouble() * 0.008; // gentle drift
173+
double speed = 0.012 + random.nextDouble() * 0.008;
174174
double vx = Math.cos(angle) * speed;
175175
double vz = Math.sin(angle) * speed;
176-
double vy = 0.025 + random.nextDouble() * 0.01; // short upward pop
176+
double vy = 0.025 + random.nextDouble() * 0.01;
177177

178178
level.addParticle(ModParticles.PINE_PARTICLES.get(), x, y, z, vx, vy, vz);
179179

src/main/java/de/artemis/floraexpansion/common/item/ModItem.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/main/java/de/artemis/floraexpansion/common/item/ModItems.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ public class ModItems {
1919
public static final DeferredItem<Item> TOASTED_PINE_NUTS = ITEMS.register("toasted_pine_nuts",
2020
() -> new Item(new Item.Properties().food(ModFoods.TOASTED_PINE_NUTS)));
2121

22-
public static final DeferredItem<ModItem> TWIG = ITEMS.register("twig",
23-
() -> new ModItem(new Item.Properties(), 200));
22+
public static final DeferredItem<Item> TWIG = ITEMS.register("twig",
23+
() -> new Item(new Item.Properties()));
2424

2525
public static final DeferredItem<Item> FOREST_SNACK = ITEMS.register("forest_snack",
2626
() -> new Item(new Item.Properties().food(ModFoods.FOREST_SNACK)));
2727

28-
2928
public static void register(IEventBus eventBus) {
3029
ITEMS.register(eventBus);
3130
}

src/main/java/de/artemis/floraexpansion/common/item/PineConeItem.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
import net.minecraft.world.entity.projectile.Projectile;
1313
import net.minecraft.world.item.ItemStack;
1414
import net.minecraft.world.item.SnowballItem;
15-
import net.minecraft.world.item.crafting.RecipeType;
1615
import net.minecraft.world.level.Level;
1716
import org.jetbrains.annotations.NotNull;
18-
import org.jetbrains.annotations.Nullable;
1917

2018
public class PineConeItem extends SnowballItem {
2119

@@ -45,9 +43,4 @@ public PineConeItem(Properties properties) {
4543
pineCone.setItem(itemStack);
4644
return pineCone;
4745
}
48-
49-
@Override
50-
public int getBurnTime(@NotNull ItemStack itemStack, @Nullable RecipeType<?> recipeType) {
51-
return 100;
52-
}
5346
}

src/main/java/de/artemis/floraexpansion/common/worldgen/ModConfiguredFeatures.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public static void bootstrap(BootstrapContext<ConfiguredFeature<?, ?>> context)
4949
return ResourceKey.create(Registries.CONFIGURED_FEATURE, ResourceLocation.fromNamespaceAndPath(FloraExpansion.MODID, name));
5050
}
5151

52-
private static <FC extends FeatureConfiguration, F extends Feature<FC>> void register(BootstrapContext<ConfiguredFeature<?, ?>> context,
53-
ResourceKey<ConfiguredFeature<?, ?>> key, F feature, FC configuration) {
52+
private static <FC extends FeatureConfiguration, F extends Feature<FC>> void register(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> key, F feature, FC configuration) {
5453
context.register(key, new ConfiguredFeature<>(feature, configuration));
5554
}
5655
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"values": {
3+
"floraexpansion:pine_cone": {
4+
"chance": 0.3
5+
},
6+
"floraexpansion:leaf_litter": {
7+
"chance": 0.3
8+
},
9+
"floraexpansion:pine_litter": {
10+
"chance": 0.3
11+
}
12+
}
13+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"values": {
3+
"floraexpansion:twig": {
4+
"burn_time": 200
5+
},
6+
"floraexpansion:pine_cone": {
7+
"burn_time": 50
8+
},
9+
"floraexpansion:leaf_litter": {
10+
"burn_time": 100
11+
},
12+
"floraexpansion:pine_litter": {
13+
"burn_time": 100
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)