Compare commits
2 Commits
1.18.1-1.1
...
1-18-1/uns
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f0e4ad1e3 | ||
|
|
a7ba35e1ff |
@@ -22,4 +22,7 @@
|
||||
## 1.18.1-1.1.2-unstable
|
||||
- added healing back to high effect with lower amplifier
|
||||
- changed block strength of all (non joke) blocks
|
||||
- 1.1.2 completed
|
||||
|
||||
## 1.18.1-1.1.3-unstable (incomplete)
|
||||
- added evade enchantment
|
||||
- added more advancements
|
||||
@@ -0,0 +1,53 @@
|
||||
package net.arcmods.ryantlg.enchantments;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentTarget;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.minecraft.entity.effect.StatusEffects;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class evadeEnchantment extends Enchantment {
|
||||
|
||||
public evadeEnchantment() {
|
||||
super(Enchantment.Rarity.UNCOMMON, EnchantmentTarget.ARMOR_CHEST, new EquipmentSlot[] {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.FEET, EquipmentSlot.LEGS});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinPower(int level) {
|
||||
return 30;
|
||||
}
|
||||
@Override
|
||||
public int getMaxLevel() {
|
||||
return 4;
|
||||
}
|
||||
// public void onTargetDamaged(LivingEntity user, Entity target, int level) {
|
||||
// if(target instanceof LivingEntity) {
|
||||
// ((LivingEntity) user).addStatusEffect(new StatusEffectInstance(StatusEffects.SPEED, 20 * 5, level - 1));
|
||||
// }
|
||||
|
||||
// super.onTargetDamaged(user, target, level);
|
||||
// }
|
||||
@Override
|
||||
public void onUserDamaged(LivingEntity user, Entity attacker, int level) {
|
||||
if (attacker instanceof LivingEntity) {
|
||||
((LivingEntity) user).addStatusEffect(new StatusEffectInstance(StatusEffects.SPEED, 20 * 7, level));
|
||||
((LivingEntity) attacker).addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 20 * 5, level));
|
||||
}
|
||||
super.onUserDamaged(user, attacker, level);
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
Registry.register(
|
||||
Registry.ENCHANTMENT,
|
||||
new Identifier("gameritems", "evade"),
|
||||
new evadeEnchantment()
|
||||
);
|
||||
gameritems.LOGGER.info("evadeEnchantment loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import net.arcmods.ryantlg.blocks.FunnyBlocks;
|
||||
import net.arcmods.ryantlg.blocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import net.arcmods.ryantlg.enchantments.evadeEnchantment;
|
||||
import net.arcmods.ryantlg.items.armour.jeremiumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.notArmour;
|
||||
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
||||
@@ -100,6 +101,8 @@ public class gameritems implements ModInitializer {
|
||||
notArmour.register();
|
||||
gamerBow.register();
|
||||
|
||||
evadeEnchantment.register();
|
||||
|
||||
}
|
||||
//fight me
|
||||
|
||||
|
||||
@@ -4,4 +4,5 @@ crafting recipes
|
||||
advancements
|
||||
argentine
|
||||
geranine
|
||||
soulium
|
||||
soulium
|
||||
floute
|
||||
@@ -69,6 +69,7 @@
|
||||
"block.gameritems.deepslate_jeremium_ore": "Deepslate Jeremium Ore",
|
||||
"block.gameritems.deepslate_omnium_ore": "Deepslate Omnium Ore",
|
||||
"block.gameritems.deepslate_orium_ore": "Deepslate Orium Ore",
|
||||
"item.gameritems.gamer_bow": "Gamer Bow"
|
||||
"item.gameritems.gamer_bow": "Gamer Bow",
|
||||
"enchantment.gameritems.evade": "Evade"
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:jeremium_helmet"
|
||||
},
|
||||
"title": "coSvered in red",
|
||||
"description": "Get a full set of Jeremium armour",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:raw_jeremium",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:jeremium_helmet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:jeremium_chestplate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:jeremium_leggings"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:jeremium_boots"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:omnium_helmet"
|
||||
},
|
||||
"title": "covereD in greEn",
|
||||
"description": "Get a full set of Omnium armour",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:raw_omnium",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:omnium_helmet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:omnium_chestplate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:omnium_leggings"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:omnium_boots"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:orium_helmet"
|
||||
},
|
||||
"title": "covered iN blUe",
|
||||
"description": "Get a full set of Orium armour",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:raw_orium",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:orium_helmet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:orium_chestplate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:orium_leggings"
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
"gameritems:orium_boots"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
27
src/main/resources/data/gameritems/advancements/raw_jeremium.json
Executable file
27
src/main/resources/data/gameritems/advancements/raw_jeremium.json
Executable file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:raw_jeremium"
|
||||
},
|
||||
"title": "reD?",
|
||||
"description": "Get a piece of raw Jeremium",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:omnium_armour",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:raw_jeremium"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:raw_omnium"
|
||||
},
|
||||
"title": "greEN?",
|
||||
"description": "Get a piece of raw Omnium",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:raw_omnium"
|
||||
},
|
||||
"parent": "gameritems:gameritems",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:raw_omnium"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"title": "greEN?",
|
||||
"description": "Get a piece of raw Omnium",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:orium_armour",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:raw_omnium"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
27
src/main/resources/data/gameritems/advancements/raw_orium.json
Executable file
27
src/main/resources/data/gameritems/advancements/raw_orium.json
Executable file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "gameritems:raw_orium"
|
||||
},
|
||||
"title": "blueS?",
|
||||
"description": "Get a piece of raw Orium",
|
||||
"frame": "task",
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true
|
||||
},
|
||||
"parent": "gameritems:gameritems",
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:inventory_changed",
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"gameritems:raw_orium"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user