Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Starexify committed Nov 4, 2024
1 parent bb938e7 commit fdfe881
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/generated/resources/assets/nmt/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"effect.nmt.burn": "Burn",
"item.nmt.blazing_wither_soul": "Blazing Wither Soul",
"item.nmt.ender_wart": "Ender Wart",
"item.nmt.heart_of_the_hell": "Heart of the Hell",
"item.nmt.lingering_obsidian_potion.effect.awfully": "Lingering Awfully Potion",
"item.nmt.lingering_obsidian_potion.effect.cecity": "Lingering Potion of Cecity",
"item.nmt.lingering_obsidian_potion.effect.dimness": "Lingering Potion of Dimness",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_tear_of_the_nether": {
"conditions": {
"items": [
{
"items": "nmt:tear_of_the_nether"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "nmt:heart_of_the_hell"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_tear_of_the_nether"
]
],
"rewards": {
"recipes": [
"nmt:heart_of_the_hell"
]
}
}
22 changes: 22 additions & 0 deletions src/generated/resources/data/nmt/recipe/heart_of_the_hell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"group": "obsidian_glass",
"key": {
"#": {
"item": "nmt:tear_of_the_nether"
},
"H": {
"item": "minecraft:heart_of_the_sea"
}
},
"pattern": [
"###",
"#H#",
"###"
],
"result": {
"count": 1,
"id": "nmt:heart_of_the_hell"
}
}
11 changes: 11 additions & 0 deletions src/main/java/net/nova/nmt/data/recipe/CraftingRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,16 @@ public void build() {

// Tipped Arrows
SpecialRecipeBuilder.special(ObsidianTippedArrowRecipe::new).save(recipeOutput, NoMoreThings.rl("obsidian_tipped_arrow"));

// Heart of the Hell
ShapedRecipeBuilder.shaped(RecipeCategory.MISC, NMTItems.HEART_OF_THE_HELL)
.group(getItemName(NMTBlocks.OBSIDIAN_GLASS))
.define('#', NMTItems.TEAR_OF_THE_NETHER)
.define('H', Items.HEART_OF_THE_SEA)
.pattern("###")
.pattern("#H#")
.pattern("###")
.unlockedBy("has_" + getItemName(NMTItems.TEAR_OF_THE_NETHER), has(NMTItems.TEAR_OF_THE_NETHER))
.save(recipeOutput);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.nova.nmt.entity.projectile;

import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.AbstractHurtingProjectile;
import net.minecraft.world.entity.projectile.Fireball;
import net.minecraft.world.level.Level;
import net.minecraft.world.phys.Vec3;

public class FireballProjectile extends AbstractHurtingProjectile {
public FireballProjectile(EntityType<? extends FireballProjectile> entityType, Level level) {
super(entityType, level);
}

public FireballProjectile(EntityType<? extends FireballProjectile> entityType, double x, double y, double z, Vec3 movement, Level level) {
super(entityType, x, y, z, movement, level);
}

public FireballProjectile(EntityType<? extends FireballProjectile> entityType, LivingEntity owner, Vec3 movement, Level level) {
super(entityType, owner, movement, level);
}

@Override
public boolean hurt(DamageSource source, float amount) {
return false;
}
}
10 changes: 10 additions & 0 deletions src/main/java/net/nova/nmt/init/NMTEntityType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.neoforged.neoforge.registries.DeferredRegister;
import net.nova.nmt.entity.projectile.FireballProjectile;
import net.nova.nmt.entity.projectile.ThrownObsidianPotion;

import java.util.function.Supplier;
Expand All @@ -20,4 +21,13 @@ public class NMTEntityType {
.updateInterval(10)
.build("obsidian_potion")
);

public static final Supplier<EntityType<FireballProjectile>> FIREBALL_PROJECTILE = ENTITY_TYPES.register("fireball_projectile",
() -> EntityType.Builder.<FireballProjectile>of(FireballProjectile::new, MobCategory.MISC)
.sized(0.25F, 0.25F)
.clientTrackingRange(4)
.updateInterval(10)
.build("fireball_projectile")
);

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"animation": {
"frametime": 5,
"interpolate": true
"frametime": 4
}
}

0 comments on commit fdfe881

Please sign in to comment.