Skip to content

Commit

Permalink
Beta Release?
Browse files Browse the repository at this point in the history
Took 17 hours 48 minutes
  • Loading branch information
PremiumRush committed Nov 17, 2024
1 parent 1fe95c1 commit 6f5933c
Show file tree
Hide file tree
Showing 483 changed files with 6,569 additions and 222 deletions.
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
Expand Down Expand Up @@ -28,18 +28,18 @@ loader_version_range=[4,)

# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
# Must match the String constant located in the main mod class annotated with @Mod.
mod_id=examplemod
mod_id=ascension
# The human-readable display name for the mod.
mod_name=Example Mod
mod_name=Ascension Reborn
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=All Rights Reserved
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.0.0
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
mod_group_id=com.example.examplemod
mod_group_id=github.premiumrush.ascension
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=YourNameHere, OtherNameHere
mod_authors=PremiumRush
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
mod_description=Example mod description.\nNewline characters can be used and will be replaced properly.
mod_description=A reimagination of the 1.7.10 mod "Ascension".
63 changes: 0 additions & 63 deletions src/main/java/com/example/examplemod/Config.java

This file was deleted.

136 changes: 0 additions & 136 deletions src/main/java/com/example/examplemod/ExampleMod.java

This file was deleted.

23 changes: 23 additions & 0 deletions src/main/java/github/premiumrush/ascension/Ascension.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package github.premiumrush.ascension;

import github.premiumrush.ascension.init.*;
import github.premiumrush.ascension.loot.ModLootModifiers;
import github.premiumrush.ascension.init.MobEffectInit;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;

@Mod(Ascension.MODID)
public class Ascension {
public static final String MODID = "ascension";

public Ascension(IEventBus bus) {
ItemInit.ITEMS.register(bus);
BlockInit.BLOCKS.register(bus);
CreativeTabInit.TABS.register(bus);
ParticleInit.PARTICLE_TYPES.register(bus);
ArmorMaterialInit.ARMOR_MATERIALS.register(bus);
MobEffectInit.MOB_EFFECTS.register(bus);

ModLootModifiers.GLOBAL_LOOT_MODIFIER_SERIALIZERS.register(bus);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package github.premiumrush.ascension.datagen;

import github.premiumrush.ascension.Ascension;
import github.premiumrush.ascension.datagen.loot.ModGlobalLootModifiersProvider;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.PackOutput;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.common.data.ExistingFileHelper;
import net.neoforged.neoforge.data.event.GatherDataEvent;

import java.util.concurrent.CompletableFuture;

@EventBusSubscriber(modid = Ascension.MODID, bus = EventBusSubscriber.Bus.MOD)
public class DataGenerators {
@SubscribeEvent
public static void gatherData(GatherDataEvent event) {
DataGenerator generator = event.getGenerator();
PackOutput packOutput = generator.getPackOutput();
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();
CompletableFuture<HolderLookup.Provider> lookupProvider = event.getLookupProvider();

generator.addProvider(event.includeServer(), new ModGlobalLootModifiersProvider(packOutput, lookupProvider));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package github.premiumrush.ascension.datagen.loot;

import github.premiumrush.ascension.Ascension;
import github.premiumrush.ascension.init.ItemInit;
import github.premiumrush.ascension.loot.AddItem;
import net.minecraft.advancements.critereon.EntityEquipmentPredicate;
import net.minecraft.advancements.critereon.EntityPredicate;
import net.minecraft.advancements.critereon.ItemPredicate;
import net.minecraft.core.HolderLookup;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.storage.loot.LootContext;
import net.minecraft.world.level.storage.loot.predicates.*;
import net.neoforged.neoforge.common.data.GlobalLootModifierProvider;
import net.neoforged.neoforge.common.loot.LootTableIdCondition;

import java.util.concurrent.CompletableFuture;

public class ModGlobalLootModifiersProvider extends GlobalLootModifierProvider {
public ModGlobalLootModifiersProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) {
super(output, registries, Ascension.MODID);
}

@Override
protected void start() {
add("blaze_gem_from_blaze", new AddItem(new LootItemCondition[] {

new LootTableIdCondition.Builder(ResourceLocation.parse("entities/blaze")).build(),

LootItemEntityPropertyCondition.hasProperties(
LootContext.EntityTarget.ATTACKER,
EntityPredicate.Builder.entity().equipment(
EntityEquipmentPredicate.Builder.equipment().mainhand(
ItemPredicate.Builder.item().of(ItemInit.INFUSED_VEXAL_SWORD.get())
)
)
).build(),

LootItemRandomChanceCondition.randomChance(0.5f).build()

}, "blaze_gem_from_blaze", 1 , ItemInit.BLAZE_GEM.get()));

add("dormant_template_from_end_city", new AddItem(new LootItemCondition[] {
new LootTableIdCondition.Builder(ResourceLocation.parse("chests/end_city_treasure")).build(),
LootItemRandomChanceCondition.randomChance(0.3f).build(),
}, "dormant_template_from_end_city", 1, ItemInit.FLEROVIUM_UPGRADE_SMITHING_TEMPLATE_INACTIVE.get()));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package github.premiumrush.ascension.event;

import github.premiumrush.ascension.Ascension;
import github.premiumrush.ascension.init.ParticleInit;
import github.premiumrush.ascension.world.particle.BubbleParticle;
import github.premiumrush.ascension.world.particle.ShadowDodgeParticle;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.client.event.RegisterParticleProvidersEvent;

@EventBusSubscriber(modid = Ascension.MODID, bus = EventBusSubscriber.Bus.MOD)
public class ParticleEvents {
@SubscribeEvent
public static void registerParticleProviders(RegisterParticleProvidersEvent event) {
event.registerSpriteSet(ParticleInit.SHADOW_DODGE_PARTICLE.get(), ShadowDodgeParticle.CosyProvider::new);
event.registerSpriteSet(ParticleInit.BUBBLE_PARTICLE.get(), BubbleParticle.Provider::new);
}
}
Loading

0 comments on commit 6f5933c

Please sign in to comment.