From 48e724a02192c91ec19d9a7abb93bd1d0f9fa70d Mon Sep 17 00:00:00 2001 From: PARADOX <97844313+xyzzy121@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:23:05 -0500 Subject: [PATCH 001/104] Update README.md fix a singular typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05a9d06f..45d2a22b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Unicorns, Pegasi, Earth Ponies, and even Changelings get their own special abili - *Play as a pegasus* and dominate the skies! Besides the ability to fly, pegasi can also perform rainbooms, control the weather by shoving them into jars, and have a greater reach distance and speed than other races. - - *Play as a humble background pony*! Earth Ponies are tougher and heavier than the other races. They also have the nify ability to + - *Play as a humble background pony*! Earth Ponies are tougher and heavier than the other races. They also have the nifty ability to kick trees to get food and hasten the growth of crops. You'll never go hungry if you're an earth pony. Feeling like going over to the dark side? From 3c7df8fd982aacaf656c9e47aa8658679fd484a6 Mon Sep 17 00:00:00 2001 From: PARADOX <97844313+xyzzy121@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:27:06 -0500 Subject: [PATCH 002/104] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 45d2a22b..e54b1da3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Bringing the magic of friendship to Minecraft! -What started as a humble utility to make playing as a unicorn a little more emersive has grown into a full-blown pony +What started as a humble utility to make playing as a unicorn a little more immersive has grown into a full-blown pony conversion experience that brings new magic, mechanics and experience to the world of Minecraft to make it truly feel like you've entered the world of Equestria! @@ -24,10 +24,10 @@ Unicorns, Pegasi, Earth Ponies, and even Changelings get their own special abili - *Play as a unicorn* and learn to use magic! Craft your first spellbook and experiment, finding the different spells you can make and what they do, or simply delve into the lore to learn more about the past of this mysterious world! - Besides casting spells, such as a shield to protect themselves, of fire a bolt of magic to incinerate your foes, + Besides casting spells, such as a shield to protect themselves, or a bolt of magic to incinerate your foes, Unicorns can also teleport to get around obstacles or simply reach those hard to reach places. - - *Play as a pegasus* and dominate the skies! Besides the ability to fly, pegasi can also perform rainbooms, control the weather by shoving them into jars, + - *Play as a pegasus* and dominate the skies! Besides the ability to fly, pegasi can also perform sonic rainbooms, control the weather by shoving them into jars, and have a greater reach distance and speed than other races. - *Play as a humble background pony*! Earth Ponies are tougher and heavier than the other races. They also have the nifty ability to @@ -58,7 +58,7 @@ Unicorns, Pegasi, Earth Ponies, and even Changelings get their own special abili - Airflow is simulated (badly) Pegasi, beware about flying during storms! It can get dangerous out there! - If you're playing as a flying species, or just like having nice things, try building a weather vein. + If you're playing as a flying species, or just like having nice things, try building a weather vane. It shows the actual, totally real and not simulated badly, wind direction of your minecraft world. Just beware that the direction and strength is situational (and bad), and will be different depending where you are and how high up you are. From 3c179c2450b49b397a741bba7881016301bc6690 Mon Sep 17 00:00:00 2001 From: PARADOX <97844313+xyzzy121@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:41:15 -0500 Subject: [PATCH 003/104] Update HOW_TO_PLAY.md I may have gone slightly off topic in the comments... --- HOW_TO_PLAY.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/HOW_TO_PLAY.md b/HOW_TO_PLAY.md index c0bb6f37..0c20a0bc 100644 --- a/HOW_TO_PLAY.md +++ b/HOW_TO_PLAY.md @@ -3,7 +3,7 @@ [![ru](https://img.shields.io/badge/lang-ru-d52b1e.svg)](README_RU.md) [![cn](https://img.shields.io/badge/lang-cn-de2910.svg)](README_CN.md) -When starting a new world you're given the choice of which tribe to join. One of Unicorn, Pegasus, Earth, Bat, or Changeling. +When starting a new world you're given the choice of which tribe to join. You can choose from _Unicorn_, _Pegasus_, _Earth Pony_, _Batpony_, or _Changeling_. Depending on which race you pick, you're given different abilities, displayed on your HUD in a series of circular elements. To activate an ability, simply press and hold the key corresponding to that ability. Some take longer than others, and certain abilities @@ -17,7 +17,7 @@ also respond to quick, short single-taps, or double-taps. For unicorns, casting spells is done through gems, which you can obtain whilst mining. You first need to craft a spellbook using a gem, and then in the spellbook you can discover the magical traits of different items and recipes to combine them to create different spells, as well - as modify existing one. + as modify existing ones. Once you have a gem with a spell you want to use, you can equip it to your main-hand or off-hand slot by right-clicking with a gem in one of either hand, then to activate it you us your primary ability. You can also cast spells directly from a gem by using the ability @@ -34,7 +34,7 @@ also respond to quick, short single-taps, or double-taps. ### Earth Ponies - Kicking & Stomping - Earth ponies kick good. + *Earth ponies kick good*. If Mine Little Pony is installed, and you have the appearance of a pony, kicking will target the block behind you, so twirl that rump! Kicking blocks will incrementally mine them, and kicking trees will shake items loose from their branches. Kicking a tree _too much_ might destroy it, @@ -47,7 +47,7 @@ also respond to quick, short single-taps, or double-taps. - Bracing - Earth ponies can brace themselves by sneaking! It, uh, makes you harder to push! yeah! + Earth ponies can brace themselves by sneaking! It, uh, makes you harder to push! Yeah! ### Pegasi / Bat Ponies @@ -121,6 +121,12 @@ also respond to quick, short single-taps, or double-taps. Changelings can turn into damn near anything, even other players! And blocks! And hostile mobs! Careful about turning into skeletons, though, because they hate the sun even more than bat ponies. + + - Crawling + + Changelings can crawl on Ceilings, which is very useful for lining up your shot, when attempting to shoot somepony in a cave, + while disguised as a stone block. Or is that just me? Anyways, they can only crawl along flat surfaces, meaning that if you go off the edge of a block, + you will fall off. ## Special Items, Plants, Tools @@ -144,4 +150,6 @@ If you're able to obtain the wood and leaves, it also makes the perfect deterant ### Muffins -They're bouncy and delicious, and pigs absolutely love them! \ No newline at end of file +They're bouncy and delicious, and pigs absolutely love them! + + \ No newline at end of file From 6cfb00eeac5a5c2972e0e8fe909b1ac47d07289f Mon Sep 17 00:00:00 2001 From: PARADOX <97844313+xyzzy121@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:46:16 -0500 Subject: [PATCH 004/104] Update HOW_TO_PLAY.md --- HOW_TO_PLAY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HOW_TO_PLAY.md b/HOW_TO_PLAY.md index 0c20a0bc..a29546d9 100644 --- a/HOW_TO_PLAY.md +++ b/HOW_TO_PLAY.md @@ -99,7 +99,7 @@ also respond to quick, short single-taps, or double-taps. - Hanging of Ceilings - Ever just want to hang out? Well bat ponies can, _literally_! All the cool kids are doing. + Ever just want to hang out? Well bat ponies can, _literally_! All the cool kids are doing it! - Mangoes @@ -141,7 +141,7 @@ Fighting too close together with them may cause you some knockback. Zap Apple Trees occur naturally in the world and are the only way to obtain zap apples in survival. They can appear in one of several different states: -Hybernating, Flowering, Fruiting, or Withering +*Hibernating, Flowering, Fruiting, or Withering* They cycle through these states throughout the lunar cycle, so if you find one, and it's not in the state you want, wait around another few days and it will eventually bear fruit, but don't try to harvest the apples before they're ripe, because they will zap you! From c1c37881ebe7b7c93c41ef8fb70bbc5a538f2fbd Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 15 Dec 2023 20:45:29 +0000 Subject: [PATCH 005/104] Fix missing mixin target --- .../minelittlepony/unicopia/mixin/MixinPufferfishEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/MixinPufferfishEntity.java b/src/main/java/com/minelittlepony/unicopia/mixin/MixinPufferfishEntity.java index ecadb831..1e799247 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/MixinPufferfishEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/MixinPufferfishEntity.java @@ -16,7 +16,7 @@ import net.minecraft.entity.passive.PufferfishEntity; abstract class MixinPufferfishEntity extends FishEntity { MixinPufferfishEntity() { super(null, null); } - @Inject(method = "method_6591(Lnet/minecraft/class_1309;)Z", at = @At("HEAD"), cancellable = true) + @Inject(method = "method_6591(Lnet/minecraft/entity/LivingEntity;)Z", at = @At("HEAD"), cancellable = true) private static void onShouldTarget(LivingEntity entity, CallbackInfoReturnable info) { Pony.of(entity).filter(pony -> pony.getCompositeRace().includes(Race.SEAPONY)).ifPresent(pony -> { info.setReturnValue(false); From bad793aabfcf0e3acb279d8e9ccd428f1f1c36d0 Mon Sep 17 00:00:00 2001 From: LingVarr <104311317+LingVarr@users.noreply.github.com> Date: Thu, 21 Dec 2023 00:29:24 +1100 Subject: [PATCH 006/104] Update ru_ru.json (#224) --- .../resources/assets/unicopia/lang/ru_ru.json | 65 +++++++++++++++++-- 1 file changed, 60 insertions(+), 5 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/ru_ru.json b/src/main/resources/assets/unicopia/lang/ru_ru.json index d7ce9dc2..b151cf02 100644 --- a/src/main/resources/assets/unicopia/lang/ru_ru.json +++ b/src/main/resources/assets/unicopia/lang/ru_ru.json @@ -298,9 +298,15 @@ "block.unicopia.dense_cloud_slab": "Плита из плотного облака", "block.unicopia.dense_cloud_stairs": "Ступеньки из плотного облака", "block.unicopia.compacted_dense_cloud": "Плотное облако", + "block.unicopia.etched_cloud": "Выгравированное облако", + "block.unicopia.etched_cloud_slab": "Плита выгравированного облака", + "block.unicopia.etched_cloud_stairs": "Ступеньки из выгравированного облака", + "block.unicopia.compacted_etched_cloud": "Выгравированное облако", "block.unicopia.cloud_pillar": "Колонна из облака", "block.unicopia.cloth_bed": "Кровать из шикарной ткани", "block.unicopia.cloud_bed": "Кровать из облака", + "block.unicopia.cloud_chest": "Клаудсдейльский сундук", + "block.unicopia.cloud_chest.double": "Большой клаудсдейльский сундук", "block.unicopia.oats": "Овёс", "block.unicopia.oats_stem": "Овёс", @@ -374,6 +380,7 @@ "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_hippogriff": "Туманное зелье метаморфоз гиппогрифа", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_hippogriff": "Стрела метаморфоз гиппогрифа", + "potion.withChance": "Шанс 1 к %s получить %s", "potion.potency.6": "VII", "spell.unicopia.frost": "Заморозка", @@ -468,11 +475,57 @@ "trait.unicopia.poison.name": "Яда", "trait.unicopia.poison.description": "Смертоносный дротик убивает зверя", - "toxicity.safe.name": "Безопасный", - "toxicity.mild.name": "Слаботоксичный", - "toxicity.fair.name": "Достаточно токсичный", - "toxicity.severe.name": "Токсичный", - "toxicity.lethal.name": "Смертельный", + "unicopia.diet.information": "Информация о диете:", + "unicopia.diet.side_effects": "Побочные эффекты:", + "unicopia.diet.not_edible": "Предмет не съедобен", + "unicopia.diet.base_multiplier": "Базовый множитель: %s%%", + "unicopia.diet.hunger.detailed": "Голода восстановлено: %s из %s (%s%%)", + "unicopia.diet.saturation.detailed": "Насыщения получено: %s (%s%%)", + "unicopia.diet.hunger": "Коэффициент голода: %s%%", + "unicopia.diet.saturation": "Коэффициент насыщения: %s%%", + + "tag.unicopia.food_types.rotten_meat": "Гниющее мясо", + "tag.unicopia.food_types.raw_meat": "Свежее мясо", + "tag.unicopia.food_types.cooked_meat": "Готовое мясо", + "tag.unicopia.food_types.raw_fish": "Свежая рыба", + "tag.unicopia.food_types.cooked_fish": "Готовая рыба", + "tag.unicopia.food_types.raw_insect": "Жуки и насекомые", + "tag.unicopia.food_types.cooked_insect": "Приготовленные жуки и насекомые", + "tag.unicopia.food_types.love": "Любовь", + "tag.unicopia.food_types.rocks": "Камни", + "tag.unicopia.food_types.pinecone": "Орехи и семена", + "tag.unicopia.food_types.bat_ponys_delight": "Лакомства бэтпони", + "tag.unicopia.food_types.cooked_sea_vegitables": "Готовая рыбная еда", + "tag.unicopia.food_types.raw_sea_vegitables": "Свежая рыбная еда", + "tag.unicopia.food_types.shells": "Морские ракушки", + "tag.unicopia.food_types.shelly": "Морские ракушки", + "tag.unicopia.food_types.candy": "Конфеты", + "tag.unicopia.food_types.desserts": "Десерты", + "tag.unicopia.food_types.fruits_and_vegetables": "Фрукты и овощи", + "tag.unicopia.food_types.drinks": "Напитки", + + "tag.unicopia.food_types.forage_edible_filling": "Крупная растительная масса", + "tag.unicopia.food_types.forage_edible": "Растительная масса", + "tag.unicopia.food_types.forage_nauseating": "Тошнотворное", + "tag.unicopia.food_types.forage_prickly": "Колючее", + "tag.unicopia.food_types.forage_risky": "Небезопасное", + "tag.unicopia.food_types.forage_strengthening": "Повышающее силу", + "tag.unicopia.food_types.forage_severely_prickly": "Очень колючее", + "tag.unicopia.food_types.forage_severely_nauseating": "Отвратительное", + "tag.unicopia.food_types.forage_radioactive": "Светящееся", + "tag.unicopia.food_types.forage_dangerous": "Опасное", + "tag.unicopia.food_types.forage_blinding": "Токсичное", + + "toxicity.safe.name": "Безопасное", + "toxicity.mild.name": "Слаботоксичное", + "toxicity.fair.name": "Достаточно токсичное", + "toxicity.severe.name": "Токсичное", + "toxicity.lethal.name": "Смертельное", + + "affliction.unicopia.empty": "Нет эффекта", + "affliction.unicopia.healing": "Восполняет %s%% здоровья", + "affliction.unicopia.cure_love_sickness": "Лечит от любовной болезни", + "affliction.unicopia.lose_hunger": "Теряет %s%% сытости", "ability.unicopia.shoot": "Стрелять магией", "ability.unicopia.shoot.with_spell": "Стрелять \"%s\"", @@ -1127,6 +1180,8 @@ "advancements.unicopia.tempted.description": "Наденьте амулет аликорна", "advancements.unicopia.hello_darkness_my_old_friend.title": "Здравствуй, Тьма...", "advancements.unicopia.hello_darkness_my_old_friend.description": "Углубитесь в силы тёмной стороны", + "advancements.unicopia.a_falling_wizard.title": "Падший волшебник", + "advancements.unicopia.a_falling_wizard.description": "Единорог безуспешно попытался наложить заклинание полёта", "advancements.unicopia.split_the_sea.title": "Ты кто? Моисей?", "advancements.unicopia.split_the_sea.description": "Используйте магию, чтобы переместить более 100 блоков воды за один раз", From cc5e39aebbfaa5f104bb600d13a38381b8b881ec Mon Sep 17 00:00:00 2001 From: Cryghast Date: Wed, 29 Nov 2023 22:41:12 +0800 Subject: [PATCH 007/104] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B1=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/assets/unicopia/lang/zh_cn.json | 112 ++++++++++++++++-- 1 file changed, 100 insertions(+), 12 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 0a69a685..76299c4e 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -1,6 +1,6 @@ { - "block.unicopia.bed.not_safe": "你现在不能休息,附近有怪物在游荡", + "block.unicopia.bed.not_safe": "你现在不能休息,附近有敌人在游荡", "block.unicopia.bed.not_tired": "你现在并不觉得累", "block.unicopia.bed.no_sleep.nocturnal": "你只能在白天或雷暴中入眠", "sleep.not_possible.nocturnal": "休息再久也不能跳过这一天了", @@ -21,6 +21,7 @@ "itemGroup.unicopia.unicorn": "奇幻小马国 - 坎特洛特", "itemGroup.unicopia.pegasus": "奇幻小马国 - 云中城", "itemGroup.unicopia.bat_pony": "奇幻小马国 - 林阴镇", + "itemGroup.unicopia.sea_pony": "奇幻小马国 - 来自深海", "itemGroup.unicopia.changeling": "奇幻小马国 - 幻形虫巢", "item.unicopia.friendship_bracelet": "联谊手环", @@ -44,6 +45,7 @@ "item.unicopia.spellbook": "魔法书", "emi.category.unicopia.spellbook": "魔法书", + "emi.category.unicopia.cloud_shaping": "塑形", "item.unicopia.alicorn_badge": "天角兽徽章", "item.unicopia.unicorn_badge": "独角兽徽章", @@ -52,10 +54,13 @@ "item.unicopia.changeling_badge": "幻形灵徽章", "item.unicopia.bat_badge": "夜骐徽章", "item.unicopia.kirin_badge": "麒麟徽章", + "item.unicopia.hippogriff_badge": "骏鹰徽章", "item.unicopia.butterfly_spawn_egg": "蝴蝶刷怪蛋", "item.unicopia.butterfly": "蝴蝶", - + "item.unicopia.loot_bug_spawn_egg": "Loot Bug Spawn Egg", + "item.unicopia.loot_bug": "Loot bug", + "item.unicopia.green_apple": "史密斯婆婆苹果", "item.unicopia.sweet_apple": "甜苹果园苹果", "item.unicopia.sour_apple": "酸苹果", @@ -140,6 +145,13 @@ "item.unicopia.alicorn_amulet": "天角兽护符", "item.unicopia.alicorn_amulet.lore": "老化度: %d", + "item.unicopia.pearl_necklace": "珍珠项链", + "item.unicopia.pearl_necklace.lore": "给予佩带者水下活动的能力", + "item.unicopia.clam_shell": "蛤蜊壳", + "item.unicopia.scallop_shell": "扇贝壳", + "item.unicopia.turret_shell": "锥螺壳", + "item.unicopia.shelly": "壳儿", + "item.unicopia.horse_shoe.accuracy": "精准度%d%%", "item.unicopia.horse_shoe.speed": "速度:%d", "item.unicopia.iron_horse_shoe": "铁蹄铁", @@ -175,7 +187,35 @@ "item.unicopia.music_disc_funk": "音乐唱片", "item.unicopia.music_disc_funk.desc": "funk, just funk", + "item.unicopia.cloud_lump": "云团", + "item.unicopia.light_gray_bed_sheets": "淡灰色床单", + "item.unicopia.gray_bed_sheets": "灰色床单", + "item.unicopia.black_bed_sheets": "黑色床单", + "item.unicopia.brown_bed_sheets": "棕色床单", + "item.unicopia.red_bed_sheets": "红色床单", + "item.unicopia.orange_bed_sheets": "橙色床单", + "item.unicopia.yellow_bed_sheets": "黄色床单", + "item.unicopia.lime_bed_sheets": "黄绿色床单", + "item.unicopia.green_bed_sheets": "绿色床单", + "item.unicopia.cyan_bed_sheets": "青色床单", + "item.unicopia.light_blue_bed_sheets": "淡蓝色床单", + "item.unicopia.blue_bed_sheets": "蓝色床单", + "item.unicopia.purple_bed_sheets": "紫色床单", + "item.unicopia.magenta_bed_sheets": "品红色床单", + "item.unicopia.pink_bed_sheets": "粉色床单", + "item.unicopia.apple_bed_sheets": "苹果纹饰床单", + "item.unicopia.barred_bed_sheets": "条纹床单", + "item.unicopia.checkered_bed_sheets": "棋盘格床单", + "item.unicopia.kelp_bed_sheets": "海藻纹饰床单", + "item.unicopia.rainbow_bed_sheets": "彩虹纹饰床单", + "item.unicopia.rainbow_bpw_bed_sheets": "BPW 彩虹纹饰床单", + "item.unicopia.rainbow_bpy_bed_sheets": "BPY 彩虹纹饰床单", + "item.unicopia.rainbow_pbg_bed_sheets": "PGB 彩虹纹饰床单", + "item.unicopia.rainbow_pwr_bed_sheets": "PWR 彩虹纹饰床单", + "block.unicopia.rocks": "一些石块", + "block.unicopia.plunder_vine": "掠夺之藤", + "block.unicopia.plunder_vine_bud": "掠夺之藤幼芽", "block.unicopia.bananas": "香蕉", "block.unicopia.zapling": "魔虹苹果树苗", "block.unicopia.zap_log": "魔虹苹果木原木", @@ -209,6 +249,10 @@ "block.unicopia.mango_leaves": "芒果树叶", "block.unicopia.mango_sapling": "芒果树苗", "block.unicopia.pineapple": "菠萝树", + + "block.unicopia.clam_shell": "蛤蜊壳", + "block.unicopia.scallop_shell": "扇贝壳", + "block.unicopia.turret_shell": "锥螺壳", "block.unicopia.green_apple_leaves": "史密斯婆婆苹果树树叶", "block.unicopia.green_apple_sapling": "史密斯婆婆苹果树树苗", @@ -231,6 +275,7 @@ "block.unicopia.chiselled_chitin_slab": "雕纹几丁质台阶", "block.unicopia.chiselled_chitin_stairs": "雕纹几丁质楼梯", + "block.unicopia.shaping_bench": "塑形长椅", "block.unicopia.cloud": "浮云", "block.unicopia.cloud_slab": "云台阶", "block.unicopia.cloud_stairs": "云楼梯", @@ -241,12 +286,19 @@ "block.unicopia.cloud_planks": "浮云板", "block.unicopia.cloud_planks_slab": "云板台阶", "block.unicopia.cloud_planks_stairs": "云板楼梯", + "block.unicopia.cloud_bricks": "云砖", + "block.unicopia.cloud_brick_slab": "云砖台阶", + "block.unicopia.cloud_brick_stairs": "云砖楼梯", + "block.unicopia.carved_cloud": "雕刻过的云", + "block.unicopia.compacted_cloud_bricks": "云砖", "block.unicopia.compacted_cloud_planks": "云板", "block.unicopia.unstable_cloud": "不稳定的云", "block.unicopia.dense_cloud": "稠云", "block.unicopia.dense_cloud_slab": "稠云台阶", "block.unicopia.dense_cloud_stairs": "稠云楼梯", + "block.unicopia.compacted_dense_cloud": "稠云", "block.unicopia.cloud_pillar": "云柱块", + "block.unicopia.cloth_bed": "高档精装床", "block.unicopia.cloud_bed": "云床", "block.unicopia.oats": "燕麦", @@ -315,6 +367,13 @@ "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_kirin": "滞留型转生麒麟药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_kirin": "转生麒麟之箭", + "effect.unicopia.change_race_hippogriff": "转生骏鹰", + "item.minecraft.potion.effect.unicopia.tribe_swap_hippogriff": "转生骏鹰药水", + "item.minecraft.splash_potion.effect.unicopia.tribe_swap_hippogriff": "喷溅型转生骏鹰药水", + "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_hippogriff": "滞留型转生骏鹰药水", + "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_hippogriff": "转生骏鹰之箭", + + "potion.withChance": "%s 分之 1 的概率为 %s", "potion.potency.6": "VII", "spell.unicopia.frost": "霜冻", @@ -450,7 +509,14 @@ "ability.unicopia.disguise": "变形", "ability.unicopia.rainboom": "彩虹音爆", "ability.unicopia.rage": "发火", - "ability.unicopia.nirik_blast": "逆麟", + "ability.unicopia.nirik_blast": "逆麟爆火", + "ability.unicopia.screech": "尖啸", + "ability.unicopia.peck": "啄/鸣叫", + "ability.unicopia.peck.block.fled": "方块被吓跑了", + "ability.unicopia.peck.block.unfased": "方块在你的威胁下仍泰然自若", + "ability.unicopia.dash": "飞行冲刺", + "ability.unicopia.change_form": "改变形态", + "ability.unicopia.sonar_pulse": "声呐脉冲", "gui.unicopia.trait.label": "%s 元素", "gui.unicopia.trait.group": "\n %s", @@ -482,6 +548,7 @@ "gui.unicopia.tribe_selection.describe.unicopia.pegasus": "加入天马族,与闪电天马一起翱翔", "gui.unicopia.tribe_selection.describe.unicopia.bat": "加入夜骐族,成为最黑暗的夜晚", "gui.unicopia.tribe_selection.describe.unicopia.kirin": "加入麒麟村,遵循沉默的誓言", + "gui.unicopia.tribe_selection.describe.unicopia.hippogriff": "加入骏鹰族,向你的邻居尖啸", "gui.unicopia.tribe_selection.describe.unicopia.changeling": "加入幻形灵蜂巢,你的女王需要你", "gui.unicopia.tribe_selection.confirm": "您已选择 %s", @@ -490,11 +557,13 @@ "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.human": " - 是杂食动物,可以吃除了爱以外的所有食物", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.human": " - 对生拇指", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.human": " - 直立行走", - "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.human": "", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.earth": " - 更强的击退力和魔抗力", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.earth": " - 额外的体重使它们对魔法和物理攻击抗性很高", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.earth": " - 与土地有特殊联系,使耕作效率提高10000%!", + "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.earth": " - 拥有强大的击,踢和踏力,可用于防御或向四周出击", + "gui.unicopia.tribe_selection.confirm.goods.5.unicopia.earth": " - 唯一能和苦力怕拥抱而不会被炸死的种族", + "gui.unicopia.tribe_selection.confirm.goods.6.unicopia.earth": " - 可以吃石头", "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.earth": " - 可爱软乎的小马耳朵", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.unicorn": " - 瞬移和魔法咒语", @@ -502,9 +571,10 @@ "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.unicorn": " - 可以使用魔法以检测或揭露附近的幻形灵", "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.unicorn": " - 头上有独角", - "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.pegasus": " - 能够飞行,能通过训练提高耐力", + "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.pegasus": " - 能够飞行,通过训练提高耐力", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.pegasus": " - 使用储存的魔力在短时间内冲刺或蓄力做出彩虹音爆", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.pegasus": " - 移动速度更快,摔落伤害更低", + "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.pegasus": " - 可以直接和云与云类物品互动", "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.pegasus": " - 可以吃蔬菜和某些鱼", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.bat": " - 能够飞行,能通过训练提高耐力", @@ -514,13 +584,20 @@ "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.changeling": " - 能够在原地飞行和悬停", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.changeling": " - 几乎能变形成任何生物或任何物体", + "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.changeling": " - 通过爬墙可越过任何任何物体", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.changeling": " - 是肉食性的。可以吃任何不会让它们生病的东西", - "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.changeling": "", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.kirin": " - 免疫一切火焰伤害", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.kirin": " - 受到伤害后可以发怒", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.kirin": " - 正常情况下很安静,可以在监守者周围自由行动", "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.kirin": " - 可以吃水果和蔬菜,红肉,以及一些对其他种族来说有毒的食物", + + "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.hippogriff": " - 能够飞行,通过训练提高耐力", + "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.hippogriff": " - 可在飞行时冲刺", + "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.hippogriff": " - 在尖啸和啄时会发出尖锐而吵闹的声响", + "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.hippogriff": " - 可以吃生的或熟的鱼,以及熟肉", + "gui.unicopia.tribe_selection.confirm.goods.5.unicopia.hippogriff": " - 吃松果能恢复更多生命值", + "gui.unicopia.tribe_selection.confirm.goods.6.unicopia.hippogriff": " - 喜爱楼梯", "gui.unicopia.tribe_selection.confirm.bads": "但它们……", @@ -532,6 +609,7 @@ "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.earth": " - 不能飞", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.earth": " - 对某些类型的魔法抗性很弱", "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.earth": " - 只能吃植物和蔬菜", + "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.earth": " - 更重,比其他小马移动更慢", "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.unicorn": " - 不能飞", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.unicorn": " - 对物理攻击抗性很弱", @@ -540,23 +618,26 @@ "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.pegasus": " - 由于体重轻,它们对物理攻击抗性最弱", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.pegasus": " - 持续飞行时必须休息以恢复体力", "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.pegasus": " - 没有其它小马的帮助就无法使用魔法", - "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.pegasus": "", "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.bat": " - 由于体重轻,它们对物理攻击抗性很弱", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.bat": " - 持续飞行时必须休息以恢复体力", "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.bat": " - 有时甚至自己吓到自己", - "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.bat": " - 是肉食性的。可以吃任何不会让它们生病的东西", + "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.bat": " - 是肉食性的。可以吃生的或熟的肉,或者纯靠偷来的爱维生", "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.changeling": " - 永远处于饥饿中 ", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.changeling": " - 需要爱,从小马或其它敌对生物那里收集来充饥", "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.changeling": " - 吃普通食物会生病,必须汲取爱来加速治愈", - "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.changeling": "", "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.kirin": " - 发怒时就没那么沉默了", "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.kirin": " - 容易使东西燃起来,发怒时更是如此", "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.kirin": " - 比其他小马轻,更有可能被击退", "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.kirin": " - 不喜欢水", + "gui.unicopia.tribe_selection.confirm.bads.1.unicopia.hippogriff": " - 对物理攻击抗性很弱", + "gui.unicopia.tribe_selection.confirm.bads.2.unicopia.hippogriff": " - 不能与云互动", + "gui.unicopia.tribe_selection.confirm.bads.3.unicopia.hippogriff": " - 持续飞行时必须休息以恢复体力", + "gui.unicopia.tribe_selection.confirm.bads.4.unicopia.hippogriff": " - 脑子和鸟一样小", + "gui.unicopia.tribe_selection.join": "加入种族", "gui.unicopia.tribe_selection.cancel": "返回", @@ -780,8 +861,12 @@ "unicopia.race.changeling.alt": "幻形灵", "unicopia.race.bat": "夜骐", "unicopia.race.bat.alt": "夜骐", - "unicopia.race.kirin": "Kirin", - "unicopia.race.kirin.alt": "Kirins", + "unicopia.race.kirin": "麒麟", + "unicopia.race.kirin.alt": "麒麟", + "unicopia.race.hippogriff": "骏鹰", + "unicopia.race.hippogriff.alt": "骏鹰", + "unicopia.race.seapony": "海马", + "unicopia.race.seapony.alt": "海马", "death.attack.unicopia.generic.and_also": "%1$s 和 %2$s", "death.attack.unicopia.generic.whilst_flying": "%1$s而死于飞行途中", @@ -895,14 +980,17 @@ "unicopia.subtitle.insects": "昆虫乱舞", "unicopia.subtitle.changeling_buzz": "雄峰嗡嗡", "unicopia.subtitle.batpony_eeee": "夜骐尖叫", + "unicopia.subtitle.sonar": "声呐脉冲", "unicopia.subtitle.changeling.transform": "幻形灵 变形", + "unicopia.subtitle.screech": "骏鹰尖啸", "unicopia.subtitle.pegasus.molt": "天马脱羽", "unicopia.subtitle.unicorn.teleport": "魔法泡泡", "unicopia.subtitle.player.wololo": "Wololo!", "unicopia.subtitle.entity.player.whistle": "玩家吹口哨", "unicopia.subtitle.entity.player.kick": "玩家踢腿", "unicopia.subtitle.magic_aura": "魔法嗡嗡", - "unicopia.subtitle.player.rebound": "玩家从墙上跳下", + "unicopia.subtitle.player.rebound": "玩家从墙上弹开", + "unicopia.subtitle.screech": "玩家尖啸", "unicopia.subtitle.ears_ringing": "耳鸣", "unicopia.subtitle.heartbeat": "心悸", "unicopia.subtitle.entity.artefact.ambient": "魔法嗡", From ab0b412945fe32e1a419639d7303ba90b9cf359c Mon Sep 17 00:00:00 2001 From: Cryghast Date: Wed, 29 Nov 2023 23:36:00 +0800 Subject: [PATCH 008/104] loot bug --- src/main/resources/assets/unicopia/lang/zh_cn.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 76299c4e..7cc4028d 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -58,8 +58,8 @@ "item.unicopia.butterfly_spawn_egg": "蝴蝶刷怪蛋", "item.unicopia.butterfly": "蝴蝶", - "item.unicopia.loot_bug_spawn_egg": "Loot Bug Spawn Egg", - "item.unicopia.loot_bug": "Loot bug", + "item.unicopia.loot_bug_spawn_egg": "劫掠虫刷怪蛋", + "item.unicopia.loot_bug": "劫掠虫", "item.unicopia.green_apple": "史密斯婆婆苹果", "item.unicopia.sweet_apple": "甜苹果园苹果", From 17b437a0608fc95ecfc5a54c9635849764abd96a Mon Sep 17 00:00:00 2001 From: Cryghast Date: Sat, 16 Dec 2023 20:57:21 +0800 Subject: [PATCH 009/104] =?UTF-8?q?update=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/assets/unicopia/lang/zh_cn.json | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 7cc4028d..263b298f 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -297,9 +297,15 @@ "block.unicopia.dense_cloud_slab": "稠云台阶", "block.unicopia.dense_cloud_stairs": "稠云楼梯", "block.unicopia.compacted_dense_cloud": "稠云", + "block.unicopia.etched_cloud": "蚀刻过的云", + "block.unicopia.etched_cloud_slab": "蚀刻过的云台阶", + "block.unicopia.etched_cloud_stairs": "蚀刻过的云楼梯", + "block.unicopia.compacted_etched_cloud": "云蚀刻过的云", "block.unicopia.cloud_pillar": "云柱块", "block.unicopia.cloth_bed": "高档精装床", "block.unicopia.cloud_bed": "云床", + "block.unicopia.cloud_chest": "云中箱", + "block.unicopia.cloud_chest.double": "大云中箱", "block.unicopia.oats": "燕麦", "block.unicopia.oats_stem": "燕麦", @@ -468,12 +474,58 @@ "trait.unicopia.poison.name": "毒性", "trait.unicopia.poison.description": "一枚绝命毒镖能轻松放倒一头巨兽。", + "unicopia.diet.information": "饮食信息:", + "unicopia.diet.side_effects": "副作用:", + "unicopia.diet.not_edible": "物品不可食用", + "unicopia.diet.base_multiplier": "基础倍率: %s%%", + "unicopia.diet.hunger.detailed": "获取饥饿值: %s of %s (%s%%)", + "unicopia.diet.saturation.detailed": "获取饱和度: %s (%s%%)", + "unicopia.diet.hunger": "饥饿度比例: %s%%", + "unicopia.diet.saturation": "饱和度比例: %s%%", + + "tag.unicopia.food_types.rotten_meat": "腐烂的肉", + "tag.unicopia.food_types.raw_meat": "新鲜的肉", + "tag.unicopia.food_types.cooked_meat": "处理好的肉", + "tag.unicopia.food_types.raw_fish": "新鲜的鱼", + "tag.unicopia.food_types.cooked_fish": "处理好的鱼", + "tag.unicopia.food_types.raw_insect": "虫类", + "tag.unicopia.food_types.cooked_insect": "烤虫类", + "tag.unicopia.food_types.love": "爱", + "tag.unicopia.food_types.rocks": "石块", + "tag.unicopia.food_types.pinecone": "坚果和种子", + "tag.unicopia.food_types.bat_ponys_delight": "夜骐的处理", + "tag.unicopia.food_types.cooked_sea_vegitables": "处理好的鱼类食物", + "tag.unicopia.food_types.raw_sea_vegitables": "新鲜的鱼类食物", + "tag.unicopia.food_types.shells": "海贝", + "tag.unicopia.food_types.shelly": "海贝", + "tag.unicopia.food_types.candy": "糖果", + "tag.unicopia.food_types.desserts": "甜品", + "tag.unicopia.food_types.fruits_and_vegetables": "水果和蔬菜", + "tag.unicopia.food_types.drinks": "饮品", + + "tag.unicopia.food_types.forage_edible_filling": "大型植物料", + "tag.unicopia.food_types.forage_edible": "植物料", + "tag.unicopia.food_types.forage_nauseating": "恶心", + "tag.unicopia.food_types.forage_prickly": "多刺", + "tag.unicopia.food_types.forage_risky": "不安全", + "tag.unicopia.food_types.forage_strengthening": "力量增强", + "tag.unicopia.food_types.forage_severely_prickly": "刺特多", + "tag.unicopia.food_types.forage_severely_nauseating": "特恶心", + "tag.unicopia.food_types.forage_radioactive": "发光", + "tag.unicopia.food_types.forage_dangerous": "危险", + "tag.unicopia.food_types.forage_blinding": "剧毒", + "toxicity.safe.name": "无毒", "toxicity.mild.name": "微毒", "toxicity.fair.name": "中毒", "toxicity.severe.name": "剧毒", "toxicity.lethal.name": "致命", + "affliction.unicopia.empty": "无效果", + "affliction.unicopia.healing": "获得 %s%% 点生命值", + "affliction.unicopia.cure_love_sickness": "治愈爱的病", + "affliction.unicopia.lose_hunger": "失去 %s%% 点饥饿值", + "ability.unicopia.shoot": "发射魔法", "ability.unicopia.shoot.with_spell": "发射 %s 魔咒", "ability.unicopia.shoot.with_spell.active": "正在发射 %s 魔咒", @@ -1127,6 +1179,8 @@ "advancements.unicopia.tempted.description": "戴上天角兽护符", "advancements.unicopia.hello_darkness_my_old_friend.title": "你好,黑暗……", "advancements.unicopia.hello_darkness_my_old_friend.description": "追求黑暗面的力量", + "advancements.unicopia.a_falling_wizard.title": "堕落的巫师", + "advancements.unicopia.a_falling_wizard.description": "一只想要用魔法飞升但却失败的独角兽", "advancements.unicopia.split_the_sea.title": "您就是海王?", "advancements.unicopia.split_the_sea.description": "使用魔法一次性排开超过一百格水", From 24868633a5f9555af45d6d60dc094ae8ebe6e514 Mon Sep 17 00:00:00 2001 From: Cryghast Date: Wed, 27 Dec 2023 21:14:14 +0800 Subject: [PATCH 010/104] =?UTF-8?q?time=20worn=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/assets/unicopia/lang/zh_cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 263b298f..bdbed780 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -143,7 +143,7 @@ "item.unicopia.amulet.energy": "能量: %d / %d", "item.unicopia.alicorn_amulet": "天角兽护符", - "item.unicopia.alicorn_amulet.lore": "老化度: %d", + "item.unicopia.alicorn_amulet.lore": "佩戴时长: %d", "item.unicopia.pearl_necklace": "珍珠项链", "item.unicopia.pearl_necklace.lore": "给予佩带者水下活动的能力", From 80225bf1e740ede400927288ee2a1a36af9dffbb Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 2 Jan 2024 23:03:41 +0100 Subject: [PATCH 011/104] Added the second magical plant --- assets/models/tentacle.bbmodel | 1 + assets/models/tentacle.java | 169 ++++++++++ assets/models/tentacle.png | Bin 0 -> 19159 bytes .../ability/EarthPonyGrowAbility.java | 9 + .../unicopia/client/URenderers.java | 1 + .../render/entity/TentacleEntityModel.java | 142 +++++++++ .../render/entity/TentacleEntityRenderer.java | 42 +++ .../unicopia/entity/mob/TentacleEntity.java | 289 ++++++++++++++++++ .../unicopia/entity/mob/UEntities.java | 3 + .../textures/entity/poison_joke/tentacle.png | Bin 0 -> 19159 bytes 10 files changed, 656 insertions(+) create mode 100644 assets/models/tentacle.bbmodel create mode 100644 assets/models/tentacle.java create mode 100644 assets/models/tentacle.png create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java create mode 100644 src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java create mode 100644 src/main/resources/assets/unicopia/textures/entity/poison_joke/tentacle.png diff --git a/assets/models/tentacle.bbmodel b/assets/models/tentacle.bbmodel new file mode 100644 index 00000000..0ccec62c --- /dev/null +++ b/assets/models/tentacle.bbmodel @@ -0,0 +1 @@ +{"meta":{"format_version":"4.5","model_format":"modded_entity","box_uv":true},"name":"tentacle","model_identifier":"","modded_entity_version":"Fabric 1.17+","modded_entity_flip_y":true,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":128,"height":128},"elements":[{"name":"a","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-7,-6,-7],"to":[7,10,7],"autouv":0,"color":7,"origin":[0,-6,0],"faces":{"north":{"uv":[14,14,28,30],"texture":0},"east":{"uv":[0,14,14,30],"texture":0},"south":{"uv":[42,14,56,30],"texture":0},"west":{"uv":[28,14,42,30],"texture":0},"up":{"uv":[28,14,14,0],"texture":0},"down":{"uv":[42,0,28,14],"texture":0}},"type":"cube","uuid":"43deca74-ef0e-9496-f060-a569a5f66a3c"},{"name":"b","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,8,-6],"to":[6,27,6],"autouv":0,"color":7,"origin":[0,0,0],"uv_offset":[0,30],"faces":{"north":{"uv":[12,42,24,61],"texture":0},"east":{"uv":[0,42,12,61],"texture":0},"south":{"uv":[36,42,48,61],"texture":0},"west":{"uv":[24,42,36,61],"texture":0},"up":{"uv":[24,42,12,30],"texture":0},"down":{"uv":[36,30,24,42],"texture":0}},"type":"cube","uuid":"2f7bd122-e685-5397-518a-d566774b5f7f"},{"name":"c","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-5,25,-5],"to":[5,48,5],"autouv":0,"color":7,"origin":[0,26,0],"uv_offset":[48,20],"faces":{"north":{"uv":[58,30,68,53],"texture":0},"east":{"uv":[48,30,58,53],"texture":0},"south":{"uv":[78,30,88,53],"texture":0},"west":{"uv":[68,30,78,53],"texture":0},"up":{"uv":[68,30,58,20],"texture":0},"down":{"uv":[78,20,68,30],"texture":0}},"type":"cube","uuid":"a32e4c53-99d7-93d5-23f7-ae163af4dae5"},{"name":"d","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,45,-4],"to":[4,66,4],"autouv":0,"color":7,"origin":[0,26,0],"uv_offset":[40,53],"faces":{"north":{"uv":[48,61,56,82],"texture":0},"east":{"uv":[40,61,48,82],"texture":0},"south":{"uv":[64,61,72,82],"texture":0},"west":{"uv":[56,61,64,82],"texture":0},"up":{"uv":[56,61,48,53],"texture":0},"down":{"uv":[64,53,56,61],"texture":0}},"type":"cube","uuid":"a4c5b57f-c555-154e-e673-7e114f6e5a21"},{"name":"e","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-3,64,-3],"to":[3,86,3],"autouv":0,"color":7,"origin":[-1.1793215979571126e-16,26,-4.382008627821946e-33],"uv_offset":[0,61],"faces":{"north":{"uv":[6,67,12,89],"texture":0},"east":{"uv":[0,67,6,89],"texture":0},"south":{"uv":[18,67,24,89],"texture":0},"west":{"uv":[12,67,18,89],"texture":0},"up":{"uv":[12,67,6,61],"texture":0},"down":{"uv":[18,61,12,67],"texture":0}},"type":"cube","uuid":"c8af392a-28ea-8a9f-cc0f-e8f19558f993"},{"name":"f","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-3,85,-3],"to":[3,100,3],"autouv":0,"color":7,"origin":[-2.620714662126916e-16,47,-9.737796950715435e-33],"uv_offset":[72,53],"faces":{"north":{"uv":[78,59,84,74],"texture":0},"east":{"uv":[72,59,78,74],"texture":0},"south":{"uv":[90,59,96,74],"texture":0},"west":{"uv":[84,59,90,74],"texture":0},"up":{"uv":[84,59,78,53],"texture":0},"down":{"uv":[90,53,84,59],"texture":0}},"type":"cube","uuid":"1d4836bc-6b01-9b8b-2958-1280f80f91b7"},{"name":"g","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-2.5999999999999996,99,-2.5999999999999996],"to":[2.5999999999999996,114,2.599999999999998],"autouv":0,"color":7,"origin":[-3.6034826604245074e-16,0,1],"uv_offset":[56,0],"faces":{"north":{"uv":[61.199999999999996,5.1999999999999975,66.39999999999999,20.199999999999996],"texture":0},"east":{"uv":[56,5.1999999999999975,61.199999999999996,20.199999999999996],"texture":0},"south":{"uv":[71.6,5.1999999999999975,76.8,20.199999999999996],"texture":0},"west":{"uv":[66.39999999999999,5.1999999999999975,71.6,20.199999999999996],"texture":0},"up":{"uv":[66.39999999999999,5.1999999999999975,61.199999999999996,0],"texture":0},"down":{"uv":[71.6,0,66.39999999999999,5.1999999999999975],"texture":0}},"type":"cube","uuid":"4001f6b1-caf3-d76f-2d5b-8636c85cd0fb"},{"name":"h","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-2.0999999999999996,113,-2.0999999999999996],"to":[2.0999999999999996,128,2.099999999999998],"autouv":0,"color":7,"origin":[-4.455214925615753e-16,14,1],"uv_offset":[24,61],"faces":{"north":{"uv":[28.199999999999996,65.2,32.4,80.19999999999999],"texture":0},"east":{"uv":[24,65.2,28.199999999999996,80.19999999999999],"texture":0},"south":{"uv":[36.599999999999994,65.2,40.8,80.19999999999999],"texture":0},"west":{"uv":[32.4,65.2,36.599999999999994,80.19999999999999],"texture":0},"up":{"uv":[32.4,65.2,28.199999999999996,61],"texture":0},"down":{"uv":[36.599999999999994,61,32.4,65.2],"texture":0}},"type":"cube","uuid":"4ba83545-3fcf-726d-033c-a1ac411a4ae3"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[3,-0.6703481918674496,-7.772537561589672],"to":[17,-0.6703481918674496,6.227462438410338],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[3,-0.6703481918674496,-7.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"43754e70-3fcd-b60a-62ee-01eadc22607a"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[3,-0.6703481918674496,-7.772537561589672],"to":[17,-0.6703481918674496,6.227462438410338],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[3,-0.6703481918674496,-7.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100,14.000000000000002,114,14.000000000000002],"texture":0},"east":{"uv":[86,14.000000000000002,100,14.000000000000002],"texture":0},"south":{"uv":[128,14.000000000000002,142,14.000000000000002],"texture":0},"west":{"uv":[114,14.000000000000002,128,14.000000000000002],"texture":0},"up":{"uv":[114,14.000000000000002,100,0],"texture":0},"down":{"uv":[128,0,114,14.000000000000002],"texture":0}},"type":"cube","uuid":"e5054bff-a980-a8dc-0221-58208085978f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[5,-0.6703481918674511,4.227462438410328],"to":[19,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[5,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"13ebb478-c830-3a6e-858d-2269a5ea0642"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[5,-0.6703481918674511,4.227462438410328],"to":[19,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[5,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"2a87966b-98f6-fe32-0698-06d07dd0caa9"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674511,4.227462438410328],"to":[8,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-6,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"b2e2dbad-e1e3-ecb6-41d7-21cb1908deb8"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674511,4.227462438410328],"to":[8,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-6,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"f93aa31f-c197-3e66-58ad-a1c638ecce97"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674499,-6.772537561589672],"to":[8,-0.6703481918674499,7.227462438410338],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-6,-0.6703481918674499,-6.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"c1ca47a6-f9ba-555a-cc32-58d55b8809b9"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674499,-6.772537561589672],"to":[8,-0.6703481918674499,7.227462438410338],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-6,-0.6703481918674499,-6.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"b8b98b2d-632b-3acd-29a8-55efa4850547"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[3,-0.6703481918674496,-7.772537561589672],"to":[17,-0.6703481918674496,6.227462438410338],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[3,-0.6703481918674496,-7.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"e3aaee1e-958c-370c-a10d-94e142df629c"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[3,-0.6703481918674496,-7.772537561589672],"to":[17,-0.6703481918674496,6.227462438410338],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[3,-0.6703481918674496,-7.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"6bf59ab2-03d6-2995-17bc-76e27e52bf6c"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[5,-0.6703481918674511,4.227462438410328],"to":[19,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[5,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"666a373c-9dd2-0cfc-c1b7-13a5fe7fe392"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[5,-0.6703481918674511,4.227462438410328],"to":[19,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[5,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"ebaca892-208f-1ec8-a7b0-4b8bf692d869"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674511,4.227462438410328],"to":[8,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-6,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"02bb3148-7ad4-1fbe-f233-fcd02c1f00f4"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674511,4.227462438410328],"to":[8,-0.6703481918674511,18.22746243841034],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-6,-0.6703481918674511,4.227462438410328],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"ea8790f9-39c1-9607-7faf-4054f0782315"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674499,-6.772537561589672],"to":[8,-0.6703481918674499,7.227462438410338],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-6,-0.6703481918674499,-6.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"42f35de8-e9da-314a-ea8b-4ec3162ccc7b"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-0.6703481918674499,-6.772537561589672],"to":[8,-0.6703481918674499,7.227462438410338],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-6,-0.6703481918674499,-6.772537561589672],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"2a148807-d884-e05b-680e-36ba4ce450e5"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,40.62422566484149,-3.3435187525409757],"to":[10,40.62422566484149,10.656481247459041],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-4,40.62422566484149,-3.3435187525409757],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"e0119d00-cad6-3842-bbe5-6885628ff35e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,40.62422566484149,-3.3435187525409757],"to":[10,40.62422566484149,10.656481247459041],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-4,40.62422566484149,-3.3435187525409757],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.00000000000001,114.00000000000001,14.00000000000001],"texture":0},"east":{"uv":[86,14.00000000000001,100.00000000000001,14.00000000000001],"texture":0},"south":{"uv":[128.00000000000003,14.00000000000001,142.00000000000003,14.00000000000001],"texture":0},"west":{"uv":[114.00000000000001,14.00000000000001,128.00000000000003,14.00000000000001],"texture":0},"up":{"uv":[114.00000000000001,14.00000000000001,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.00000000000001],"texture":0}},"type":"cube","uuid":"abe6d75d-fccf-7b97-e8ca-156f68f30b76"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,60.13549813476108,3.0055163398616545],"to":[16,60.13549813476108,17.005516339861675],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[2,60.13549813476108,3.0055163398616545],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.000000000000018,114.00000000000001,14.000000000000018],"texture":0},"east":{"uv":[86,14.000000000000018,100.00000000000001,14.000000000000018],"texture":0},"south":{"uv":[128.00000000000003,14.000000000000018,142.00000000000003,14.000000000000018],"texture":0},"west":{"uv":[114.00000000000001,14.000000000000018,128.00000000000003,14.000000000000018],"texture":0},"up":{"uv":[114.00000000000001,14.000000000000018,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.000000000000018],"texture":0}},"type":"cube","uuid":"bf2e26ba-937a-73c8-3ab2-9240c2690b0b"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,60.13549813476108,3.0055163398616545],"to":[16,60.13549813476108,17.005516339861675],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[2,60.13549813476108,3.0055163398616545],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000001,14.000000000000018,114.00000000000001,14.000000000000018],"texture":0},"east":{"uv":[86,14.000000000000018,100.00000000000001,14.000000000000018],"texture":0},"south":{"uv":[128.00000000000003,14.000000000000018,142.00000000000003,14.000000000000018],"texture":0},"west":{"uv":[114.00000000000001,14.000000000000018,128.00000000000003,14.000000000000018],"texture":0},"up":{"uv":[114.00000000000001,14.000000000000018,100.00000000000001,0],"texture":0},"down":{"uv":[128,0,114.00000000000001,14.000000000000018],"texture":0}},"type":"cube","uuid":"61246d8c-3a21-f2e2-2b5e-656b618b9315"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2.0000000000000004,89.02514437942168,0.47799980017960014],"to":[16,89.02514437942168,14.47799980017963],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[2.0000000000000004,89.02514437942168,0.47799980017960014],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000003,14.000000000000021,114.00000000000003,14.000000000000021],"texture":0},"east":{"uv":[86,14.000000000000021,100.00000000000003,14.000000000000021],"texture":0},"south":{"uv":[128.00000000000006,14.000000000000021,142.00000000000006,14.000000000000021],"texture":0},"west":{"uv":[114.00000000000003,14.000000000000021,128.00000000000006,14.000000000000021],"texture":0},"up":{"uv":[114.00000000000003,14.000000000000021,100.00000000000003,0],"texture":0},"down":{"uv":[128.00000000000003,0,114.00000000000003,14.000000000000021],"texture":0}},"type":"cube","uuid":"ff5dbdd3-d6eb-27ba-e1ab-c1a0f550fd3e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2.0000000000000004,89.02514437942168,0.47799980017960014],"to":[16,89.02514437942168,14.47799980017963],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[2.0000000000000004,89.02514437942168,0.47799980017960014],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000003,14.000000000000021,114.00000000000003,14.000000000000021],"texture":0},"east":{"uv":[86,14.000000000000021,100.00000000000003,14.000000000000021],"texture":0},"south":{"uv":[128.00000000000006,14.000000000000021,142.00000000000006,14.000000000000021],"texture":0},"west":{"uv":[114.00000000000003,14.000000000000021,128.00000000000006,14.000000000000021],"texture":0},"up":{"uv":[114.00000000000003,14.000000000000021,100.00000000000003,0],"texture":0},"down":{"uv":[128.00000000000003,0,114.00000000000003,14.000000000000021],"texture":0}},"type":"cube","uuid":"8e0f248f-1228-4a38-2a74-cb0d23718fdc"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-22.881490097225765,145.88837332325411,6.8760974475566785],"to":[-8.881490097225756,145.88837332325411,20.876097447556763],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000009,14.000000000000085,114.0000000000001,14.000000000000085],"texture":0},"east":{"uv":[86,14.000000000000085,100.00000000000009,14.000000000000085],"texture":0},"south":{"uv":[128.00000000000017,14.000000000000085,142.0000000000002,14.000000000000085],"texture":0},"west":{"uv":[114.0000000000001,14.000000000000085,128.00000000000017,14.000000000000085],"texture":0},"up":{"uv":[114.0000000000001,14.000000000000085,100.00000000000009,0],"texture":0},"down":{"uv":[128.0000000000001,0,114.0000000000001,14.000000000000085],"texture":0}},"type":"cube","uuid":"817666d5-286f-6161-8446-3970704a3265"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0.16641666179338577,107.95005796968688,-16.171809311462464],"to":[14.166416661793397,107.95005796968688,-2.17180931146247],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100,13.999999999999993,114,13.999999999999993],"texture":0},"east":{"uv":[86,13.999999999999993,100,13.999999999999993],"texture":0},"south":{"uv":[128,13.999999999999993,142,13.999999999999993],"texture":0},"west":{"uv":[114,13.999999999999993,128,13.999999999999993],"texture":0},"up":{"uv":[114,13.999999999999993,100,0],"texture":0},"down":{"uv":[128,0,114,13.999999999999993],"texture":0}},"type":"cube","uuid":"5f3e16dd-eed6-733e-e1db-f1934b558e88"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-22.881490097225765,145.88837332325411,6.8760974475566785],"to":[-8.881490097225756,145.88837332325411,20.876097447556763],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000009,14.000000000000085,114.00000000000009,14.000000000000085],"texture":0},"east":{"uv":[86,14.000000000000085,100.00000000000009,14.000000000000085],"texture":0},"south":{"uv":[128.00000000000017,14.000000000000085,142.00000000000017,14.000000000000085],"texture":0},"west":{"uv":[114.00000000000009,14.000000000000085,128.00000000000017,14.000000000000085],"texture":0},"up":{"uv":[114.00000000000009,14.000000000000085,100.00000000000009,0],"texture":0},"down":{"uv":[128.0000000000001,0,114.00000000000009,14.000000000000085],"texture":0}},"type":"cube","uuid":"573cf719-c66a-d73e-148d-d14e9617d0ac"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0.16641666179338577,107.95005796968688,-16.171809311462464],"to":[14.166416661793397,107.95005796968688,-2.17180931146247],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100,13.999999999999995,114,13.999999999999995],"texture":0},"east":{"uv":[86,13.999999999999995,100,13.999999999999995],"texture":0},"south":{"uv":[128,13.999999999999995,142,13.999999999999995],"texture":0},"west":{"uv":[114,13.999999999999995,128,13.999999999999995],"texture":0},"up":{"uv":[114,13.999999999999995,100,0],"texture":0},"down":{"uv":[128,0,114,13.999999999999995],"texture":0}},"type":"cube","uuid":"e4e3e2ae-0684-ee78-4ec9-33f0f9461b19"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-22.881490097225765,145.88837332325411,6.8760974475566785],"to":[-8.881490097225756,145.88837332325411,20.876097447556763],"autouv":0,"color":0,"rotation":[-180,-45.000000000000156,90],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100.00000000000009,14.000000000000085,114.00000000000009,14.000000000000085],"texture":0},"east":{"uv":[86,14.000000000000085,100.00000000000009,14.000000000000085],"texture":0},"south":{"uv":[128.00000000000017,14.000000000000085,142.00000000000017,14.000000000000085],"texture":0},"west":{"uv":[114.00000000000009,14.000000000000085,128.00000000000017,14.000000000000085],"texture":0},"up":{"uv":[114.00000000000009,14.000000000000085,100.00000000000009,0],"texture":0},"down":{"uv":[128.0000000000001,0,114.00000000000009,14.000000000000085],"texture":0}},"type":"cube","uuid":"c59ea2f3-dbd7-5b92-4640-4acc2121a8b2"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0.16641666179338577,107.95005796968688,-16.171809311462464],"to":[14.166416661793397,107.95005796968688,-2.17180931146247],"autouv":0,"color":0,"rotation":[-89.99999999999994,-6.3611093629270335e-15,45],"origin":[-36.04320341964982,110.62188448501286,-2.507082580585397],"uv_offset":[86,0],"faces":{"north":{"uv":[100,13.999999999999995,114,13.999999999999995],"texture":0},"east":{"uv":[86,13.999999999999995,100,13.999999999999995],"texture":0},"south":{"uv":[128,13.999999999999995,142,13.999999999999995],"texture":0},"west":{"uv":[114,13.999999999999995,128,13.999999999999995],"texture":0},"up":{"uv":[114,13.999999999999995,100,0],"texture":0},"down":{"uv":[128,0,114,13.999999999999995],"texture":0}},"type":"cube","uuid":"3bb469e2-e5a5-7cfc-3e9c-6fd43b8a3ca0"}],"outliner":[{"name":"bone_a","origin":[0,0,0],"rotation":[-7.951386703658792e-15,0,0],"color":0,"uuid":"836e9354-0309-70b5-cb60-e7f38118e743","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["43deca74-ef0e-9496-f060-a569a5f66a3c",{"name":"flower_4","origin":[-6,-0.6703481918674499,-6.772537561589672],"rotation":[-91.26598229300457,52.08446097361874,-64.05377573888674],"color":0,"uuid":"2ea8b2cf-a2c0-c454-2fb5-d9bc522a921c","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["c1ca47a6-f9ba-555a-cc32-58d55b8809b9","b8b98b2d-632b-3acd-29a8-55efa4850547",{"name":"flower_8","origin":[-6,-0.6703481918674499,-6.772537561589672],"rotation":[-167.64364206893785,46.98788282368353,-125.90165504433261],"color":0,"uuid":"02ef3343-dfcc-9af4-29a2-6dc427c70898","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["42f35de8-e9da-314a-ea8b-4ec3162ccc7b","2a148807-d884-e05b-680e-36ba4ce450e5"]}]},{"name":"flower_3","origin":[-6,-0.6703481918674511,4.227462438410328],"rotation":[137.96042965468234,-13.430580338215425,-145.38236406964168],"color":0,"uuid":"2fc2f20b-05ce-0410-dd40-8d55ec1d814a","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["b2e2dbad-e1e3-ecb6-41d7-21cb1908deb8","f93aa31f-c197-3e66-58ad-a1c638ecce97",{"name":"flower_7","origin":[-6,-0.6703481918674511,4.227462438410328],"rotation":[137.96042965468234,-13.430580338215425,-145.38236406964168],"color":0,"uuid":"3c08633a-6d30-3951-f49a-b815826de0cd","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["02bb3148-7ad4-1fbe-f233-fcd02c1f00f4","ea8790f9-39c1-9607-7faf-4054f0782315"]}]},{"name":"flower_2","origin":[5,-0.6703481918674511,4.227462438410328],"rotation":[72.75299322235041,-55.44873947197246,-103.02095072899253],"color":0,"uuid":"8cc35e91-dbf2-1e20-efc6-d0c6dc9e1e32","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["13ebb478-c830-3a6e-858d-2269a5ea0642","2a87966b-98f6-fe32-0698-06d07dd0caa9",{"name":"flower_6","origin":[5,-0.6703481918674511,4.227462438410328],"rotation":[72.75299322235041,-55.44873947197246,-103.02095072899253],"color":0,"uuid":"93297f86-e3ca-4d71-a6c8-298ff77bbb1a","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["666a373c-9dd2-0cfc-c1b7-13a5fe7fe392","ebaca892-208f-1ec8-a7b0-4b8bf692d869"]}]},{"name":"flower_1","origin":[3,-0.6703481918674496,-7.772537561589672],"rotation":[-34.96649542120608,3.067430398401471,-33.59739024796235],"color":0,"uuid":"59363886-4b5a-2a3c-75cd-8d6276de69b3","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["e5054bff-a980-a8dc-0221-58208085978f","43754e70-3fcd-b60a-62ee-01eadc22607a",{"name":"flower_5","origin":[3,-0.6703481918674496,-7.772537561589672],"rotation":[-34.96649542120608,3.067430398401471,-33.59739024796235],"color":0,"uuid":"0265d420-aeaa-b538-1252-89df12b0f9b6","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["e3aaee1e-958c-370c-a10d-94e142df629c","6bf59ab2-03d6-2995-17bc-76e27e52bf6c"]}]},{"name":"bone_b","origin":[0,9,0],"rotation":[15,0,0],"color":0,"uuid":"aa6d7f64-89b9-a900-a3dc-3a9fcdc22618","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["2f7bd122-e685-5397-518a-d566774b5f7f",{"name":"bone_c","origin":[0,25,0],"rotation":[-6.599650964036798e-14,0,0],"color":0,"uuid":"7b4502a2-fe6a-53ad-2f9f-391f31027828","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":[{"name":"flower_9","origin":[-4,40.62422566484149,-3.3435187525409757],"rotation":[-167.64364206893785,46.987882823683556,-140.9016550443326],"color":0,"uuid":"5ba196d8-95ae-bace-28cb-48bdb2d6cbac","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["e0119d00-cad6-3842-bbe5-6885628ff35e","abe6d75d-fccf-7b97-e8ca-156f68f30b76"]},"a32e4c53-99d7-93d5-23f7-ae163af4dae5",{"name":"bone_d","origin":[0,43,0],"rotation":[10.000000000000005,2.1289409148363706e-15,3.753897236198147e-16],"color":0,"uuid":"286e227f-8a7a-cfd3-27a0-86aed0c10bb7","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":[{"name":"flower_10","origin":[2,60.13549813476108,3.0055163398616545],"rotation":[163.90070263038493,34.045350837165316,140.2721846400254],"color":0,"uuid":"1ed2c36a-c359-91ea-40ba-572a6c8757f7","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["bf2e26ba-937a-73c8-3ab2-9240c2690b0b","61246d8c-3a21-f2e2-2b5e-656b618b9315"]},"a4c5b57f-c555-154e-e673-7e114f6e5a21",{"name":"bone_e","origin":[0,61,0],"rotation":[-10,2.1289409148363706e-15,3.753897236198147e-16],"color":0,"uuid":"960ce6d7-f146-7814-e0c9-b11b5b43956a","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["c8af392a-28ea-8a9f-cc0f-e8f19558f993",{"name":"bone_f","origin":[0,83,0],"rotation":[-10,2.1289409148363706e-15,3.753897236198147e-16],"color":0,"uuid":"3f876c03-f9b2-1dac-08bc-990abce00d76","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["1d4836bc-6b01-9b8b-2958-1280f80f91b7",{"name":"flower_11","origin":[2.0000000000000004,89.02514437942168,0.47799980017960014],"rotation":[-158.0615625451014,-19.935030254861065,145.712572187446],"color":0,"uuid":"42c04c52-8414-cc27-f1a2-bce1e6fdc48c","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["ff5dbdd3-d6eb-27ba-e1ab-c1a0f550fd3e","8e0f248f-1228-4a38-2a74-cb0d23718fdc"]},{"name":"bone_g","origin":[0,98,0],"rotation":[-17.5,2.1289409148363706e-15,3.753897236198147e-16],"color":0,"uuid":"87fdafb8-862b-0fc4-f194-483e4c6ab1d2","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["4001f6b1-caf3-d76f-2d5b-8636c85cd0fb",{"name":"bone_h","origin":[0,111,0],"rotation":[-15,2.1289409148363706e-15,3.753897236198147e-16],"color":0,"uuid":"bd8fb7b0-ef45-7564-a12a-05cb47421493","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["4ba83545-3fcf-726d-033c-a1ac411a4ae3",{"name":"flower_12","origin":[-4.852359674770397e-16,126.1462282992986,0.6365198729059891],"rotation":[-158.06156254510137,-19.93503025486101,170.7125721874457],"color":0,"uuid":"faa91113-8626-24ec-baa2-9003ea1e0eda","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["817666d5-286f-6161-8446-3970704a3265","5f3e16dd-eed6-733e-e1db-f1934b558e88",{"name":"flower_13","origin":[-4.852359674770397e-16,126.1462282992986,0.6365198729059891],"rotation":[-158.06156254510134,-19.935030254861015,148.21257218744574],"color":0,"uuid":"749d951a-ecbc-4197-9c32-365bbb0a98a9","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["573cf719-c66a-d73e-148d-d14e9617d0ac","e4e3e2ae-0684-ee78-4ec9-33f0f9461b19"]},{"name":"flower_14","origin":[-4.852359674770397e-16,126.1462282992986,0.6365198729059891],"rotation":[111.22147558087971,59.83922506916349,99.72701164210366],"color":0,"uuid":"3c36c30a-bdb5-bede-7d1c-4073204f716c","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["c59ea2f3-dbd7-5b92-4640-4acc2121a8b2","3bb469e2-e5a5-7cfc-3e9c-6fd43b8a3ca0"]}]}]}]}]}]}]}]}]}]}],"textures":[{"path":"/home/sollace/Documents/GitRepos/minecraft_mods/Unicopia/assets/models/tentacle.png","name":"tentacle.png","folder":"block","namespace":"","id":"0","particle":false,"render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"mode":"bitmap","saved":true,"uuid":"59729803-364e-77c5-ab9a-5c088a316d59","relative_path":"../tentacle.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAIABJREFUeF7kvXnwbdlV3/fZw5nufH/jm6d+PUlqiRYSEhJCIBEMhoRRljCSMJRi4qqEVAY7KVeqUnY5cdnlsp14Aoc4tkmcxImBKhEghsgChBBCoqWWep7e/H7j/d3xjHtI7dNS/iAI9/u9fnQD3fXqveq+9/z2O2edvdda32EJjvnPIw9+xKciRZmGxEsirVlVBSKRYByN8PScoiPhhjE0WqGkYuyg8p4ZnrFpiGONUBpvSvoqZdYYjBDUtkTKGCNg5Q3Pvvi/imMu9f/3tfc+/CPekWJtQyIVtav5zWf/2at2/Vdrnb/3Ot/6nb/i/80v/Tuv6jqPfbF3XvpzXoqGnodKZRSuIRUC6wy7eE64mtxrBt0ON21O3wgKlfGAr1jYmFjUbRBUQtKLFYfLBaeiHsqL9qEvpaVuKkSScYqIjz/z08de6++9kR9+43/smyTioDbMfMkJPeYXvvjXX7Xrv9oB8F//tyv/V/5yV3zn933B4x2/9PNvfdXWeuwLvfXSh/047TBb7LCerKHCm608B75hTSXEHhoPsTNciSN0s+CEzzjylkJIzkhPIwULH5G6kr5PMMKhdczKOxpnyW1DamuE0Hzmyqu4AzzyMb/uI1ZNTZJ12EHw2S/898e+F6/2A//q9d7zbT/rw59/41e/X4Qg+OQn/w1Z5wTToyf5zK999FVZ77Ev8i0P/lm/X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ADW5OHam1AKijyg2O0QKgwc2pI7UWAHVUucExWgA0uDl1pNYCoI4qNzhGC4AGN6eO1P4N4fWgcG6aV1kAAAAASUVORK5CYII="}],"fabricOptions":{"header":"package com.example.mod;","entity":"Entity","render":"","members":""}} \ No newline at end of file diff --git a/assets/models/tentacle.java b/assets/models/tentacle.java new file mode 100644 index 00000000..81792fec --- /dev/null +++ b/assets/models/tentacle.java @@ -0,0 +1,169 @@ +// Made with Blockbench 4.8.3 +// Exported for Minecraft version 1.17+ for Yarn +// Paste this class into your mod and generate all required imports +public class tentacle extends EntityModel { + private final ModelPart bone_a; + private final ModelPart flower_4; + private final ModelPart cube_r1; + private final ModelPart cube_r2; + private final ModelPart flower_8; + private final ModelPart cube_r3; + private final ModelPart cube_r4; + private final ModelPart flower_3; + private final ModelPart cube_r5; + private final ModelPart cube_r6; + private final ModelPart flower_7; + private final ModelPart cube_r7; + private final ModelPart cube_r8; + private final ModelPart flower_2; + private final ModelPart cube_r9; + private final ModelPart cube_r10; + private final ModelPart flower_6; + private final ModelPart cube_r11; + private final ModelPart cube_r12; + private final ModelPart flower_1; + private final ModelPart cube_r13; + private final ModelPart cube_r14; + private final ModelPart flower_5; + private final ModelPart cube_r15; + private final ModelPart cube_r16; + private final ModelPart bone_b; + private final ModelPart bone_c; + private final ModelPart flower_9; + private final ModelPart cube_r17; + private final ModelPart cube_r18; + private final ModelPart bone_d; + private final ModelPart flower_10; + private final ModelPart cube_r19; + private final ModelPart cube_r20; + private final ModelPart bone_e; + private final ModelPart bone_f; + private final ModelPart flower_11; + private final ModelPart cube_r21; + private final ModelPart cube_r22; + private final ModelPart bone_g; + private final ModelPart bone_h; + private final ModelPart flower_12; + private final ModelPart cube_r23; + private final ModelPart cube_r24; + private final ModelPart flower_13; + private final ModelPart cube_r25; + private final ModelPart cube_r26; + private final ModelPart flower_14; + private final ModelPart cube_r27; + private final ModelPart cube_r28; + public tentacle(ModelPart root) { + this.bone_a = root.getChild("bone_a"); + } + public static TexturedModelData getTexturedModelData() { + ModelData modelData = new ModelData(); + ModelPartData modelPartData = modelData.getRoot(); + ModelPartData bone_a = modelPartData.addChild("bone_a", ModelPartBuilder.create().uv(0, 0).cuboid(-7.0F, -10.0F, -7.0F, 14.0F, 16.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 24.0F, 0.0F, 0.0F, 0.0F, 0.0F)); + + ModelPartData flower_4 = bone_a.addChild("flower_4", ModelPartBuilder.create(), ModelTransform.of(6.0F, 0.6703F, -6.7725F, 1.5929F, -0.909F, -1.1179F)); + + ModelPartData cube_r1 = flower_4.addChild("cube_r1", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r2 = flower_4.addChild("cube_r2", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_8 = flower_4.addChild("flower_8", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.9259F, -0.8201F, -2.1974F)); + + ModelPartData cube_r3 = flower_8.addChild("cube_r3", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r4 = flower_8.addChild("cube_r4", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_3 = bone_a.addChild("flower_3", ModelPartBuilder.create(), ModelTransform.of(6.0F, 0.6703F, 4.2275F, -2.4079F, 0.2344F, -2.5374F)); + + ModelPartData cube_r5 = flower_3.addChild("cube_r5", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r6 = flower_3.addChild("cube_r6", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_7 = flower_3.addChild("flower_7", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -2.4079F, 0.2344F, -2.5374F)); + + ModelPartData cube_r7 = flower_7.addChild("cube_r7", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r8 = flower_7.addChild("cube_r8", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_2 = bone_a.addChild("flower_2", ModelPartBuilder.create(), ModelTransform.of(-5.0F, 0.6703F, 4.2275F, -1.2698F, 0.9678F, -1.7981F)); + + ModelPartData cube_r9 = flower_2.addChild("cube_r9", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r10 = flower_2.addChild("cube_r10", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_6 = flower_2.addChild("flower_6", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.2698F, 0.9678F, -1.7981F)); + + ModelPartData cube_r11 = flower_6.addChild("cube_r11", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r12 = flower_6.addChild("cube_r12", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_1 = bone_a.addChild("flower_1", ModelPartBuilder.create(), ModelTransform.of(-3.0F, 0.6703F, -7.7725F, 0.6103F, -0.0535F, -0.5864F)); + + ModelPartData cube_r13 = flower_1.addChild("cube_r13", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r14 = flower_1.addChild("cube_r14", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_5 = flower_1.addChild("flower_5", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 0.6103F, -0.0535F, -0.5864F)); + + ModelPartData cube_r15 = flower_5.addChild("cube_r15", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r16 = flower_5.addChild("cube_r16", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData bone_b = bone_a.addChild("bone_b", ModelPartBuilder.create().uv(0, 30).cuboid(-6.0F, -18.0F, -6.0F, 12.0F, 19.0F, 12.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -9.0F, 0.0F, -0.2618F, 0.0F, 0.0F)); + + ModelPartData bone_c = bone_b.addChild("bone_c", ModelPartBuilder.create().uv(48, 20).cuboid(-5.0F, -23.0F, -5.0F, 10.0F, 23.0F, 10.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -16.0F, 0.0F, 0.0F, 0.0F, 0.0F)); + + ModelPartData flower_9 = bone_c.addChild("flower_9", ModelPartBuilder.create(), ModelTransform.of(4.0F, -15.6242F, -3.3435F, 2.9259F, -0.8201F, -2.4592F)); + + ModelPartData cube_r17 = flower_9.addChild("cube_r17", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r18 = flower_9.addChild("cube_r18", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData bone_d = bone_c.addChild("bone_d", ModelPartBuilder.create().uv(40, 53).cuboid(-4.0F, -23.0F, -4.0F, 8.0F, 21.0F, 8.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -18.0F, 0.0F, -0.1745F, 0.0F, 0.0F)); + + ModelPartData flower_10 = bone_d.addChild("flower_10", ModelPartBuilder.create(), ModelTransform.of(-2.0F, -17.1355F, 3.0055F, -2.8606F, -0.5942F, 2.4482F)); + + ModelPartData cube_r19 = flower_10.addChild("cube_r19", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r20 = flower_10.addChild("cube_r20", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData bone_e = bone_d.addChild("bone_e", ModelPartBuilder.create().uv(0, 61).cuboid(-3.0F, -25.0F, -3.0F, 6.0F, 22.0F, 6.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -18.0F, 0.0F, 0.1745F, 0.0F, 0.0F)); + + ModelPartData bone_f = bone_e.addChild("bone_f", ModelPartBuilder.create().uv(72, 53).cuboid(-3.0F, -17.0F, -3.0F, 6.0F, 15.0F, 6.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -22.0F, 0.0F, 0.1745F, 0.0F, 0.0F)); + + ModelPartData flower_11 = bone_f.addChild("flower_11", ModelPartBuilder.create(), ModelTransform.of(-2.0F, -6.0251F, 0.478F, 2.7587F, 0.3479F, 2.5432F)); + + ModelPartData cube_r21 = flower_11.addChild("cube_r21", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r22 = flower_11.addChild("cube_r22", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData bone_g = bone_f.addChild("bone_g", ModelPartBuilder.create().uv(56, 0).cuboid(-2.6F, -16.0F, -2.6F, 5.2F, 15.0F, 5.2F, new Dilation(0.0F)), ModelTransform.of(0.0F, -15.0F, 0.0F, 0.3054F, 0.0F, 0.0F)); + + ModelPartData bone_h = bone_g.addChild("bone_h", ModelPartBuilder.create().uv(24, 61).cuboid(-2.1F, -17.0F, -2.1F, 4.2F, 15.0F, 4.2F, new Dilation(0.0F)), ModelTransform.of(0.0F, -13.0F, 0.0F, 0.2618F, 0.0F, 0.0F)); + + ModelPartData flower_12 = bone_h.addChild("flower_12", ModelPartBuilder.create(), ModelTransform.of(0.0F, -15.1462F, 0.6365F, 2.7587F, 0.3479F, 2.9795F)); + + ModelPartData cube_r23 = flower_12.addChild("cube_r23", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r24 = flower_12.addChild("cube_r24", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_13 = flower_12.addChild("flower_13", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.7587F, 0.3479F, 2.5868F)); + + ModelPartData cube_r25 = flower_13.addChild("cube_r25", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r26 = flower_13.addChild("cube_r26", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); + + ModelPartData flower_14 = flower_12.addChild("flower_14", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.9412F, -1.0444F, 1.7406F)); + + ModelPartData cube_r27 = flower_14.addChild("cube_r27", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); + + ModelPartData cube_r28 = flower_14.addChild("cube_r28", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); + return TexturedModelData.of(modelData, 128, 128); + } + @Override + public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { + } + @Override + public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { + bone_a.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); + } +} \ No newline at end of file diff --git a/assets/models/tentacle.png b/assets/models/tentacle.png new file mode 100644 index 0000000000000000000000000000000000000000..1026c1c0a49236c48e11c922a74a22597bec6819 GIT binary patch literal 19159 zcmeIZcT|&4_b*ECAiV~K&`W?&L+>T@-a!IM=#bD6rAZeMLPw-G5s+RKl^%K%X(GL; zC{;wIT>QTM-m}(Szje;}?+t4*`XY)+*B+=MVo05!`3p@KLhHy1aWxCA)3e{^mN?!U=+xcE5uH*Ik@h4x1Nqw}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+bO@@G35I)tL7&u*BU1Vc9-k`(^Ab?MlPTlJ+0Qb*>*?pwl*|@&2yBaIH$of)*`}X&iGV%++z~soXTR}&OG08KlBawa4!!U_R zh|&m~@D8=fRr169J?`5eP>P6qV!@!kkRoR!)(m)F?GYj|fri8c?A!Ok#cYAsG{|2U zPjAIuoqmcKd6l6J@RD8=mbJM@wj+3C{I&TRz_&fPLs)?4zOjfg)G409+o!X1r)5c7 z1411w#YGuqC0i1^vnzW2LHV_%{dMj)+?6ej=9dH(Yt5TYk{VANfatt?agFQgD=v3K z3w+%jdgKUJD$}n-e{c48JMAp93{Z#FlLGK~x7}k_f8aoFWpi-1i%ji|J!>7)j7>;% zC^XTXWV*^0T0{X^o6b7AU}J^21I$F($YBXmpqwd;1JP2;e<9g@!|&PRFBlB@z98f463pknzgp}PpF~7;BY3c^ltFt*fpkB&|O1Z_&Js(8AWWaUthB)%Q zM0l1Q6&$yQn;z4&;&N*k)mq^?`lYKxyOA4hZNC2rBf=;5*2Qejx?&-l9BJxjpIt5N zj+C;i { w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); } w.setBlockState(pos, UBlocks.PLUNDER_VINE_BUD.getDefaultState()); + } else if (w.random.nextInt(5000) == 0) { + if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) { + w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); + } + w.breakBlock(pos, true); + TentacleEntity tentacle = new TentacleEntity(w, pos); + tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); + w.spawnEntity(tentacle); } return 1; } diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 5bf94a22..93fc054a 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -97,6 +97,7 @@ public interface URenderers { EntityRendererRegistry.register(UEntities.AIR_BALLOON, AirBalloonEntityRenderer::new); EntityRendererRegistry.register(UEntities.FRIENDLY_CREEPER, FriendlyCreeperEntityRenderer::new); EntityRendererRegistry.register(UEntities.LOOT_BUG, LootBugEntityRenderer::new); + EntityRendererRegistry.register(UEntities.TENTACLE, TentacleEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.WEATHER_VANE, WeatherVaneBlockEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.FANCY_BED, CloudBedBlockEntityRenderer::new); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java new file mode 100644 index 00000000..e365457a --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java @@ -0,0 +1,142 @@ +package com.minelittlepony.unicopia.client.render.entity; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.minelittlepony.unicopia.entity.mob.TentacleEntity; + +import net.minecraft.client.model.Dilation; +import net.minecraft.client.model.ModelData; +import net.minecraft.client.model.ModelPart; +import net.minecraft.client.model.ModelPartBuilder; +import net.minecraft.client.model.ModelPartData; +import net.minecraft.client.model.ModelTransform; +import net.minecraft.client.model.TexturedModelData; +import net.minecraft.client.render.RenderLayer; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.entity.model.EntityModel; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.math.MathHelper; + +public class TentacleEntityModel extends EntityModel { + private final ModelPart part; + + private final Map parts = new HashMap<>(); + private final List bones = new ArrayList<>(); + private final List brushes; + + private final ModelPart tip; + + public TentacleEntityModel(ModelPart root) { + super(RenderLayer::getEntityTranslucent); + this.part = root; + for (String key : List.of("bone_a", "bone_b", "bone_c", "bone_d", "bone_e", "bone_f", "bone_g", "bone_h")) { + parts.put(key, root = root.getChild(key)); + bones.add(root); + } + var bone_a = parts.get("bone_a"); + brushes = List.of( + bone_a.getChild("brush_1"), + bone_a.getChild("brush_2"), + bone_a.getChild("brush_3"), + bone_a.getChild("brush_4"), + parts.get("bone_c").getChild("flower_1"), + parts.get("bone_d").getChild("flower_2"), + parts.get("bone_f").getChild("flower_3")); + tip = parts.get("bone_h").getChild("tip"); + } + + public static TexturedModelData getTexturedModelData() { + ModelData data = new ModelData(); + data.getRoot() + .addChild("bone_a", ModelPartBuilder.create().uv(0, 0).cuboid(-7, -10, -7, 14, 16, 14, Dilation.NONE), ModelTransform.pivot(0, 24, 0)) + .addChild("bone_b", ModelPartBuilder.create().uv(0, 30).cuboid(-6, -18, -6, 12, 19, 12, Dilation.NONE), ModelTransform.of(0, -9, 0, -0.2618F, 0, 0)) + .addChild("bone_c", ModelPartBuilder.create().uv(48, 20).cuboid(-5, -23, -5, 10, 23, 10, Dilation.NONE), ModelTransform.of(0, -16, 0, 0, 0, 0)) + .addChild("bone_d", ModelPartBuilder.create().uv(40, 53).cuboid(-4, -23, -4, 8, 21, 8, Dilation.NONE), ModelTransform.of(0, -18, 0, -0.1745F, 0, 0)) + .addChild("bone_e", ModelPartBuilder.create().uv(0, 61).cuboid(-3, -25, -3, 6, 22, 6, Dilation.NONE), ModelTransform.of(0, -18, 0, 0.1745F, 0, 0)) + .addChild("bone_f", ModelPartBuilder.create().uv(72, 53).cuboid(-3, -17, -3, 6, 15, 6, Dilation.NONE), ModelTransform.of(0, -22, 0, 0.1745F, 0, 0)) + .addChild("bone_g", ModelPartBuilder.create().uv(56, 0).cuboid(-2.6F, -16, -2.6F, 5.2F, 15, 5.2F, Dilation.NONE), ModelTransform.of(0, -15, 0, 0.3054F, 0, 0)) + .addChild("bone_h", ModelPartBuilder.create().uv(24, 61).cuboid(-2.1F, -17, -2.1F, 4.2F, 15, 4.2F, Dilation.NONE), ModelTransform.of(0, -13, 0, 0.2618F, 0, 0)); + return TexturedModelData.of(addFlowers(data), 128, 128); + } + + private static ModelData addFlowers(ModelData data) { + ModelPartData bone_a = data.getRoot().getChild("bone_a"); + createFlowerSinglet(createFlowerSinglet(bone_a.addChild("brush_1", ModelPartBuilder.create(), ModelTransform.of(-3, 0.6703F, -7.7725F, 0.6103F, -0.0535F, -0.5864F))).addChild("bundle", ModelPartBuilder.create(), ModelTransform.rotation(0.6103F, -0.0535F, -0.5864F))); + createFlowerSinglet(createFlowerSinglet(bone_a.addChild("brush_2", ModelPartBuilder.create(), ModelTransform.of(-5, 0.6703F, 4.2275F, -1.2698F, 0.9678F, -1.7981F))).addChild("bundle", ModelPartBuilder.create(), ModelTransform.rotation(-1.2698F, 0.9678F, -1.7981F))); + createFlowerSinglet(createFlowerSinglet(bone_a.addChild("brush_3", ModelPartBuilder.create(), ModelTransform.of( 6, 0.6703F, 4.2275F, -2.4079F, 0.2344F, -2.5374F))).addChild("bundle", ModelPartBuilder.create(), ModelTransform.rotation(-2.4079F, 0.2344F, -2.5374F))); + createFlowerSinglet(createFlowerSinglet(bone_a.addChild("brush_4", ModelPartBuilder.create(), ModelTransform.of( 6, 0.6703F, -6.7725F, 1.5929F, -0.909F, -1.1179F))).addChild("bundle", ModelPartBuilder.create(), ModelTransform.rotation(2.9259F, -0.8201F, -2.1974F))); + + ModelPartData bone_c = bone_a.getChild("bone_b").getChild("bone_c"); + createFlowerSinglet(bone_c.addChild("flower_1", ModelPartBuilder.create(), ModelTransform.of( 4, -15.6242F, -3.3435F, 2.9259F, -0.8201F, -2.4592F))); + + ModelPartData bone_d = bone_c.getChild("bone_d"); + createFlowerSinglet(bone_d.addChild("flower_2", ModelPartBuilder.create(), ModelTransform.of(-2, -17.1355F, 3.0055F, -2.8606F, -0.5942F, 2.4482F))); + ModelPartData bone_f = bone_d.getChild("bone_e").getChild("bone_f"); + createFlowerSinglet(bone_f.addChild("flower_3", ModelPartBuilder.create(), ModelTransform.of(-2, -6.0251F, 0.478F, 2.7587F, 0.3479F, 2.5432F))); + + ModelPartData flower_12 = createFlowerBunch(bone_f.getChild("bone_g").getChild("bone_h").addChild("tip", ModelPartBuilder.create(), ModelTransform.of(0, -15.1462F, 0.6365F, 2.7587F, 0.3479F, 2.9795F))); + createFlowerBunch(flower_12.addChild("bundle_1", ModelPartBuilder.create(), ModelTransform.rotation( 2.7587F, 0.3479F, 2.5868F))); + createFlowerBunch(flower_12.addChild("bundle_2", ModelPartBuilder.create(), ModelTransform.rotation(-1.9412F, -1.0444F, 1.7406F))); + return data; + } + + private static ModelPartData createFlowerSinglet(ModelPartData parent) { + parent.addChild("flower_1", ModelPartBuilder.create().uv(86, 0).cuboid(-14, 0, 0, 14, 0, 14, Dilation.NONE), ModelTransform.rotation(1.5708F, 0, 0.7854F)); + parent.addChild("flower_2", ModelPartBuilder.create().uv(86, 0).cuboid(-14, 0, 0, 14, 0, 14, Dilation.NONE), ModelTransform.rotation(3.1416F, 0.7854F, 1.5708F)); + return parent; + } + + private static ModelPartData createFlowerBunch(ModelPartData parent) { + parent.addChild("flower_1", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14, 0, 14, Dilation.NONE), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0, 0.7854F)); + parent.addChild("flower_2", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14, 0, 14, Dilation.NONE), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); + return parent; + } + + @Override + public void setAngles(TentacleEntity entity, float limbSwing, float limbSwingAmount, float tickDelta, float yaw, float pitch) { + float age = entity.age + tickDelta + (entity.getUuid().getMostSignificantBits() % 100); + float idleWaveTimer = entity.getAnimationTimer(tickDelta); + + float attackProgress = entity.isAttacking() ? Math.abs(MathHelper.sin(entity.getAttackProgress(tickDelta) * MathHelper.PI)) : 0; + float attackCurve = attackProgress * -0.5F; + float sweepDirection = 1; + + float bendIntentisty = 1 + entity.getAttackProgress(tickDelta) / 2F; + + part.yaw = (yaw * MathHelper.RADIANS_PER_DEGREE) + MathHelper.HALF_PI * attackProgress; + + for (ModelPart bone : bones) { + float idlePitch = MathHelper.sin(idleWaveTimer) * 0.0226F * bendIntentisty; + float idleYaw = MathHelper.cos(idleWaveTimer + 0.53F) * 0.07F; + float idleRoll = MathHelper.sin(idleWaveTimer * 0.2F) * 0.0226F * bendIntentisty; + idleWaveTimer += 1.5F; + bendIntentisty += 3F; + bone.resetTransform(); + + bone.pitch = MathHelper.lerp(attackProgress, idlePitch, bone.pitch + attackCurve); + bone.yaw = MathHelper.lerp(attackProgress, idleYaw, bone.yaw + sweepDirection * attackCurve); + bone.roll = MathHelper.lerp(attackProgress, idleRoll, bone.roll); + attackCurve *= 1.04F; + } + + float direction = 1; + + for (ModelPart brush : brushes) { + brush.resetTransform(); + brush.pitch += MathHelper.sin(age * 0.003F) * 0.03F; + brush.yaw += MathHelper.cos(age * 0.003F) * 0.1F * (direction *= -1); + } + + tip.resetTransform(); + tip.pitch += MathHelper.sin(age * 0.003F) * 0.3F; + tip.yaw += MathHelper.sin(age * 0.03F) * 0.3F; + } + + @Override + public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) { + part.render(matrices, vertices, light, overlay); + } +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java new file mode 100644 index 00000000..f6ba79b9 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java @@ -0,0 +1,42 @@ +package com.minelittlepony.unicopia.client.render.entity; + +import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.entity.mob.TentacleEntity; + +import net.minecraft.client.render.OverlayTexture; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.entity.EntityRenderer; +import net.minecraft.client.render.entity.EntityRendererFactory; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.Identifier; + +public class TentacleEntityRenderer extends EntityRenderer { + private static final Identifier TEXTURE = Unicopia.id("textures/entity/poison_joke/tentacle.png"); + + private final TentacleEntityModel model; + + public TentacleEntityRenderer(EntityRendererFactory.Context context) { + super(context); + model = new TentacleEntityModel(TentacleEntityModel.getTexturedModelData().createModel()); + } + + @Override + public void render(TentacleEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) { + matrices.push(); + matrices.scale(-1, -1, 1); + float scale = entity.getGrowth(tickDelta); + + matrices.scale(scale, scale, scale); + matrices.translate(0, -0.9F, 0); + + model.setAngles(entity, 0, 0, tickDelta, entity.getYaw(tickDelta), entity.getPitch(tickDelta)); + model.render(matrices, vertices.getBuffer(model.getLayer(getTexture(entity))), light, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); + matrices.pop(); + super.render(entity, yaw, tickDelta, matrices, vertices, light); + } + + @Override + public Identifier getTexture(TentacleEntity entity) { + return TEXTURE; + } +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java new file mode 100644 index 00000000..cec6b0df --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java @@ -0,0 +1,289 @@ +package com.minelittlepony.unicopia.entity.mob; + +import java.util.Comparator; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.entity.player.Pony; +import com.minelittlepony.unicopia.particle.ParticleUtils; +import com.minelittlepony.unicopia.util.shape.Sphere; + +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityType; +import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.MovementType; +import net.minecraft.entity.damage.DamageSource; +import net.minecraft.entity.data.DataTracker; +import net.minecraft.entity.data.TrackedData; +import net.minecraft.entity.data.TrackedDataHandlerRegistry; +import net.minecraft.entity.decoration.AbstractDecorationEntity; +import net.minecraft.entity.mob.HostileEntity; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.particle.ParticleTypes; +import net.minecraft.registry.tag.ItemTags; +import net.minecraft.sound.SoundEvents; +import net.minecraft.util.Hand; +import net.minecraft.util.hit.HitResult; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Box; +import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.Vec3d; +import net.minecraft.world.RaycastContext; +import net.minecraft.world.World; + +public class TentacleEntity extends AbstractDecorationEntity { + static final byte ATTACK_STATUS = 54; + static final int MAX_GROWTH = 25; + private static final TrackedData GROWTH = DataTracker.registerData(TentacleEntity.class, TrackedDataHandlerRegistry.INTEGER); + private static final TrackedData MOTION_OFFSET = DataTracker.registerData(TentacleEntity.class, TrackedDataHandlerRegistry.INTEGER); + + @Nullable + private Box visibilityBox; + + private int prevGrowth; + private int attackingTicks; + private float prevAttackingTicks; + + private int ticksActive; + private int prevMotionOffset; + + @Nullable + private LivingEntity target; + private final Comparator targetSorting = Comparator.comparing(this::distanceTo); + + public TentacleEntity(EntityType type, World world) { + super(type, world); + } + + public TentacleEntity(World world, BlockPos pos) { + super(UEntities.TENTACLE, world, pos); + } + + @Override + protected void initDataTracker() { + super.initDataTracker(); + dataTracker.startTracking(GROWTH, 0); + dataTracker.startTracking(MOTION_OFFSET, 0); + } + + public void attack(BlockPos pos) { + var offset = pos.toCenterPos().subtract(getBlockPos().toCenterPos()); + + double dX = offset.x; + double dY = offset.y; + double dZ = offset.z; + double radius = Math.sqrt(dX * dX + dZ * dZ); + + setPitch(MathHelper.wrapDegrees((float)(-(MathHelper.atan2(dY, radius) * MathHelper.DEGREES_PER_RADIAN)))); + setYaw(MathHelper.wrapDegrees((float)(MathHelper.atan2(dZ, dX) * MathHelper.DEGREES_PER_RADIAN) - 90)); + getWorld().sendEntityStatus(this, ATTACK_STATUS); + attackingTicks = 30; + } + + public float getAttackProgress(float tickDelta) { + return (30F - MathHelper.lerp(tickDelta, prevAttackingTicks, attackingTicks)) / 30F; + } + + public float getGrowth(float tickDelta) { + return MathHelper.lerp(tickDelta, prevGrowth, getGrowth()) / (float)MAX_GROWTH; + } + + public int getGrowth() { + return dataTracker.get(GROWTH); + } + + public void setGrowth(int growth) { + dataTracker.set(GROWTH, Math.max(0, growth)); + } + + public float getAnimationTimer(float tickDelta) { + return (age + tickDelta + (getUuid().getMostSignificantBits() % 100)) * 0.00043F + + MathHelper.lerp(tickDelta, prevMotionOffset, getMotionOffset()) * 0.002F; + } + + public int getMotionOffset() { + return dataTracker.get(MOTION_OFFSET); + } + + public void setMotionOffset(int motionOffset) { + dataTracker.set(MOTION_OFFSET, motionOffset); + } + + public boolean isAttacking() { + return attackingTicks > 0; + } + + @Override + public int getWidthPixels() { + return 9; + } + + @Override + public int getHeightPixels() { + return 9; + } + + @Override + public boolean damage(DamageSource source, float amount) { + if (source.getAttacker() instanceof PlayerEntity player) { + if (player.getStackInHand(Hand.MAIN_HAND).isIn(ItemTags.SHOVELS)) { + kill(); + ParticleUtils.spawnParticles(ParticleTypes.EFFECT, this, 10); + } + if (getWorld().random.nextInt(5) == 0 && canTarget(player)) { + setTarget(player); + } + } + ticksActive += 20; + playSound(SoundEvents.ENTITY_RAVAGER_ROAR, 5, 1); + return true; + } + + @Override + public void tick() { + prevMotionOffset = getMotionOffset(); + prevGrowth = getGrowth(); + super.tick(); + prevAttackingTicks = attackingTicks; + if (isAttacking()) { + if (--attackingTicks == 12) { + if (target != null) { + target.damage(getDamageSources().generic(), 15); + Vec3d diff = target.getPos().subtract(getPos()); + target.takeKnockback(1, diff.x, diff.z); + + ParticleUtils.spawnParticles(ParticleTypes.CLOUD, target, 10); + + for (Entity bystander : getWorld().getOtherEntities(target, target.getBoundingBox().expand(3))) { + if (bystander instanceof LivingEntity l) { + diff = l.getPos().subtract(getPos()); + l.takeKnockback(1, diff.x, diff.z); + ParticleUtils.spawnParticles(ParticleTypes.CLOUD, target, 10); + } + } + + target = null; + } + + + playSound(SoundEvents.BLOCK_POINTED_DRIPSTONE_LAND, 1, 1); + } + } + + ParticleUtils.spawnParticles(ParticleTypes.ASH, this, 4); + var sphere = new Sphere(false, 10).translate(getPos()); + ParticleUtils.spawnParticles(getWorld(), sphere, ParticleTypes.ASH, 4); + + if (!getWorld().isClient) { + int growth = getGrowth(); + + if (growth >= MAX_GROWTH / 2) { + if (age % 50 == 0) { + updateTarget(); + } + + if (target != null && !isAttacking()) { + attack(target.getBlockPos()); + } + } + + if (growth < MAX_GROWTH) { + setGrowth(growth + 1); + } + + if (getWorld().random.nextInt(110) == 0) { + playSound(SoundEvents.BLOCK_CONDUIT_AMBIENT_SHORT, 1, 0.3F); + } + + if (ticksActive > 0) { + ticksActive--; + setMotionOffset(getMotionOffset() + ticksActive); + } + } + } + + public void setTarget(LivingEntity target) { + this.target = target; + playSound(SoundEvents.ENTITY_RAVAGER_ROAR, 5, 1); + + if (target instanceof PlayerEntity player) { + Pony.of(player).getMagicalReserves().getEnergy().add(6); + } + } + + private void updateTarget() { + if (!canTarget(target)) { + target = null; + } + + if (target == null && !isAttacking()) { + getWorld().getEntitiesByClass(HostileEntity.class, getBoundingBox().expand(10, 3, 10), this::canTarget) + .stream() + .sorted(targetSorting) + .findFirst() + .ifPresent(this::setTarget); + } + } + + protected boolean canTarget(LivingEntity target) { + return target != null + && !target.isRemoved() + && !target.isSneaky() + && !(target instanceof PlayerEntity player && (player.isCreative() || player.isSpectator())) + && canSee(target); + } + + private boolean canSee(Entity entity) { + return entity.getWorld() == getWorld() + && distanceTo(entity) <= 128 + && getWorld().raycast(new RaycastContext(getPos(), entity.getPos(), RaycastContext.ShapeType.COLLIDER, RaycastContext.FluidHandling.NONE, this)).getType() == HitResult.Type.MISS; + } + + @Override + public void handleStatus(byte status) { + switch (status) { + case ATTACK_STATUS: + attackingTicks = 30; + break; + default: + super.handleStatus(status); + } + } + + @Override + public void onBreak(Entity breaker) { + + } + + @Override + public void onPlace() { + + } + + @Override + public boolean canStayAttached() { + return getWorld().isTopSolid(getBlockPos().down(), this); + } + + @Override + public Box getVisibilityBoundingBox() { + if (visibilityBox == null) { + visibilityBox = getBoundingBox().expand(10, 0, 10).stretch(0, 10, 0); + } + return visibilityBox; + } + + @Override + protected void updateAttachmentPosition() { + visibilityBox = null; + Vec3d pos = attachmentPos.toCenterPos(); + setPos(pos.x, pos.y, pos.z); + setBoundingBox(Box.of(pos, 1, 1, 1).stretch(0, 2, 0)); + } + + @Override + public void move(MovementType movementType, Vec3d movement) { } + + @Override + public void addVelocity(double deltaX, double deltaY, double deltaZ) { } +} diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java index 3e4b122b..40cab42d 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java @@ -67,6 +67,9 @@ public interface UEntities { EntityType LOOT_BUG = register("loot_bug", FabricEntityTypeBuilder.create(SpawnGroup.MONSTER, LootBugEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(0.8F, 0.6F))); + EntityType TENTACLE = register("tentacle", FabricEntityTypeBuilder.create(SpawnGroup.MISC, TentacleEntity::new) + .trackRangeChunks(8) + .dimensions(EntityDimensions.fixed(0.8F, 0.8F))); static EntityType register(String name, FabricEntityTypeBuilder builder) { EntityType type = builder.build(); diff --git a/src/main/resources/assets/unicopia/textures/entity/poison_joke/tentacle.png b/src/main/resources/assets/unicopia/textures/entity/poison_joke/tentacle.png new file mode 100644 index 0000000000000000000000000000000000000000..1026c1c0a49236c48e11c922a74a22597bec6819 GIT binary patch literal 19159 zcmeIZcT|&4_b*ECAiV~K&`W?&L+>T@-a!IM=#bD6rAZeMLPw-G5s+RKl^%K%X(GL; zC{;wIT>QTM-m}(Szje;}?+t4*`XY)+*B+=MVo05!`3p@KLhHy1aWxCA)3e{^mN?!U=+xcE5uH*Ik@h4x1Nqw}Y* z;u8K6wV?*a9O5EiF%b#r8+$QvNjWjFoR~NVSW-?(Ob#r4qm5hqFOU8pdH8L7y+Mg_ zS64TNs;hIL{Ctt_UI-kVkb(#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h|&m~@D8=fRr169J?`5eP>P6qV!@!kkRoR!)(m)F?GYj|fri8c?A!Ok#cYAsG{|2U zPjAIuoqmcKd6l6J@RD8=mbJM@wj+3C{I&TRz_&fPLs)?4zOjfg)G409+o!X1r)5c7 z1411w#YGuqC0i1^vnzW2LHV_%{dMj)+?6ej=9dH(Yt5TYk{VANfatt?agFQgD=v3K z3w+%jdgKUJD$}n-e{c48JMAp93{Z#FlLGK~x7}k_f8aoFWpi-1i%ji|J!>7)j7>;% zC^XTXWV*^0T0{X^o6b7AU}J^21I$F($YBXmpqwd;1JP2;e<9g@!|&PRFBlB@z98f463pknzgp}PpF~7;BY3c^ltFt*fpkB&|O1Z_&Js(8AWWaUthB)%Q zM0l1Q6&$yQn;z4&;&N*k)mq^?`lYKxyOA4hZNC2rBf=;5*2Qejx?&-l9BJxjpIt5N zj+C;i Date: Wed, 3 Jan 2024 21:51:24 +0100 Subject: [PATCH 012/104] Added curing joke and ignimeous bulbs --- assets/models/bulb_angry.png | Bin 0 -> 43302 bytes assets/models/bulb_idle.png | Bin 0 -> 43186 bytes assets/models/ignimious_bulb.bbmodel | 1 + assets/models/ignimious_bulb.java | 69 ++++++++ .../com/minelittlepony/unicopia/USounds.java | 11 +- .../ability/EarthPonyGrowAbility.java | 7 +- .../unicopia/block/CuringJokeBlock.java | 24 +++ .../unicopia/block/UBlocks.java | 4 +- .../unicopia/client/URenderers.java | 1 + .../entity/IgnimeousBulbEntityModel.java | 77 ++++++++ .../entity/IgnimeousBulbEntityRenderer.java | 39 ++++ .../render/entity/TentacleEntityModel.java | 11 +- .../render/entity/TentacleEntityRenderer.java | 4 +- .../entity/mob/IgnimeousBulbEntity.java | 167 ++++++++++++++++++ .../unicopia/entity/mob/TentacleEntity.java | 63 +++++-- .../unicopia/entity/mob/UEntities.java | 6 +- .../unicopia/item/CuringJokeItem.java | 119 +++++++++++++ .../unicopia/item/UFoodComponents.java | 2 + .../minelittlepony/unicopia/item/UItems.java | 1 + .../unicopia/blockstates/curing_joke.json | 5 + .../resources/assets/unicopia/lang/en_us.json | 3 + .../unicopia/models/block/curing_joke.json | 6 + .../unicopia/models/item/curing_joke.json | 6 + .../unicopia/textures/block/curing_joke.png | Bin 0 -> 5132 bytes .../entity/poison_joke/bulb_angry.png | Bin 0 -> 43302 bytes .../textures/entity/poison_joke/bulb_idle.png | Bin 0 -> 43186 bytes .../unicopia/textures/item/curing_joke.png | Bin 0 -> 4857 bytes 27 files changed, 604 insertions(+), 22 deletions(-) create mode 100644 assets/models/bulb_angry.png create mode 100644 assets/models/bulb_idle.png create mode 100644 assets/models/ignimious_bulb.bbmodel create mode 100644 assets/models/ignimious_bulb.java create mode 100644 src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java create mode 100644 src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java create mode 100644 src/main/java/com/minelittlepony/unicopia/item/CuringJokeItem.java create mode 100644 src/main/resources/assets/unicopia/blockstates/curing_joke.json create mode 100644 src/main/resources/assets/unicopia/models/block/curing_joke.json create mode 100644 src/main/resources/assets/unicopia/models/item/curing_joke.json create mode 100644 src/main/resources/assets/unicopia/textures/block/curing_joke.png create mode 100644 src/main/resources/assets/unicopia/textures/entity/poison_joke/bulb_angry.png create mode 100644 src/main/resources/assets/unicopia/textures/entity/poison_joke/bulb_idle.png create mode 100644 src/main/resources/assets/unicopia/textures/item/curing_joke.png diff --git a/assets/models/bulb_angry.png b/assets/models/bulb_angry.png new file mode 100644 index 0000000000000000000000000000000000000000..5f5cc603f03d8b2ee2eaa6aa1e49ae0830c93422 GIT binary patch literal 43302 zcmeFYWl&tr7B)J#yGxM4-Q8hucTI42cbDM7g9Zui!QI^@xCaRY4G>)JB=38y?pJl| zRNe328Q6QT-M#wh?x$C;mg$L7QIbYMBt!%N04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z!C~NTXlJennpxjw2oAH zpP(w3<5MFpzJ4_A7HmR$!HJhqwC5N7c)`a*;Lyz&2_l|wh||?s zIe;g`ZwS2FHC7E(p3Yvj2&0P3x4CMAzv76xxHJMTd-U@~G0?hVNLe^qQIAaQ@r+Mu zw|W2dh@>(Al^}TD5(D{*<}g2VFB484oc*Ixzp~ef8#=t1Di`@)t<-icW#rZnj@hcO zMjr_>jJs}6ySC9BoJtHW7tMM#{eYCiTL0+>bQ8;Q)hD?PbDj*}AW$NQlUrZ20@}CP znuuinvW|bgJi z7h(@xIgbFWH`kvun{9O}wXCg6b6|bq%Cp*g@n;?pSMf*92p1oqy}g#2KMUm9)BJB} zIqoqAB=D=8Bl3|ji@jqA?!AqtBC5Ou%FsSdR*A-*rtaZ2`(Qr+-rP4nHHvyAM*OpO zHwK$BSrkVHlF>L~Y1XR?G#_XK>m}KmWedd@1j44dDY|2(4ccUG6<6@ikx#`n_E1om z#3vKIY)`pYOLD6WvDEteOv<2~+bSb1wh$xL!G?{$*{hHqAD80%Au<<~79VZoUd&#p zLz-Y$7RG)z77d+jO=j5MLl=$-;x|U%Wt1B3+Y{w~MP>6v@|)cZh2zdso{rJ(grKJT z=f!=(&5<6U%#Ew0P1PY`e4UoOBx4r>P;I<^4v4{MCjcN>Ob2^E&?ho}D z|KCiq4h5J?fMt%@!N{xp1rD*nrN1{8O1OR<(gv$&{)31AVU=Ej?>ZfHH#-Zhln+XW z=WM0lo{0Z9ofMI+OgR5$o2I@TnnmA`|HA{vVGl@Wug10+^sTIyXvO|h?EViXu)_!s oEAYQx60TTk)&D;}Yor4>K(#DH=d@{+6L9-zYrIg0s@g{XAN{)au>b%7 literal 0 HcmV?d00001 diff --git a/assets/models/bulb_idle.png b/assets/models/bulb_idle.png new file mode 100644 index 0000000000000000000000000000000000000000..7fe663ff3245675c5f5c5a5a7b9afd3de490c734 GIT binary patch literal 43186 zcmeFYWmH^2w>H?gyGxM9-QA&q#yx0)ySuvt4<0l~a1ZY8F2OxW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$DWDpnzUkySkjf0|iq3K|%z^v8Vwytj4ARm+?VmXcI1BMWr)(+`MX;-*r zbuR`eDx5y;Uv2D^V(1w>)U@34_909RF3ih#BZkuE-!`lrbfUODA8fTLlXr3r{Id!K z?Tn$fhX>MrvDhE?T|U_f7X;+k-5hM}AI)AxUwokW#}p=}7g3n-=IQ%1mDX@+WIbB@ zl{yr?Ye2>=>+9DRbfGBJcq#bHmb=|YXqJ%~o*4oQjRbg&kfPJAXt5#kWSQ>y#eqD4Y=WUxgxby?{tx~=J;+*xEg!yFk=j}ruJ}~ z6QfX#w!C+}a4u3>i2ST|((!uX&hfZQ-O2wXpW!ilWE}C(C6gT0Jt^V*w({TZ_MYpb zSKeK@a2o{F8u^t?FUx>Xyp?`X?y2C7pZ1*rvCm=EVi#z3M*&BQlws`A#lkK+2c&k- z*2+9Ckt25|2Wxp((0=M!i|7A=B%Cks;srN2c6Dy3Eo=4fs(Bf=0X&tbqrOzebC+h8 z2YM^6Zb9QOeckD#Uv>tWxV>$i`8(#x;BUZCF(L(^Sj4fH!-LA+uB;_s{Lr3bxOjI;O4&4v+8eto+AYp|bx@gQy8Q zfTtl0s&qE?9Z5mhbn)SAD~pWvYz}-@E}t^sGls6GW?BJb_>ltE{L~^jGl2UK)Fogv zzZi~`ZJ6!cyqoh!Srz3eT;_gZHU5M%v+l&;Js9 zxV!Mn@$dzKa;$&NHNvR~qj@>1^(#Gw@9k|im?`8%An`g%{@L2!+GA++r)ScJQ40S7 wvvAA7ccLBf%Xj}4iREyZLjHebIpOz2h8u1~j8+n7XpiZ=qJ~1XoN4g?01?=z>% literal 0 HcmV?d00001 diff --git a/assets/models/ignimious_bulb.bbmodel b/assets/models/ignimious_bulb.bbmodel new file mode 100644 index 00000000..2c3b6593 --- /dev/null +++ b/assets/models/ignimious_bulb.bbmodel @@ -0,0 +1 @@ +{"meta":{"format_version":"4.5","model_format":"modded_entity","box_uv":true},"name":"ignimious_bulb","model_identifier":"","modded_entity_version":"Fabric 1.17+","modded_entity_flip_y":true,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":256,"height":256},"elements":[{"name":"jaw","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-23.956753782540364,-5.009498774448022,-24.13052619222006],"to":[24.043246217459636,17.990501225551977,23.86947380777994],"autouv":0,"color":8,"origin":[0.04324621745963608,-5.009498774448022,-0.13052619222006],"faces":{"north":{"uv":[48,48,96,71],"texture":0},"east":{"uv":[0,48,48,71],"texture":0},"south":{"uv":[144,48,192,71],"texture":0},"west":{"uv":[96,48,144,71],"texture":0},"up":{"uv":[96,48,48,0],"texture":0},"down":{"uv":[144,0,96,48],"texture":0}},"type":"cube","uuid":"800563f2-e637-d42d-6c38-616b6b34c9ca"},{"name":"head","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-22.956753782540364,10.990501225551977,-22.13052619222006],"to":[23.043246217459636,33.99050122555197,23.86947380777994],"autouv":0,"color":8,"rotation":[7.5,0,0],"origin":[0.04324621745963608,17.990501225551977,23.86947380777994],"uv_offset":[0,71],"faces":{"north":{"uv":[46,117,92,140],"texture":0},"east":{"uv":[0,117,46,140],"texture":0},"south":{"uv":[138,117,184,140],"texture":0},"west":{"uv":[92,117,138,140],"texture":0},"up":{"uv":[92,117,46,71],"texture":0},"down":{"uv":[138,71,92,117],"texture":0}},"type":"cube","uuid":"e6d05459-6b50-12b5-a46a-eb72b97f7c09"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-19,-9,-61],"to":[13,-9,-29],"autouv":0,"color":9,"rotation":[27.320650966819105,-50.33976442181192,-6.793186828559589],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"42f404db-2eb0-2efd-bb09-8810376fcfbc"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-16,-3,-60],"to":[16,-3,-28],"autouv":0,"color":9,"rotation":[16.681567243909033,33.56061965535128,3.4685333161320835],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"4c00dc9a-fef0-30b4-0f06-8bee9fe9b898"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-16,-6,-56],"to":[16,-6,-24],"autouv":0,"color":9,"rotation":[-162.2403464416216,58.02175378934316,-176.80418113816847],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"5db8a4ea-e690-f657-b64a-323ec0c3a305"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-24,-6,-62],"to":[8,-6,-30],"autouv":0,"color":9,"rotation":[-169.75684992659043,-35.13964450125722,-170.6241287065347],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"b2bbe86a-3379-0246-9181-127aed715432"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-16,-13,-58],"to":[16,-13,-26],"autouv":0,"color":9,"rotation":[144.36680378552091,-83.99459398899594,-115.75078983303227],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"c63affed-9e2a-84af-5766-631a13679757"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-16,-9,-59],"to":[16,-9,-27],"autouv":0,"color":9,"rotation":[28.459049469615778,-5.7440354970636935,0.03610759351412133],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"89bc35ae-6e61-dfa8-745f-0e317bb63260"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-12,-4,-52],"to":[20,-4,-20],"autouv":0,"color":9,"rotation":[40.560964930961916,83.77970397136126,27.74070945144022],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"0a5c37c6-ad13-697a-58cd-934841edb237"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-18,-15,-61],"to":[14,-15,-29],"autouv":0,"color":9,"rotation":[-149.33066739822777,4.299459188610997,-178.742402181358],"origin":[0,-3,-1],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"d8b4bbe0-9707-0652-35e6-e28a54179fa3"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-34,-10,-84],"to":[30,-10,-20],"autouv":0,"color":9,"rotation":[111.7261647239295,-85.5550612830785,-96.58324240444844],"origin":[0,-3,-1],"uv_offset":[-64,140],"faces":{"north":{"uv":[0,204,64,204],"texture":0},"east":{"uv":[-64,204,0,204],"texture":0},"south":{"uv":[128,204,192,204],"texture":0},"west":{"uv":[64,204,128,204],"texture":0},"up":{"uv":[64,204,0,140],"texture":0},"down":{"uv":[128,140,64,204],"texture":0}},"type":"cube","uuid":"4e7c3e97-535b-9261-83a4-80fb76cc13d4"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-34,-10,-84],"to":[30,-10,-20],"autouv":0,"color":9,"rotation":[62.10613287479732,85.7200584727182,46.23842221938251],"origin":[0,-3,-1],"uv_offset":[-64,140],"faces":{"north":{"uv":[0,204,64,204],"texture":0},"east":{"uv":[-64,204,0,204],"texture":0},"south":{"uv":[128,204,192,204],"texture":0},"west":{"uv":[64,204,128,204],"texture":0},"up":{"uv":[64,204,0,140],"texture":0},"down":{"uv":[128,140,64,204],"texture":0}},"type":"cube","uuid":"2184d35d-e78b-c493-b1c4-a817cb45fa8b"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-34,-10,-84],"to":[30,-10,-20],"autouv":0,"color":9,"rotation":[-164.484342402648,7.951483564968085,-175.61972440808503],"origin":[0,-3,-1],"uv_offset":[-64,140],"faces":{"north":{"uv":[0,204,64,204],"texture":0},"east":{"uv":[-64,204,0,204],"texture":0},"south":{"uv":[128,204,192,204],"texture":0},"west":{"uv":[64,204,128,204],"texture":0},"up":{"uv":[64,204,0,140],"texture":0},"down":{"uv":[128,140,64,204],"texture":0}},"type":"cube","uuid":"24212edf-8ab0-e1e5-b67e-dd27ca7fee4f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-34,-6,-84],"to":[30,-6,-20],"autouv":0,"color":9,"rotation":[15.186954129789529,2.0049709481247944,-1.9011648291348386],"origin":[0,-3,-1],"uv_offset":[-64,140],"faces":{"north":{"uv":[0,204,64,204],"texture":0},"east":{"uv":[-64,204,0,204],"texture":0},"south":{"uv":[128,204,192,204],"texture":0},"west":{"uv":[64,204,128,204],"texture":0},"up":{"uv":[64,204,0,140],"texture":0},"down":{"uv":[128,140,64,204],"texture":0}},"type":"cube","uuid":"dfd15693-f566-9bc7-b953-d303dec3ba18"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-17.373117897112767,65.61517788582364,17.389978221486494],"to":[14.626882102887233,65.61517788582364,49.389978221486494],"autouv":0,"color":9,"rotation":[113.4590494696158,-5.744035497063647,0.03610759351412453],"origin":[-1.3731178971127687,38.61517788582365,12.389978221486501],"uv_offset":[112,0],"faces":{"north":{"uv":[144,32,176,32],"texture":0},"east":{"uv":[112,32,144,32],"texture":0},"south":{"uv":[208,32,240,32],"texture":0},"west":{"uv":[176,32,208,32],"texture":0},"up":{"uv":[176,32,144,0],"texture":0},"down":{"uv":[208,0,176,32],"texture":0}},"type":"cube","uuid":"e020ca0b-24eb-a3cc-43ed-e87b0013e04d"}],"outliner":[{"name":"head","origin":[0,17,24],"rotation":[7.492942810808386,-0.32621370972236063,2.478638942680466],"color":0,"uuid":"e54419b9-7a64-8b11-6ad9-cea74cb14f41","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["e6d05459-6b50-12b5-a46a-eb72b97f7c09","800563f2-e637-d42d-6c38-616b6b34c9ca","e020ca0b-24eb-a3cc-43ed-e87b0013e04d"]},{"name":"leaves","origin":[0,-3,-1],"color":0,"uuid":"7cf17cab-353d-fddc-814d-3b708cb33637","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["4c00dc9a-fef0-30b4-0f06-8bee9fe9b898","42f404db-2eb0-2efd-bb09-8810376fcfbc","b2bbe86a-3379-0246-9181-127aed715432","c63affed-9e2a-84af-5766-631a13679757","4e7c3e97-535b-9261-83a4-80fb76cc13d4","dfd15693-f566-9bc7-b953-d303dec3ba18","2184d35d-e78b-c493-b1c4-a817cb45fa8b","24212edf-8ab0-e1e5-b67e-dd27ca7fee4f","89bc35ae-6e61-dfa8-745f-0e317bb63260","0a5c37c6-ad13-697a-58cd-934841edb237","d8b4bbe0-9707-0652-35e6-e28a54179fa3","5db8a4ea-e690-f657-b64a-323ec0c3a305"]}],"textures":[{"path":"/home/sollace/Documents/GitRepos/minecraft_mods/Unicopia/assets/models/bulb.png","name":"bulb.png","folder":"block","namespace":"","id":"0","particle":false,"render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"mode":"bitmap","saved":true,"uuid":"742fdfc6-ad6a-1d7e-e84d-c8133537cff8","relative_path":"../bulb.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQmQrXd53vl8+1m6+266ukhCICGEJEBmEwiDMcbEdnA8FTtrTU1lKl5IsDMZZ5JJPJM4xvGSpaZqqiZTU7MkcYwdG5tFCMsYDBhjsEESILHbAu1ou7p7d5/lW/9Tv+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8K61wLfMAfQW6PEA32juv2st6k7MWWCJLOAcwBLdLHeqzgKX2wLfcgdwuS/AHc9ZwFlg5xZwDmDntnPvdBZYegs4B7D0t9BdgLPAzi3gHMDObefe6Syw9BZwDmDpb6G7AGeBnVvAOYCd286901lg6S3gHMDS30J3Ac4CO7eAcwA7t517p7PA0lvAOYClv4XuApwFdm4B5wB2bjv3TmeBpbeAcwBLfwvdBTgL7NwCzgHs3Hbunc4CS28B5wCW/ha6C3AW2LkFnAPYue3cO50Flt4CzgEs/S10F+AssHMLOAewc9u5dzoLLL0FnANY+lvoLsBZYOcWcA5g57Zz73QWWHoLOAew9LfQXYCzwM4t4BzAzm3n3ukssPQWcA5g6W+huwBngZ1bwDmAndvOvdNZYOkt4BzA0t9CdwHOAju3gHMAO7ede6ezwNJbwDmApb+F7gKcBXZuAecAdm47905ngaW3gHMAS38L3QU4C+zcAs4B7Nx27p3OAktvAecAlv4WugtwFti5BZwD2Lnt3DudBZbeAs4BLP0tdBfgLLBzCzgHsHPbuXc6Cyy9BZwDWPpb6C7AWWDnFnAOYOe2c+90Flh6CzgHsPS30F2As8DOLeAcwM5t597pLLD0FnAOYOlvobsAZ4GdW8A5gJ3bzr3TWWDpLeAcwNLfQncBzgI7t4BzADu3nXuns8DSW8A5gKW/he4CnAV2bgHnAHZuO/dOZ4Glt4BzAEt/C90FOAvs3ALOAezcdu6dzgJLbwHnAJb+FroLcBbYuQWcA9i57dw7nQWW3gLOASz9LXQX4Cywcws4B7Bz27l3OgssvQWcA1j6W+guwFlg5xZwDmDntnPvdBZYegs4B7D0t9BdgLPAzi3gHMDObefe6Syw9BZwDmDpb6G7AGeBnVvAOYCd286901lg6S3gHMDS30J3Ac4CO7eAcwA7t517p7PA0lvg/wcJgHShy34nNgAAAABJRU5ErkJggg=="}],"fabricOptions":{"header":"package com.example.mod;","entity":"Entity","render":"","members":""}} \ No newline at end of file diff --git a/assets/models/ignimious_bulb.java b/assets/models/ignimious_bulb.java new file mode 100644 index 00000000..8eb9b255 --- /dev/null +++ b/assets/models/ignimious_bulb.java @@ -0,0 +1,69 @@ +// Made with Blockbench 4.8.3 +// Exported for Minecraft version 1.17+ for Yarn +// Paste this class into your mod and generate all required imports +public class ignimious_bulb extends EntityModel { + private final ModelPart head; + private final ModelPart cube_r1; + private final ModelPart head_r1; + private final ModelPart leaves; + private final ModelPart cube_r2; + private final ModelPart cube_r3; + private final ModelPart cube_r4; + private final ModelPart cube_r5; + private final ModelPart cube_r6; + private final ModelPart cube_r7; + private final ModelPart cube_r8; + private final ModelPart cube_r9; + private final ModelPart cube_r10; + private final ModelPart cube_r11; + private final ModelPart cube_r12; + private final ModelPart cube_r13; + public ignimious_bulb(ModelPart root) { + this.head = root.getChild("head"); + this.leaves = root.getChild("leaves"); + } + public static TexturedModelData getTexturedModelData() { + ModelData modelData = new ModelData(); + ModelPartData modelPartData = modelData.getRoot(); + ModelPartData head = modelPartData.addChild("head", ModelPartBuilder.create().uv(0, 0).cuboid(-24.0432F, -0.9905F, -48.1305F, 48.0F, 23.0F, 48.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 7.0F, 24.0F, -0.1308F, 0.0057F, 0.0433F)); + + ModelPartData cube_r1 = head.addChild("cube_r1", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, -27.0F, 5.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(1.3731F, -21.6152F, -11.61F, -1.9802F, 0.1003F, 0.0006F)); + + ModelPartData head_r1 = head.addChild("head_r1", ModelPartBuilder.create().uv(0, 71).cuboid(-23.0F, -16.0F, -46.0F, 46.0F, 23.0F, 46.0F, new Dilation(0.0F)), ModelTransform.of(-0.0432F, -0.9905F, -0.1305F, -0.1309F, 0.0F, 0.0F)); + + ModelPartData leaves = modelPartData.addChild("leaves", ModelPartBuilder.create(), ModelTransform.pivot(0.0F, 27.0F, -1.0F)); + + ModelPartData cube_r2 = leaves.addChild("cube_r2", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 3.0F, -55.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.8316F, -1.0127F, -3.0858F)); + + ModelPartData cube_r3 = leaves.addChild("cube_r3", ModelPartBuilder.create().uv(112, 0).cuboid(-14.0F, 12.0F, -60.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.6063F, -0.075F, -3.1196F)); + + ModelPartData cube_r4 = leaves.addChild("cube_r4", ModelPartBuilder.create().uv(112, 0).cuboid(-20.0F, 1.0F, -51.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.7079F, -1.4622F, 0.4842F)); + + ModelPartData cube_r5 = leaves.addChild("cube_r5", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 6.0F, -58.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.4967F, 0.1003F, 0.0006F)); + + ModelPartData cube_r6 = leaves.addChild("cube_r6", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.8708F, -0.1388F, -3.0651F)); + + ModelPartData cube_r7 = leaves.addChild("cube_r7", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.084F, -1.4961F, 0.807F)); + + ModelPartData cube_r8 = leaves.addChild("cube_r8", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 3.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.2651F, -0.035F, -0.0332F)); + + ModelPartData cube_r9 = leaves.addChild("cube_r9", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.95F, 1.4932F, -1.6857F)); + + ModelPartData cube_r10 = leaves.addChild("cube_r10", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 10.0F, -57.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -2.5197F, 1.466F, -2.0202F)); + + ModelPartData cube_r11 = leaves.addChild("cube_r11", ModelPartBuilder.create().uv(112, 0).cuboid(-8.0F, 3.0F, -61.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.9628F, 0.6133F, -2.978F)); + + ModelPartData cube_r12 = leaves.addChild("cube_r12", ModelPartBuilder.create().uv(112, 0).cuboid(-13.0F, 6.0F, -60.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.4768F, 0.8786F, -0.1186F)); + + ModelPartData cube_r13 = leaves.addChild("cube_r13", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 0.0F, -59.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.2911F, -0.5857F, 0.0605F)); + return TexturedModelData.of(modelData, 256, 256); + } + @Override + public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { + } + @Override + public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { + head.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); + leaves.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); + } +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/USounds.java b/src/main/java/com/minelittlepony/unicopia/USounds.java index 23980e16..3f53eca3 100644 --- a/src/main/java/com/minelittlepony/unicopia/USounds.java +++ b/src/main/java/com/minelittlepony/unicopia/USounds.java @@ -62,11 +62,18 @@ public interface USounds { SoundEvent ENTITY_SOMBRA_AMBIENT = register("entity.sombra.ambient"); SoundEvent ENTITY_SOMBRA_LAUGH = register("entity.sombra.laugh"); SoundEvent ENTITY_SOMBRA_SNICKER = register("entity.sombra.snicker"); - SoundEvent ENTITY_SOMBRA_SCARY = USounds.Vanilla.ENTITY_GHAST_AMBIENT; + SoundEvent ENTITY_SOMBRA_SCARY = ENTITY_GHAST_AMBIENT; SoundEvent ENTITY_CRYSTAL_SHARDS_AMBIENT = BLOCK_AMETHYST_BLOCK_HIT; SoundEvent ENTITY_CRYSTAL_SHARDS_JOSTLE = BLOCK_AMETHYST_BLOCK_BREAK; + SoundEvent ENTITY_IGNIMEOUS_BULB_HURT = ENTITY_WARDEN_HURT; + SoundEvent ENTITY_IGNIMEOUS_BULB_DEATH = ENTITY_WARDEN_DEATH; + + SoundEvent ENTITY_TENTACLE_ROAR = ENTITY_RAVAGER_ROAR; + SoundEvent ENTITY_TENTACLE_AMBIENT = BLOCK_CONDUIT_AMBIENT_SHORT; + SoundEvent ENTITY_TENTACLE_DIG = ENTITY_WARDEN_DIG; + SoundEvent ITEM_AMULET_CHARGING = register("item.amulet.charging"); SoundEvent ITEM_AMULET_RECHARGE = register("item.amulet.recharge"); @@ -90,6 +97,8 @@ public interface USounds { SoundEvent ITEM_STAFF_STRIKE = ENTITY_PLAYER_ATTACK_CRIT; SoundEvent ITEM_MAGIC_STAFF_CHARGE = ENTITY_GUARDIAN_ATTACK; + SoundEvent ITEM_CURING_JOKE_CURE = BLOCK_AMETHYST_BLOCK_BREAK; + SoundEvent ITEM_ROCK_LAND = BLOCK_STONE_HIT; RegistryEntry.Reference ITEM_MUFFIN_BOUNCE = BLOCK_NOTE_BLOCK_BANJO; diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index 56b10bf7..6d982e43 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -12,6 +12,7 @@ import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.util.TraceHelper; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; +import net.minecraft.block.FarmlandBlock; import net.minecraft.item.BoneMealItem; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; @@ -84,11 +85,11 @@ public class EarthPonyGrowAbility implements Ability { w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); } w.setBlockState(pos, UBlocks.PLUNDER_VINE_BUD.getDefaultState()); - } else if (w.random.nextInt(5000) == 0) { + } else if (w.random.nextInt(5000) == 0 || w.getBlockState(pos).isOf(UBlocks.CURING_JOKE)) { if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) { - w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); + FarmlandBlock.setToDirt(null, state, w, pos.down()); } - w.breakBlock(pos, true); + w.breakBlock(pos, false); TentacleEntity tentacle = new TentacleEntity(w, pos); tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); w.spawnEntity(tentacle); diff --git a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java new file mode 100644 index 00000000..73243fd1 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java @@ -0,0 +1,24 @@ +package com.minelittlepony.unicopia.block; + +import com.minelittlepony.unicopia.particle.MagicParticleEffect; + +import net.minecraft.block.BlockState; +import net.minecraft.block.FlowerBlock; +import net.minecraft.client.util.ParticleUtil; +import net.minecraft.entity.effect.StatusEffect; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.random.Random; +import net.minecraft.world.World; + +class CuringJokeBlock extends FlowerBlock { + public CuringJokeBlock(StatusEffect suspiciousStewEffect, int effectDuration, Settings settings) { + super(suspiciousStewEffect, effectDuration, settings); + } + + @Override + public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) { + for (int i = 0; i < 3; i++) { + ParticleUtil.spawnParticle(world, pos, random, new MagicParticleEffect(0x3388EE)); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index b74d0566..24ebc94d 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -21,6 +21,7 @@ import com.minelittlepony.unicopia.block.cloud.SoggyCloudBlock; import com.minelittlepony.unicopia.block.cloud.SoggyCloudSlabBlock; import com.minelittlepony.unicopia.block.cloud.SoggyCloudStairsBlock; import com.minelittlepony.unicopia.block.cloud.UnstableCloudBlock; +import com.minelittlepony.unicopia.entity.effect.UEffects; import com.minelittlepony.unicopia.item.UItems; import com.minelittlepony.unicopia.item.cloud.CloudBlockItem; import com.minelittlepony.unicopia.item.group.ItemGroupRegistry; @@ -138,6 +139,7 @@ public interface UBlocks { Block PLUNDER_VINE = register("plunder_vine", new ThornBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).ticksRandomly().sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.DESTROY), () -> UBlocks.PLUNDER_VINE_BUD)); Block PLUNDER_VINE_BUD = register("plunder_vine_bud", new ThornBudBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).nonOpaque().ticksRandomly().sounds(BlockSoundGroup.GRASS).pistonBehavior(PistonBehavior.DESTROY), PLUNDER_VINE.getDefaultState())); + Block CURING_JOKE = register("curing_joke", new CuringJokeBlock(UEffects.BUTTER_FINGERS, 7, AbstractBlock.Settings.create().mapColor(MapColor.PALE_PURPLE).noCollision().breakInstantly().sounds(BlockSoundGroup.GRASS).offset(AbstractBlock.OffsetType.XZ).pistonBehavior(PistonBehavior.DESTROY))); Block CHITIN = register("chitin", new SnowyBlock(Settings.create().mapColor(MapColor.PALE_PURPLE).hardness(5).requiresTool().ticksRandomly().sounds(BlockSoundGroup.CORAL)), ItemGroups.NATURAL); Block SURFACE_CHITIN = register("surface_chitin", new GrowableBlock(Settings.copy(CHITIN), () -> CHITIN), ItemGroups.NATURAL); @@ -240,7 +242,7 @@ public interface UBlocks { StrippableBlockRegistry.register(PALM_LOG, STRIPPED_PALM_LOG); StrippableBlockRegistry.register(ZAP_WOOD, STRIPPED_ZAP_WOOD); StrippableBlockRegistry.register(PALM_WOOD, STRIPPED_PALM_WOOD); - Collections.addAll(TRANSLUCENT_BLOCKS, WEATHER_VANE, CHITIN_SPIKES, PLUNDER_VINE, PLUNDER_VINE_BUD, CLAM_SHELL, SCALLOP_SHELL, TURRET_SHELL); + Collections.addAll(TRANSLUCENT_BLOCKS, WEATHER_VANE, CHITIN_SPIKES, PLUNDER_VINE, PLUNDER_VINE_BUD, CLAM_SHELL, SCALLOP_SHELL, TURRET_SHELL, CURING_JOKE); TintedBlock.REGISTRY.add(PALM_LEAVES); FlammableBlockRegistry.getDefaultInstance().add(GREEN_APPLE_LEAVES, 30, 60); diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 93fc054a..6de73e74 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -98,6 +98,7 @@ public interface URenderers { EntityRendererRegistry.register(UEntities.FRIENDLY_CREEPER, FriendlyCreeperEntityRenderer::new); EntityRendererRegistry.register(UEntities.LOOT_BUG, LootBugEntityRenderer::new); EntityRendererRegistry.register(UEntities.TENTACLE, TentacleEntityRenderer::new); + EntityRendererRegistry.register(UEntities.IGNIMEOUS_BULB, IgnimeousBulbEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.WEATHER_VANE, WeatherVaneBlockEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.FANCY_BED, CloudBedBlockEntityRenderer::new); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java new file mode 100644 index 00000000..9f5e6e7a --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java @@ -0,0 +1,77 @@ +package com.minelittlepony.unicopia.client.render.entity; + +import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; + +import net.minecraft.client.model.Dilation; +import net.minecraft.client.model.ModelData; +import net.minecraft.client.model.ModelPart; +import net.minecraft.client.model.ModelPartBuilder; +import net.minecraft.client.model.ModelPartData; +import net.minecraft.client.model.ModelTransform; +import net.minecraft.client.model.TexturedModelData; +import net.minecraft.client.render.RenderLayer; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.entity.model.EntityModel; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.math.MathHelper; + +public class IgnimeousBulbEntityModel extends EntityModel { + + private final ModelPart part; + + private final ModelPart head; + private final ModelPart leaves; + + public IgnimeousBulbEntityModel(ModelPart root) { + super(RenderLayer::getEntityTranslucent); + this.part = root; + head = root.getChild("head"); + leaves = root.getChild("leaves"); + } + + public static TexturedModelData getTexturedModelData() { + ModelData data = new ModelData(); + ModelPartData root = data.getRoot(); + ModelPartData head = root.addChild("head", ModelPartBuilder.create().uv(0, 0).cuboid(-24.0432F, -0.9905F, -48.1305F, 48, 23, 48, Dilation.NONE), ModelTransform.of(0, 7, 24, -0.1308F, 0.0057F, 0.0433F)); + head.addChild("jaw", ModelPartBuilder.create().uv(112, 0).cuboid(-16, -27, 5, 32, 0, 32, Dilation.NONE), ModelTransform.of(1.3731F, -21.6152F, -11.61F, -1.9802F, 0.1003F, 0.0006F)); + head.addChild("head", ModelPartBuilder.create().uv(0, 71).cuboid(-23, -16, -46, 46, 23, 46, Dilation.NONE), ModelTransform.of(-0.0432F, -0.9905F, -0.1305F, -0.1309F, 0, 0)); + + ModelPartData leaves = root.addChild("leaves", ModelPartBuilder.create(), ModelTransform.pivot(0, 27, -1)); + leaves.addChild("leaf_1", ModelPartBuilder.create().uv(112, 0).cuboid(-16, 3, -55, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(2.8316F, -1.0127F, -3.0858F)); + leaves.addChild("leaf_2", ModelPartBuilder.create().uv(112, 0).cuboid(-14, 12, -60, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(2.6063F, -0.075F, -3.1196F)); + leaves.addChild("leaf_3", ModelPartBuilder.create().uv(112, 0).cuboid(-20, 1, -51, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(-0.7079F, -1.4622F, 0.4842F)); + leaves.addChild("leaf_4", ModelPartBuilder.create().uv(112, 0).cuboid(-16, 6, -58, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(-0.4967F, 0.1003F, 0.0006F)); + leaves.addChild("leaf_5", ModelPartBuilder.create().uv(-64, 140).cuboid(-30, 7, -83, 64, 0, 64, Dilation.NONE), ModelTransform.rotation(2.8708F, -0.1388F, -3.0651F)); + leaves.addChild("leaf_6", ModelPartBuilder.create().uv(-64, 140).cuboid(-30, 7, -83, 64, 0, 64, Dilation.NONE), ModelTransform.rotation(-1.084F, -1.4961F, 0.807F)); + leaves.addChild("leaf_7", ModelPartBuilder.create().uv(-64, 140).cuboid(-30, 3, -83, 64, 0, 64, Dilation.NONE), ModelTransform.rotation(-0.2651F, -0.035F, -0.0332F)); + leaves.addChild("leaf_8", ModelPartBuilder.create().uv(-64, 140).cuboid(-30, 7, -83, 64, 0, 64, Dilation.NONE), ModelTransform.rotation(-1.95F, 1.4932F, -1.6857F)); + leaves.addChild("leaf_9", ModelPartBuilder.create().uv(112, 0).cuboid(-16, 10, -57, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(-2.5197F, 1.466F, -2.0202F)); + leaves.addChild("leaf_10", ModelPartBuilder.create().uv(112, 0).cuboid(-8, 3, -61, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(2.9628F, 0.6133F, -2.978F)); + leaves.addChild("leaf_11", ModelPartBuilder.create().uv(112, 0).cuboid(-13, 6, -60, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(-0.4768F, 0.8786F, -0.1186F)); + leaves.addChild("leaf_12", ModelPartBuilder.create().uv(112, 0).cuboid(-16, 0, -59, 32, 0, 32, Dilation.NONE), ModelTransform.rotation(-0.2911F, -0.5857F, 0.0605F)); + + return TexturedModelData.of(data, 256, 256); + } + + @Override + public void setAngles(IgnimeousBulbEntity entity, float limbSwing, float limbSwingAmount, float tickDelta, float yaw, float pitch) { + + float age = entity.age + tickDelta; + + head.yScale = 1 - MathHelper.sin(age * 0.05F) * 0.02F; + + float hScale = 1 + MathHelper.cos(age * 0.06F) * 0.02F; + head.xScale = hScale; + head.zScale = hScale; + + head.pitch = MathHelper.sin(age * 0.02F) * 0.02F; + head.yaw = MathHelper.cos(age * 0.02F) * 0.02F; + + leaves.yScale = 1 + MathHelper.sin(age * 0.05F) * 0.12F; + } + + @Override + public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) { + part.render(matrices, vertices, light, overlay); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java new file mode 100644 index 00000000..8315cc12 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java @@ -0,0 +1,39 @@ +package com.minelittlepony.unicopia.client.render.entity; + +import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; +import net.minecraft.client.render.OverlayTexture; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.entity.EntityRenderer; +import net.minecraft.client.render.entity.EntityRendererFactory; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.Identifier; + +public class IgnimeousBulbEntityRenderer extends EntityRenderer { + private static final Identifier IDLE_TEXTURE = Unicopia.id("textures/entity/poison_joke/bulb_idle.png"); + private static final Identifier ANGRY_TEXTURE = Unicopia.id("textures/entity/poison_joke/bulb_angry.png"); + + private final IgnimeousBulbEntityModel model; + + public IgnimeousBulbEntityRenderer(EntityRendererFactory.Context context) { + super(context); + model = new IgnimeousBulbEntityModel(IgnimeousBulbEntityModel.getTexturedModelData().createModel()); + } + + @Override + public void render(IgnimeousBulbEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) { + matrices.push(); + matrices.scale(-1, -1, 1); + matrices.translate(0, -1.5F, 0); + + model.setAngles(entity, 0, 0, tickDelta, entity.getYaw(tickDelta), entity.getPitch(tickDelta)); + model.render(matrices, vertices.getBuffer(model.getLayer(getTexture(entity))), light, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); + matrices.pop(); + super.render(entity, yaw, tickDelta, matrices, vertices, light); + } + + @Override + public Identifier getTexture(IgnimeousBulbEntity entity) { + return entity.isAngry() ? ANGRY_TEXTURE : IDLE_TEXTURE; + } +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java index e365457a..05b3da1b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityModel.java @@ -97,6 +97,9 @@ public class TentacleEntityModel extends EntityModel { @Override public void setAngles(TentacleEntity entity, float limbSwing, float limbSwingAmount, float tickDelta, float yaw, float pitch) { + + boolean growing = entity.getGrowth(tickDelta) < 1; + float age = entity.age + tickDelta + (entity.getUuid().getMostSignificantBits() % 100); float idleWaveTimer = entity.getAnimationTimer(tickDelta); @@ -116,9 +119,11 @@ public class TentacleEntityModel extends EntityModel { bendIntentisty += 3F; bone.resetTransform(); - bone.pitch = MathHelper.lerp(attackProgress, idlePitch, bone.pitch + attackCurve); - bone.yaw = MathHelper.lerp(attackProgress, idleYaw, bone.yaw + sweepDirection * attackCurve); - bone.roll = MathHelper.lerp(attackProgress, idleRoll, bone.roll); + if (!growing) { + bone.pitch = MathHelper.lerp(attackProgress, idlePitch, bone.pitch + attackCurve); + bone.yaw = MathHelper.lerp(attackProgress, idleYaw, bone.yaw + sweepDirection * attackCurve); + bone.roll = MathHelper.lerp(attackProgress, idleRoll, bone.roll); + } attackCurve *= 1.04F; } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java index f6ba79b9..7aa694b5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/TentacleEntityRenderer.java @@ -9,6 +9,7 @@ import net.minecraft.client.render.entity.EntityRenderer; import net.minecraft.client.render.entity.EntityRendererFactory; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.Identifier; +import net.minecraft.util.math.MathHelper; public class TentacleEntityRenderer extends EntityRenderer { private static final Identifier TEXTURE = Unicopia.id("textures/entity/poison_joke/tentacle.png"); @@ -26,8 +27,9 @@ public class TentacleEntityRenderer extends EntityRenderer { matrices.scale(-1, -1, 1); float scale = entity.getGrowth(tickDelta); + matrices.translate(0, -0.75F + 3F * (1 - scale), 0); + scale = MathHelper.clamp(scale, 0.5F, 1); matrices.scale(scale, scale, scale); - matrices.translate(0, -0.9F, 0); model.setAngles(entity, 0, 0, tickDelta, entity.getYaw(tickDelta), entity.getPitch(tickDelta)); model.render(matrices, vertices.getBuffer(model.getLayer(getTexture(entity))), light, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java new file mode 100644 index 00000000..286f0fad --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java @@ -0,0 +1,167 @@ +package com.minelittlepony.unicopia.entity.mob; + +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.USounds; +import com.minelittlepony.unicopia.entity.player.Pony; + +import net.minecraft.entity.EntityType; +import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.MovementType; +import net.minecraft.entity.damage.DamageSource; +import net.minecraft.entity.data.DataTracker; +import net.minecraft.entity.data.TrackedData; +import net.minecraft.entity.data.TrackedDataHandlerRegistry; +import net.minecraft.entity.mob.MobEntity; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.nbt.NbtCompound; +import net.minecraft.predicate.entity.EntityPredicates; +import net.minecraft.sound.SoundEvent; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Direction; +import net.minecraft.util.math.Vec3d; +import net.minecraft.world.World; + +public class IgnimeousBulbEntity extends MobEntity { + private static final TrackedData ANGRY = DataTracker.registerData(IgnimeousBulbEntity.class, TrackedDataHandlerRegistry.BOOLEAN); + private static final List TENTACLE_OFFSETS = List.of( + new BlockPos(-3, 0, -3), new BlockPos(0, 0, -4), new BlockPos(3, 0, -3), + new BlockPos(-4, 0, 0), new BlockPos(4, 0, 0), + new BlockPos(-3, 0, 3), new BlockPos(0, 0, 4), new BlockPos(3, 0, 4) + ); + + @Nullable + private Map tentacles; + + public IgnimeousBulbEntity(EntityType type, World world) { + super(type, world); + } + + public IgnimeousBulbEntity(World world) { + super(UEntities.IGNIMEOUS_BULB, world); + } + + @Override + protected void initDataTracker() { + super.initDataTracker(); + dataTracker.startTracking(ANGRY, false); + } + + public boolean isAngry() { + return dataTracker.get(ANGRY); + } + + public void setAngry(boolean angry) { + dataTracker.set(ANGRY, angry); + } + + @Override + public void tick() { + if (!getWorld().isClient && !isRemoved()) { + var center = new BlockPos.Mutable(); + var tentacles = getTentacles(); + + TENTACLE_OFFSETS.forEach(offset -> { + tentacles.compute(adjustForTerrain(center, offset), this::updateTentacle); + }); + + if (getWorld().random.nextInt(isAngry() ? 12 : 1200) == 0) { + for (TentacleEntity tentacle : tentacles.values()) { + tentacle.addActiveTicks(120); + } + } + LivingEntity target = getAttacker(); + + setAngry(target != null); + + if (isAngry() && getWorld().random.nextInt(30) == 0) { + if (target instanceof PlayerEntity player) { + Pony.of(player).getMagicalReserves().getEnergy().add(6); + } + + tentacles.values() + .stream() + .sorted(Comparator.comparing(a -> a.distanceTo(target))) + .limit(2) + .forEach(tentacle -> { + tentacle.setTarget(target); + }); + } + } + + super.tick(); + } + + private Map getTentacles() { + if (tentacles == null) { + tentacles = getWorld().getEntitiesByClass(TentacleEntity.class, this.getBoundingBox().expand(5, 0, 5), EntityPredicates.VALID_ENTITY) + .stream() + .collect(Collectors.toMap(TentacleEntity::getBlockPos, Function.identity())); + } + return tentacles; + } + + private TentacleEntity updateTentacle(BlockPos pos, @Nullable TentacleEntity tentacle) { + if (tentacle == null || tentacle.isRemoved()) { + tentacle = new TentacleEntity(getWorld(), pos); + tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, getWorld().random.nextFloat() * 360, 0); + getWorld().spawnEntity(tentacle); + } + return tentacle; + } + + private BlockPos adjustForTerrain(BlockPos.Mutable mutable, BlockPos offset) { + World w = getWorld(); + mutable.set(getBlockPos()); + mutable.move(offset); + while (w.isAir(mutable.down()) && w.isInBuildLimit(mutable)) { + mutable.move(Direction.DOWN); + } + while (!w.isAir(mutable) && w.isInBuildLimit(mutable)) { + mutable.move(Direction.UP); + } + return mutable.toImmutable(); + } + + @Override + public void remove(RemovalReason reason) { + super.remove(reason); + getTentacles().values().forEach(tentacle -> tentacle.remove(reason)); + } + + @Override + public void move(MovementType movementType, Vec3d movement) { } + + @Override + public void addVelocity(double deltaX, double deltaY, double deltaZ) { } + + @Override + @Nullable + protected SoundEvent getHurtSound(DamageSource source) { + return USounds.ENTITY_IGNIMEOUS_BULB_HURT; + } + + @Override + @Nullable + protected SoundEvent getDeathSound() { + return USounds.ENTITY_IGNIMEOUS_BULB_DEATH; + } + + @Override + public void writeCustomDataToNbt(NbtCompound nbt) { + super.writeCustomDataToNbt(nbt); + nbt.putBoolean("angry", isAngry()); + } + + @Override + public void readCustomDataFromNbt(NbtCompound nbt) { + super.readCustomDataFromNbt(nbt); + setAngry(nbt.getBoolean("angry")); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java index cec6b0df..649a033b 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java @@ -4,6 +4,8 @@ import java.util.Comparator; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.USounds; +import com.minelittlepony.unicopia.block.UBlocks; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.util.shape.Sphere; @@ -19,9 +21,10 @@ import net.minecraft.entity.data.TrackedDataHandlerRegistry; import net.minecraft.entity.decoration.AbstractDecorationEntity; import net.minecraft.entity.mob.HostileEntity; import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.nbt.NbtCompound; import net.minecraft.particle.ParticleTypes; +import net.minecraft.registry.tag.BlockTags; import net.minecraft.registry.tag.ItemTags; -import net.minecraft.sound.SoundEvents; import net.minecraft.util.Hand; import net.minecraft.util.hit.HitResult; import net.minecraft.util.math.BlockPos; @@ -126,7 +129,7 @@ public class TentacleEntity extends AbstractDecorationEntity { @Override public boolean damage(DamageSource source, float amount) { if (source.getAttacker() instanceof PlayerEntity player) { - if (player.getStackInHand(Hand.MAIN_HAND).isIn(ItemTags.SHOVELS)) { + if (player.getStackInHand(Hand.MAIN_HAND).isIn(ItemTags.AXES)) { kill(); ParticleUtils.spawnParticles(ParticleTypes.EFFECT, this, 10); } @@ -134,15 +137,20 @@ public class TentacleEntity extends AbstractDecorationEntity { setTarget(player); } } - ticksActive += 20; - playSound(SoundEvents.ENTITY_RAVAGER_ROAR, 5, 1); + addActiveTicks(20 + getWorld().random.nextInt(30)); + playSound(USounds.ENTITY_TENTACLE_ROAR, 5, 1); return true; } + public void addActiveTicks(int ticks) { + ticksActive += ticks; + } + @Override public void tick() { prevMotionOffset = getMotionOffset(); - prevGrowth = getGrowth(); + int growth = getGrowth(); + prevGrowth = growth; super.tick(); prevAttackingTicks = attackingTicks; if (isAttacking()) { @@ -164,9 +172,6 @@ public class TentacleEntity extends AbstractDecorationEntity { target = null; } - - - playSound(SoundEvents.BLOCK_POINTED_DRIPSTONE_LAND, 1, 1); } } @@ -175,8 +180,6 @@ public class TentacleEntity extends AbstractDecorationEntity { ParticleUtils.spawnParticles(getWorld(), sphere, ParticleTypes.ASH, 4); if (!getWorld().isClient) { - int growth = getGrowth(); - if (growth >= MAX_GROWTH / 2) { if (age % 50 == 0) { updateTarget(); @@ -189,28 +192,40 @@ public class TentacleEntity extends AbstractDecorationEntity { if (growth < MAX_GROWTH) { setGrowth(growth + 1); + + if (growth == 0) { + playSound(USounds.ENTITY_TENTACLE_DIG, 1, 1); + } } if (getWorld().random.nextInt(110) == 0) { - playSound(SoundEvents.BLOCK_CONDUIT_AMBIENT_SHORT, 1, 0.3F); + playSound(USounds.ENTITY_TENTACLE_AMBIENT, 1, 0.3F); } if (ticksActive > 0) { ticksActive--; setMotionOffset(getMotionOffset() + ticksActive); } + } else { + if (growth < MAX_GROWTH && age % 15 == getWorld().random.nextInt(14)) { + getWorld().addBlockBreakParticles(getBlockPos().down(), getWorld().getBlockState(getBlockPos().down())); + } } } public void setTarget(LivingEntity target) { this.target = target; - playSound(SoundEvents.ENTITY_RAVAGER_ROAR, 5, 1); + playSound(USounds.ENTITY_TENTACLE_ROAR, 5, 1); if (target instanceof PlayerEntity player) { Pony.of(player).getMagicalReserves().getEnergy().add(6); } } + public LivingEntity getTarget() { + return target; + } + private void updateTarget() { if (!canTarget(target)) { target = null; @@ -260,6 +275,16 @@ public class TentacleEntity extends AbstractDecorationEntity { } + + @Override + public void remove(RemovalReason reason) { + super.remove(reason); + if (getWorld().isAir(getBlockPos()) && getWorld().getBlockState(getBlockPos().down()).isIn(BlockTags.DIRT)) { + getWorld().setBlockState(getBlockPos(), UBlocks.CURING_JOKE.getDefaultState()); + } + } + + @Override public boolean canStayAttached() { return getWorld().isTopSolid(getBlockPos().down(), this); @@ -286,4 +311,18 @@ public class TentacleEntity extends AbstractDecorationEntity { @Override public void addVelocity(double deltaX, double deltaY, double deltaZ) { } + + @Override + public void writeCustomDataToNbt(NbtCompound nbt) { + super.writeCustomDataToNbt(nbt); + nbt.putInt("growth", getGrowth()); + nbt.putInt("motion_offset", getMotionOffset()); + } + + @Override + public void readCustomDataFromNbt(NbtCompound nbt) { + super.readCustomDataFromNbt(nbt); + setGrowth(nbt.getInt("growth")); + setMotionOffset(nbt.getInt("motion_offset")); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java index 40cab42d..92a8dab8 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java @@ -67,9 +67,12 @@ public interface UEntities { EntityType LOOT_BUG = register("loot_bug", FabricEntityTypeBuilder.create(SpawnGroup.MONSTER, LootBugEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(0.8F, 0.6F))); - EntityType TENTACLE = register("tentacle", FabricEntityTypeBuilder.create(SpawnGroup.MISC, TentacleEntity::new) + EntityType TENTACLE = register("ignimeous_vine", FabricEntityTypeBuilder.create(SpawnGroup.MISC, TentacleEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(0.8F, 0.8F))); + EntityType IGNIMEOUS_BULB = register("ignimeous_bulb", FabricEntityTypeBuilder.create(SpawnGroup.MISC, IgnimeousBulbEntity::new) + .trackRangeChunks(8) + .dimensions(EntityDimensions.fixed(3, 2))); static EntityType register(String name, FabricEntityTypeBuilder builder) { EntityType type = builder.build(); @@ -84,6 +87,7 @@ public interface UEntities { FabricDefaultAttributeRegistry.register(SOMBRA, SombraEntity.createMobAttributes()); FabricDefaultAttributeRegistry.register(FRIENDLY_CREEPER, FriendlyCreeperEntity.createCreeperAttributes()); FabricDefaultAttributeRegistry.register(LOOT_BUG, LootBugEntity.createSilverfishAttributes()); + FabricDefaultAttributeRegistry.register(IGNIMEOUS_BULB, IgnimeousBulbEntity.createMobAttributes()); if (!Unicopia.getConfig().disableButterflySpawning.get()) { final Predicate butterflySpawnable = BiomeSelectors.foundInOverworld() diff --git a/src/main/java/com/minelittlepony/unicopia/item/CuringJokeItem.java b/src/main/java/com/minelittlepony/unicopia/item/CuringJokeItem.java new file mode 100644 index 00000000..cbd12b9a --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/item/CuringJokeItem.java @@ -0,0 +1,119 @@ +package com.minelittlepony.unicopia.item; + +import java.util.ArrayList; +import java.util.List; +import java.util.function.Predicate; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; + +import com.minelittlepony.unicopia.USounds; +import com.minelittlepony.unicopia.particle.MagicParticleEffect; +import com.minelittlepony.unicopia.particle.ParticleUtils; +import com.minelittlepony.unicopia.util.InventoryUtil; + +import net.minecraft.block.Block; +import net.minecraft.enchantment.Enchantment; +import net.minecraft.enchantment.EnchantmentHelper; +import net.minecraft.entity.InventoryOwner; +import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.BlockItem; +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + +public class CuringJokeItem extends BlockItem { + static final List> EFFECTS = List.of( + CuringJokeItem::restoreAir, + CuringJokeItem::restoreHunger, + CuringJokeItem::restoreHealth, + CuringJokeItem::removeEffect, + CuringJokeItem::uncurseItem, + CuringJokeItem::repairItem + ); + + public CuringJokeItem(Block block, Settings settings) { + super(block, settings); + } + + @Override + public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) { + var items = new ArrayList<>(EFFECTS); + while (!items.isEmpty()) { + if (items.remove(world.random.nextInt(items.size())).test(user)) { + ParticleUtils.spawnParticles(new MagicParticleEffect(0x3388EE), user, 25); + world.playSound(null, user.getBlockPos(), USounds.ITEM_CURING_JOKE_CURE, user.getSoundCategory(), 1, 1); + break; + } + } + + return super.finishUsing(stack, world, user); + } + + static boolean restoreAir(LivingEntity user) { + if (user.getAir() < user.getMaxAir()) { + user.setAir(user.getMaxAir()); + return true; + } + return false; + } + + static boolean restoreHunger(LivingEntity user) { + if (user instanceof PlayerEntity player && player.getHungerManager().getFoodLevel() < 20) { + player.getHungerManager().add(20, 0); + return true; + } + return false; + } + + static boolean restoreHealth(LivingEntity user) { + if (user.getHealth() < user.getMaxHealth()) { + user.setHealth(user.getMaxHealth()); + return true; + } + return false; + } + + static boolean removeEffect(LivingEntity user) { + return user.getStatusEffects().stream().filter(effect -> { + return !effect.getEffectType().isBeneficial(); + }).findAny().filter(effect -> { + user.removeStatusEffect(effect.getEffectType()); + return true; + }).isPresent(); + } + + static boolean uncurseItem(LivingEntity user) { + return getInventory(user) + .filter(s -> EnchantmentHelper.get(s).keySet().stream().anyMatch(Enchantment::isCursed)) + .findAny() + .filter(s -> { + var enchantments = EnchantmentHelper.get(s); + return enchantments.keySet().stream().filter(Enchantment::isCursed).findAny().filter(e -> { + enchantments.remove(e); + EnchantmentHelper.set(enchantments, s); + return true; + }).isPresent(); + }).isPresent(); + } + + static boolean repairItem(LivingEntity user) { + return getInventory(user) + .filter(s -> s.getDamage() < s.getMaxDamage()) + .findAny().filter(s -> { + s.setDamage(0); + return true; + }).isPresent(); + } + + static Stream getInventory(LivingEntity entity) { + if (entity instanceof PlayerEntity player) { + return InventoryUtil.stream(player.getInventory()); + } + + if (entity instanceof InventoryOwner owner) { + return InventoryUtil.stream(owner.getInventory()); + } + + return StreamSupport.stream(entity.getItemsEquipped().spliterator(), false); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/item/UFoodComponents.java b/src/main/java/com/minelittlepony/unicopia/item/UFoodComponents.java index 24dcf544..a7ff322a 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/UFoodComponents.java +++ b/src/main/java/com/minelittlepony/unicopia/item/UFoodComponents.java @@ -53,6 +53,8 @@ public interface UFoodComponents { FoodComponent CANDY = builder(7, 0.9F).alwaysEdible().build(); FoodComponent SALT_CUBE = builder(0, 2.9F).alwaysEdible().build(); + FoodComponent POISON_JOKE = builder(0, 0F).alwaysEdible().snack().build(); + @Deprecated FoodComponent SHELL = builder(3, 5).build(); @Deprecated diff --git a/src/main/java/com/minelittlepony/unicopia/item/UItems.java b/src/main/java/com/minelittlepony/unicopia/item/UItems.java index e9863be6..40f9eccd 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/UItems.java +++ b/src/main/java/com/minelittlepony/unicopia/item/UItems.java @@ -88,6 +88,7 @@ public interface UItems { Item ACORN = register("acorn", new Item(new Item.Settings().food(UFoodComponents.ACORN).maxCount(16)), ItemGroups.FOOD_AND_DRINK); Item MANGO = register("mango", new Item(new Item.Settings().food(UFoodComponents.MANGO)), ItemGroups.FOOD_AND_DRINK); Item BANANA = register("banana", new Item(new Item.Settings().food(UFoodComponents.BANANA)), ItemGroups.FOOD_AND_DRINK); + Item CURING_JOKE = register("curing_joke", new CuringJokeItem(UBlocks.CURING_JOKE, new Item.Settings().food(UFoodComponents.POISON_JOKE)), ItemGroups.NATURAL); Item PINEAPPLE = register("pineapple", new PineappleItem(new Item.Settings().food(UFoodComponents.BANANA).maxDamage(3)), ItemGroups.FOOD_AND_DRINK); Item PINEAPPLE_CROWN = register("pineapple_crown", new AliasedBlockItem(UBlocks.PINEAPPLE, new Item.Settings()), ItemGroups.NATURAL); diff --git a/src/main/resources/assets/unicopia/blockstates/curing_joke.json b/src/main/resources/assets/unicopia/blockstates/curing_joke.json new file mode 100644 index 00000000..20ea8e38 --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/curing_joke.json @@ -0,0 +1,5 @@ +{ + "variants": { + "": { "model": "unicopia:block/curing_joke" } + } +} diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 41f63712..d2808a2d 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -246,6 +246,7 @@ "block.unicopia.palm_hanging_sign": "Palm Hanging Sign", "block.unicopia.apple_pie": "Apple Pie", "block.unicopia.weather_vane": "Weather Vane", + "block.unicopia.curing_joke": "Curing Joke", "block.unicopia.mango": "Mango", "block.unicopia.mango_leaves": "Mango Leaves", "block.unicopia.mango_sapling": "Mango Sapling", @@ -322,6 +323,8 @@ "entity.unicopia.sombra.taunt": "That's not going to work on me!", "entity.unicopia.storm_cloud": "Storm Cloud", "entity.unicopia.crystal_shards": "Crystal Shards", + "entity.unicopia.ignimeous_vine": "Ignimeous Vine", + "entity.unicopia.ignimeous_bulb": "Ignimeous Bulb", "player.reachDistance": "Reach Distance", "player.miningSpeed": "Mining Speed", diff --git a/src/main/resources/assets/unicopia/models/block/curing_joke.json b/src/main/resources/assets/unicopia/models/block/curing_joke.json new file mode 100644 index 00000000..d99c056b --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/curing_joke.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cross", + "textures": { + "cross": "unicopia:block/curing_joke" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/item/curing_joke.json b/src/main/resources/assets/unicopia/models/item/curing_joke.json new file mode 100644 index 00000000..65c5811a --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/curing_joke.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/curing_joke" + } +} diff --git a/src/main/resources/assets/unicopia/textures/block/curing_joke.png b/src/main/resources/assets/unicopia/textures/block/curing_joke.png new file mode 100644 index 0000000000000000000000000000000000000000..1a0359ba187d6db5acf64525fc568becc00c7e0a GIT binary patch literal 5132 zcmeHLc~nzZ8h-(-h_#|?>g-;J63u zH^C;(39hvlj^$5y;7=cd1T>oZQD#fJl2GHAn$$sijG!0{XE0JpU<^SrI0e^NRJC{{ zBQ1{|>4g53iY8OK*<@0Byl%Ug3lPL#IlaP|dN94m8)L^OSG-x(&)S2q4&42IIlp;i zx51^8-kH#G@vQ=dHN0sqVp>$gJy!FLRx zKwbIqEsMEVlCS0UfBMPy%Z{vH_+ePef)3WI#Da!zX55}uomrB7d~`(Z%&(#k{}>ax zt6*lz(Y(EH_uH5k61H~ckeaI>pPYGi?C~5F^@iPdhDM)3EoVd3g|F`)Xwrd+5y!jV zE&8Tm{@y{IUpyaT%(-}eEFc*jP=zW#sUy{kj8 z5%mbtH9@r6B%5Un!@HeoR&aAb?RR?Qgdy?6{T`Oj0g{pf4$);)-P*lRr4$9DYNFPH zSv)2%RZK1Rg7L*^R=zlgHwdcX2@&yr1_C&N#47#HT$hjW8&v^Z299O1Mx_j>NI6E8 z4c3v#?FC9oO{p<7*)J9ls)Pt-yjQR@8A&OP5b(*Unkq>iMx!Y#EL0bgYPZ*+!3_q3 z1|u{CfkF+`SLBjdKkD)gkRgH?Nx;W@MUN!9T}l~~<=pv_QKf?O$|nDu9*dVvD|ZI+aGT(gBtfkSk90#=ahHky)XZy~FVZ}LnaoYsy&^Jd&O+D)+s zl%bZz!X&x*eAzv7l2IkE&j@Z_6qvwJOVI|-Kw>Dy2?9#7m=>kAb{w^9DV-L_w02sr zZv|y``6SlG0~rc}t3`;zQaYfg^%%;MK#x*-_{HJ?NA-5f4ps$_Fp zdnH2&5K7Opgr0!5yn$y?3eb9#Ht2LHO#`?FYsc(*DgY($Op4p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c*Ixzp~ef8#=t1Di`@)t<-icW#rZnj@hcO zMjr_>jJs}6ySC9BoJtHW7tMM#{eYCiTL0+>bQ8;Q)hD?PbDj*}AW$NQlUrZ20@}CP znuuinvW|bgJi z7h(@xIgbFWH`kvun{9O}wXCg6b6|bq%Cp*g@n;?pSMf*92p1oqy}g#2KMUm9)BJB} zIqoqAB=D=8Bl3|ji@jqA?!AqtBC5Ou%FsSdR*A-*rtaZ2`(Qr+-rP4nHHvyAM*OpO zHwK$BSrkVHlF>L~Y1XR?G#_XK>m}KmWedd@1j44dDY|2(4ccUG6<6@ikx#`n_E1om z#3vKIY)`pYOLD6WvDEteOv<2~+bSb1wh$xL!G?{$*{hHqAD80%Au<<~79VZoUd&#p zLz-Y$7RG)z77d+jO=j5MLl=$-;x|U%Wt1B3+Y{w~MP>6v@|)cZh2zdso{rJ(grKJT z=f!=(&5<6U%#Ew0P1PY`e4UoOBx4r>P;I<^4v4{MCjcN>Ob2^E&?ho}D z|KCiq4h5J?fMt%@!N{xp1rD*nrN1{8O1OR<(gv$&{)31AVU=Ej?>ZfHH#-Zhln+XW z=WM0lo{0Z9ofMI+OgR5$o2I@TnnmA`|HA{vVGl@Wug10+^sTIyXvO|h?EViXu)_!s oEAYQx60TTk)&D;}Yor4>K(#DH=d@{+6L9-zYrIg0s@g{XAN{)au>b%7 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/entity/poison_joke/bulb_idle.png b/src/main/resources/assets/unicopia/textures/entity/poison_joke/bulb_idle.png new file mode 100644 index 0000000000000000000000000000000000000000..7fe663ff3245675c5f5c5a5a7b9afd3de490c734 GIT binary patch literal 43186 zcmeFYWmH^2w>H?gyGxM9-QA&q#yx0)ySuvt4<0l~a1ZY8F2OxWAZUQ#GM&6~-#hcI zHS4Z5^Y3=AbIv|hyPm3gYS%95>L^uZSu|u~WB>qwCI<$o0{~DE5ek3^4|y24lv+R@ zGv+#S7IJco07S?OL=y`3uhO3z)PKm(P%r=(h(-kD!iL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fhX>MrvDhE?T|U_f7X;+k-5hM}AI)AxUwokW#}p=}7g3n-=IQ%1mDX@+WIbB@ zl{yr?Ye2>=>+9DRbfGBJcq#bHmb=|YXqJ%~o*4oQjRbg&kfPJAXt5#kWSQ>y#eqD4Y=WUxgxby?{tx~=J;+*xEg!yFk=j}ruJ}~ z6QfX#w!C+}a4u3>i2ST|((!uX&hfZQ-O2wXpW!ilWE}C(C6gT0Jt^V*w({TZ_MYpb zSKeK@a2o{F8u^t?FUx>Xyp?`X?y2C7pZ1*rvCm=EVi#z3M*&BQlws`A#lkK+2c&k- z*2+9Ckt25|2Wxp((0=M!i|7A=B%Cks;srN2c6Dy3Eo=4fs(Bf=0X&tbqrOzebC+h8 z2YM^6Zb9QOeckD#Uv>tWxV>$i`8(#x;BUZCF(L(^Sj4fH!-LA+uB;_s{Lr3bxOjI;O4&4v+8eto+AYp|bx@gQy8Q zfTtl0s&qE?9Z5mhbn)SAD~pWvYz}-@E}t^sGls6GW?BJb_>ltE{L~^jGl2UK)Fogv zzZi~`ZJ6!cyqoh!Srz3eT;_gZHU5M%v+l&;Js9 zxV!Mn@$dzKa;$&NHNvR~qj@>1^(#Gw@9k|im?`8%An`g%{@L2!+GA++r)ScJQ40S7 wvvAA7ccLBf%Xj}4iREyZLjHebIpOz2h8u1~j8+n7XpiZ=qJ~1XoN4g?01?=z>% literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/curing_joke.png b/src/main/resources/assets/unicopia/textures/item/curing_joke.png new file mode 100644 index 0000000000000000000000000000000000000000..1fb7402ad18607c5b1687d902f308a9c8ca269bb GIT binary patch literal 4857 zcmeHLYfuzd7VZH=#Pvm@>tkKok@)WE$Mno}w+s&%go%tn7zF~l_Dpw=9hnEy4Ko@= z#l?WAiLWvk)I?2mHLFpKiDFb1)Kn!JQzmNV0Y+16e8iAw7PXdSZ}$MgZmPDdUH>uE zoqPJ;bH01dcg{V~RAx?3>lZyd8iJsH)^tl2mBM$rL7(?t%`gh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4}`yx?+;%+<@=R6Y1=BUWJ^od<@@=f`WdFve~LNnPk+5@F8cq%PSRo#2ZabGOY|9a;;#9#VfF{&f2WITx#`-Z3$u%suw3qPBZUz3wD0S!gd94iy|()TjB< zx6Q}nxKr=E9TyuNSTj4ANnKi;9lvAQH-_;!2@{sqwf^MTJTksip54p6J?uMLubWf5 uvT}Pt-ppMO(8#3T0}UT%H~eZjp^2?|qx9m@og+a;A#3V%%f2ad%l-w$uAk%p literal 0 HcmV?d00001 From 19831a635f94773c194b5befe9d494a515906e89 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 22:59:58 +0100 Subject: [PATCH 013/104] Added translations and fixed the loot table for some of the doors --- src/main/resources/assets/unicopia/lang/en_us.json | 4 ++++ ...k_stable_door.json => dark_oak_stable_door.json} | 4 ++-- .../data/unicopia/recipes/blocks/cloud_door.json | 13 +++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) rename src/main/resources/data/unicopia/loot_tables/blocks/{darK_oak_stable_door.json => dark_oak_stable_door.json} (82%) create mode 100644 src/main/resources/data/unicopia/recipes/blocks/cloud_door.json diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index d2808a2d..fe458ff4 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -308,6 +308,10 @@ "block.unicopia.cloud_bed": "Cloud Bed", "block.unicopia.cloud_chest": "Cloudsdale Chest", "block.unicopia.cloud_chest.double": "Large Cloudsdale Chest", + "block.unicopia.cloud_door": "Cloud Door", + "block.unicopia.crystal_door": "Crystal Door", + "block.unicopia.stable_door": "Stable Door", + "block.unicopia.dark_oak_stable_door": "Wooden Stable Door", "block.unicopia.oats": "Oats", "block.unicopia.oats_stem": "Oats", diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/darK_oak_stable_door.json b/src/main/resources/data/unicopia/loot_tables/blocks/dark_oak_stable_door.json similarity index 82% rename from src/main/resources/data/unicopia/loot_tables/blocks/darK_oak_stable_door.json rename to src/main/resources/data/unicopia/loot_tables/blocks/dark_oak_stable_door.json index f758c3e2..eb337eb8 100644 --- a/src/main/resources/data/unicopia/loot_tables/blocks/darK_oak_stable_door.json +++ b/src/main/resources/data/unicopia/loot_tables/blocks/dark_oak_stable_door.json @@ -13,14 +13,14 @@ "type": "minecraft:item", "conditions": [ { - "block": "unicopia:darK_oak_stable_door", + "block": "unicopia:dark_oak_stable_door", "condition": "minecraft:block_state_property", "properties": { "half": "lower" } } ], - "name": "unicopia:darK_oak_stable_door" + "name": "unicopia:dark_oak_stable_door" } ], "rolls": 1.0 diff --git a/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json b/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json new file mode 100644 index 00000000..59d66aba --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json @@ -0,0 +1,13 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "##", + "##" + ], + "key": { + "#": [ + { "item": "unicopia:cloud_block" } + ] + }, + "result": { "item": "unicopia:cloud_door", "count": 1 } +} From 5196c9bf17ba71bfa87dc53fa83176fcda690e18 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:01:04 +0100 Subject: [PATCH 014/104] Made curing joke obtainable by earth ponies --- .../ability/EarthPonyGrowAbility.java | 8 ++--- .../unicopia/block/CuringJokeBlock.java | 31 ++++++++++++++++++- .../unicopia/block/UBlocks.java | 2 +- .../entity/mob/IgnimeousBulbEntity.java | 17 ++++++++-- .../loot_tables/blocks/curing_joke.json | 20 ++++++++++++ 5 files changed, 68 insertions(+), 10 deletions(-) create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/curing_joke.json diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index 6d982e43..523e2fc4 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -6,7 +6,6 @@ import com.minelittlepony.unicopia.Race; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.ability.data.Pos; import com.minelittlepony.unicopia.block.UBlocks; -import com.minelittlepony.unicopia.entity.mob.TentacleEntity; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.util.TraceHelper; @@ -85,14 +84,11 @@ public class EarthPonyGrowAbility implements Ability { w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); } w.setBlockState(pos, UBlocks.PLUNDER_VINE_BUD.getDefaultState()); - } else if (w.random.nextInt(5000) == 0 || w.getBlockState(pos).isOf(UBlocks.CURING_JOKE)) { + } else if (w.random.nextInt(5000) == 0) { if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) { FarmlandBlock.setToDirt(null, state, w, pos.down()); } - w.breakBlock(pos, false); - TentacleEntity tentacle = new TentacleEntity(w, pos); - tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); - w.spawnEntity(tentacle); + UBlocks.CURING_JOKE.grow(w, state, pos); } return 1; } diff --git a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java index 73243fd1..5f37ff82 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java @@ -1,16 +1,20 @@ package com.minelittlepony.unicopia.block; +import com.minelittlepony.unicopia.ability.EarthPonyGrowAbility.Growable; +import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; +import com.minelittlepony.unicopia.entity.mob.TentacleEntity; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import net.minecraft.block.BlockState; import net.minecraft.block.FlowerBlock; import net.minecraft.client.util.ParticleUtil; +import net.minecraft.entity.Dismounting; import net.minecraft.entity.effect.StatusEffect; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.random.Random; import net.minecraft.world.World; -class CuringJokeBlock extends FlowerBlock { +public class CuringJokeBlock extends FlowerBlock implements Growable { public CuringJokeBlock(StatusEffect suspiciousStewEffect, int effectDuration, Settings settings) { super(suspiciousStewEffect, effectDuration, settings); } @@ -21,4 +25,29 @@ class CuringJokeBlock extends FlowerBlock { ParticleUtil.spawnParticle(world, pos, random, new MagicParticleEffect(0x3388EE)); } } + + @Override + public boolean grow(World world, BlockState state, BlockPos pos) { + var otherFlowers = BlockPos.streamOutwards(pos, 16, 16, 16) + .filter(p -> world.getBlockState(p).isOf(this)) + .map(BlockPos::toImmutable) + .toList(); + + if (otherFlowers.size() >= 8) { + IgnimeousBulbEntity bulb = new IgnimeousBulbEntity(world); + bulb.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); + + if (Dismounting.canPlaceEntityAt(world, bulb, bulb.getBoundingBox())) { + otherFlowers.forEach(p -> world.removeBlock(p, false)); + world.spawnEntity(bulb); + return true; + } + } + + world.removeBlock(pos, false); + TentacleEntity tentacle = new TentacleEntity(world, pos); + tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); + world.spawnEntity(tentacle); + return true; + } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index 24ebc94d..cd8284da 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -139,7 +139,7 @@ public interface UBlocks { Block PLUNDER_VINE = register("plunder_vine", new ThornBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).ticksRandomly().sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.DESTROY), () -> UBlocks.PLUNDER_VINE_BUD)); Block PLUNDER_VINE_BUD = register("plunder_vine_bud", new ThornBudBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).nonOpaque().ticksRandomly().sounds(BlockSoundGroup.GRASS).pistonBehavior(PistonBehavior.DESTROY), PLUNDER_VINE.getDefaultState())); - Block CURING_JOKE = register("curing_joke", new CuringJokeBlock(UEffects.BUTTER_FINGERS, 7, AbstractBlock.Settings.create().mapColor(MapColor.PALE_PURPLE).noCollision().breakInstantly().sounds(BlockSoundGroup.GRASS).offset(AbstractBlock.OffsetType.XZ).pistonBehavior(PistonBehavior.DESTROY))); + CuringJokeBlock CURING_JOKE = register("curing_joke", new CuringJokeBlock(UEffects.BUTTER_FINGERS, 7, AbstractBlock.Settings.create().mapColor(MapColor.PALE_PURPLE).noCollision().breakInstantly().sounds(BlockSoundGroup.GRASS).offset(AbstractBlock.OffsetType.XZ).pistonBehavior(PistonBehavior.DESTROY))); Block CHITIN = register("chitin", new SnowyBlock(Settings.create().mapColor(MapColor.PALE_PURPLE).hardness(5).requiresTool().ticksRandomly().sounds(BlockSoundGroup.CORAL)), ItemGroups.NATURAL); Block SURFACE_CHITIN = register("surface_chitin", new GrowableBlock(Settings.copy(CHITIN), () -> CHITIN), ItemGroups.NATURAL); diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java index 286f0fad..a13fbdf1 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnimeousBulbEntity.java @@ -11,6 +11,7 @@ import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.entity.player.Pony; +import net.minecraft.block.BlockState; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.MovementType; @@ -120,15 +121,27 @@ public class IgnimeousBulbEntity extends MobEntity { World w = getWorld(); mutable.set(getBlockPos()); mutable.move(offset); - while (w.isAir(mutable.down()) && w.isInBuildLimit(mutable)) { + while (isSpace(w, mutable.down()) && w.isInBuildLimit(mutable)) { mutable.move(Direction.DOWN); } - while (!w.isAir(mutable) && w.isInBuildLimit(mutable)) { + while (!isPosValid(w, mutable) && w.isInBuildLimit(mutable)) { mutable.move(Direction.UP); } + if (w.getBlockState(mutable).isReplaceable()) { + w.breakBlock(mutable, true); + } return mutable.toImmutable(); } + private boolean isPosValid(World w, BlockPos pos) { + return w.isTopSolid(pos.down(), this) && isSpace(w, pos); + } + + private boolean isSpace(World w, BlockPos pos) { + BlockState state = w.getBlockState(pos); + return state.isAir() || state.isReplaceable(); + } + @Override public void remove(RemovalReason reason) { super.remove(reason); diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/curing_joke.json b/src/main/resources/data/unicopia/loot_tables/blocks/curing_joke.json new file mode 100644 index 00000000..7a4cba95 --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/blocks/curing_joke.json @@ -0,0 +1,20 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1.0, + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "unicopia:curing_joke" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file From 2d87fd5099508984d6643ddf0a0b577aba978388 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:01:45 +0100 Subject: [PATCH 015/104] Exclude grass blocks from earth ponies' ability so they aren't always swamped in tall grass every time --- .../minelittlepony/unicopia/ability/EarthPonyGrowAbility.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index 523e2fc4..c7e6493b 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -78,6 +78,10 @@ public class EarthPonyGrowAbility implements Ability { return growable.grow(w, state, pos) ? 1 : 0; } + if (w.getBlockState(pos).isOf(Blocks.GRASS_BLOCK)) { + return 0; + } + if (BoneMealItem.useOnFertilizable(stack, w, pos)) { if (w.random.nextInt(350) == 0) { if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) { From 383cefa9159849c52a0f633e2f936b587b19ed7d Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:11:00 +0100 Subject: [PATCH 016/104] Fix damage message when dying to a tentacle --- .../com/minelittlepony/unicopia/entity/mob/TentacleEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java index 649a033b..d20eb3a7 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java @@ -15,6 +15,7 @@ import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.MovementType; import net.minecraft.entity.damage.DamageSource; +import net.minecraft.entity.damage.DamageTypes; import net.minecraft.entity.data.DataTracker; import net.minecraft.entity.data.TrackedData; import net.minecraft.entity.data.TrackedDataHandlerRegistry; @@ -156,7 +157,7 @@ public class TentacleEntity extends AbstractDecorationEntity { if (isAttacking()) { if (--attackingTicks == 12) { if (target != null) { - target.damage(getDamageSources().generic(), 15); + target.damage(getDamageSources().create(DamageTypes.MOB_ATTACK, this), 15); Vec3d diff = target.getPos().subtract(getPos()); target.takeKnockback(1, diff.x, diff.z); From d4a3a274e2c13e21d9e9f6154df5f0b9d093c2dd Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:19:17 +0100 Subject: [PATCH 017/104] Fixed cloud door recipe --- src/main/resources/data/unicopia/recipes/blocks/cloud_door.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json b/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json index 59d66aba..7d41de39 100644 --- a/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json +++ b/src/main/resources/data/unicopia/recipes/blocks/cloud_door.json @@ -6,7 +6,7 @@ ], "key": { "#": [ - { "item": "unicopia:cloud_block" } + { "item": "unicopia:dense_cloud" } ] }, "result": { "item": "unicopia:cloud_door", "count": 1 } From 0372592a793b33e26fa5ba589a51b6b68ff991cc Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:19:29 +0100 Subject: [PATCH 018/104] Fixed errors loading changeling diets --- .../resources/data/unicopia/diets/races/changeling.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/data/unicopia/diets/races/changeling.json b/src/main/resources/data/unicopia/diets/races/changeling.json index e6255344..8b108468 100644 --- a/src/main/resources/data/unicopia/diets/races/changeling.json +++ b/src/main/resources/data/unicopia/diets/races/changeling.json @@ -46,7 +46,7 @@ "amplifier": 1 }, { - "type": "unicopia:multiply_hunger", + "type": "unicopia:lose_hunger", "multiplier": 0.5 } ] @@ -62,7 +62,7 @@ "effects": [ { "name": "Love Consumption", - "type": "unicopia:clear_love_sickness" + "type": "unicopia:cure_love_sickness" } ] } @@ -81,7 +81,7 @@ }, { "name": "unicopia.affliction.love_sickness", - "type": "unicopia:multiply_hunger", + "type": "unicopia:lose_hunger", "multiplier": 0.5 } ] @@ -122,7 +122,7 @@ "amplifier": 1 }, { - "type": "unicopia:multiply_hunger", + "type": "unicopia:lose_hunger", "multiplier": 0.5 } ] From 073d411e9010d9d81849736ecf99ef5464c1c1ae Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Jan 2024 23:19:43 +0100 Subject: [PATCH 019/104] Fixed errors logged relating to the recipe book --- .../unicopia/item/cloud/CloudShapingRecipe.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudShapingRecipe.java b/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudShapingRecipe.java index c88a5abd..4f12f7db 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudShapingRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudShapingRecipe.java @@ -15,6 +15,11 @@ public class CloudShapingRecipe extends StonecuttingRecipe { super(id, group, input, output); } + @Override + public boolean isIgnoredInRecipeBook() { + return true; + } + @Override public RecipeType getType() { return URecipes.CLOUD_SHAPING; From e572c2c1ea8e6108f023b1accf10988f6a3378bc Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 4 Jan 2024 22:41:27 +0100 Subject: [PATCH 020/104] Added gold root --- .../com/minelittlepony/unicopia/UTags.java | 1 + .../ability/EarthPonyGrowAbility.java | 38 +++++++++++-- .../unicopia/block/UBlocks.java | 6 +++ .../enchantment/ConsumptionEnchantment.java | 3 +- .../unicopia/blockstates/gold_root.json | 12 +++++ .../resources/assets/unicopia/lang/en_us.json | 1 + .../models/block/gold_root_stage0.json | 6 +++ .../models/block/gold_root_stage1.json | 6 +++ .../models/block/gold_root_stage2.json | 6 +++ .../models/block/gold_root_stage3.json | 6 +++ .../textures/block/gold_root_stage0.png | Bin 0 -> 4282 bytes .../textures/block/gold_root_stage1.png | Bin 0 -> 4375 bytes .../textures/block/gold_root_stage2.png | Bin 0 -> 4452 bytes .../textures/block/gold_root_stage3.png | Bin 0 -> 4522 bytes .../tags/blocks/maintains_farmland.json | 3 +- .../loot_tables/blocks/gold_root.json | 51 ++++++++++++++++++ .../blocks/unaffected_by_grow_ability.json | 6 +++ 17 files changed, 138 insertions(+), 7 deletions(-) create mode 100644 src/main/resources/assets/unicopia/blockstates/gold_root.json create mode 100644 src/main/resources/assets/unicopia/models/block/gold_root_stage0.json create mode 100644 src/main/resources/assets/unicopia/models/block/gold_root_stage1.json create mode 100644 src/main/resources/assets/unicopia/models/block/gold_root_stage2.json create mode 100644 src/main/resources/assets/unicopia/models/block/gold_root_stage3.json create mode 100644 src/main/resources/assets/unicopia/textures/block/gold_root_stage0.png create mode 100644 src/main/resources/assets/unicopia/textures/block/gold_root_stage1.png create mode 100644 src/main/resources/assets/unicopia/textures/block/gold_root_stage2.png create mode 100644 src/main/resources/assets/unicopia/textures/block/gold_root_stage3.png create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/gold_root.json create mode 100644 src/main/resources/data/unicopia/tags/blocks/unaffected_by_grow_ability.json diff --git a/src/main/java/com/minelittlepony/unicopia/UTags.java b/src/main/java/com/minelittlepony/unicopia/UTags.java index 91b4fcae..9d4a460b 100644 --- a/src/main/java/com/minelittlepony/unicopia/UTags.java +++ b/src/main/java/com/minelittlepony/unicopia/UTags.java @@ -42,6 +42,7 @@ public interface UTags { TagKey CRYSTAL_HEART_BASE = block("crystal_heart_base"); TagKey CRYSTAL_HEART_ORNAMENT = block("crystal_heart_ornament"); + TagKey UNAFFECTED_BY_GROW_ABILITY = block("unaffected_by_grow_ability"); TagKey POLEARM_MINEABLE = block("mineable/polearm"); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index c7e6493b..b69ebae4 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -1,22 +1,31 @@ package com.minelittlepony.unicopia.ability; import java.util.Optional; +import java.util.function.DoubleSupplier; +import java.util.function.Supplier; import com.minelittlepony.unicopia.Race; +import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.ability.data.Pos; import com.minelittlepony.unicopia.block.UBlocks; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.MagicParticleEffect; +import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.util.TraceHelper; +import com.minelittlepony.unicopia.util.VecHelper; + import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; +import net.minecraft.block.CarrotsBlock; import net.minecraft.block.FarmlandBlock; import net.minecraft.item.BoneMealItem; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; +import net.minecraft.particle.ParticleTypes; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; +import net.minecraft.util.math.Vec3d; import net.minecraft.world.World; /** @@ -61,7 +70,7 @@ public class EarthPonyGrowAbility implements Ability { for (BlockPos pos : BlockPos.iterate( data.pos().add(-2, -2, -2), data.pos().add( 2, 2, 2))) { - count += applySingle(player.asWorld(), player.asWorld().getBlockState(pos), pos); + count += applySingle(player, player.asWorld(), player.asWorld().getBlockState(pos), pos); } if (count > 0) { @@ -70,7 +79,7 @@ public class EarthPonyGrowAbility implements Ability { return true; } - protected int applySingle(World w, BlockState state, BlockPos pos) { + protected int applySingle(Pony player, World w, BlockState state, BlockPos pos) { ItemStack stack = new ItemStack(Items.BONE_MEAL); @@ -78,14 +87,35 @@ public class EarthPonyGrowAbility implements Ability { return growable.grow(w, state, pos) ? 1 : 0; } - if (w.getBlockState(pos).isOf(Blocks.GRASS_BLOCK)) { + if (state.isOf(Blocks.CARROTS)) { + if (state.get(CarrotsBlock.AGE) == CarrotsBlock.MAX_AGE) { + boolean transform = w.random.nextInt(3) == 0; + DoubleSupplier vecComponentFactory = () -> w.random.nextTriangular(0, 0.5); + Supplier posSupplier = () -> pos.toCenterPos().add(VecHelper.supply(vecComponentFactory)); + + for (int i = 0; i < 25; i++) { + ParticleUtils.spawnParticle(w, new MagicParticleEffect(0xFFFF00), posSupplier.get(), Vec3d.ZERO); + if (transform) { + ParticleUtils.spawnParticle(w, ParticleTypes.CLOUD, posSupplier.get(), Vec3d.ZERO); + } + } + + if (transform) { + w.setBlockState(pos, UBlocks.GOLD_ROOT.getDefaultState().with(CarrotsBlock.AGE, CarrotsBlock.MAX_AGE)); + } + + return 5; + } + } + + if (w.getBlockState(pos).isIn(UTags.UNAFFECTED_BY_GROW_ABILITY)) { return 0; } if (BoneMealItem.useOnFertilizable(stack, w, pos)) { if (w.random.nextInt(350) == 0) { if (w.getBlockState(pos.down()).isOf(Blocks.FARMLAND)) { - w.setBlockState(pos.down(), Blocks.DIRT.getDefaultState()); + FarmlandBlock.setToDirt(null, state, w, pos.down()); } w.setBlockState(pos, UBlocks.PLUNDER_VINE_BUD.getDefaultState()); } else if (w.random.nextInt(5000) == 0) { diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index cd8284da..ca6726e9 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -140,6 +140,12 @@ public interface UBlocks { Block PLUNDER_VINE = register("plunder_vine", new ThornBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).ticksRandomly().sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.DESTROY), () -> UBlocks.PLUNDER_VINE_BUD)); Block PLUNDER_VINE_BUD = register("plunder_vine_bud", new ThornBudBlock(Settings.create().mapColor(MapColor.DARK_CRIMSON).hardness(1).nonOpaque().ticksRandomly().sounds(BlockSoundGroup.GRASS).pistonBehavior(PistonBehavior.DESTROY), PLUNDER_VINE.getDefaultState())); CuringJokeBlock CURING_JOKE = register("curing_joke", new CuringJokeBlock(UEffects.BUTTER_FINGERS, 7, AbstractBlock.Settings.create().mapColor(MapColor.PALE_PURPLE).noCollision().breakInstantly().sounds(BlockSoundGroup.GRASS).offset(AbstractBlock.OffsetType.XZ).pistonBehavior(PistonBehavior.DESTROY))); + Block GOLD_ROOT = register("gold_root", new CarrotsBlock(AbstractBlock.Settings.create().mapColor(MapColor.GOLD).noCollision().ticksRandomly().breakInstantly().sounds(BlockSoundGroup.CROP).pistonBehavior(PistonBehavior.DESTROY)) { + @Override + protected ItemConvertible getSeedsItem() { + return Items.GOLDEN_CARROT; + } + }); Block CHITIN = register("chitin", new SnowyBlock(Settings.create().mapColor(MapColor.PALE_PURPLE).hardness(5).requiresTool().ticksRandomly().sounds(BlockSoundGroup.CORAL)), ItemGroups.NATURAL); Block SURFACE_CHITIN = register("surface_chitin", new GrowableBlock(Settings.copy(CHITIN), () -> CHITIN), ItemGroups.NATURAL); diff --git a/src/main/java/com/minelittlepony/unicopia/item/enchantment/ConsumptionEnchantment.java b/src/main/java/com/minelittlepony/unicopia/item/enchantment/ConsumptionEnchantment.java index 547710c0..9976f03b 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/enchantment/ConsumptionEnchantment.java +++ b/src/main/java/com/minelittlepony/unicopia/item/enchantment/ConsumptionEnchantment.java @@ -19,7 +19,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.server.world.ServerWorld; import net.minecraft.sound.SoundCategory; import net.minecraft.util.math.BlockPos; -import net.minecraft.util.math.Vec3d; import net.minecraft.world.World; public class ConsumptionEnchantment extends SimpleEnchantment { @@ -44,7 +43,7 @@ public class ConsumptionEnchantment extends SimpleEnchantment { Block.getDroppedStacks(state, world, pos, blockEntity, entity, tool).forEach(s -> { world.playSound(null, pos, USounds.ENCHANTMENT_CONSUMPTION_CONSUME, SoundCategory.BLOCKS, 0.05F, (float)world.random.nextTriangular(0.6F, 0.2F)); - ExperienceOrbEntity.spawn(world, Vec3d.ofCenter(pos).add(VecHelper.supply(vecComponentFactory)), s.getCount()); + ExperienceOrbEntity.spawn(world, pos.toCenterPos().add(VecHelper.supply(vecComponentFactory)), s.getCount()); UCriteria.USE_CONSUMPTION.trigger(entity); }); state.onStacksDropped(world, pos, tool, true); diff --git a/src/main/resources/assets/unicopia/blockstates/gold_root.json b/src/main/resources/assets/unicopia/blockstates/gold_root.json new file mode 100644 index 00000000..6791a03a --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/gold_root.json @@ -0,0 +1,12 @@ +{ + "variants": { + "age=0": { "model": "unicopia:block/gold_root_stage0" }, + "age=1": { "model": "unicopia:block/gold_root_stage0" }, + "age=2": { "model": "unicopia:block/gold_root_stage1" }, + "age=3": { "model": "unicopia:block/gold_root_stage1" }, + "age=4": { "model": "unicopia:block/gold_root_stage2" }, + "age=5": { "model": "unicopia:block/gold_root_stage2" }, + "age=6": { "model": "unicopia:block/gold_root_stage2" }, + "age=7": { "model": "unicopia:block/gold_root_stage3" } + } +} diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index fe458ff4..3dc63351 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -247,6 +247,7 @@ "block.unicopia.apple_pie": "Apple Pie", "block.unicopia.weather_vane": "Weather Vane", "block.unicopia.curing_joke": "Curing Joke", + "block.unicopia.gold_root": "Gold Root", "block.unicopia.mango": "Mango", "block.unicopia.mango_leaves": "Mango Leaves", "block.unicopia.mango_sapling": "Mango Sapling", diff --git a/src/main/resources/assets/unicopia/models/block/gold_root_stage0.json b/src/main/resources/assets/unicopia/models/block/gold_root_stage0.json new file mode 100644 index 00000000..8f0b22cd --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/gold_root_stage0.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/crop", + "textures": { + "crop": "unicopia:block/gold_root_stage0" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/gold_root_stage1.json b/src/main/resources/assets/unicopia/models/block/gold_root_stage1.json new file mode 100644 index 00000000..5315c2b8 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/gold_root_stage1.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/crop", + "textures": { + "crop": "unicopia:block/gold_root_stage1" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/gold_root_stage2.json b/src/main/resources/assets/unicopia/models/block/gold_root_stage2.json new file mode 100644 index 00000000..cf262db5 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/gold_root_stage2.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/crop", + "textures": { + "crop": "unicopia:block/gold_root_stage2" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/gold_root_stage3.json b/src/main/resources/assets/unicopia/models/block/gold_root_stage3.json new file mode 100644 index 00000000..790fd135 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/gold_root_stage3.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/crop", + "textures": { + "crop": "unicopia:block/gold_root_stage3" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage0.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage0.png new file mode 100644 index 0000000000000000000000000000000000000000..54ec7e1cc8401d49115084fbf5a2d787c9863620 GIT binary patch literal 4282 zcmeHKYj6`)6yDHEuv$TBYZaAsd4rqXY&Nf*hSD~H1V|}uf$&h-?B1jcNj8ryNk9}) z-XbcFJf`xJ;Rg;d$_ywi2xEN=9Y^p1jw6-97d{xOI3o-*t!FoBN!1yrGy1Q|+}yM0 zp7Y&vzI*PO?7EujDTM|17ho7x=y5x1VIHE6K?C7;__Zz`rZdRr33xo?u|eQalWYtC;_v>!c=I1~jmX%)yd2H5Z0LVt&0IU$^CKwFJMKJG& zA+5>mbpmAdGf4ZoK~j;s=P4d<4bB*hw83Nnf0|)A+Q`u?&M+KJbF>w#b-Qjwq#|8! z6g+^kN~)@=@l;je(YPFtLI}fBP0L?&xZkZQS~cU-^|j;g3Ji&TSo7*Hdx(|O4piPf z{@HoEXX!U@>8#lN%ElD&y0`V_OO+c+sj~JD z(tkYA-aL57_Tqi>ciVOiJF=~M^xjZp)=$e_*u!hLx_tcXaP=#79S06A`)S{?4Zl9p zb)x+B$J^%LImq1_n{5hTD!lZgxB30_PM^&GGZbM;s`n{A?{rR(!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YBCVUmn8Su0r_5tm z)~*ssYL`MlVkU(oYQ&NjCtzik#5xoWVdx&&a_!U0zflSSmJOKLfR#qrR!Z}djiUoB zZ=uf|sQuAL#!KFIuAm56*THJ;V>h)t)6= zege(dxclKGLHuF7I&{Rgwqj7~6_3}YKd;LzBF28(>)QgVJsxL;&wBjQ24mi#@&eZv z>sng&mRxX7J~!cUf9~{6qtb!=XA4)iRIa1ftbMU~evSW$*XJp%+siMbZP(trzOsEm z=YeO>8xFnpkImgTueyS&HcE%)h+Y0ih`lqT6YY~`5XUcle#=ou$1z*;tgCYP% zpV!G9I#y_RbGI&e*(|ibaxt}LLe2@FnKAO*7x;;j>u&UbL0pSxKSC#XP%12lK2g8or^8f$< literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage2.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage2.png new file mode 100644 index 0000000000000000000000000000000000000000..af5f7f914d60e393c3bf1bad1ac7b0507b594d23 GIT binary patch literal 4452 zcmeHKYj6|S6<&d3VaLW!!QceiEFuK#WVNe@EoozcZArEiBIAbu#ilK*-MjLFUY6FD zY+{mlAV3MPk_4RE;Zce^q?Bn*(=-rXacBeSq?8at8w{lnAT5OiW@?8S=-HJl+ihk# zo@xGBn(KS^-tT<(-0z-ytX)@GQJ$IpNIHgLnGUuZm_|9(}7F!p!58$%7BoIAcSJLUP}j&F8M{`Q`p zyWcNepGy|?{kr*I)B6r(Wxt-Yw{Dkl=d`!lD<0qD3oQJs)rQSjyWQqy7Wpe)tGTuR zz>3fIzO(-GC+{Db_vUv`*JVtw_cSch`LASNx$Zo4vU!J_n`N6hclNgo*V}qFEm>?{ z`R66#vzOav(Xw7#eMXY0?Y`B^oy-%xE__D;z_=_l-l+f%&nR(o%(_+o0=7bj0? zdxZ`7I@^;aFQw!(zEbt#hTI#ec~gEbzH#gGtV1i?m*oHI)Y8AWi*xA7y;=8^N4?8) z9-n=9kA2*==7x?kFn|y?ef)c6RZthu_xH_m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jE)dOXEjF=@E6w zHE9?2x2%>Q{@ifJ|2q>r3H|0zo_P0WTJXbGq^aDrsdH{g6rbO_=TM}=9#Z>NLf|Zjw sGc{uFyT^ByHkP-X(=XWF6E$+;xn@Vl?y|f>P!vIoNoj^(C2X(wHyL&_egFUf literal 0 HcmV?d00001 diff --git a/src/main/resources/data/minecraft/tags/blocks/maintains_farmland.json b/src/main/resources/data/minecraft/tags/blocks/maintains_farmland.json index b8408162..0e142e00 100644 --- a/src/main/resources/data/minecraft/tags/blocks/maintains_farmland.json +++ b/src/main/resources/data/minecraft/tags/blocks/maintains_farmland.json @@ -7,6 +7,7 @@ "unicopia:oats_stem", "unicopia:green_apple_sprout", "unicopia:sweet_apple_sprout", - "unicopia:sour_apple_sprout" + "unicopia:sour_apple_sprout", + "unicopia:gold_root" ] } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/gold_root.json b/src/main/resources/data/unicopia/loot_tables/blocks/gold_root.json new file mode 100644 index 00000000..6bfe9e77 --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/blocks/gold_root.json @@ -0,0 +1,51 @@ +{ + "type": "minecraft:block", + "functions": [ + { + "function": "minecraft:explosion_decay" + } + ], + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "minecraft:golden_carrot" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "age": "7" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:golden_carrot" + } + ], + "rolls": 1.0 + } + ], + "random_sequence": "minecraft:blocks/carrots" +} diff --git a/src/main/resources/data/unicopia/tags/blocks/unaffected_by_grow_ability.json b/src/main/resources/data/unicopia/tags/blocks/unaffected_by_grow_ability.json new file mode 100644 index 00000000..06c918c6 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/blocks/unaffected_by_grow_ability.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "minecraft:grass_block" + ] +} From 0e40c10c437e873eb8e41020593978caa2babd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A8=AA=E5=88=80=E5=A4=A9=E7=AC=91=EF=BC=88Knife=20smile?= =?UTF-8?q?=EF=BC=89?= <131762804+Cryghast@users.noreply.github.com> Date: Sat, 6 Jan 2024 01:36:19 +0800 Subject: [PATCH 021/104] update zhcn json (#232) * update zhcn json * ignimeous --- src/main/resources/assets/unicopia/lang/zh_cn.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index bdbed780..3df54786 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -114,6 +114,7 @@ "item.unicopia.pebbles": "石籽", "item.unicopia.rock": "石块", "item.unicopia.weird_rock": "怪石块", + "item.unicopia.tom": "Tom", "item.unicopia.rock_stew": "炖石头", "item.unicopia.rock_candy": "石头糖", "item.unicopia.salt_cube": "盐块", @@ -245,6 +246,8 @@ "block.unicopia.palm_hanging_sign": "悬挂式棕榈木告示牌", "block.unicopia.apple_pie": "苹果派", "block.unicopia.weather_vane": "风向标", + "block.unicopia.curing_joke": "疗玩笑", + "block.unicopia.gold_root": "黄金根", "block.unicopia.mango": "芒果", "block.unicopia.mango_leaves": "芒果树叶", "block.unicopia.mango_sapling": "芒果树苗", @@ -306,6 +309,10 @@ "block.unicopia.cloud_bed": "云床", "block.unicopia.cloud_chest": "云中箱", "block.unicopia.cloud_chest.double": "大云中箱", + "block.unicopia.cloud_door": "云中门", + "block.unicopia.crystal_door": "水晶门", + "block.unicopia.stable_door": "马厩门", + "block.unicopia.dark_oak_stable_door": "木马厩门", "block.unicopia.oats": "燕麦", "block.unicopia.oats_stem": "燕麦", @@ -321,6 +328,8 @@ "entity.unicopia.sombra.taunt": "用在我身上不好使!", "entity.unicopia.storm_cloud": "暴风云", "entity.unicopia.crystal_shards": "水晶尖刺", + "entity.unicopia.ignimeous_vine": "无耻藤", + "entity.unicopia.ignimeous_bulb": "无耻球茎", "player.reachDistance": "可触距离", "player.miningSpeed": "挖掘速度", From 1c751aca0e3a5ba1cc9043574b588c0ac125f0e4 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 5 Jan 2024 18:41:20 +0100 Subject: [PATCH 022/104] Rename ignominious bulb and vine --- .../unicopia/block/CuringJokeBlock.java | 4 ++-- .../minelittlepony/unicopia/client/URenderers.java | 2 +- ...yModel.java => IgnominiousBulbEntityModel.java} | 8 ++++---- ...rer.java => IgnominiousBulbEntityRenderer.java} | 14 +++++++------- ...sBulbEntity.java => IgnominiousBulbEntity.java} | 10 +++++----- .../unicopia/entity/mob/UEntities.java | 6 +++--- src/main/resources/assets/unicopia/lang/en_us.json | 4 ++-- src/main/resources/assets/unicopia/lang/zh_cn.json | 4 ++-- 8 files changed, 26 insertions(+), 26 deletions(-) rename src/main/java/com/minelittlepony/unicopia/client/render/entity/{IgnimeousBulbEntityModel.java => IgnominiousBulbEntityModel.java} (92%) rename src/main/java/com/minelittlepony/unicopia/client/render/entity/{IgnimeousBulbEntityRenderer.java => IgnominiousBulbEntityRenderer.java} (66%) rename src/main/java/com/minelittlepony/unicopia/entity/mob/{IgnimeousBulbEntity.java => IgnominiousBulbEntity.java} (94%) diff --git a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java index 5f37ff82..8118b1d9 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java @@ -1,7 +1,7 @@ package com.minelittlepony.unicopia.block; import com.minelittlepony.unicopia.ability.EarthPonyGrowAbility.Growable; -import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; +import com.minelittlepony.unicopia.entity.mob.IgnominiousBulbEntity; import com.minelittlepony.unicopia.entity.mob.TentacleEntity; import com.minelittlepony.unicopia.particle.MagicParticleEffect; @@ -34,7 +34,7 @@ public class CuringJokeBlock extends FlowerBlock implements Growable { .toList(); if (otherFlowers.size() >= 8) { - IgnimeousBulbEntity bulb = new IgnimeousBulbEntity(world); + IgnominiousBulbEntity bulb = new IgnominiousBulbEntity(world); bulb.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); if (Dismounting.canPlaceEntityAt(world, bulb, bulb.getBoundingBox())) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 6de73e74..98046073 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -98,7 +98,7 @@ public interface URenderers { EntityRendererRegistry.register(UEntities.FRIENDLY_CREEPER, FriendlyCreeperEntityRenderer::new); EntityRendererRegistry.register(UEntities.LOOT_BUG, LootBugEntityRenderer::new); EntityRendererRegistry.register(UEntities.TENTACLE, TentacleEntityRenderer::new); - EntityRendererRegistry.register(UEntities.IGNIMEOUS_BULB, IgnimeousBulbEntityRenderer::new); + EntityRendererRegistry.register(UEntities.IGNOMINIOUS_BULB, IgnominiousBulbEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.WEATHER_VANE, WeatherVaneBlockEntityRenderer::new); BlockEntityRendererFactories.register(UBlockEntities.FANCY_BED, CloudBedBlockEntityRenderer::new); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java similarity index 92% rename from src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java rename to src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java index 9f5e6e7a..186d2359 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java @@ -1,6 +1,6 @@ package com.minelittlepony.unicopia.client.render.entity; -import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; +import com.minelittlepony.unicopia.entity.mob.IgnominiousBulbEntity; import net.minecraft.client.model.Dilation; import net.minecraft.client.model.ModelData; @@ -15,14 +15,14 @@ import net.minecraft.client.render.entity.model.EntityModel; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.MathHelper; -public class IgnimeousBulbEntityModel extends EntityModel { +public class IgnominiousBulbEntityModel extends EntityModel { private final ModelPart part; private final ModelPart head; private final ModelPart leaves; - public IgnimeousBulbEntityModel(ModelPart root) { + public IgnominiousBulbEntityModel(ModelPart root) { super(RenderLayer::getEntityTranslucent); this.part = root; head = root.getChild("head"); @@ -54,7 +54,7 @@ public class IgnimeousBulbEntityModel extends EntityModel { } @Override - public void setAngles(IgnimeousBulbEntity entity, float limbSwing, float limbSwingAmount, float tickDelta, float yaw, float pitch) { + public void setAngles(IgnominiousBulbEntity entity, float limbSwing, float limbSwingAmount, float tickDelta, float yaw, float pitch) { float age = entity.age + tickDelta; diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityRenderer.java similarity index 66% rename from src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java rename to src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityRenderer.java index 8315cc12..4bcb9484 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnimeousBulbEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityRenderer.java @@ -1,7 +1,7 @@ package com.minelittlepony.unicopia.client.render.entity; import com.minelittlepony.unicopia.Unicopia; -import com.minelittlepony.unicopia.entity.mob.IgnimeousBulbEntity; +import com.minelittlepony.unicopia.entity.mob.IgnominiousBulbEntity; import net.minecraft.client.render.OverlayTexture; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.EntityRenderer; @@ -9,19 +9,19 @@ import net.minecraft.client.render.entity.EntityRendererFactory; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.Identifier; -public class IgnimeousBulbEntityRenderer extends EntityRenderer { +public class IgnominiousBulbEntityRenderer extends EntityRenderer { private static final Identifier IDLE_TEXTURE = Unicopia.id("textures/entity/poison_joke/bulb_idle.png"); private static final Identifier ANGRY_TEXTURE = Unicopia.id("textures/entity/poison_joke/bulb_angry.png"); - private final IgnimeousBulbEntityModel model; + private final IgnominiousBulbEntityModel model; - public IgnimeousBulbEntityRenderer(EntityRendererFactory.Context context) { + public IgnominiousBulbEntityRenderer(EntityRendererFactory.Context context) { super(context); - model = new IgnimeousBulbEntityModel(IgnimeousBulbEntityModel.getTexturedModelData().createModel()); + model = new IgnominiousBulbEntityModel(IgnominiousBulbEntityModel.getTexturedModelData().createModel()); } @Override - public void render(IgnimeousBulbEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) { + public void render(IgnominiousBulbEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertices, int light) { matrices.push(); matrices.scale(-1, -1, 1); matrices.translate(0, -1.5F, 0); @@ -33,7 +33,7 @@ public class IgnimeousBulbEntityRenderer extends EntityRenderer ANGRY = DataTracker.registerData(IgnimeousBulbEntity.class, TrackedDataHandlerRegistry.BOOLEAN); +public class IgnominiousBulbEntity extends MobEntity { + private static final TrackedData ANGRY = DataTracker.registerData(IgnominiousBulbEntity.class, TrackedDataHandlerRegistry.BOOLEAN); private static final List TENTACLE_OFFSETS = List.of( new BlockPos(-3, 0, -3), new BlockPos(0, 0, -4), new BlockPos(3, 0, -3), new BlockPos(-4, 0, 0), new BlockPos(4, 0, 0), @@ -40,12 +40,12 @@ public class IgnimeousBulbEntity extends MobEntity { @Nullable private Map tentacles; - public IgnimeousBulbEntity(EntityType type, World world) { + public IgnominiousBulbEntity(EntityType type, World world) { super(type, world); } - public IgnimeousBulbEntity(World world) { - super(UEntities.IGNIMEOUS_BULB, world); + public IgnominiousBulbEntity(World world) { + super(UEntities.IGNOMINIOUS_BULB, world); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java index 92a8dab8..49904028 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java @@ -67,10 +67,10 @@ public interface UEntities { EntityType LOOT_BUG = register("loot_bug", FabricEntityTypeBuilder.create(SpawnGroup.MONSTER, LootBugEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(0.8F, 0.6F))); - EntityType TENTACLE = register("ignimeous_vine", FabricEntityTypeBuilder.create(SpawnGroup.MISC, TentacleEntity::new) + EntityType TENTACLE = register("ignominious_vine", FabricEntityTypeBuilder.create(SpawnGroup.MISC, TentacleEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(0.8F, 0.8F))); - EntityType IGNIMEOUS_BULB = register("ignimeous_bulb", FabricEntityTypeBuilder.create(SpawnGroup.MISC, IgnimeousBulbEntity::new) + EntityType IGNOMINIOUS_BULB = register("ignominious_bulb", FabricEntityTypeBuilder.create(SpawnGroup.MISC, IgnominiousBulbEntity::new) .trackRangeChunks(8) .dimensions(EntityDimensions.fixed(3, 2))); @@ -87,7 +87,7 @@ public interface UEntities { FabricDefaultAttributeRegistry.register(SOMBRA, SombraEntity.createMobAttributes()); FabricDefaultAttributeRegistry.register(FRIENDLY_CREEPER, FriendlyCreeperEntity.createCreeperAttributes()); FabricDefaultAttributeRegistry.register(LOOT_BUG, LootBugEntity.createSilverfishAttributes()); - FabricDefaultAttributeRegistry.register(IGNIMEOUS_BULB, IgnimeousBulbEntity.createMobAttributes()); + FabricDefaultAttributeRegistry.register(IGNOMINIOUS_BULB, IgnominiousBulbEntity.createMobAttributes()); if (!Unicopia.getConfig().disableButterflySpawning.get()) { final Predicate butterflySpawnable = BiomeSelectors.foundInOverworld() diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 3dc63351..87ec41e1 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -328,8 +328,8 @@ "entity.unicopia.sombra.taunt": "That's not going to work on me!", "entity.unicopia.storm_cloud": "Storm Cloud", "entity.unicopia.crystal_shards": "Crystal Shards", - "entity.unicopia.ignimeous_vine": "Ignimeous Vine", - "entity.unicopia.ignimeous_bulb": "Ignimeous Bulb", + "entity.unicopia.ignominious_vine": "Ignominious Vine", + "entity.unicopia.ignominious_bulb": "Ignominious Bulb", "player.reachDistance": "Reach Distance", "player.miningSpeed": "Mining Speed", diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 3df54786..0e5446b8 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -328,8 +328,8 @@ "entity.unicopia.sombra.taunt": "用在我身上不好使!", "entity.unicopia.storm_cloud": "暴风云", "entity.unicopia.crystal_shards": "水晶尖刺", - "entity.unicopia.ignimeous_vine": "无耻藤", - "entity.unicopia.ignimeous_bulb": "无耻球茎", + "entity.unicopia.ignominious_vine": "无耻藤", + "entity.unicopia.ignominious_bulb": "无耻球茎", "player.reachDistance": "可触距离", "player.miningSpeed": "挖掘速度", From ddd217c53d64abcfc1694b841d2058b0e0a5a2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Sun, 14 Jan 2024 19:51:46 +0000 Subject: [PATCH 023/104] Dehydration compat --- .../hydration_items/unicopia_food.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/resources/data/dehydration/hydration_items/unicopia_food.json diff --git a/src/main/resources/data/dehydration/hydration_items/unicopia_food.json b/src/main/resources/data/dehydration/hydration_items/unicopia_food.json new file mode 100644 index 00000000..119164ea --- /dev/null +++ b/src/main/resources/data/dehydration/hydration_items/unicopia_food.json @@ -0,0 +1,24 @@ +{ + "1": { + "replace": false, + "items": [ + "unicopia:banana", + "unicopia:rotten_apple" + ] + }, + "2": { + "replace": false, + "items": [ + "unicopia:green_apple", + "unicopia:sweet_apple", + "unicopia:sour_apple", + "unicopia:mango" + ] + }, + "3": { + "replace": false, + "items": [ + "unicopia:pineapple" + ] + } +} From facbbe2d269c03ac51c7f19e3f02c29162adad5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Sun, 14 Jan 2024 20:06:19 +0000 Subject: [PATCH 024/104] Drink, soup and etc. --- .../hydration_items/unicopia_food.json | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/resources/data/dehydration/hydration_items/unicopia_food.json b/src/main/resources/data/dehydration/hydration_items/unicopia_food.json index 119164ea..e9347cb6 100644 --- a/src/main/resources/data/dehydration/hydration_items/unicopia_food.json +++ b/src/main/resources/data/dehydration/hydration_items/unicopia_food.json @@ -12,13 +12,29 @@ "unicopia:green_apple", "unicopia:sweet_apple", "unicopia:sour_apple", - "unicopia:mango" + "unicopia:mango", + "unicopia:cider", + "unicopia:love_bottle", + "unicopia:love_mug" ] }, "3": { "replace": false, "items": [ - "unicopia:pineapple" + "unicopia:pineapple", + "unicopia:rock_stew" + ] + }, + "4": { + "replace": false, + "items": [ + "unicopia:love_bucket" + ] + }, + "12": { + "replace": false, + "items": [ + "unicopia:juice" ] } } From 0ca19ba07c499a56b81c5eda69395360a85b71d5 Mon Sep 17 00:00:00 2001 From: LingVarr Date: Mon, 15 Jan 2024 23:38:22 +1100 Subject: [PATCH 025/104] Update ru_ru.json --- src/main/resources/assets/unicopia/lang/ru_ru.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/resources/assets/unicopia/lang/ru_ru.json b/src/main/resources/assets/unicopia/lang/ru_ru.json index b151cf02..1e626a2f 100644 --- a/src/main/resources/assets/unicopia/lang/ru_ru.json +++ b/src/main/resources/assets/unicopia/lang/ru_ru.json @@ -246,6 +246,8 @@ "block.unicopia.palm_hanging_sign": "Пальмовая подвесная табличка", "block.unicopia.apple_pie": "Яблочный пирог", "block.unicopia.weather_vane": "Флюгер", + "block.unicopia.curing_joke": "Лечащая шутка", + "block.unicopia.gold_root": "Золотой корень", "block.unicopia.mango": "Манго", "block.unicopia.mango_leaves": "Листья мангового дерева", "block.unicopia.mango_sapling": "Саженец мангового дерева", @@ -307,6 +309,10 @@ "block.unicopia.cloud_bed": "Кровать из облака", "block.unicopia.cloud_chest": "Клаудсдейльский сундук", "block.unicopia.cloud_chest.double": "Большой клаудсдейльский сундук", + "block.unicopia.cloud_door": "Облачная дверь", + "block.unicopia.crystal_door": "Кристальная дверь", + "block.unicopia.stable_door": "Дверь конюшни", + "block.unicopia.dark_oak_stable_door": "Деревянная дверь конюшни", "block.unicopia.oats": "Овёс", "block.unicopia.oats_stem": "Овёс", @@ -322,6 +328,8 @@ "entity.unicopia.sombra.taunt": "На меня это не подействует!", "entity.unicopia.storm_cloud": "Штормовое облако", "entity.unicopia.crystal_shards": "Кристальные осколки", + "entity.unicopia.ignominious_vine": "Позорная лоза", + "entity.unicopia.ignominious_bulb": "Позорная лампочка", "player.reachDistance": "Расстояние до цели", "player.miningSpeed": "Скорость добычи", @@ -832,7 +840,7 @@ "enchantment.unicopia.heavy": "Тяжесть", "enchantment.unicopia.herds": "Стада", "enchantment.unicopia.want_it_need_it": "Хочу это, нужно это", - "enchantment.unicopia.poisoned_joke": "Отравленная шутка", + "enchantment.unicopia.poisoned_joke": "Ядовитая шутка", "enchantment.unicopia.stressed": "Напряжённость", "enchantment.unicopia.heart_bound": "Связанный сердцем", "enchantment.unicopia.consumption": "Потребление", From 144f00c2073aa10f85d3119ea5b2bba137154ddd Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 15 Jan 2024 20:25:07 +0000 Subject: [PATCH 026/104] The Ignominious Bulb now grows from a sprout when first summoned and will no longer lose its arms --- .../unicopia/block/CuringJokeBlock.java | 22 +- .../entity/IgnominiousBulbEntityModel.java | 10 +- .../entity/IgnominiousBulbEntityRenderer.java | 2 +- .../spell/SpellEffectsRenderDispatcher.java | 3 +- .../entity/mob/IgnominiousBulbEntity.java | 202 +++++++++++++++++- .../unicopia/entity/mob/TentacleEntity.java | 14 +- 6 files changed, 224 insertions(+), 29 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java index 8118b1d9..61658a29 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/CuringJokeBlock.java @@ -2,7 +2,6 @@ package com.minelittlepony.unicopia.block; import com.minelittlepony.unicopia.ability.EarthPonyGrowAbility.Growable; import com.minelittlepony.unicopia.entity.mob.IgnominiousBulbEntity; -import com.minelittlepony.unicopia.entity.mob.TentacleEntity; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import net.minecraft.block.BlockState; @@ -33,21 +32,16 @@ public class CuringJokeBlock extends FlowerBlock implements Growable { .map(BlockPos::toImmutable) .toList(); - if (otherFlowers.size() >= 8) { - IgnominiousBulbEntity bulb = new IgnominiousBulbEntity(world); - bulb.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); + IgnominiousBulbEntity bulb = new IgnominiousBulbEntity(world); + bulb.setBaby(true); + bulb.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); - if (Dismounting.canPlaceEntityAt(world, bulb, bulb.getBoundingBox())) { - otherFlowers.forEach(p -> world.removeBlock(p, false)); - world.spawnEntity(bulb); - return true; - } + if (Dismounting.canPlaceEntityAt(world, bulb, bulb.getBoundingBox())) { + otherFlowers.forEach(p -> world.breakBlock(p, false)); + world.spawnEntity(bulb); + return true; } - world.removeBlock(pos, false); - TentacleEntity tentacle = new TentacleEntity(world, pos); - tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, 0, 0); - world.spawnEntity(tentacle); - return true; + return false; } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java index 186d2359..b8bb4c20 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/IgnominiousBulbEntityModel.java @@ -57,6 +57,13 @@ public class IgnominiousBulbEntityModel extends EntityModel ANGRY = DataTracker.registerData(IgnominiousBulbEntity.class, TrackedDataHandlerRegistry.BOOLEAN); + private static final TrackedData AGE = DataTracker.registerData(IgnominiousBulbEntity.class, TrackedDataHandlerRegistry.INTEGER); + private static final int BABY_AGE = PassiveEntity.BABY_AGE; + private static final int HAPPY_TICKS = 40; private static final List TENTACLE_OFFSETS = List.of( new BlockPos(-3, 0, -3), new BlockPos(0, 0, -4), new BlockPos(3, 0, -3), new BlockPos(-4, 0, 0), new BlockPos(4, 0, 0), @@ -40,6 +60,10 @@ public class IgnominiousBulbEntity extends MobEntity { @Nullable private Map tentacles; + private int prevAge; + private int happyTicks; + private int angryTicks; + public IgnominiousBulbEntity(EntityType type, World world) { super(type, world); } @@ -52,6 +76,29 @@ public class IgnominiousBulbEntity extends MobEntity { protected void initDataTracker() { super.initDataTracker(); dataTracker.startTracking(ANGRY, false); + dataTracker.startTracking(AGE, 0); + } + + @Override + public boolean isBaby() { + return getAge() < 0; + } + + @Override + public void setBaby(boolean baby) { + setAge(BABY_AGE); + } + + protected int getAge() { + return dataTracker.get(AGE); + } + + protected void setAge(int age) { + dataTracker.set(AGE, age); + } + + public float getScale(float tickDelta) { + return Math.max(0.2F, 1 - (MathHelper.clamp(MathHelper.lerp(tickDelta, prevAge, getAge()), BABY_AGE, 0F) / BABY_AGE)); } public boolean isAngry() { @@ -59,7 +106,56 @@ public class IgnominiousBulbEntity extends MobEntity { } public void setAngry(boolean angry) { - dataTracker.set(ANGRY, angry); + if (angry != isAngry()) { + dataTracker.set(ANGRY, angry); + } + } + + public void setAngryFor(int angryTicks) { + this.angryTicks = angryTicks; + } + + @Override + protected ActionResult interactMob(PlayerEntity player, Hand hand) { + + ItemStack stack = player.getStackInHand(hand); + if (isBaby() && stack.isOf(Items.BONE_MEAL)) { + if (!player.isCreative()) { + stack.decrement(1); + } + growUp(10); + if (!getWorld().isClient) { + getWorld().syncWorldEvent(WorldEvents.BONE_MEAL_USED, getBlockPos(), 0); + } + return ActionResult.SUCCESS; + } + + return ActionResult.PASS; + } + + @Override + protected void onPlayerSpawnedChild(PlayerEntity player, MobEntity child) { + Vec3d center = getPos(); + Supplier offset = VecHelper.supplier(() -> (getWorld().random.nextBoolean() ? 1 : -1) * 3); + setPosition(center.add(offset.get().multiply(1, 0, 1))); + child.setPosition(center.add(offset.get().multiply(1, 0, 1))); + } + + @Override + public void setPosition(double x, double y, double z) { + Vec3d change = new Vec3d(x, y, z).subtract(getPos()); + super.setPosition(x, y, z); + getTentacles().values().forEach(tentacle -> { + tentacle.setPosition(tentacle.getPos().add(change)); + }); + } + + public void growUp(int age) { + int currentAge = getAge(); + if (currentAge < 0) { + setAge((age * 20) + currentAge); + happyTicks = HAPPY_TICKS; + } } @Override @@ -68,20 +164,27 @@ public class IgnominiousBulbEntity extends MobEntity { var center = new BlockPos.Mutable(); var tentacles = getTentacles(); - TENTACLE_OFFSETS.forEach(offset -> { - tentacles.compute(adjustForTerrain(center, offset), this::updateTentacle); - }); + if (!isBaby() && !firstUpdate) { + TENTACLE_OFFSETS.forEach(offset -> { + tentacles.compute(adjustForTerrain(center, offset), this::updateTentacle); + }); + } - if (getWorld().random.nextInt(isAngry() ? 12 : 1200) == 0) { - for (TentacleEntity tentacle : tentacles.values()) { + for (TentacleEntity tentacle : tentacles.values()) { + if (getWorld().random.nextInt(isAngry() ? 12 : 1200) == 0) { tentacle.addActiveTicks(120); } } LivingEntity target = getAttacker(); - setAngry(target != null); + if (angryTicks > 0) { + angryTicks--; + } - if (isAngry() && getWorld().random.nextInt(30) == 0) { + setAngry(!isBaby() && (angryTicks > 0 || target != null)); + + float healthPercentage = getHealth() / getMaxHealth(); + if (isAngry() && target != null && getWorld().random.nextInt(1 + (int)(healthPercentage * 30)) == 0) { if (target instanceof PlayerEntity player) { Pony.of(player).getMagicalReserves().getEnergy().add(6); } @@ -94,16 +197,41 @@ public class IgnominiousBulbEntity extends MobEntity { tentacle.setTarget(target); }); } + + if (target != null) { + lookAtEntity(target, 10, 10); + } } super.tick(); } + @Override + public void tickMovement() { + super.tickMovement(); + prevAge = getAge(); + + if (getWorld().isClient) { + if (happyTicks > 0 && --happyTicks % 4 == 0) { + getWorld().addParticle(ParticleTypes.HAPPY_VILLAGER, getParticleX(1), getRandomBodyY() + 0.5, getParticleZ(1), 0, 0, 0); + } + } else { + if (prevAge < 0) { + setAge(prevAge + 1); + } else if (prevAge > 0) { + setAge(prevAge - 1); + } + } + } + private Map getTentacles() { if (tentacles == null) { tentacles = getWorld().getEntitiesByClass(TentacleEntity.class, this.getBoundingBox().expand(5, 0, 5), EntityPredicates.VALID_ENTITY) .stream() - .collect(Collectors.toMap(TentacleEntity::getBlockPos, Function.identity())); + .collect(Collectors.toMap(TentacleEntity::getBlockPos, tentacle -> { + tentacle.setBulb(this); + return tentacle; + })); } return tentacles; } @@ -112,7 +240,11 @@ public class IgnominiousBulbEntity extends MobEntity { if (tentacle == null || tentacle.isRemoved()) { tentacle = new TentacleEntity(getWorld(), pos); tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, getWorld().random.nextFloat() * 360, 0); - getWorld().spawnEntity(tentacle); + tentacle.setBulb(this); + + if (getWorld().isTopSolid(pos.down(), this)) { + getWorld().spawnEntity(tentacle); + } } return tentacle; } @@ -157,6 +289,9 @@ public class IgnominiousBulbEntity extends MobEntity { @Override @Nullable protected SoundEvent getHurtSound(DamageSource source) { + if (isBaby()) { + return SoundEvents.ENTITY_HORSE_BREATHE; + } return USounds.ENTITY_IGNIMEOUS_BULB_HURT; } @@ -166,15 +301,60 @@ public class IgnominiousBulbEntity extends MobEntity { return USounds.ENTITY_IGNIMEOUS_BULB_DEATH; } + @Override + @Nullable + protected SoundEvent getAmbientSound() { + if (!isBaby() && getWorld().random.nextInt(2) == 0) { + return SoundEvents.ENTITY_CAMEL_AMBIENT; + } + return SoundEvents.ITEM_BONE_MEAL_USE; + } + @Override public void writeCustomDataToNbt(NbtCompound nbt) { super.writeCustomDataToNbt(nbt); nbt.putBoolean("angry", isAngry()); + nbt.putInt("age", getAge()); + NbtList tentacles = new NbtList(); + getTentacles().forEach((pos, tentacle) -> { + var compound = new NbtCompound(); + compound.put("pos", NbtSerialisable.BLOCK_POS.write(pos)); + compound.putUuid("uuid", tentacle.getUuid()); + tentacles.add(compound); + }); + nbt.put("tentacles", tentacles); } @Override public void readCustomDataFromNbt(NbtCompound nbt) { super.readCustomDataFromNbt(nbt); setAngry(nbt.getBoolean("angry")); + setAge(nbt.getInt("age")); + if (!getWorld().isClient) { + if (nbt.contains("tentacles", NbtElement.LIST_TYPE)) { + var tentacles = new HashMap(); + nbt.getList("tentacles", NbtElement.COMPOUND_TYPE).forEach(tag -> { + var compound = (NbtCompound)tag; + if (((ServerWorld)getWorld()).getEntity(compound.getUuid("uuid")) instanceof TentacleEntity tentacle) { + tentacle.setBulb(this); + tentacles.put(NbtSerialisable.BLOCK_POS.read(compound.getCompound("pos")), tentacle); + } + }); + this.tentacles = tentacles; + } + } + } + + @Override + public void onTrackedDataSet(TrackedData data) { + if (AGE.equals(data)) { + calculateDimensions(); + } + super.onTrackedDataSet(data); + } + + @Override + public EntityDimensions getDimensions(EntityPose pose) { + return EntityDimensions.changing(3, 2).scaled(getScale(1)); } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java index d20eb3a7..16d4a459 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/TentacleEntity.java @@ -10,6 +10,7 @@ import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.util.shape.Sphere; +import net.minecraft.command.argument.EntityAnchorArgumentType.EntityAnchor; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; @@ -55,6 +56,9 @@ public class TentacleEntity extends AbstractDecorationEntity { private LivingEntity target; private final Comparator targetSorting = Comparator.comparing(this::distanceTo); + @Nullable + private IgnominiousBulbEntity bulb; + public TentacleEntity(EntityType type, World world) { super(type, world); } @@ -70,6 +74,10 @@ public class TentacleEntity extends AbstractDecorationEntity { dataTracker.startTracking(MOTION_OFFSET, 0); } + public void setBulb(IgnominiousBulbEntity bulb) { + this.bulb = bulb; + } + public void attack(BlockPos pos) { var offset = pos.toCenterPos().subtract(getBlockPos().toCenterPos()); @@ -82,6 +90,10 @@ public class TentacleEntity extends AbstractDecorationEntity { setYaw(MathHelper.wrapDegrees((float)(MathHelper.atan2(dZ, dX) * MathHelper.DEGREES_PER_RADIAN) - 90)); getWorld().sendEntityStatus(this, ATTACK_STATUS); attackingTicks = 30; + if (bulb != null) { + bulb.setAngryFor(10); + bulb.lookAt(EntityAnchor.FEET, pos.toCenterPos()); + } } public float getAttackProgress(float tickDelta) { @@ -144,7 +156,7 @@ public class TentacleEntity extends AbstractDecorationEntity { } public void addActiveTicks(int ticks) { - ticksActive += ticks; + ticksActive = Math.min(200, ticksActive + ticks); } @Override From 117c68c8c6fa148fd8474df604e0d966cac92b6d Mon Sep 17 00:00:00 2001 From: Cryghast Date: Tue, 16 Jan 2024 08:18:57 +0800 Subject: [PATCH 027/104] update zh.cn.json --- .../resources/assets/unicopia/lang/zh_cn.json | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index 0e5446b8..d03c9fd3 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -151,9 +151,9 @@ "item.unicopia.clam_shell": "蛤蜊壳", "item.unicopia.scallop_shell": "扇贝壳", "item.unicopia.turret_shell": "锥螺壳", - "item.unicopia.shelly": "壳儿", + "item.unicopia.shelly": "贝利", - "item.unicopia.horse_shoe.accuracy": "精准度%d%%", + "item.unicopia.horse_shoe.accuracy": "精准度%:d%%", "item.unicopia.horse_shoe.speed": "速度:%d", "item.unicopia.iron_horse_shoe": "铁蹄铁", "item.unicopia.golden_horse_shoe": "金蹄铁", @@ -189,30 +189,30 @@ "item.unicopia.music_disc_funk.desc": "funk, just funk", "item.unicopia.cloud_lump": "云团", - "item.unicopia.light_gray_bed_sheets": "淡灰色床单", - "item.unicopia.gray_bed_sheets": "灰色床单", - "item.unicopia.black_bed_sheets": "黑色床单", - "item.unicopia.brown_bed_sheets": "棕色床单", - "item.unicopia.red_bed_sheets": "红色床单", - "item.unicopia.orange_bed_sheets": "橙色床单", - "item.unicopia.yellow_bed_sheets": "黄色床单", - "item.unicopia.lime_bed_sheets": "黄绿色床单", - "item.unicopia.green_bed_sheets": "绿色床单", - "item.unicopia.cyan_bed_sheets": "青色床单", - "item.unicopia.light_blue_bed_sheets": "淡蓝色床单", - "item.unicopia.blue_bed_sheets": "蓝色床单", - "item.unicopia.purple_bed_sheets": "紫色床单", - "item.unicopia.magenta_bed_sheets": "品红色床单", - "item.unicopia.pink_bed_sheets": "粉色床单", - "item.unicopia.apple_bed_sheets": "苹果纹饰床单", - "item.unicopia.barred_bed_sheets": "条纹床单", - "item.unicopia.checkered_bed_sheets": "棋盘格床单", - "item.unicopia.kelp_bed_sheets": "海藻纹饰床单", - "item.unicopia.rainbow_bed_sheets": "彩虹纹饰床单", - "item.unicopia.rainbow_bpw_bed_sheets": "BPW 彩虹纹饰床单", - "item.unicopia.rainbow_bpy_bed_sheets": "BPY 彩虹纹饰床单", - "item.unicopia.rainbow_pbg_bed_sheets": "PGB 彩虹纹饰床单", - "item.unicopia.rainbow_pwr_bed_sheets": "PWR 彩虹纹饰床单", + "item.unicopia.light_gray_bed_sheets": "淡灰色被单", + "item.unicopia.gray_bed_sheets": "灰色被单", + "item.unicopia.black_bed_sheets": "黑色被单", + "item.unicopia.brown_bed_sheets": "棕色被单", + "item.unicopia.red_bed_sheets": "红色被单", + "item.unicopia.orange_bed_sheets": "橙色被单", + "item.unicopia.yellow_bed_sheets": "黄色被单", + "item.unicopia.lime_bed_sheets": "黄绿色被单", + "item.unicopia.green_bed_sheets": "绿色被单", + "item.unicopia.cyan_bed_sheets": "青色被单", + "item.unicopia.light_blue_bed_sheets": "淡蓝色被单", + "item.unicopia.blue_bed_sheets": "蓝色被单", + "item.unicopia.purple_bed_sheets": "紫色被单", + "item.unicopia.magenta_bed_sheets": "品红色被单", + "item.unicopia.pink_bed_sheets": "粉色被单", + "item.unicopia.apple_bed_sheets": "苹果纹饰被单", + "item.unicopia.barred_bed_sheets": "条纹被单", + "item.unicopia.checkered_bed_sheets": "棋盘格被单", + "item.unicopia.kelp_bed_sheets": "海藻纹饰被单", + "item.unicopia.rainbow_bed_sheets": "彩虹纹饰被单", + "item.unicopia.rainbow_bpw_bed_sheets": "跨性 彩虹纹饰被单", + "item.unicopia.rainbow_bpy_bed_sheets": "泛性 彩虹纹饰被单", + "item.unicopia.rainbow_pbg_bed_sheets": "无性 彩虹纹饰被单", + "item.unicopia.rainbow_pwr_bed_sheets": "女性 彩虹纹饰被单", "block.unicopia.rocks": "一些石块", "block.unicopia.plunder_vine": "掠夺之藤", @@ -483,9 +483,9 @@ "trait.unicopia.poison.name": "毒性", "trait.unicopia.poison.description": "一枚绝命毒镖能轻松放倒一头巨兽。", - "unicopia.diet.information": "饮食信息:", + "unicopia.diet.information": "信饮食息:", "unicopia.diet.side_effects": "副作用:", - "unicopia.diet.not_edible": "物品不可食用", + "unicopia.diet.not_edible": "吃不了", "unicopia.diet.base_multiplier": "基础倍率: %s%%", "unicopia.diet.hunger.detailed": "获取饥饿值: %s of %s (%s%%)", "unicopia.diet.saturation.detailed": "获取饱和度: %s (%s%%)", @@ -625,7 +625,7 @@ "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.earth": " - 拥有强大的击,踢和踏力,可用于防御或向四周出击", "gui.unicopia.tribe_selection.confirm.goods.5.unicopia.earth": " - 唯一能和苦力怕拥抱而不会被炸死的种族", "gui.unicopia.tribe_selection.confirm.goods.6.unicopia.earth": " - 可以吃石头", - "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.earth": " - 可爱软乎的小马耳朵", + "gui.unicopia.tribe_selection.confirm.goods.7.unicopia.earth": " - 可爱软乎的小马耳朵", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.unicorn": " - 瞬移和魔法咒语", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.unicorn": " - 研究和制作增强自身能力的魔法神器", @@ -636,7 +636,7 @@ "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.pegasus": " - 使用储存的魔力在短时间内冲刺或蓄力做出彩虹音爆", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.pegasus": " - 移动速度更快,摔落伤害更低", "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.pegasus": " - 可以直接和云与云类物品互动", - "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.pegasus": " - 可以吃蔬菜和某些鱼", + "gui.unicopia.tribe_selection.confirm.goods.5.unicopia.pegasus": " - 可以吃蔬菜和某些鱼", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.bat": " - 能够飞行,能通过训练提高耐力", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.bat": " - 夜间看得更清楚", @@ -646,7 +646,7 @@ "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.changeling": " - 能够在原地飞行和悬停", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.changeling": " - 几乎能变形成任何生物或任何物体", "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.changeling": " - 通过爬墙可越过任何任何物体", - "gui.unicopia.tribe_selection.confirm.goods.3.unicopia.changeling": " - 是肉食性的。可以吃任何不会让它们生病的东西", + "gui.unicopia.tribe_selection.confirm.goods.4.unicopia.changeling": " - 是肉食性的。可以吃任何不会让它们生病的东西", "gui.unicopia.tribe_selection.confirm.goods.1.unicopia.kirin": " - 免疫一切火焰伤害", "gui.unicopia.tribe_selection.confirm.goods.2.unicopia.kirin": " - 受到伤害后可以发怒", From f56855246275915aabceb7b12f599746dca99573 Mon Sep 17 00:00:00 2001 From: Cryghast Date: Tue, 16 Jan 2024 08:20:59 +0800 Subject: [PATCH 028/104] update zh_cn.json --- src/main/resources/assets/unicopia/lang/zh_cn.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index d03c9fd3..b8525bd7 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -483,7 +483,7 @@ "trait.unicopia.poison.name": "毒性", "trait.unicopia.poison.description": "一枚绝命毒镖能轻松放倒一头巨兽。", - "unicopia.diet.information": "信饮食息:", + "unicopia.diet.information": "食物情况:", "unicopia.diet.side_effects": "副作用:", "unicopia.diet.not_edible": "吃不了", "unicopia.diet.base_multiplier": "基础倍率: %s%%", From 4e9966055f2e313e46162a992033c32fb5e2a8fe Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 18:47:22 +0000 Subject: [PATCH 029/104] Fixed flowering zap leaves not recognisde as leaves --- src/main/resources/data/minecraft/tags/blocks/leaves.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/data/minecraft/tags/blocks/leaves.json b/src/main/resources/data/minecraft/tags/blocks/leaves.json index 852058e8..8221c009 100644 --- a/src/main/resources/data/minecraft/tags/blocks/leaves.json +++ b/src/main/resources/data/minecraft/tags/blocks/leaves.json @@ -3,6 +3,7 @@ "values": [ "unicopia:palm_leaves", "unicopia:zap_leaves", + "unicopia:flowering_zap_leaves", "unicopia:green_apple_leaves", "unicopia:sweet_apple_leaves", "unicopia:sour_apple_leaves", From 5867e987f3c27dbeb730b32967a50485660902a8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 18:50:07 +0000 Subject: [PATCH 030/104] Fix leaves not mining with hoes. Closes #235 --- .../data/minecraft/tags/blocks/mineable/hoe.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json diff --git a/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json b/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json new file mode 100644 index 00000000..8221c009 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json @@ -0,0 +1,12 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_leaves", + "unicopia:zap_leaves", + "unicopia:flowering_zap_leaves", + "unicopia:green_apple_leaves", + "unicopia:sweet_apple_leaves", + "unicopia:sour_apple_leaves", + "unicopia:mango_leaves" + ] +} From f3ab86ed74236bd58b9eab12894891c08e88c859 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 19:13:17 +0000 Subject: [PATCH 031/104] Fix palm log/stripped log and wood recipes --- .../data/unicopia/recipes/palm_planks.json | 4 +++- .../data/unicopia/recipes/palm_wood.json | 3 +++ .../unicopia/recipes/stripped_palm_wood.json | 18 ++++++++++++++++++ .../data/unicopia/tags/blocks/palm_logs.json | 9 +++++++++ .../data/unicopia/tags/items/palm_logs.json | 9 +++++++++ 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/data/unicopia/recipes/stripped_palm_wood.json create mode 100644 src/main/resources/data/unicopia/tags/blocks/palm_logs.json create mode 100644 src/main/resources/data/unicopia/tags/items/palm_logs.json diff --git a/src/main/resources/data/unicopia/recipes/palm_planks.json b/src/main/resources/data/unicopia/recipes/palm_planks.json index c8a7dea1..2e94f502 100644 --- a/src/main/resources/data/unicopia/recipes/palm_planks.json +++ b/src/main/resources/data/unicopia/recipes/palm_planks.json @@ -1,7 +1,9 @@ { "type": "minecraft:crafting_shapeless", + "category": "building", + "group": "planks", "ingredients": [ - { "item": "unicopia:palm_log" } + { "tag": "unicopia:palm_logs" } ], "result": { "item": "unicopia:palm_planks", diff --git a/src/main/resources/data/unicopia/recipes/palm_wood.json b/src/main/resources/data/unicopia/recipes/palm_wood.json index 0c28e123..2d4c9008 100644 --- a/src/main/resources/data/unicopia/recipes/palm_wood.json +++ b/src/main/resources/data/unicopia/recipes/palm_wood.json @@ -1,5 +1,7 @@ { "type": "minecraft:crafting_shaped", + "category": "building", + "group": "bark", "pattern": [ "##", "##" @@ -10,6 +12,7 @@ } }, "result": { + "count": 3, "item": "unicopia:palm_wood" } } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/recipes/stripped_palm_wood.json b/src/main/resources/data/unicopia/recipes/stripped_palm_wood.json new file mode 100644 index 00000000..1b4f818e --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/stripped_palm_wood.json @@ -0,0 +1,18 @@ +{ + "type": "minecraft:crafting_shaped", + "category": "building", + "group": "bark", + "pattern": [ + "##", + "##" + ], + "key": { + "#": { + "item": "unicopia:stripped_palm_log" + } + }, + "result": { + "count": 3, + "item": "unicopia:stripped_palm_wood" + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/tags/blocks/palm_logs.json b/src/main/resources/data/unicopia/tags/blocks/palm_logs.json new file mode 100644 index 00000000..38397972 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/blocks/palm_logs.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_log", + "unicopia:palm_wood", + "unicopia:stripped_palm_log", + "unicopia:stripped_palm_wood" + ] +} diff --git a/src/main/resources/data/unicopia/tags/items/palm_logs.json b/src/main/resources/data/unicopia/tags/items/palm_logs.json new file mode 100644 index 00000000..38397972 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/items/palm_logs.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_log", + "unicopia:palm_wood", + "unicopia:stripped_palm_log", + "unicopia:stripped_palm_wood" + ] +} From 54381cf67348b5ca131e1473e1443aa93a902b89 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 19:18:56 +0000 Subject: [PATCH 032/104] Fruit trees now consider the light level instead of time of day when trying to grow. Fixes #237 --- .../com/minelittlepony/unicopia/block/FruitBearingBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java b/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java index ee2eb14d..8faa118a 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java @@ -70,7 +70,7 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka return; } - if (world.isDay()) { + if (world.getBaseLightLevel(pos, 0) > 8) { BlockSoundGroup group = getSoundGroup(state); int steps = FertilizableUtil.getGrowthSteps(world, pos, state, random); while (steps-- > 0) { From 5ac68a3df9ff16b8f96c4d03b3a49376dd0ffadf Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 19:28:27 +0000 Subject: [PATCH 033/104] Fixed race change advancement criterion. Fixes #230 --- .../unicopia/entity/player/Pony.java | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 6a12cabe..666ca9c2 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -239,8 +239,7 @@ public class Pony extends Living implements Copyable, Update gravity.updateFlightState(); entity.sendAbilitiesUpdate(); - - UCriteria.PLAYER_CHANGE_RACE.trigger(entity); + recalculateCompositeRace(); } public void setSuppressedRace(Race race) { @@ -377,20 +376,7 @@ public class Pony extends Living implements Copyable, Update @Override public boolean beforeUpdate() { if (compositeRace.includes(Race.UNSET) || entity.age % 2 == 0) { - Race intrinsicRace = getSpecies(); - Race suppressedRace = getSuppressedRace(); - compositeRace = getSpellSlot() - .get(SpellPredicate.IS_MIMIC, true) - .map(AbstractDisguiseSpell::getDisguise) - .map(EntityAppearance::getAppearance) - .flatMap(Pony::of) - .map(Pony::getSpecies) - .orElse(intrinsicRace).composite( - AmuletSelectors.UNICORN_AMULET.test(entity) ? Race.UNICORN - : AmuletSelectors.ALICORN_AMULET.test(entity) ? Race.ALICORN - : null, - AmuletSelectors.PEARL_NECKLACE.test(entity) ? suppressedRace.or(Race.SEAPONY) : null - ); + recalculateCompositeRace(); } if (ticksInvulnerable > 0) { @@ -482,6 +468,24 @@ public class Pony extends Living implements Copyable, Update return super.beforeUpdate(); } + private void recalculateCompositeRace() { + Race intrinsicRace = getSpecies(); + Race suppressedRace = getSuppressedRace(); + compositeRace = getSpellSlot() + .get(SpellPredicate.IS_MIMIC, true) + .map(AbstractDisguiseSpell::getDisguise) + .map(EntityAppearance::getAppearance) + .flatMap(Pony::of) + .map(Pony::getSpecies) + .orElse(intrinsicRace).composite( + AmuletSelectors.UNICORN_AMULET.test(entity) ? Race.UNICORN + : AmuletSelectors.ALICORN_AMULET.test(entity) ? Race.ALICORN + : null, + AmuletSelectors.PEARL_NECKLACE.test(entity) ? suppressedRace.or(Race.SEAPONY) : null + ); + UCriteria.PLAYER_CHANGE_RACE.trigger(entity); + } + @Override public Optional chooseClimbingPos() { if (getObservedSpecies() == Race.CHANGELING && getSpellSlot().get(SpellPredicate.IS_DISGUISE, false).isEmpty()) { From 0c268277909d47f5cdbbfd8fbd5df0677ada0577 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 17 Jan 2024 19:48:35 +0000 Subject: [PATCH 034/104] Add advancement for killing mobs with a horseshoe --- .../unicopia/entity/damage/UDamageTypes.java | 1 + .../unicopia/item/HorseShoeItem.java | 2 ++ .../PhysicsBodyProjectileEntity.java | 21 ++++++++++- .../resources/assets/unicopia/lang/en_us.json | 8 ++++- .../unicopia/earth/dead_ringer.json | 36 +++++++++++++++++++ .../unicopia/earth/sticks_and_stones.json | 12 +++---- .../tags/damage_type/from_horseshoes.json | 6 ++++ 7 files changed, 78 insertions(+), 8 deletions(-) create mode 100644 src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json create mode 100644 src/main/resources/data/unicopia/tags/damage_type/from_horseshoes.json diff --git a/src/main/java/com/minelittlepony/unicopia/entity/damage/UDamageTypes.java b/src/main/java/com/minelittlepony/unicopia/entity/damage/UDamageTypes.java index 737f7775..b28faeea 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/damage/UDamageTypes.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/damage/UDamageTypes.java @@ -30,6 +30,7 @@ public interface UDamageTypes { RegistryKey SUNLIGHT = register("sunlight"); RegistryKey PETRIFIED = register("petrified"); RegistryKey ROCK = register("rock"); + RegistryKey HORSESHOE = register("horseshoe"); private static RegistryKey register(String name) { var key = RegistryKey.of(RegistryKeys.DAMAGE_TYPE, Unicopia.id(name)); diff --git a/src/main/java/com/minelittlepony/unicopia/item/HorseShoeItem.java b/src/main/java/com/minelittlepony/unicopia/item/HorseShoeItem.java index a7899e8d..a9ed6129 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/HorseShoeItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/HorseShoeItem.java @@ -9,6 +9,7 @@ import com.google.common.collect.Multimap; import com.minelittlepony.unicopia.Race; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.entity.damage.UDamageTypes; import com.minelittlepony.unicopia.entity.mob.UEntityAttributes; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.projectile.PhysicsBodyProjectileEntity; @@ -75,6 +76,7 @@ public class HorseShoeItem extends HeavyProjectileItem { @Override protected PhysicsBodyProjectileEntity createProjectile(ItemStack stack, World world, @Nullable PlayerEntity player) { PhysicsBodyProjectileEntity projectile = super.createProjectile(stack, world, player); + projectile.setDamageType(UDamageTypes.HORSESHOE); float degradation = (stack.getDamage() / (float)stack.getMaxDamage()); diff --git a/src/main/java/com/minelittlepony/unicopia/projectile/PhysicsBodyProjectileEntity.java b/src/main/java/com/minelittlepony/unicopia/projectile/PhysicsBodyProjectileEntity.java index 13d49ce9..531f670e 100644 --- a/src/main/java/com/minelittlepony/unicopia/projectile/PhysicsBodyProjectileEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/projectile/PhysicsBodyProjectileEntity.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.projectile; +import java.util.Optional; + import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.USounds; @@ -19,6 +21,7 @@ import net.minecraft.entity.LivingEntity; import net.minecraft.entity.MovementType; import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.damage.DamageSources; +import net.minecraft.entity.damage.DamageType; import net.minecraft.entity.data.DataTracker; import net.minecraft.entity.data.TrackedData; import net.minecraft.entity.data.TrackedDataHandlerRegistry; @@ -27,9 +30,13 @@ import net.minecraft.entity.projectile.PersistentProjectileEntity; import net.minecraft.inventory.Inventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NbtCompound; +import net.minecraft.nbt.NbtElement; +import net.minecraft.registry.RegistryKey; +import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.tag.BlockTags; import net.minecraft.sound.SoundCategory; import net.minecraft.sound.SoundEvent; +import net.minecraft.util.Identifier; import net.minecraft.util.hit.BlockHitResult; import net.minecraft.util.hit.EntityHitResult; import net.minecraft.util.math.BlockPos; @@ -46,6 +53,8 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl private int inWaterTime; + private RegistryKey damageType = UDamageTypes.ROCK; + public PhysicsBodyProjectileEntity(EntityType type, World world) { super(type, world); } @@ -74,6 +83,10 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl return getDataTracker().get(ITEM); } + public void setDamageType(RegistryKey damageType) { + this.damageType = damageType; + } + @Override protected ItemStack asItemStack() { return getStack(); @@ -149,7 +162,7 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl return new DamageSources(getWorld().getRegistryManager()) { @Override public DamageSource arrow(PersistentProjectileEntity source, @Nullable Entity attacker) { - return create(UDamageTypes.ROCK, source, attacker); + return create(damageType, source, attacker); } }; } @@ -262,11 +275,17 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl if (!stack.isEmpty()) { nbt.put("Item", stack.writeNbt(new NbtCompound())); } + nbt.putString("damageType", damageType.getValue().toString()); } @Override public void readCustomDataFromNbt(NbtCompound nbt) { super.readCustomDataFromNbt(nbt); setStack(ItemStack.fromNbt(nbt.getCompound("Item"))); + if (nbt.contains("damageType", NbtElement.STRING_TYPE)) { + Optional.ofNullable(Identifier.tryParse(nbt.getString("damageType"))).ifPresent(id -> { + setDamageType(RegistryKey.of(RegistryKeys.DAMAGE_TYPE, id)); + }); + } } } diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 87ec41e1..97196487 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -993,6 +993,10 @@ "death.attack.unicopia.rock.self": "%1$s was pummeled", "death.attack.unicopia.rock.item": "%1$s was pummelled by %2$s using %3$s", "death.attack.unicopia.rock.player": "%1$s was pummelled by %2$s", + "death.attack.unicopia.horseshoe": "%1$s went ding", + "death.attack.unicopia.horseshoe.self": "%1$s dinged himself", + "death.attack.unicopia.horseshoe.item": "%1$s was dinged by %2$s using %3$s", + "death.attack.unicopia.horseshoe.player": "%1$s was dinged by %2$s", "death.fell.accident.ladder.pegasus": "%1$s forgot they could fly and fell off a ladder", "death.fell.accident.vines.pegasus": "%1$s forgot they could fly and fell off some vines", @@ -1158,7 +1162,9 @@ "advancements.unicopia.earth_route.title": "Path of the Pony", "advancements.unicopia.earth_route.description": "Join the Apple Clan", "advancements.unicopia.sticks_and_stones.title": "Sticks and Stones", - "advancements.unicopia.sticks_and_stones.description": "Kill an mob by throwing rocks at it", + "advancements.unicopia.sticks_and_stones.description": "Kill a mob by throwing rocks at it", + "advancements.unicopia.dead_ringer.title": "Dead Ringer", + "advancements.unicopia.dead_ringer.description": "Kill a mob with a horseshoe", "advancements.unicopia.born_on_a_rock_farm.title": "Born on a Rock Farm", "advancements.unicopia.born_on_a_rock_farm.description": "Successfully farm your first rock", "advancements.unicopia.thats_unusual.title": "That's Unusual", diff --git a/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json new file mode 100644 index 00000000..881e8c8d --- /dev/null +++ b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json @@ -0,0 +1,36 @@ +{ + "parent": "unicopia:unicopia/earth/born_on_a_rock_farm", + "display": { + "icon": { + "item": "unicopia:rock" + }, + "title": { + "translate": "advancements.unicopia.sticks_and_stones.title" + }, + "description": { + "translate": "advancements.unicopia.sticks_and_stones.description" + }, + "frame": "task", + "show_toast": true, + "announce_to_chat": true, + "hidden": true + }, + "criteria": { + "killed_entity_with_rock": { + "trigger": "minecraft:player_killed_entity", + "conditions": { + "killing_blow": { + "tags": [ + { + "id": "unicopia:from_rocks", + "expected": true + } + ] + } + } + } + }, + "requirements": [ + [ "killed_entity_with_rock" ] + ] +} diff --git a/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json b/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json index 881e8c8d..591e4616 100644 --- a/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json +++ b/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json @@ -2,13 +2,13 @@ "parent": "unicopia:unicopia/earth/born_on_a_rock_farm", "display": { "icon": { - "item": "unicopia:rock" + "item": "unicopia:horseshoe" }, "title": { - "translate": "advancements.unicopia.sticks_and_stones.title" + "translate": "advancements.unicopia.dead_ringer.title" }, "description": { - "translate": "advancements.unicopia.sticks_and_stones.description" + "translate": "advancements.unicopia.dead_ringer.description" }, "frame": "task", "show_toast": true, @@ -16,13 +16,13 @@ "hidden": true }, "criteria": { - "killed_entity_with_rock": { + "killed_entity_with_horseshoe": { "trigger": "minecraft:player_killed_entity", "conditions": { "killing_blow": { "tags": [ { - "id": "unicopia:from_rocks", + "id": "unicopia:from_horseshoes", "expected": true } ] @@ -31,6 +31,6 @@ } }, "requirements": [ - [ "killed_entity_with_rock" ] + [ "killed_entity_with_horseshoe" ] ] } diff --git a/src/main/resources/data/unicopia/tags/damage_type/from_horseshoes.json b/src/main/resources/data/unicopia/tags/damage_type/from_horseshoes.json new file mode 100644 index 00000000..276d2073 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/damage_type/from_horseshoes.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "unicopia:horseshoe" + ] +} From dde64153ddcf1eff4af33a5fd89e6d98a5244389 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 18 Jan 2024 16:24:02 +0000 Subject: [PATCH 035/104] Fixed bulb duplicating arms when reloading a world --- .../entity/mob/IgnominiousBulbEntity.java | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnominiousBulbEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnominiousBulbEntity.java index 659e43e3..224a2b0f 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnominiousBulbEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/IgnominiousBulbEntity.java @@ -10,11 +10,13 @@ import java.util.stream.Collectors; import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.USounds; +import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.util.NbtSerialisable; import com.minelittlepony.unicopia.util.VecHelper; import net.minecraft.block.BlockState; +import net.minecraft.entity.Entity; import net.minecraft.entity.EntityDimensions; import net.minecraft.entity.EntityPose; import net.minecraft.entity.EntityType; @@ -34,7 +36,6 @@ import net.minecraft.nbt.NbtElement; import net.minecraft.nbt.NbtList; import net.minecraft.particle.ParticleTypes; import net.minecraft.predicate.entity.EntityPredicates; -import net.minecraft.server.world.ServerWorld; import net.minecraft.sound.SoundEvent; import net.minecraft.sound.SoundEvents; import net.minecraft.util.ActionResult; @@ -58,7 +59,7 @@ public class IgnominiousBulbEntity extends MobEntity { ); @Nullable - private Map tentacles; + private Map> tentacles; private int prevAge; private int happyTicks; @@ -146,7 +147,9 @@ public class IgnominiousBulbEntity extends MobEntity { Vec3d change = new Vec3d(x, y, z).subtract(getPos()); super.setPosition(x, y, z); getTentacles().values().forEach(tentacle -> { - tentacle.setPosition(tentacle.getPos().add(change)); + tentacle.ifPresent(getWorld(), t -> { + t.setPosition(t.getPos().add(change)); + }); }); } @@ -170,9 +173,11 @@ public class IgnominiousBulbEntity extends MobEntity { }); } - for (TentacleEntity tentacle : tentacles.values()) { + for (EntityReference tentacle : tentacles.values()) { if (getWorld().random.nextInt(isAngry() ? 12 : 1200) == 0) { - tentacle.addActiveTicks(120); + tentacle.ifPresent(getWorld(), t -> { + t.addActiveTicks(120); + }); } } LivingEntity target = getAttacker(); @@ -191,6 +196,7 @@ public class IgnominiousBulbEntity extends MobEntity { tentacles.values() .stream() + .flatMap(tentacle -> tentacle.getOrEmpty(getWorld()).stream()) .sorted(Comparator.comparing(a -> a.distanceTo(target))) .limit(2) .forEach(tentacle -> { @@ -224,27 +230,29 @@ public class IgnominiousBulbEntity extends MobEntity { } } - private Map getTentacles() { + private Map> getTentacles() { if (tentacles == null) { - tentacles = getWorld().getEntitiesByClass(TentacleEntity.class, this.getBoundingBox().expand(5, 0, 5), EntityPredicates.VALID_ENTITY) + tentacles = getWorld().getEntitiesByClass(TentacleEntity.class, getBoundingBox().expand(5, 0, 5), EntityPredicates.VALID_ENTITY) .stream() .collect(Collectors.toMap(TentacleEntity::getBlockPos, tentacle -> { tentacle.setBulb(this); - return tentacle; + return new EntityReference<>(tentacle); })); } return tentacles; } - private TentacleEntity updateTentacle(BlockPos pos, @Nullable TentacleEntity tentacle) { - if (tentacle == null || tentacle.isRemoved()) { - tentacle = new TentacleEntity(getWorld(), pos); - tentacle.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, getWorld().random.nextFloat() * 360, 0); - tentacle.setBulb(this); + private EntityReference updateTentacle(BlockPos pos, @Nullable EntityReference tentacle) { + if (tentacle == null || tentacle.getOrEmpty(getWorld()).filter(Entity::isAlive).isEmpty()) { + var created = new TentacleEntity(getWorld(), pos); + created.updatePositionAndAngles(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, getWorld().random.nextFloat() * 360, 0); + created.setBulb(this); if (getWorld().isTopSolid(pos.down(), this)) { - getWorld().spawnEntity(tentacle); + getWorld().spawnEntity(created); } + + return new EntityReference<>(created); } return tentacle; } @@ -277,7 +285,9 @@ public class IgnominiousBulbEntity extends MobEntity { @Override public void remove(RemovalReason reason) { super.remove(reason); - getTentacles().values().forEach(tentacle -> tentacle.remove(reason)); + getTentacles().values().forEach(tentacle -> { + tentacle.ifPresent(getWorld(), t -> t.remove(reason)); + }); } @Override @@ -319,7 +329,7 @@ public class IgnominiousBulbEntity extends MobEntity { getTentacles().forEach((pos, tentacle) -> { var compound = new NbtCompound(); compound.put("pos", NbtSerialisable.BLOCK_POS.write(pos)); - compound.putUuid("uuid", tentacle.getUuid()); + compound.put("target", tentacle.toNBT()); tentacles.add(compound); }); nbt.put("tentacles", tentacles); @@ -332,13 +342,10 @@ public class IgnominiousBulbEntity extends MobEntity { setAge(nbt.getInt("age")); if (!getWorld().isClient) { if (nbt.contains("tentacles", NbtElement.LIST_TYPE)) { - var tentacles = new HashMap(); + var tentacles = new HashMap>(); nbt.getList("tentacles", NbtElement.COMPOUND_TYPE).forEach(tag -> { var compound = (NbtCompound)tag; - if (((ServerWorld)getWorld()).getEntity(compound.getUuid("uuid")) instanceof TentacleEntity tentacle) { - tentacle.setBulb(this); - tentacles.put(NbtSerialisable.BLOCK_POS.read(compound.getCompound("pos")), tentacle); - } + tentacles.put(NbtSerialisable.BLOCK_POS.read(compound.getCompound("pos")), new EntityReference<>(compound.getCompound("target"))); }); this.tentacles = tentacles; } From c7a161e114d99936c742519fb3e83dc35a6def4b Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 18 Jan 2024 16:28:45 +0000 Subject: [PATCH 036/104] Update goldroot textures --- .../textures/block/gold_root_stage0.png | Bin 4282 -> 4499 bytes .../textures/block/gold_root_stage1.png | Bin 4375 -> 4562 bytes .../textures/block/gold_root_stage2.png | Bin 4452 -> 4629 bytes .../textures/block/gold_root_stage3.png | Bin 4522 -> 4690 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage0.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage0.png index 54ec7e1cc8401d49115084fbf5a2d787c9863620..a24793ebdef572e0199358bbafae4f0bfb4a2e6a 100644 GIT binary patch delta 801 zcmdm`I9Yi@Gb8iF7DEqnCI$u(1_lNg?e6ItpkSnDXrO0o#=u}?U}R!tU}$A%pw^m;wM}a?#g=GanB@>0-dvoa~?fp<8|NL%o#d|x4 z71L*?l^$jA-F`MiNiS{F>ZAvvc05T8i9Dyz7(G+b?Ckqm>VG$+JaFFCo$t@T3N997 zu2Cwi?~z>QyT{RHbEfp1@14$TG*%yZeneO;cEXQ|ue*-t&*9eNwlPjw7X0~$V$#M7 z$GoIBFIp++FYF%TySzs6@y1h?-J8SKZF*+=le^inHg)FfEp8JJC{0svY-!T+(m3ok zrEIPUx29Ep`G@`;b)7L>JG~N~L^!ZYrCjI#$G$&3`)U1hwY^IcWM0%2&gnN)*uZU) z)%UsfjYY5Uf&V-)FLmpe@|~%h6qlVjQF%eV^o|{QnWy9mb~3lj=eap0_N2e}iRX>q zjejlEF(~2wvaYf?d*0(Oj2@TQOfo-kP|+Z6!JDsq@84z4zrEk~?9aapsq>2#O6Dvu zWnkco&J2ktiSYHY+B}P?iAlxMEIBpRASG4T%rMbX*Tga@QP(mh(Nx#Kz|uS^&Dc0K z(bRCV1M6}gQ&US*V*_(DLvu6B$)8yZZ450!V3DkCU|?lnpv0x1piq%pVC9>il9^WN zl30>ztAt1r$f`FlVB=$)e3~sr#lqOc*wi@5RM*79$U@h|IMGly(ZDiAH__ZMH909I z%_7m*aI!bM7ayv1n-{ZZbBMXN&+r2#D7GYTcNd0l3=0@`o%ttMn+Z! z237{9FhcbFqPM8V?x+U~&?j5iEE^}`;zrZZf zWzh>Q7D#WK>8G|NCol9>tt*3K#|+nq#IRhyX~7@XuCIQzY*+V3o&WpnSI3`@=Hc)- zQePNmocoCP(M#Xm$13MXq^PcOMDb*nL$m zO*L43o>E`dF2|ov*OGfbi>2=kN`G7ZN!;zzu~SCZGkX;}U3DDWSVT*w1UB|cyk*lA zyHqmo!$y?Dj;K@qz|)hf+pkGveCoE9?dnSasz zX~V&2g+0&CuC496%&y?P+3PL?d;5WiiJPw1-n)CoBYN~E>qIsfOqCu*up@rFG z2iE00CME_(1_tIPCZ<4v&#Z+u1|}h}NY)0$xq%Xwf`URtZh@6=eoAIqrAuN-s;v?t zNg%7F~s6@a)Jcw;slWkVj6PWe&&B@`)|+8%-noX`rrSq_S}ET!N*yWPvmcJ&bbB88^{;`hHZZ8!v+neV_owCAQYwGG6^r0aahR@fgq@*qm#PHw{Jpk78yGxY L{an^LB{Ts5XlEjC diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage1.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage1.png index ad9dbea77645034c63832a15b462fd4771a6701f..f5830f6417ab6a538cb0d2a3197a4cfcb2d3098f 100644 GIT binary patch delta 865 zcmbQPbV+$aGb8iF7DEqnCI$u(1_lNg?e6ItpkSnDXrO0o#=u}?U}R!tU}$A%pS%XNi7R%@87 zPuwqdU#UqV;_e5xK6r3G>FU9wk>Tv&jskxe3(E?EN+t@u_vX?~+WVnG{`uYFiuZO7 zE2hs(D?Q5KyZvm4l3v=T)kzOT?Rb(H5_wLaF?yz=+1dBC)cN;b%c6uc|iEv<*O1aMek9~i7_S5?1YI~O?$h@d4oYQZpuz}ko ztM7B|8;f4y1OItqUh38_|}14&vSE1>`8y`6VDsJ z8~<9SV^G5VWnE=)_Pobm7(FhpnPh(8prS$Cf;V6J-oMM7e|x{}*`I$IQs);fl+0OR z%D})Eof#5Q65;D(wRsj(6O*#3Ns>Xbxv{CPv00Ldu8E1Ifo_sTqKU4Bfl-RNX`+F- zf#GC())l;_rk1A029_2UCKl#KlfSSQ*ce)bz#>`Oz`)ADK#5C1L7^hIz{)p2B{Qwk zC9x#cRtb?LkX3J9z{bZo`7~RMN}`#uNwTp?s;+@)3ebK-6OjFBX1XZ`$tj7ciI!$* zrlym<*}eEst=qhqJ)1*p-?f(HEMPLz#*yVoXXNaLC~i4wg}VXYpp>ij&Yr2 zImq89yleUYmlh>2{7p~AWq&nnwtH8;IOaBUg~`pQKC^dl{hG0LrNunnyD{gSpG<2C zG;>*&%6dg$#tMn+Z! z237`^K-G*3n8A8L`as}euZG^lzY6u2yMna%(gX@m1k8Q2NU6ztt&^ZuOVq+p_Q})# zIZmFYa`b3mfv&}m%@L&qh1aeg3>9FhcbFqPM8V?x+U~&?j5iEE^}`;zrZZf zWzh>Q7D#WK>8G|NCol9>tt*3K#|+nq#IRhyX~7@XuCIQzY*+V3o&WpnSI3`@=Hc)- zQePNmocoCP(M#Xm$13MXq^PcOMDb*nL$m zO*L43o>E`dF2|ov*OGfbi>2=kN`G7ZN!;zzu~SCZGkX;}U3DDWSVT*w1UB|cyk*lA zyHqmo!$y?Dj;K@qz|)hf+pkGveCoE9?dnSasz zX~V&2g+0&CuC496%&y?P+3PL?d;5WiiJPw1-n)CaTvANS&>f0@iKs8G)$%E0;jL&$WX z^kz>N#}JFtZ~G0o4mk+8-tTH{-J$W)MdhhjV+4!NB<6}F{s|&YtxjFK%^h*hmv8L4P*(Sop;>Q%FMAwk-lW&eHjJAMJ**l6Y?pu%y{D_6%Q~lo FCII02O~n8J diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage2.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage2.png index af5f7f914d60e393c3bf1bad1ac7b0507b594d23..b08acd77536b602e3b4cbc975ba24140ddf3dd8b 100644 GIT binary patch delta 933 zcmaE&G*x9nGb8iF7DEqnCI$u(1_lNg?e6ItpkSnDXrO0o#=u}?U}R!tU}$A%pa{7M2wRl}r?R@6Dx~wD&`W{PVlT74PjF zR!pCnR(h1dcl+58CB3vwtCJpx+VLbYB=Vd-WAsc#v$OAOssG)O^1yjlcfLRWD!5pT zxkjn5zDIJI?;b~+&6(13zIQsW(O7-t`4M5Y*a<%-zV14nKZje7+r~I$S@7p0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J3hC4vD}oQhVi80%&6$isW(7*$kWx&Wt~$(697AZa9scZ diff --git a/src/main/resources/assets/unicopia/textures/block/gold_root_stage3.png b/src/main/resources/assets/unicopia/textures/block/gold_root_stage3.png index 970f559fb30f6304eaa298dac50e7988c8b7f7f0..816a7d1cce37664ebaed3fba87ae1d738c1d68ea 100644 GIT binary patch delta 995 zcmZ3bd`V?OGb8iF7DEqnCI$u(1_lNg?e6ItpkSnDXrO0o#=u}?U}R!tU}$A%pA)Uto#UxoVMrAnf%+9HJ~0_MJ1q|~>S%XNi7R%@87 zPuwqdU#UqV;_e5xK6r3G>FU9wk>Tv&jskxe3(E?EN+t@u_vX?~+WVnG{`uYFiuZO7 zE2hs(D?Q5KyZvm4l3v=T)kzOT?Rb(H5_wLaF?yz=+1dBC)cN;b%c6uc|iEv<*O1aMek9~i7_S5?1YI~O?$h@d4oYQZpuz}ko ztM7B|8;f4y1OItqUh38_|}14&vSE1>`8y`6VDsJ z8~<9SV^G5VWnE=)_Pobm7(FhpnPh(8prS$Cf;V6J-oMM7e|x{}*`I$IQs);fl+0OR z%D})Eof#5Q65;D(wRsj(6O)Refmu>gilw2hfmy1Fu8Fycfv!bLih*vbnQ5|dqNQQ7 zxrxza2iE1hrlyvr#)c-Q7AEGVW|P0L7T6eCgur51+rYrez(9#hK|!G+x4_CbKP5A* z(j~DZ)m90SCXiKcUcko3IQcYNjEae2szGv^se!JMaZ;kLNlId(u0^7uk*=AEv8hQ) znuUo`n(<_Bb}v3u>ozZD&*l*G6)3p`Oi^q}-tI08-xwA!>^k#XvS6}`fI_{HfQ-_; zCMzXiy5shAaSX9IeRqOwUbBNhtG$lpq}T@@-ItyUY2Ml8{h0d+)5nExqzhQe1E(DG z<%(y}%sb%ZbX%b{DM;t=riR*v3vc$N-n)Om{@1sSEEdW~Rtg3we|K$DIl6M9=fT-Z zv)tO-p2+NsS9U&8xNhad1_OojOpV9ucUt?iWhF4KIc-oTTXoJVy?3T!j+Z)9LC?d( zKctp_v%A&U_2ST$Lw04~_msbXdnEkEO^ycNmocxey}i2Ye`$2!ef9DMcVF_pylvRF zs&GeE9>l7w=li z%d$&X<0xb2Jb8u*^W*pJfAI8dvY3FXoc&(wck(lSP7QQ=&Y};>ik_~1F6*2UngA|! Bj=ul^ delta 994 zcmcblvPyYEGb7W)7DEpY1_lO3AcoQIp1uJJMtX(@dd6l93`PbtMn+Z! z23Cej9?h4Z4OA{zO5is}7BBdtpwN8RsEl~?Y*(Xo` z=Qw$q%F&~N1-ceLHb;~e6kfY}FjRo0-eHdH9Ff>1M}ALo>Xy*Axp%zsyUe}a`~tH? zmqjnMSRlP^rk~o9oV?IiwXO_`9Wz`b62o%+rUidkyT1C>vR&ODb^h&$OkhQ&GbAk+?f z>{7|R4`X2Sw}>RjV|YJ@Rsla$3l+XZ}U= zrws?A74|$kySBFPGP{EFX0N*p?Cl34CT_Z3d++Xb+wJw$w?6-7>?kiRCh?1e$06 z2?wS*H%}MG5R21yCm7~81&FlT_hicUL?mBcsCepxLsN4n^V@gtU)dLZWWR8*Wnrd_ z2Ya;d;Y$JSeHNYWB#(6VM(KJ*b$y8<&x~% z9dktu)7d6}b-Mcks3uJ@Gl6-+53%|B-(U5ZY?yd*%E82)7lrOSZQqu)+mL(W?ViXJ z3(Oat^6rV`IB@*%=4%!YH{8jXH0Os{q~K&WGxN_34Qo1He%YOM?-zT~?l-SDAKAVl z2Gc<0}k7-^J{?%y=1z)W~mT2j}e0$96!tGw^+l;$PH@x3- zc#l)|!K9^}@Af^YUVl%T^N5!)&+=9E)r%T;?z0tYzpVUkt^9_Z!|k Date: Thu, 18 Jan 2024 19:52:59 +0000 Subject: [PATCH 037/104] Added golden oak trees --- .../ability/EarthPonyGrowAbility.java | 134 ++++++++++++++++-- .../unicopia/block/EnchantedFruitBlock.java | 24 ++++ .../unicopia/block/FruitBearingBlock.java | 14 +- .../unicopia/block/GoldenOakLeavesBlock.java | 26 ++++ .../unicopia/block/UBlocks.java | 14 +- .../unicopia/block/UWoodTypes.java | 1 + .../minelittlepony/unicopia/item/UItems.java | 1 + .../unicopia/server/world/UTreeGen.java | 12 ++ .../unicopia/blockstates/golden_apple.json | 7 + .../blockstates/golden_oak_leaves.json | 7 + .../unicopia/blockstates/golden_oak_log.json | 16 +++ .../blockstates/golden_oak_sapling.json | 7 + .../blockstates/golden_oak_sprout.json | 28 ++++ .../resources/assets/unicopia/lang/en_us.json | 5 + .../unicopia/models/block/golden_apple.json | 6 + .../models/block/golden_oak_leaves.json | 6 + .../unicopia/models/block/golden_oak_log.json | 7 + .../block/golden_oak_log_horizontal.json | 7 + .../models/block/golden_oak_sapling.json | 6 + .../models/item/golden_oak_leaves.json | 3 + .../unicopia/models/item/golden_oak_log.json | 3 + .../models/item/golden_oak_sapling.json | 6 + .../models/item/golden_oak_seeds.json | 6 + .../textures/block/golden_oak_leaves.png | Bin 0 -> 6220 bytes .../textures/block/golden_oak_log.png | Bin 0 -> 6881 bytes .../textures/block/golden_oak_log_top.png | Bin 0 -> 6689 bytes .../textures/item/golden_oak_sapling.png | Bin 0 -> 6670 bytes .../textures/item/golden_oak_seeds.png | Bin 0 -> 6361 bytes .../minecraft/tags/blocks/dragon_immune.json | 4 +- .../data/minecraft/tags/blocks/leaves.json | 1 + .../data/minecraft/tags/blocks/logs.json | 1 + .../minecraft/tags/blocks/logs_that_burn.json | 1 + .../tags/blocks/maintains_farmland.json | 1 + .../minecraft/tags/blocks/mineable/hoe.json | 1 + .../minecraft/tags/blocks/piglin_loved.json | 8 ++ .../minecraft/tags/items/piglin_loved.json | 9 ++ .../loot_tables/blocks/golden_apple.json | 49 +++++++ .../loot_tables/blocks/golden_oak_leaves.json | 116 +++++++++++++++ .../loot_tables/blocks/golden_oak_log.json | 20 +++ .../blocks/golden_oak_sapling.json | 20 +++ .../data/unicopia/recipes/gold_nugget.json | 9 ++ .../tags/items/loot_bug_high_value_drops.json | 1 + 42 files changed, 569 insertions(+), 18 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/block/EnchantedFruitBlock.java create mode 100644 src/main/java/com/minelittlepony/unicopia/block/GoldenOakLeavesBlock.java create mode 100644 src/main/resources/assets/unicopia/blockstates/golden_apple.json create mode 100644 src/main/resources/assets/unicopia/blockstates/golden_oak_leaves.json create mode 100644 src/main/resources/assets/unicopia/blockstates/golden_oak_log.json create mode 100644 src/main/resources/assets/unicopia/blockstates/golden_oak_sapling.json create mode 100644 src/main/resources/assets/unicopia/blockstates/golden_oak_sprout.json create mode 100644 src/main/resources/assets/unicopia/models/block/golden_apple.json create mode 100644 src/main/resources/assets/unicopia/models/block/golden_oak_leaves.json create mode 100644 src/main/resources/assets/unicopia/models/block/golden_oak_log.json create mode 100644 src/main/resources/assets/unicopia/models/block/golden_oak_log_horizontal.json create mode 100644 src/main/resources/assets/unicopia/models/block/golden_oak_sapling.json create mode 100644 src/main/resources/assets/unicopia/models/item/golden_oak_leaves.json create mode 100644 src/main/resources/assets/unicopia/models/item/golden_oak_log.json create mode 100644 src/main/resources/assets/unicopia/models/item/golden_oak_sapling.json create mode 100644 src/main/resources/assets/unicopia/models/item/golden_oak_seeds.json create mode 100644 src/main/resources/assets/unicopia/textures/block/golden_oak_leaves.png create mode 100644 src/main/resources/assets/unicopia/textures/block/golden_oak_log.png create mode 100644 src/main/resources/assets/unicopia/textures/block/golden_oak_log_top.png create mode 100644 src/main/resources/assets/unicopia/textures/item/golden_oak_sapling.png create mode 100644 src/main/resources/assets/unicopia/textures/item/golden_oak_seeds.png create mode 100644 src/main/resources/data/minecraft/tags/blocks/piglin_loved.json create mode 100644 src/main/resources/data/minecraft/tags/items/piglin_loved.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/golden_apple.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/golden_oak_leaves.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/golden_oak_log.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/golden_oak_sapling.json create mode 100644 src/main/resources/data/unicopia/recipes/gold_nugget.json diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index b69ebae4..f02ee066 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -1,10 +1,13 @@ package com.minelittlepony.unicopia.ability; +import java.util.HashSet; +import java.util.List; import java.util.Optional; +import java.util.Set; import java.util.function.DoubleSupplier; import java.util.function.Supplier; - import com.minelittlepony.unicopia.Race; +import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.ability.data.Pos; @@ -12,9 +15,12 @@ import com.minelittlepony.unicopia.block.UBlocks; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.particle.ParticleUtils; +import com.minelittlepony.unicopia.server.world.BlockDestructionManager; +import com.minelittlepony.unicopia.server.world.UTreeGen; import com.minelittlepony.unicopia.util.TraceHelper; import com.minelittlepony.unicopia.util.VecHelper; +import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.CarrotsBlock; @@ -23,10 +29,13 @@ import net.minecraft.item.BoneMealItem; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.particle.ParticleTypes; +import net.minecraft.state.property.Property; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; import net.minecraft.util.math.Vec3d; +import net.minecraft.util.math.random.Random; import net.minecraft.world.World; +import net.minecraft.world.WorldEvents; /** * Earth Pony ability to grow crops @@ -67,10 +76,14 @@ public class EarthPonyGrowAbility implements Ability { public boolean apply(Pony player, Pos data) { int count = 0; - for (BlockPos pos : BlockPos.iterate( - data.pos().add(-2, -2, -2), - data.pos().add( 2, 2, 2))) { - count += applySingle(player, player.asWorld(), player.asWorld().getBlockState(pos), pos); + if (!applyDirectly(player, data.pos())) { + for (BlockPos pos : BlockPos.iterate( + data.pos().add(-2, -2, -2), + data.pos().add( 2, 2, 2))) { + count += applySingle(player, player.asWorld(), player.asWorld().getBlockState(pos), pos); + } + } else { + count = 1; } if (count > 0) { @@ -90,16 +103,7 @@ public class EarthPonyGrowAbility implements Ability { if (state.isOf(Blocks.CARROTS)) { if (state.get(CarrotsBlock.AGE) == CarrotsBlock.MAX_AGE) { boolean transform = w.random.nextInt(3) == 0; - DoubleSupplier vecComponentFactory = () -> w.random.nextTriangular(0, 0.5); - Supplier posSupplier = () -> pos.toCenterPos().add(VecHelper.supply(vecComponentFactory)); - - for (int i = 0; i < 25; i++) { - ParticleUtils.spawnParticle(w, new MagicParticleEffect(0xFFFF00), posSupplier.get(), Vec3d.ZERO); - if (transform) { - ParticleUtils.spawnParticle(w, ParticleTypes.CLOUD, posSupplier.get(), Vec3d.ZERO); - } - } - + spawnConversionParticles(w, pos, transform); if (transform) { w.setBlockState(pos, UBlocks.GOLD_ROOT.getDefaultState().with(CarrotsBlock.AGE, CarrotsBlock.MAX_AGE)); } @@ -134,6 +138,55 @@ public class EarthPonyGrowAbility implements Ability { return 0; } + private boolean applyDirectly(Pony player, BlockPos pos) { + return TransmutationRecipe.RECIPES.stream() + .filter(recipe -> recipe.matches(player.asWorld(), pos)) + .map(recipe -> recipe.checkPattern(player.asWorld(), pos)) + .filter(result -> result.matchedLocations().size() + 1 >= TransmutationRecipe.MINIMUM_INPUT) + .filter(result -> { + boolean transform = result.shoudTransform(player.asWorld().random); + + player.playSound(USounds.ENTITY_CRYSTAL_SHARDS_AMBIENT, 1); + + result.matchedLocations().forEach(cell -> { + spawnConversionParticles(player.asWorld(), cell.up(), false); + BlockDestructionManager manager = BlockDestructionManager.of(player.asWorld()); + if (transform) { + if (manager.damageBlock(cell, 8) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { + player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); + player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); + } + } else { + if (manager.damageBlock(cell, 4) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { + player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); + player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); + } + } + }); + + spawnConversionParticles(player.asWorld(), pos, transform); + if (transform) { + player.asWorld().setBlockState(pos, result.recipe().getResult(player.asWorld(), pos)); + } + + return true; + }) + .findFirst() + .isPresent(); + } + + private static void spawnConversionParticles(World w, BlockPos pos, boolean success) { + DoubleSupplier vecComponentFactory = () -> w.random.nextTriangular(0, 0.5); + Supplier posSupplier = () -> pos.toCenterPos().add(VecHelper.supply(vecComponentFactory)); + + for (int i = 0; i < 25; i++) { + ParticleUtils.spawnParticle(w, new MagicParticleEffect(0xFFFF00), posSupplier.get(), Vec3d.ZERO); + if (success) { + ParticleUtils.spawnParticle(w, ParticleTypes.CLOUD, posSupplier.get(), Vec3d.ZERO); + } + } + } + @Override public void warmUp(Pony player, AbilitySlot slot) { player.getMagicalReserves().getExertion().addPercent(30); @@ -148,6 +201,57 @@ public class EarthPonyGrowAbility implements Ability { } + private static record TransmutationRecipe(Block input, BlockState output, BlockState material) { + static final List RECIPES = List.of( + new TransmutationRecipe(Blocks.OAK_SAPLING, UTreeGen.GOLDEN_APPLE_TREE.sapling().get().getDefaultState(), Blocks.RAW_GOLD_BLOCK.getDefaultState()), + new TransmutationRecipe(Blocks.CARROTS, UBlocks.GOLD_ROOT.getDefaultState(), Blocks.RAW_GOLD_BLOCK.getDefaultState()), + new TransmutationRecipe(Blocks.CORNFLOWER, UBlocks.CURING_JOKE.getDefaultState(), Blocks.LAPIS_BLOCK.getDefaultState()), + new TransmutationRecipe(Blocks.WITHER_ROSE, UBlocks.PLUNDER_VINE_BUD.getDefaultState(), Blocks.NETHERRACK.getDefaultState()) + ); + static final int RADIUS = 3; + static final int SIDE_LENGTH = (2 * RADIUS) + 1; + static final int AREA = (SIDE_LENGTH * SIDE_LENGTH) - 1; + static final int MINIMUM_INPUT = 9; + + public boolean matches(World world, BlockPos pos) { + return world.getBlockState(pos).isOf(input); + } + + public Result checkPattern(World world, BlockPos pos) { + BlockPos center = pos.down(); + Set matches = new HashSet<>(); + for (BlockPos cell : BlockPos.iterateInSquare(center, RADIUS, Direction.EAST, Direction.NORTH)) { + if (cell.equals(center)) { + continue; + } + if (!world.getBlockState(cell).equals(material)) { + break; + } + matches.add(cell.toImmutable()); + } + return new Result(this, matches); + } + + public BlockState getResult(World world, BlockPos pos) { + BlockState input = world.getBlockState(pos); + BlockState output = this.output; + for (var property : input.getProperties()) { + output = copyProperty(input, output, property); + } + return output; + } + + private > BlockState copyProperty(BlockState from, BlockState to, Property property) { + return to.withIfExists(property, from.get(property)); + } + + record Result (TransmutationRecipe recipe, Set matchedLocations) { + public boolean shoudTransform(Random random) { + return random.nextInt(TransmutationRecipe.AREA) < matchedLocations().size(); + } + } + } + public interface Growable { boolean grow(World world, BlockState state, BlockPos pos); } diff --git a/src/main/java/com/minelittlepony/unicopia/block/EnchantedFruitBlock.java b/src/main/java/com/minelittlepony/unicopia/block/EnchantedFruitBlock.java new file mode 100644 index 00000000..c6af9166 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/EnchantedFruitBlock.java @@ -0,0 +1,24 @@ +package com.minelittlepony.unicopia.block; + +import net.minecraft.block.Block; +import net.minecraft.block.BlockState; +import net.minecraft.state.StateManager; +import net.minecraft.state.property.BooleanProperty; +import net.minecraft.util.math.Direction; +import net.minecraft.util.shape.VoxelShape; + +public class EnchantedFruitBlock extends FruitBlock { + static final BooleanProperty ENCHANTED = BooleanProperty.of("enchanted"); + + public EnchantedFruitBlock(Settings settings, Direction attachmentFace, Block stem, VoxelShape shape) { + super(settings, attachmentFace, stem, shape); + setDefaultState(getDefaultState().with(ENCHANTED, false)); + } + + @Override + protected void appendProperties(StateManager.Builder builder) { + super.appendProperties(builder); + builder.add(ENCHANTED); + } + +} diff --git a/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java b/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java index 8faa118a..b9741cef 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/FruitBearingBlock.java @@ -62,6 +62,14 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka return true; } + protected boolean shouldAdvance(Random random) { + return true; + } + + protected BlockState getPlacedFruitState(Random random) { + return fruit.get().getDefaultState(); + } + @Override public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) { super.randomTick(state, world, pos, random); @@ -74,6 +82,10 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka BlockSoundGroup group = getSoundGroup(state); int steps = FertilizableUtil.getGrowthSteps(world, pos, state, random); while (steps-- > 0) { + if (!shouldAdvance(random)) { + continue; + } + if (state.get(STAGE) == Stage.FRUITING) { state = state.cycle(AGE); if (state.get(AGE) > 20) { @@ -89,7 +101,7 @@ public class FruitBearingBlock extends LeavesBlock implements TintedBlock, Bucka if (stage == Stage.FRUITING && isPositionValidForFruit(state, pos)) { if (world.isAir(fruitPosition)) { - world.setBlockState(fruitPosition, fruit.get().getDefaultState(), Block.NOTIFY_ALL); + world.setBlockState(fruitPosition, getPlacedFruitState(random), Block.NOTIFY_ALL); } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/GoldenOakLeavesBlock.java b/src/main/java/com/minelittlepony/unicopia/block/GoldenOakLeavesBlock.java new file mode 100644 index 00000000..1ae9ed61 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/GoldenOakLeavesBlock.java @@ -0,0 +1,26 @@ +package com.minelittlepony.unicopia.block; + +import java.util.function.Supplier; + +import net.minecraft.block.Block; +import net.minecraft.block.BlockState; +import net.minecraft.item.ItemStack; +import net.minecraft.util.math.random.Random; + +public class GoldenOakLeavesBlock extends FruitBearingBlock { + + public GoldenOakLeavesBlock(Settings settings, int overlay, Supplier fruit, + Supplier rottenFruitSupplier) { + super(settings, overlay, fruit, rottenFruitSupplier); + } + + @Override + protected boolean shouldAdvance(Random random) { + return random.nextInt(1000) == 0; + } + + @Override + protected BlockState getPlacedFruitState(Random random) { + return super.getPlacedFruitState(random).with(EnchantedFruitBlock.ENCHANTED, random.nextInt(1000) == 0); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index ca6726e9..7fc8d666 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -79,7 +79,7 @@ public interface UBlocks { Block PALM_STAIRS = register("palm_stairs", new StairsBlock(PALM_PLANKS.getDefaultState(), Settings.copy(PALM_PLANKS).pistonBehavior(PistonBehavior.NORMAL)), ItemGroups.BUILDING_BLOCKS); Block PALM_SLAB = register("palm_slab", new SlabBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).strength(2, 3).sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.NORMAL)), ItemGroups.BUILDING_BLOCKS); Block PALM_FENCE = register("palm_fence", new FenceBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).strength(2, 3).sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.NORMAL)), ItemGroups.BUILDING_BLOCKS); - Block PALM_FENCE_GATE = register("palm_fence_gate", new FenceGateBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).strength(2, 3).sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.NORMAL), WoodType.OAK), ItemGroups.BUILDING_BLOCKS); + Block PALM_FENCE_GATE = register("palm_fence_gate", new FenceGateBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).strength(2, 3).sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.NORMAL), UWoodTypes.PALM), ItemGroups.BUILDING_BLOCKS); Block PALM_DOOR = register("palm_door", new DoorBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).instrument(Instrument.BASS).strength(3.0f).nonOpaque().burnable().pistonBehavior(PistonBehavior.DESTROY), UWoodTypes.PALM.setType()), ItemGroups.FUNCTIONAL); Block PALM_TRAPDOOR = register("palm_trapdoor", new TrapdoorBlock(Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).instrument(Instrument.BASS).strength(3).nonOpaque().allowsSpawning(BlockConstructionUtils::never).burnable(), UWoodTypes.PALM.setType()), ItemGroups.FUNCTIONAL); Block PALM_PRESSURE_PLATE = register("palm_pressure_plate", new PressurePlateBlock(PressurePlateBlock.ActivationRule.EVERYTHING, Settings.create().mapColor(PALM_PLANKS.getDefaultMapColor()).noCollision().strength(0.5f).sounds(BlockSoundGroup.WOOD).pistonBehavior(PistonBehavior.DESTROY), BlockSetType.OAK), ItemGroups.BUILDING_BLOCKS); @@ -127,6 +127,16 @@ public interface UBlocks { Block SOUR_APPLE = register("sour_apple", new FruitBlock(Settings.create().mapColor(MapColor.GREEN), Direction.DOWN, SOUR_APPLE_LEAVES, FruitBlock.DEFAULT_SHAPE)); Block SOUR_APPLE_SPROUT = register("sour_apple_sprout", new SproutBlock(0xE5FFCC88, () -> UItems.SOUR_APPLE_SEEDS, () -> UTreeGen.SOUR_APPLE_TREE.sapling().map(Block::getDefaultState).get())); + Block GOLDEN_OAK_LEAVES = register("golden_oak_leaves", new GoldenOakLeavesBlock(FabricBlockSettings.copy(Blocks.OAK_LEAVES), + MapColor.GOLD.color, + () -> UBlocks.GOLDEN_APPLE, + () -> Items.GOLDEN_APPLE.getDefaultStack() + ), ItemGroups.NATURAL); + Block GOLDEN_APPLE = register("golden_apple", new EnchantedFruitBlock(Settings.create().mapColor(MapColor.GOLD), Direction.DOWN, GOLDEN_OAK_LEAVES, FruitBlock.DEFAULT_SHAPE)); + Block GOLDEN_OAK_SPROUT = register("golden_oak_sprout", new SproutBlock(0xE5FFCC88, () -> UItems.GOLDEN_OAK_SEEDS, () -> UTreeGen.GOLDEN_APPLE_TREE.sapling().map(Block::getDefaultState).get())); + + Block GOLDEN_OAK_LOG = register("golden_oak_log", BlockConstructionUtils.createLogBlock(MapColor.OFF_WHITE, MapColor.GOLD), ItemGroups.BUILDING_BLOCKS); + Block APPLE_PIE = register("apple_pie", new PieBlock(Settings.create().solid().mapColor(MapColor.ORANGE).strength(0.5F).sounds(BlockSoundGroup.WOOL).pistonBehavior(PistonBehavior.DESTROY), () -> UItems.APPLE_PIE_SLICE, () -> UItems.APPLE_PIE, @@ -254,10 +264,12 @@ public interface UBlocks { FlammableBlockRegistry.getDefaultInstance().add(GREEN_APPLE_LEAVES, 30, 60); FlammableBlockRegistry.getDefaultInstance().add(SWEET_APPLE_LEAVES, 30, 60); FlammableBlockRegistry.getDefaultInstance().add(SOUR_APPLE_LEAVES, 30, 60); + FlammableBlockRegistry.getDefaultInstance().add(GOLDEN_OAK_LEAVES, 60, 120); FlammableBlockRegistry.getDefaultInstance().add(MANGO_LEAVES, 30, 60); FlammableBlockRegistry.getDefaultInstance().add(PALM_LEAVES, 30, 60); FlammableBlockRegistry.getDefaultInstance().add(PALM_LOG, 5, 5); FlammableBlockRegistry.getDefaultInstance().add(PALM_WOOD, 5, 5); + FlammableBlockRegistry.getDefaultInstance().add(GOLDEN_OAK_LOG, 15, 15); FlammableBlockRegistry.getDefaultInstance().add(STRIPPED_PALM_LOG, 5, 5); FlammableBlockRegistry.getDefaultInstance().add(STRIPPED_PALM_WOOD, 5, 5); FlammableBlockRegistry.getDefaultInstance().add(PALM_PLANKS, 5, 20); diff --git a/src/main/java/com/minelittlepony/unicopia/block/UWoodTypes.java b/src/main/java/com/minelittlepony/unicopia/block/UWoodTypes.java index 0a44586e..5f76ed97 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UWoodTypes.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UWoodTypes.java @@ -15,6 +15,7 @@ import net.minecraft.util.Identifier; public interface UWoodTypes { WoodType PALM = register("palm"); + WoodType GOLDEN_OAK = register("golden_oak"); RegistryKey PALM_BOAT_TYPE = TerraformBoatTypeRegistry.createKey(Unicopia.id("palm")); BlockSetType CLOUD = new BlockSetTypeBuilder() diff --git a/src/main/java/com/minelittlepony/unicopia/item/UItems.java b/src/main/java/com/minelittlepony/unicopia/item/UItems.java index 40f9eccd..a5ede2a8 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/UItems.java +++ b/src/main/java/com/minelittlepony/unicopia/item/UItems.java @@ -107,6 +107,7 @@ public interface UItems { Item GREEN_APPLE_SEEDS = register("green_apple_seeds", new AliasedBlockItem(UBlocks.GREEN_APPLE_SPROUT, new Item.Settings()), ItemGroups.NATURAL); Item SWEET_APPLE_SEEDS = register("sweet_apple_seeds", new AliasedBlockItem(UBlocks.SWEET_APPLE_SPROUT, new Item.Settings()), ItemGroups.NATURAL); Item SOUR_APPLE_SEEDS = register("sour_apple_seeds", new AliasedBlockItem(UBlocks.SOUR_APPLE_SPROUT, new Item.Settings()), ItemGroups.NATURAL); + Item GOLDEN_OAK_SEEDS = register("golden_oak_seeds", new AliasedBlockItem(UBlocks.GOLDEN_OAK_SPROUT, new Item.Settings()), ItemGroups.NATURAL); Item MUG = register("mug", new Item(new Settings().maxCount(16)), ItemGroups.TOOLS); Item CIDER = register("cider", new DrinkableItem(new Item.Settings().food(UFoodComponents.CIDER).maxCount(1).recipeRemainder(MUG)), ItemGroups.FOOD_AND_DRINK); diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java index bb55a235..8331e694 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java @@ -46,6 +46,16 @@ public interface UTreeGen { Tree GREEN_APPLE_TREE = createAppleTree("green_apple", UBlocks.GREEN_APPLE_LEAVES, 2); Tree SWEET_APPLE_TREE = createAppleTree("sweet_apple", UBlocks.SWEET_APPLE_LEAVES, 3); Tree SOUR_APPLE_TREE = createAppleTree("sour_apple", UBlocks.SOUR_APPLE_LEAVES, 5); + Tree GOLDEN_APPLE_TREE = Tree.Builder.create(Unicopia.id("golden_oak_tree"), + new StraightTrunkPlacer(6, 7, 3), + new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3) + ) + .configure(TreeFeatureConfig.Builder::forceDirt) + .farmingCondition(1, 3, 5) + .log(UBlocks.GOLDEN_OAK_LOG) + .leaves(UBlocks.GOLDEN_OAK_LEAVES) + .sapling(Unicopia.id("golden_oak_sapling")) + .build(); Tree BANANA_TREE = Tree.Builder.create(Unicopia.id("banana_tree"), new StraightTrunkPlacer(4, 5, 3), new FernFoliagePlacer(ConstantIntProvider.create(4), ConstantIntProvider.create(0)) @@ -84,6 +94,8 @@ public interface UTreeGen { new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3) ) .configure(TreeFeatureConfig.Builder::forceDirt) + .biomes(selector -> selector.hasTag(BiomeTags.IS_FOREST)) + .count(2, 0.01F, 1) .farmingCondition(1, preferredDensity - 2, preferredDensity) .log(Blocks.OAK_LOG) .leaves(leaves) diff --git a/src/main/resources/assets/unicopia/blockstates/golden_apple.json b/src/main/resources/assets/unicopia/blockstates/golden_apple.json new file mode 100644 index 00000000..e0c679aa --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/golden_apple.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "unicopia:block/golden_apple" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/blockstates/golden_oak_leaves.json b/src/main/resources/assets/unicopia/blockstates/golden_oak_leaves.json new file mode 100644 index 00000000..b8084dfb --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/golden_oak_leaves.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "unicopia:block/golden_oak_leaves" + } + } +} diff --git a/src/main/resources/assets/unicopia/blockstates/golden_oak_log.json b/src/main/resources/assets/unicopia/blockstates/golden_oak_log.json new file mode 100644 index 00000000..4f50529f --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/golden_oak_log.json @@ -0,0 +1,16 @@ +{ + "variants": { + "axis=x": { + "model": "unicopia:block/golden_oak_log_horizontal", + "x": 90, + "y": 90 + }, + "axis=y": { + "model": "unicopia:block/golden_oak_log" + }, + "axis=z": { + "model": "unicopia:block/golden_oak_log_horizontal", + "x": 90 + } + } +} diff --git a/src/main/resources/assets/unicopia/blockstates/golden_oak_sapling.json b/src/main/resources/assets/unicopia/blockstates/golden_oak_sapling.json new file mode 100644 index 00000000..7288f548 --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/golden_oak_sapling.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "unicopia:block/golden_oak_sapling" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/blockstates/golden_oak_sprout.json b/src/main/resources/assets/unicopia/blockstates/golden_oak_sprout.json new file mode 100644 index 00000000..f88ff7ea --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/golden_oak_sprout.json @@ -0,0 +1,28 @@ +{ + "variants": { + "age=0": { + "model": "unicopia:block/apple_sprout_stage0" + }, + "age=1": { + "model": "unicopia:block/apple_sprout_stage1" + }, + "age=2": { + "model": "unicopia:block/apple_sprout_stage2" + }, + "age=3": { + "model": "unicopia:block/apple_sprout_stage3" + }, + "age=4": { + "model": "unicopia:block/apple_sprout_stage4" + }, + "age=5": { + "model": "unicopia:block/apple_sprout_stage5" + }, + "age=6": { + "model": "unicopia:block/apple_sprout_stage6" + }, + "age=7": { + "model": "unicopia:block/apple_sprout_stage7" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 97196487..d516f4d9 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -123,6 +123,7 @@ "item.unicopia.green_apple_seeds": "Granny Smith Apple Seeds", "item.unicopia.sweet_apple_seeds": "Sweet Apple Seeds", "item.unicopia.sour_apple_seeds": "Sour Apple Seeds", + "item.unicopia.golden_oak_seeds": "Golden Oak Seeds", "item.unicopia.apple_pie_hoof": "Apple Pie with a Hoofprint", "item.unicopia.apple_pie_slice": "Slice Of Apple Pie", "item.unicopia.candied_apple": "Candied Apple", @@ -248,6 +249,10 @@ "block.unicopia.weather_vane": "Weather Vane", "block.unicopia.curing_joke": "Curing Joke", "block.unicopia.gold_root": "Gold Root", + "block.unicopia.golden_oak_sprout": "Golden Oak Sprout", + "block.unicopia.golden_oak_sapling": "Golden Oak Sapling", + "block.unicopia.golden_oak_leaves": "Golden Oak Leaves", + "block.unicopia.golden_oak_log": "Golden Oak Log", "block.unicopia.mango": "Mango", "block.unicopia.mango_leaves": "Mango Leaves", "block.unicopia.mango_sapling": "Mango Sapling", diff --git a/src/main/resources/assets/unicopia/models/block/golden_apple.json b/src/main/resources/assets/unicopia/models/block/golden_apple.json new file mode 100644 index 00000000..a2a567a9 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/golden_apple.json @@ -0,0 +1,6 @@ +{ + "parent": "unicopia:block/fruit", + "textures": { + "cross": "minecraft:item/golden_apple" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/golden_oak_leaves.json b/src/main/resources/assets/unicopia/models/block/golden_oak_leaves.json new file mode 100644 index 00000000..0c8f2bd9 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/golden_oak_leaves.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/leaves", + "textures": { + "all": "unicopia:block/golden_oak_leaves" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/golden_oak_log.json b/src/main/resources/assets/unicopia/models/block/golden_oak_log.json new file mode 100644 index 00000000..d4909cb0 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/golden_oak_log.json @@ -0,0 +1,7 @@ +{ + "parent": "minecraft:block/cube_column", + "textures": { + "end": "unicopia:block/golden_oak_log_top", + "side": "unicopia:block/golden_oak_log" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/golden_oak_log_horizontal.json b/src/main/resources/assets/unicopia/models/block/golden_oak_log_horizontal.json new file mode 100644 index 00000000..8dc80c7b --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/golden_oak_log_horizontal.json @@ -0,0 +1,7 @@ +{ + "parent": "minecraft:block/cube_column_horizontal", + "textures": { + "end": "unicopia:block/golden_oak_log_top", + "side": "unicopia:block/golden_oak_log" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/golden_oak_sapling.json b/src/main/resources/assets/unicopia/models/block/golden_oak_sapling.json new file mode 100644 index 00000000..c4c2ba33 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/golden_oak_sapling.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cross", + "textures": { + "cross": "unicopia:item/golden_oak_sapling" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/item/golden_oak_leaves.json b/src/main/resources/assets/unicopia/models/item/golden_oak_leaves.json new file mode 100644 index 00000000..14afba2f --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/golden_oak_leaves.json @@ -0,0 +1,3 @@ +{ + "parent": "unicopia:block/golden_oak_leaves" +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/item/golden_oak_log.json b/src/main/resources/assets/unicopia/models/item/golden_oak_log.json new file mode 100644 index 00000000..699482c5 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/golden_oak_log.json @@ -0,0 +1,3 @@ +{ + "parent": "unicopia:block/golden_oak_log" +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/item/golden_oak_sapling.json b/src/main/resources/assets/unicopia/models/item/golden_oak_sapling.json new file mode 100644 index 00000000..cc4be552 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/golden_oak_sapling.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/golden_oak_sapling" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/golden_oak_seeds.json b/src/main/resources/assets/unicopia/models/item/golden_oak_seeds.json new file mode 100644 index 00000000..16cb1fc6 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/golden_oak_seeds.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/golden_oak_seeds" + } +} diff --git a/src/main/resources/assets/unicopia/textures/block/golden_oak_leaves.png b/src/main/resources/assets/unicopia/textures/block/golden_oak_leaves.png new file mode 100644 index 0000000000000000000000000000000000000000..2242b16857eb602a0f29422b0754cb9960283603 GIT binary patch literal 6220 zcmeHLX;f547JeYeHpaN1xDeYWZs?=mzDdUg2(;4d#}G42@|JqgN-uOb(5TUTvF;Np&WIUOP8XY%6VoY#CL~|zKGKtHKsFBH-1WBe|vj{UeXO3r#zkHnPs#kUE zt9!q?_g3+|X(@@lLI;N;2-3@x6rTa>C$$pX6aEfs{#k_88IWyKO{Qoh7`{MBzW~Hf zlYzyrOWWVC2hs!fErz8pY-=)F8SEG6t5?AGkoNXk*dE<3qs_tn{E=R;E{BDH?f$Ud z35#V(+ge9pTYG|if2=>^ljx`uP3ANm5rbnfBm?JT1SMd&fO9&W6>wg_S-8I6oA))+ zkQ!e^WvJh)mbkbyQ(TdB?=3tWd?ubPL@ZWhp zt|_@YwDC~yCkKabe?F&RVx5)Tl)UuIuXaYvNm_C3(wS$6EBs#l_^kM<6`*K2NVeRQ&Umg!Q!nbynPFnMC$ zz`Xj%t1agXHjJ8hd(iuz|MjOCJ=V8AeYmmyt;C5xGme6W`nAT3&Y+07gpygbO^0qt zLmF$Zz2Q8120e4=%BOqYTU8gNi`ze?0SQ`i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n7uE&TTnCA{9aJY`5U`S!z;qBd7G-YuZ+B*j4*E*J!psV zd`ynSym$#;+^}?WfdA2- dst?}_szg7?ySne}Cg`<@DIq0(@8p*j{2Tn{Jxc%p literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/block/golden_oak_log.png b/src/main/resources/assets/unicopia/textures/block/golden_oak_log.png new file mode 100644 index 0000000000000000000000000000000000000000..414dd04ceb1e5f10d54be9265ad3f5856f484786 GIT binary patch literal 6881 zcmeHMc~}$I7N23u0#v}@_EbV#h}MvuEJ6?=KvaZa#HD?NMaHtsQ7R}F?D$= z+Sc7zx8hP)s-ShNYhRVBweI4I)*=cOL|fmPNkFjnd(Zd1{^#&b=FUCm{OPZJg;IYd^Hl zz)dCplA%Q)H$9V7DQQeWB%c>4jDmQcKqTk!<$NiVFOds`ay}ot(N(W9f>4Bp{EoP> z38W@Y1Z)#0qTR%)KeW9)`4Y@(2T$^>*E8~e6S-v!M-8k{5Ze1 zYK+1f%MeVNzna>u|F(mn=@m8Ig<9)W8ogcn4jnu7=o!K8)mtQvl1OFp_ylEQQnG5m z5Y5nxVZ%p^)ah|UW|ncZ%|32?t|M>4wCRO2W){tIE?8K+Xz{0?eZIuC=8LuK)^FJO z<@OyrckM3yde7cNhmU-F^w{weCx1A5?);Aze!6(6^5(7EckbS+y8qzuliIpppVl`# zYb1CPJew{zv)6b911~QhA8#KD!3*`uC5Q+6_=fZSLgLgEY;0SWU<#GdfBx!i2Wj1e z={2ERYX!YscTr`J#{@N!*?&iD>i@*7nb<2{myiH&6eiC*7>Py7l#F5bC@)~=kJK38D(AlnncHnMlhy$0J(`B3r zW$64KU$R~M54@-<0lZ@?U5mhU&ILI87TzeTaycK*+ZP6wos&9RA#{b}_C|O+6Gl&h z$L#$3MAZ3}%Yp#u@%pMlh}&P#kS=Gt%5{&Fki!*45cHJ`t54b0O1)|{V0;xT7i@4j zpT*Z%Tu!!EtD!vU)v1+n;YvoD4+J@mU0bqKt;`?s>|h{6{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*mD4CeF2(GD!m=xI8XR6~hul@?Q0%Wn*>& z1jMig8BOCHuM8Sv4nD+=5o+=!Jh50N70dWhVxb_aMRW#kwLv8knB;kr3@4^V4rD-B zjHpupAp3!fJl=|9cC%GuHfP7Mnop|D<`h^?dd!X`V0Iipo6oMArnBq&Jf58APJn<* zG3$+ny#M4)EFNYw_`{SZ8*MOt9@*tyQA6;t?l<>qwvk*)OeVP~WEFjFQDyN9P-oBEA!C;EPf{nc>_H^Hx*ngoYmXcOq@B;<KsXOVNo?3)bDuujj) zFVLQRzxnvn8T}_Nxw&a)!Mue^NR5hZEtt&^*0$m5^`7CP&Kt0KPV zinFMA?VXrgk_*!x(3gJNxi0T3#)e+uTX(b0hdN6qb)B92arWm$Os#PHhlfA-X#|QK z%KYQF7Gr_a!z3+;Cc%FgWCd$Qjr!|n{Gt++9BaY@*N#brNsS;ZQ>y!yy-!Iool igr(Con?hcApSiPm=q=qw_y+`nsFZ^fw)Fpa>c0W+)X@F_ literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/block/golden_oak_log_top.png b/src/main/resources/assets/unicopia/textures/block/golden_oak_log_top.png new file mode 100644 index 0000000000000000000000000000000000000000..be183711ca43ba9a8e6395457654d477366aaac5 GIT binary patch literal 6689 zcmeHKd011&7QYDu!lr=10@V_t)re*fWD$@pNKlXs~aEtowM&35`w!4^=cm=E+d(1c(!px+G5u*ebXBd|Y* zMkoK0z(UAf{b*%M8dJy>@VTN0SkD)V<$Qr$AY}?9a$&e!#0PK6+MbMHDdvGa#vIrP zsf!bW?c#*&E>3Y^yEyYj%DDBi1DrPEPN6z5lh9hH{jNI-(3N}V`Oa3%H#t$62!Rj{ z`0Bib#bb0gH+MH0-QC^Y!-MYW&G7N|^70Py@7I?xFgWC;fx!a?Fb8voGFc-A4H&?d z3>(20h{fWNp|U8cFp?`03lRv#!^6Yd%RA7=Cr}tVAXNCwpUy*=A06f7LSbQ4KZ=VV zrSmWr0(sIX3_SfnOt+J|m`HGd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b;^-bnM>DB|pDaGmQVV^Zlir?XvePVi{*X$=bEgK=|6aHJ{1B-f75d zjU;1gC9_C5tyoMlA14+J4OC z%9x#_Ft-FQiQThJ-2IaMpsw2JDv&2m8W-_I&5(lewUO-APM6f(M!p=pGJa;=F6sA| z6J~zB{6k)yu;BGQIWy_Baax*S^rlVjg@TwP#gfeJ%iNv2mp*r-^OH+?$EOhE8i@(b z>zs2tl7CS?IX+p|k`>fg-Tv^|J5i+6eG}GS*?Ycm+m}+p{H6o1wfr>o+JO^e+IGG- zOh&x5tNMlS-`mhmcw_v5j^&#RU1I`Gv~ESm+>G-p0vDO9zu9@^tD>vYImjtd!=+HG zm6{&B;)C|i_BAK>-1+kKs`Fus%WQAoXcTOP?^CBKztB;boh8>crcS13CMN|c zoN@pt#T+QZSz2PY%biN52UiY0-pyq)JRy#mN@gK^W2RYb7(>Jnad>Q%(^M{CCIvAR zHoZZfm!9E+fR>V3>~L7+Ty8~01*byDvDl1UzDy?L@&sIgfDI9Bd!^ZdI@xA>91h{d zNXP6to5|`hS2pP)qr!ScK{g{h-uly8|`rFdPcN zIVQjnO0}q1s83`kN(=_JNQN2MQa)eDMiZqHncl$H=?s#75R+^ss7kb?e^xk@9-ssg zRI5W#9$SKmBy15T5V2)aOu|M*B8h~@(~EdAnFmU*lV@0Lr6_EtsT4J0T&vmW8NdaX zr{t=YOaX`2*OOajDXF2-@@=c}KWCx0?$(QgF6J;`iSR@gPg<^4EPyuGM zLnY#vo^zFF1m6}pkO5&)yiNhY(+^zaX*LXXSZw(gONo-%dm`%{&W6WHk2=tF)PVtL z?-?!Me@1(Z$CLBC>Em$O7QM+(`QM`Phlinnc-ZnxlO5Kt^mKWjsL5EFx8-e?m^_aX zgW-87 Date: Fri, 19 Jan 2024 15:27:28 +0000 Subject: [PATCH 038/104] Remove old temporary assets --- assets/models/cloud_bed.java | 50 -------- assets/models/cloud_chest.java | 32 ----- assets/models/ignimious_bulb.java | 69 ----------- assets/models/slime_pustule_cap.json | 46 ------- assets/models/slime_pustule_pod.json | 137 --------------------- assets/models/slime_pustule_rope.json | 22 ---- assets/models/tentacle.java | 169 -------------------------- 7 files changed, 525 deletions(-) delete mode 100644 assets/models/cloud_bed.java delete mode 100644 assets/models/cloud_chest.java delete mode 100644 assets/models/ignimious_bulb.java delete mode 100644 assets/models/slime_pustule_cap.json delete mode 100644 assets/models/slime_pustule_pod.json delete mode 100644 assets/models/slime_pustule_rope.json delete mode 100644 assets/models/tentacle.java diff --git a/assets/models/cloud_bed.java b/assets/models/cloud_bed.java deleted file mode 100644 index 88008846..00000000 --- a/assets/models/cloud_bed.java +++ /dev/null @@ -1,50 +0,0 @@ -// Made with Blockbench 4.8.3 -// Exported for Minecraft version 1.17 or later with Mojang mappings -// Paste this class into your mod and generate all required imports - - -public class cloud_bed extends EntityModel { - // This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor - public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation("modid", "cloud_bed"), "main"); - private final ModelPart head; - private final ModelPart foot; - - public cloud_bed(ModelPart root) { - this.head = root.getChild("head"); - this.foot = root.getChild("foot"); - } - - public static LayerDefinition createBodyLayer() { - MeshDefinition meshdefinition = new MeshDefinition(); - PartDefinition partdefinition = meshdefinition.getRoot(); - - PartDefinition head = partdefinition.addOrReplaceChild("head", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F)); - - PartDefinition main_r1 = head.addOrReplaceChild("main_r1", CubeListBuilder.create().texOffs(0, 0).addBox(-8.0F, -21.0F, -9.0F, 16.0F, 13.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, -16.0F, -1.5708F, 0.0F, 0.0F)); - - PartDefinition head_board = head.addOrReplaceChild("head_board", CubeListBuilder.create().texOffs(52, 24).addBox(7.0F, -13.0F, -3.0F, 2.0F, 13.0F, 3.0F, new CubeDeformation(0.0F)) - .texOffs(0, 43).addBox(-6.0F, -15.0F, -2.0F, 13.0F, 15.0F, 3.0F, new CubeDeformation(0.0F)) - .texOffs(52, 24).addBox(-8.0F, -13.0F, -3.0F, 2.0F, 13.0F, 3.0F, new CubeDeformation(0.0F)), PartPose.offset(-0.5F, 0.0F, 7.0F)); - - PartDefinition foot = partdefinition.addOrReplaceChild("foot", CubeListBuilder.create(), PartPose.offset(0.0F, 24.0F, 0.0F)); - - PartDefinition main_r2 = foot.addOrReplaceChild("main_r2", CubeListBuilder.create().texOffs(0, 22).addBox(-8.0F, -8.0F, -9.0F, 16.0F, 15.0F, 6.0F, new CubeDeformation(0.0F)), PartPose.offsetAndRotation(0.0F, 0.0F, 0.0F, -1.5708F, 0.0F, 0.0F)); - - PartDefinition head_board2 = foot.addOrReplaceChild("head_board2", CubeListBuilder.create().texOffs(52, 40).addBox(6.0F, -13.0F, -2.0F, 3.0F, 10.0F, 3.0F, new CubeDeformation(0.0F)) - .texOffs(0, 43).addBox(-6.0F, -15.0F, -3.0F, 13.0F, 11.0F, 3.0F, new CubeDeformation(0.0F)) - .texOffs(52, 40).addBox(-8.0F, -13.0F, -2.0F, 3.0F, 10.0F, 3.0F, new CubeDeformation(0.0F)), PartPose.offset(-0.5F, 3.0F, -7.0F)); - - return LayerDefinition.create(meshdefinition, 64, 64); - } - - @Override - public void setupAnim(T entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { - - } - - @Override - public void renderToBuffer(PoseStack poseStack, VertexConsumer vertexConsumer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { - head.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha); - foot.render(poseStack, vertexConsumer, packedLight, packedOverlay, red, green, blue, alpha); - } -} \ No newline at end of file diff --git a/assets/models/cloud_chest.java b/assets/models/cloud_chest.java deleted file mode 100644 index 87e684a2..00000000 --- a/assets/models/cloud_chest.java +++ /dev/null @@ -1,32 +0,0 @@ -// Made with Blockbench 4.8.3 -// Exported for Minecraft version 1.17+ for Yarn -// Paste this class into your mod and generate all required imports -public class cloud_chest extends EntityModel { - private final ModelPart lid; - private final ModelPart lock_r1; - private final ModelPart bb_main; - public cloud_chest(ModelPart root) { - this.lid = root.getChild("lid"); - this.bb_main = root.getChild("bb_main"); - } - public static TexturedModelData getTexturedModelData() { - ModelData modelData = new ModelData(); - ModelPartData modelPartData = modelData.getRoot(); - ModelPartData lid = modelPartData.addChild("lid", ModelPartBuilder.create().uv(0, 0).cuboid(-1.0F, -2.0F, 13.8F, 2.0F, 4.0F, 1.0F, new Dilation(0.0F)) - .uv(0, 0).cuboid(-1.0F, -1.0F, 14.0F, 2.0F, 2.0F, 1.0F, new Dilation(0.0F)) - .uv(0, 0).cuboid(-7.0F, -5.0F, 0.0F, 14.0F, 5.0F, 14.0F, new Dilation(0.3F)), ModelTransform.of(0.0F, 16.0F, -7.0F, 1.0908F, 0.0F, 0.0F)); - - ModelPartData lock_r1 = lid.addChild("lock_r1", ModelPartBuilder.create().uv(0, 0).cuboid(-2.0F, -4.0F, -0.5F, 2.0F, 4.0F, 1.0F, new Dilation(0.0F)), ModelTransform.of(-2.0F, 1.0F, 14.3F, 0.0F, 0.0F, 1.5708F)); - - ModelPartData bb_main = modelPartData.addChild("bb_main", ModelPartBuilder.create().uv(0, 19).cuboid(-7.0F, -10.0F, -7.0F, 14.0F, 10.0F, 14.0F, new Dilation(0.0F)), ModelTransform.pivot(0.0F, 24.0F, 0.0F)); - return TexturedModelData.of(modelData, 64, 64); - } - @Override - public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { - } - @Override - public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { - lid.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); - bb_main.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); - } -} \ No newline at end of file diff --git a/assets/models/ignimious_bulb.java b/assets/models/ignimious_bulb.java deleted file mode 100644 index 8eb9b255..00000000 --- a/assets/models/ignimious_bulb.java +++ /dev/null @@ -1,69 +0,0 @@ -// Made with Blockbench 4.8.3 -// Exported for Minecraft version 1.17+ for Yarn -// Paste this class into your mod and generate all required imports -public class ignimious_bulb extends EntityModel { - private final ModelPart head; - private final ModelPart cube_r1; - private final ModelPart head_r1; - private final ModelPart leaves; - private final ModelPart cube_r2; - private final ModelPart cube_r3; - private final ModelPart cube_r4; - private final ModelPart cube_r5; - private final ModelPart cube_r6; - private final ModelPart cube_r7; - private final ModelPart cube_r8; - private final ModelPart cube_r9; - private final ModelPart cube_r10; - private final ModelPart cube_r11; - private final ModelPart cube_r12; - private final ModelPart cube_r13; - public ignimious_bulb(ModelPart root) { - this.head = root.getChild("head"); - this.leaves = root.getChild("leaves"); - } - public static TexturedModelData getTexturedModelData() { - ModelData modelData = new ModelData(); - ModelPartData modelPartData = modelData.getRoot(); - ModelPartData head = modelPartData.addChild("head", ModelPartBuilder.create().uv(0, 0).cuboid(-24.0432F, -0.9905F, -48.1305F, 48.0F, 23.0F, 48.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 7.0F, 24.0F, -0.1308F, 0.0057F, 0.0433F)); - - ModelPartData cube_r1 = head.addChild("cube_r1", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, -27.0F, 5.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(1.3731F, -21.6152F, -11.61F, -1.9802F, 0.1003F, 0.0006F)); - - ModelPartData head_r1 = head.addChild("head_r1", ModelPartBuilder.create().uv(0, 71).cuboid(-23.0F, -16.0F, -46.0F, 46.0F, 23.0F, 46.0F, new Dilation(0.0F)), ModelTransform.of(-0.0432F, -0.9905F, -0.1305F, -0.1309F, 0.0F, 0.0F)); - - ModelPartData leaves = modelPartData.addChild("leaves", ModelPartBuilder.create(), ModelTransform.pivot(0.0F, 27.0F, -1.0F)); - - ModelPartData cube_r2 = leaves.addChild("cube_r2", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 3.0F, -55.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.8316F, -1.0127F, -3.0858F)); - - ModelPartData cube_r3 = leaves.addChild("cube_r3", ModelPartBuilder.create().uv(112, 0).cuboid(-14.0F, 12.0F, -60.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.6063F, -0.075F, -3.1196F)); - - ModelPartData cube_r4 = leaves.addChild("cube_r4", ModelPartBuilder.create().uv(112, 0).cuboid(-20.0F, 1.0F, -51.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.7079F, -1.4622F, 0.4842F)); - - ModelPartData cube_r5 = leaves.addChild("cube_r5", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 6.0F, -58.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.4967F, 0.1003F, 0.0006F)); - - ModelPartData cube_r6 = leaves.addChild("cube_r6", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.8708F, -0.1388F, -3.0651F)); - - ModelPartData cube_r7 = leaves.addChild("cube_r7", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.084F, -1.4961F, 0.807F)); - - ModelPartData cube_r8 = leaves.addChild("cube_r8", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 3.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.2651F, -0.035F, -0.0332F)); - - ModelPartData cube_r9 = leaves.addChild("cube_r9", ModelPartBuilder.create().uv(-64, 140).cuboid(-30.0F, 7.0F, -83.0F, 64.0F, 0.0F, 64.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.95F, 1.4932F, -1.6857F)); - - ModelPartData cube_r10 = leaves.addChild("cube_r10", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 10.0F, -57.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -2.5197F, 1.466F, -2.0202F)); - - ModelPartData cube_r11 = leaves.addChild("cube_r11", ModelPartBuilder.create().uv(112, 0).cuboid(-8.0F, 3.0F, -61.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.9628F, 0.6133F, -2.978F)); - - ModelPartData cube_r12 = leaves.addChild("cube_r12", ModelPartBuilder.create().uv(112, 0).cuboid(-13.0F, 6.0F, -60.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.4768F, 0.8786F, -0.1186F)); - - ModelPartData cube_r13 = leaves.addChild("cube_r13", ModelPartBuilder.create().uv(112, 0).cuboid(-16.0F, 0.0F, -59.0F, 32.0F, 0.0F, 32.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, -0.2911F, -0.5857F, 0.0605F)); - return TexturedModelData.of(modelData, 256, 256); - } - @Override - public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { - } - @Override - public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { - head.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); - leaves.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); - } -} \ No newline at end of file diff --git a/assets/models/slime_pustule_cap.json b/assets/models/slime_pustule_cap.json deleted file mode 100644 index f337aa4f..00000000 --- a/assets/models/slime_pustule_cap.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parent": "minecraft:block/cube_all", - "textures": { - "all": "unicopia:block/slime_pustule", - "particle": "unicopia:block/slime_pustule" - }, - "elements": [ - { - "from": [7, 14.9, 7], - "to": [12, 16, 12], - "faces": { - "north": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "east": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "south": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "west": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "from": [3, 15, 4], - "to": [9, 16, 10], - "faces": { - "north": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "east": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "south": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "west": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "rope", - "from": [7, 10, 7], - "to": [9, 15, 9], - "faces": { - "north": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "east": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "south": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "west": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "up": {"uv": [2, 2, 4, 4], "texture": "#all"}, - "down": {"uv": [2, 2, 4, 4], "texture": "#all"} - } - } - ] -} \ No newline at end of file diff --git a/assets/models/slime_pustule_pod.json b/assets/models/slime_pustule_pod.json deleted file mode 100644 index 7c15dd7b..00000000 --- a/assets/models/slime_pustule_pod.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parent": "minecraft:block/cube_all", - "textures": { - "all": "unicopia:block/slime_pustule", - "particle": "unicopia:block/slime_pustule" - }, - "elements": [ - { - "name": "rope", - "from": [7.5, 0, 7.5], - "to": [8.5, 16, 8.5], - "faces": { - "north": {"uv": [12, 0, 13, 16], "texture": "#all"}, - "east": {"uv": [13, 0, 14, 16], "texture": "#all"}, - "south": {"uv": [15, 0, 16, 16], "texture": "#all"}, - "west": {"uv": [14, 0, 15, 16], "texture": "#all"}, - "up": {"uv": [13, 0, 14, 1], "texture": "#all"}, - "down": {"uv": [12, 0, 13, 1], "texture": "#all"} - } - }, - { - "from": [7, 14.9, 7], - "to": [12, 16, 12], - "faces": { - "north": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "east": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "south": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "west": {"uv": [0, 0, 6, 1.1], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "from": [3, 15, 4], - "to": [9, 16, 10], - "faces": { - "north": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "east": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "south": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "west": {"uv": [0, 0, 6, 1], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "rope", - "from": [7, 10, 7], - "to": [9, 15, 9], - "faces": { - "north": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "east": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "south": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "west": {"uv": [1, 7, 5, 13], "texture": "#all"}, - "up": {"uv": [2, 2, 4, 4], "texture": "#all"}, - "down": {"uv": [2, 2, 4, 4], "texture": "#all"} - } - }, - { - "name": "rope", - "from": [7, 15, 7], - "to": [9, 20, 9], - "faces": { - "north": {"uv": [2, 7, 4, 13], "texture": "#all"}, - "east": {"uv": [2, 7, 4, 13], "texture": "#all"}, - "south": {"uv": [2, 7, 4, 13], "texture": "#all"}, - "west": {"uv": [2, 7, 4, 13], "texture": "#all"}, - "up": {"uv": [2, 2, 4, 4], "texture": "#all"}, - "down": {"uv": [2, 2, 4, 4], "texture": "#all"} - } - }, - { - "name": "drop", - "from": [5, 10, 5], - "to": [11, 13, 11], - "faces": { - "north": {"uv": [0, 6, 6, 9], "texture": "#all"}, - "east": {"uv": [0, 6, 6, 9], "texture": "#all"}, - "south": {"uv": [0, 6, 6, 9], "texture": "#all"}, - "west": {"uv": [0, 6, 6, 9], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "drop", - "from": [6, 13, 6], - "to": [10, 15, 10], - "faces": { - "north": {"uv": [0, 6, 6, 8], "texture": "#all"}, - "east": {"uv": [0, 6, 6, 8], "texture": "#all"}, - "south": {"uv": [0, 6, 6, 8], "texture": "#all"}, - "west": {"uv": [0, 6, 6, 8], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "drop", - "from": [5, 0, 5], - "to": [11, 1, 11], - "faces": { - "north": {"uv": [0, 13, 6, 14], "texture": "#all"}, - "east": {"uv": [0, 13, 6, 14], "texture": "#all"}, - "south": {"uv": [0, 13, 6, 14], "texture": "#all"}, - "west": {"uv": [0, 13, 6, 14], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "drop", - "from": [4, 1, 4], - "to": [12, 10, 12], - "faces": { - "north": {"uv": [0, 6, 6, 14], "texture": "#all"}, - "east": {"uv": [0, 6, 6, 14], "texture": "#all"}, - "south": {"uv": [0, 6, 6, 14], "texture": "#all"}, - "west": {"uv": [0, 6, 6, 14], "texture": "#all"}, - "up": {"uv": [0, 0, 6, 6], "texture": "#all"}, - "down": {"uv": [0, 0, 6, 6], "texture": "#all"} - } - }, - { - "name": "drop", - "from": [5, 2, 5], - "to": [11, 9, 11], - "faces": { - "north": {"uv": [7, 7, 11, 13], "texture": "#all"}, - "east": {"uv": [7, 7, 11, 13], "texture": "#all"}, - "south": {"uv": [7, 7, 11, 13], "texture": "#all"}, - "west": {"uv": [7, 7, 11, 13], "texture": "#all"}, - "up": {"uv": [7, 1, 11, 5], "texture": "#all"}, - "down": {"uv": [7, 1, 11, 5], "texture": "#all"} - } - } - ] -} \ No newline at end of file diff --git a/assets/models/slime_pustule_rope.json b/assets/models/slime_pustule_rope.json deleted file mode 100644 index aab23dfc..00000000 --- a/assets/models/slime_pustule_rope.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parent": "minecraft:block/cube_all", - "textures": { - "all": "unicopia:block/slime_pustule", - "particle": "unicopia:block/slime_pustule" - }, - "elements": [ - { - "name": "rope", - "from": [7.5, 0, 7.5], - "to": [8.5, 16, 8.5], - "faces": { - "north": {"uv": [12, 0, 13, 16], "texture": "#all"}, - "east": {"uv": [13, 0, 14, 16], "texture": "#all"}, - "south": {"uv": [15, 0, 16, 16], "texture": "#all"}, - "west": {"uv": [14, 0, 15, 16], "texture": "#all"}, - "up": {"uv": [13, 0, 14, 1], "texture": "#all"}, - "down": {"uv": [12, 0, 13, 1], "texture": "#all"} - } - } - ] -} \ No newline at end of file diff --git a/assets/models/tentacle.java b/assets/models/tentacle.java deleted file mode 100644 index 81792fec..00000000 --- a/assets/models/tentacle.java +++ /dev/null @@ -1,169 +0,0 @@ -// Made with Blockbench 4.8.3 -// Exported for Minecraft version 1.17+ for Yarn -// Paste this class into your mod and generate all required imports -public class tentacle extends EntityModel { - private final ModelPart bone_a; - private final ModelPart flower_4; - private final ModelPart cube_r1; - private final ModelPart cube_r2; - private final ModelPart flower_8; - private final ModelPart cube_r3; - private final ModelPart cube_r4; - private final ModelPart flower_3; - private final ModelPart cube_r5; - private final ModelPart cube_r6; - private final ModelPart flower_7; - private final ModelPart cube_r7; - private final ModelPart cube_r8; - private final ModelPart flower_2; - private final ModelPart cube_r9; - private final ModelPart cube_r10; - private final ModelPart flower_6; - private final ModelPart cube_r11; - private final ModelPart cube_r12; - private final ModelPart flower_1; - private final ModelPart cube_r13; - private final ModelPart cube_r14; - private final ModelPart flower_5; - private final ModelPart cube_r15; - private final ModelPart cube_r16; - private final ModelPart bone_b; - private final ModelPart bone_c; - private final ModelPart flower_9; - private final ModelPart cube_r17; - private final ModelPart cube_r18; - private final ModelPart bone_d; - private final ModelPart flower_10; - private final ModelPart cube_r19; - private final ModelPart cube_r20; - private final ModelPart bone_e; - private final ModelPart bone_f; - private final ModelPart flower_11; - private final ModelPart cube_r21; - private final ModelPart cube_r22; - private final ModelPart bone_g; - private final ModelPart bone_h; - private final ModelPart flower_12; - private final ModelPart cube_r23; - private final ModelPart cube_r24; - private final ModelPart flower_13; - private final ModelPart cube_r25; - private final ModelPart cube_r26; - private final ModelPart flower_14; - private final ModelPart cube_r27; - private final ModelPart cube_r28; - public tentacle(ModelPart root) { - this.bone_a = root.getChild("bone_a"); - } - public static TexturedModelData getTexturedModelData() { - ModelData modelData = new ModelData(); - ModelPartData modelPartData = modelData.getRoot(); - ModelPartData bone_a = modelPartData.addChild("bone_a", ModelPartBuilder.create().uv(0, 0).cuboid(-7.0F, -10.0F, -7.0F, 14.0F, 16.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 24.0F, 0.0F, 0.0F, 0.0F, 0.0F)); - - ModelPartData flower_4 = bone_a.addChild("flower_4", ModelPartBuilder.create(), ModelTransform.of(6.0F, 0.6703F, -6.7725F, 1.5929F, -0.909F, -1.1179F)); - - ModelPartData cube_r1 = flower_4.addChild("cube_r1", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r2 = flower_4.addChild("cube_r2", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_8 = flower_4.addChild("flower_8", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.9259F, -0.8201F, -2.1974F)); - - ModelPartData cube_r3 = flower_8.addChild("cube_r3", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r4 = flower_8.addChild("cube_r4", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_3 = bone_a.addChild("flower_3", ModelPartBuilder.create(), ModelTransform.of(6.0F, 0.6703F, 4.2275F, -2.4079F, 0.2344F, -2.5374F)); - - ModelPartData cube_r5 = flower_3.addChild("cube_r5", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r6 = flower_3.addChild("cube_r6", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_7 = flower_3.addChild("flower_7", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -2.4079F, 0.2344F, -2.5374F)); - - ModelPartData cube_r7 = flower_7.addChild("cube_r7", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r8 = flower_7.addChild("cube_r8", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_2 = bone_a.addChild("flower_2", ModelPartBuilder.create(), ModelTransform.of(-5.0F, 0.6703F, 4.2275F, -1.2698F, 0.9678F, -1.7981F)); - - ModelPartData cube_r9 = flower_2.addChild("cube_r9", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r10 = flower_2.addChild("cube_r10", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_6 = flower_2.addChild("flower_6", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.2698F, 0.9678F, -1.7981F)); - - ModelPartData cube_r11 = flower_6.addChild("cube_r11", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r12 = flower_6.addChild("cube_r12", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_1 = bone_a.addChild("flower_1", ModelPartBuilder.create(), ModelTransform.of(-3.0F, 0.6703F, -7.7725F, 0.6103F, -0.0535F, -0.5864F)); - - ModelPartData cube_r13 = flower_1.addChild("cube_r13", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r14 = flower_1.addChild("cube_r14", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_5 = flower_1.addChild("flower_5", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 0.6103F, -0.0535F, -0.5864F)); - - ModelPartData cube_r15 = flower_5.addChild("cube_r15", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r16 = flower_5.addChild("cube_r16", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData bone_b = bone_a.addChild("bone_b", ModelPartBuilder.create().uv(0, 30).cuboid(-6.0F, -18.0F, -6.0F, 12.0F, 19.0F, 12.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -9.0F, 0.0F, -0.2618F, 0.0F, 0.0F)); - - ModelPartData bone_c = bone_b.addChild("bone_c", ModelPartBuilder.create().uv(48, 20).cuboid(-5.0F, -23.0F, -5.0F, 10.0F, 23.0F, 10.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -16.0F, 0.0F, 0.0F, 0.0F, 0.0F)); - - ModelPartData flower_9 = bone_c.addChild("flower_9", ModelPartBuilder.create(), ModelTransform.of(4.0F, -15.6242F, -3.3435F, 2.9259F, -0.8201F, -2.4592F)); - - ModelPartData cube_r17 = flower_9.addChild("cube_r17", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r18 = flower_9.addChild("cube_r18", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData bone_d = bone_c.addChild("bone_d", ModelPartBuilder.create().uv(40, 53).cuboid(-4.0F, -23.0F, -4.0F, 8.0F, 21.0F, 8.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -18.0F, 0.0F, -0.1745F, 0.0F, 0.0F)); - - ModelPartData flower_10 = bone_d.addChild("flower_10", ModelPartBuilder.create(), ModelTransform.of(-2.0F, -17.1355F, 3.0055F, -2.8606F, -0.5942F, 2.4482F)); - - ModelPartData cube_r19 = flower_10.addChild("cube_r19", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r20 = flower_10.addChild("cube_r20", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData bone_e = bone_d.addChild("bone_e", ModelPartBuilder.create().uv(0, 61).cuboid(-3.0F, -25.0F, -3.0F, 6.0F, 22.0F, 6.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -18.0F, 0.0F, 0.1745F, 0.0F, 0.0F)); - - ModelPartData bone_f = bone_e.addChild("bone_f", ModelPartBuilder.create().uv(72, 53).cuboid(-3.0F, -17.0F, -3.0F, 6.0F, 15.0F, 6.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, -22.0F, 0.0F, 0.1745F, 0.0F, 0.0F)); - - ModelPartData flower_11 = bone_f.addChild("flower_11", ModelPartBuilder.create(), ModelTransform.of(-2.0F, -6.0251F, 0.478F, 2.7587F, 0.3479F, 2.5432F)); - - ModelPartData cube_r21 = flower_11.addChild("cube_r21", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r22 = flower_11.addChild("cube_r22", ModelPartBuilder.create().uv(86, 0).cuboid(-14.0F, 0.0F, 0.0F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData bone_g = bone_f.addChild("bone_g", ModelPartBuilder.create().uv(56, 0).cuboid(-2.6F, -16.0F, -2.6F, 5.2F, 15.0F, 5.2F, new Dilation(0.0F)), ModelTransform.of(0.0F, -15.0F, 0.0F, 0.3054F, 0.0F, 0.0F)); - - ModelPartData bone_h = bone_g.addChild("bone_h", ModelPartBuilder.create().uv(24, 61).cuboid(-2.1F, -17.0F, -2.1F, 4.2F, 15.0F, 4.2F, new Dilation(0.0F)), ModelTransform.of(0.0F, -13.0F, 0.0F, 0.2618F, 0.0F, 0.0F)); - - ModelPartData flower_12 = bone_h.addChild("flower_12", ModelPartBuilder.create(), ModelTransform.of(0.0F, -15.1462F, 0.6365F, 2.7587F, 0.3479F, 2.9795F)); - - ModelPartData cube_r23 = flower_12.addChild("cube_r23", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r24 = flower_12.addChild("cube_r24", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_13 = flower_12.addChild("flower_13", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, 2.7587F, 0.3479F, 2.5868F)); - - ModelPartData cube_r25 = flower_13.addChild("cube_r25", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r26 = flower_13.addChild("cube_r26", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); - - ModelPartData flower_14 = flower_12.addChild("flower_14", ModelPartBuilder.create(), ModelTransform.of(0.0F, 0.0F, 0.0F, -1.9412F, -1.0444F, 1.7406F)); - - ModelPartData cube_r27 = flower_14.addChild("cube_r27", ModelPartBuilder.create().uv(86, 0).cuboid(-50.2096F, 2.6718F, -13.6647F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 1.5708F, 0.0F, 0.7854F)); - - ModelPartData cube_r28 = flower_14.addChild("cube_r28", ModelPartBuilder.create().uv(86, 0).cuboid(-27.1617F, -35.2665F, 9.3832F, 14.0F, 0.0F, 14.0F, new Dilation(0.0F)), ModelTransform.of(36.0432F, 15.5243F, -3.1436F, 3.1416F, 0.7854F, 1.5708F)); - return TexturedModelData.of(modelData, 128, 128); - } - @Override - public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { - } - @Override - public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { - bone_a.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); - } -} \ No newline at end of file From f2b817d63573ccdca56e31e7420293af042cc4ad Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Jan 2024 15:28:40 +0000 Subject: [PATCH 039/104] Make places hay bales edible --- assets/models/hay_bale.bbmodel | 1 + assets/models/hay_bale.json | 113 ++++++++ .../ability/EarthPonyGrowAbility.java | 13 +- .../unicopia/block/EdibleBlock.java | 214 +++++++++++++++ .../unicopia/block/UBlocks.java | 9 + .../block/cloud/PoreousCloudBlock.java | 4 +- .../block/cloud/PoreousCloudStairsBlock.java | 4 +- .../unicopia/block/cloud/Soakable.java | 12 - .../unicopia/block/cloud/SoggyCloudBlock.java | 6 +- .../block/cloud/SoggyCloudSlabBlock.java | 6 +- .../block/cloud/SoggyCloudStairsBlock.java | 6 +- .../unicopia/block/state/StateChange.java | 16 +- .../unicopia/block/state/StateUtil.java | 19 ++ .../unicopia/blockstates/hay_block.json | 31 +++ .../unicopia/blockstates/rice_block.json | 31 +++ .../unicopia/blockstates/straw_block.json | 31 +++ .../unicopia/models/block/hay_bale_bne.json | 22 ++ .../unicopia/models/block/hay_bale_bnw.json | 22 ++ .../unicopia/models/block/hay_bale_bse.json | 22 ++ .../unicopia/models/block/hay_bale_bsw.json | 22 ++ .../unicopia/models/block/hay_bale_tne.json | 22 ++ .../unicopia/models/block/hay_bale_tnw.json | 22 ++ .../unicopia/models/block/hay_bale_tse.json | 22 ++ .../unicopia/models/block/hay_bale_tsw.json | 22 ++ .../unicopia/models/block/rice_bale_bne.json | 8 + .../unicopia/models/block/rice_bale_bnw.json | 8 + .../unicopia/models/block/rice_bale_bse.json | 8 + .../unicopia/models/block/rice_bale_bsw.json | 8 + .../unicopia/models/block/rice_bale_tne.json | 8 + .../unicopia/models/block/rice_bale_tnw.json | 8 + .../unicopia/models/block/rice_bale_tse.json | 8 + .../unicopia/models/block/rice_bale_tsw.json | 8 + .../unicopia/models/block/straw_bale_bne.json | 8 + .../unicopia/models/block/straw_bale_bnw.json | 8 + .../unicopia/models/block/straw_bale_bse.json | 8 + .../unicopia/models/block/straw_bale_bsw.json | 8 + .../unicopia/models/block/straw_bale_tne.json | 8 + .../unicopia/models/block/straw_bale_tnw.json | 8 + .../unicopia/models/block/straw_bale_tse.json | 8 + .../unicopia/models/block/straw_bale_tsw.json | 8 + .../tags/items/foraging/edibles_filling.json | 4 +- .../minecraft/tags/blocks/mineable/hoe.json | 5 +- .../loot_tables/blocks/hay_block.json | 245 ++++++++++++++++++ .../food_types/forage_edible_filling.json | 3 +- 44 files changed, 1027 insertions(+), 50 deletions(-) create mode 100644 assets/models/hay_bale.bbmodel create mode 100644 assets/models/hay_bale.json create mode 100644 src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java create mode 100644 src/main/java/com/minelittlepony/unicopia/block/state/StateUtil.java create mode 100644 src/main/resources/assets/unicopia/blockstates/hay_block.json create mode 100644 src/main/resources/assets/unicopia/blockstates/rice_block.json create mode 100644 src/main/resources/assets/unicopia/blockstates/straw_block.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_bne.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_bnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_bse.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_bsw.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_tne.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_tnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_tse.json create mode 100644 src/main/resources/assets/unicopia/models/block/hay_bale_tsw.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_bne.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_bnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_bse.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_bsw.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_tne.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_tnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_tse.json create mode 100644 src/main/resources/assets/unicopia/models/block/rice_bale_tsw.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_bne.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_bnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_bse.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_bsw.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_tne.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_tnw.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_tse.json create mode 100644 src/main/resources/assets/unicopia/models/block/straw_bale_tsw.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json diff --git a/assets/models/hay_bale.bbmodel b/assets/models/hay_bale.bbmodel new file mode 100644 index 00000000..7328ccde --- /dev/null +++ b/assets/models/hay_bale.bbmodel @@ -0,0 +1 @@ +{"meta":{"format_version":"4.5","model_format":"java_block","box_uv":false},"name":"hay_bale_bse","parent":"","ambientocclusion":true,"front_gui_light":false,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":16,"height":16},"elements":[{"name":"bottom_south_east","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[8,0,8],"to":[16,8,16],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[0,8,8,16],"texture":0},"east":{"uv":[0,8,8,16],"texture":1},"south":{"uv":[8,8,16,16],"texture":1},"west":{"uv":[8,8,16,16],"texture":0},"up":{"uv":[8,8,16,16],"texture":0},"down":{"uv":[8,0,16,8],"texture":0}},"type":"cube","uuid":"523f4164-daa5-4b79-eec7-013710b7ae88"},{"name":"bottom_north_west","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0,0,0],"to":[8,8,8],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[8,8,16,16],"texture":1},"east":{"uv":[8,8,16,16],"texture":0},"south":{"uv":[0,8,8,16],"texture":0},"west":{"uv":[0,8,8,16],"texture":1},"up":{"uv":[0,0,8,8],"texture":0},"down":{"uv":[0,8,8,16],"texture":0}},"type":"cube","uuid":"1fd288fe-a293-1ca2-a5b7-15d602eb44f6"},{"name":"top_south_east","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[8,8,8],"to":[16,16,16],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[0,0,8,8],"texture":0},"east":{"uv":[0,0,8,8],"texture":1},"south":{"uv":[8,0,16,8],"texture":1},"west":{"uv":[8,0,16,8],"texture":0},"up":{"uv":[8,8,16,16],"texture":0},"down":{"uv":[8,0,16,8],"texture":0}},"type":"cube","uuid":"4f48967d-c722-5593-6f77-079ee47d08af"},{"name":"top_north_west","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0,8,0],"to":[8,16,8],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[8,0,16,8],"texture":1},"east":{"uv":[8,0,16,8],"texture":0},"south":{"uv":[0,0,8,8],"texture":0},"west":{"uv":[0,0,8,8],"texture":1},"up":{"uv":[0,0,8,8],"texture":0},"down":{"uv":[0,8,8,16],"texture":0}},"type":"cube","uuid":"c4356ab3-a7a5-43e5-489a-9ebb52492675"},{"name":"bottom_south_west","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0,0,8],"to":[8,8,16],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[8,8,16,16],"texture":0},"east":{"uv":[0,8,8,16],"texture":0},"south":{"uv":[0,8,8,16],"texture":1},"west":{"uv":[8,8,16,16],"texture":1},"up":{"uv":[0,8,8,16],"texture":0},"down":{"uv":[0,0,8,8],"texture":0}},"type":"cube","uuid":"d07d02d7-5ab9-0026-b3ed-029701536cf6"},{"name":"bottom_north_east","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[8,0,0],"to":[16,8,8],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[0,8,8,16],"texture":1},"east":{"uv":[8,8,16,16],"texture":1},"south":{"uv":[8,8,16,16],"texture":0},"west":{"uv":[0,8,8,16],"texture":0},"up":{"uv":[8,0,16,8],"texture":0},"down":{"uv":[8,8,16,16],"texture":0}},"type":"cube","uuid":"d10fb8d4-fe44-ca10-77f0-63b32855f5d6"},{"name":"top_south_west","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[0,8,8],"to":[8,16,16],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[8,0,16,8],"texture":0},"east":{"uv":[0,0,8,8],"texture":0},"south":{"uv":[0,0,8,8],"texture":1},"west":{"uv":[8,0,16,8],"texture":1},"up":{"uv":[0,8,8,16],"texture":0},"down":{"uv":[0,0,8,8],"texture":0}},"type":"cube","uuid":"b9c9d695-4003-c9e6-efbb-9a75c658b47e"},{"name":"top_north_east","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[8,8,0],"to":[16,16,8],"autouv":0,"color":2,"origin":[0,0,0],"faces":{"north":{"uv":[0,0,8,8],"texture":1},"east":{"uv":[8,0,16,8],"texture":1},"south":{"uv":[8,0,16,8],"texture":0},"west":{"uv":[0,0,8,8],"texture":0},"up":{"uv":[8,0,16,8],"texture":0},"down":{"uv":[8,8,16,16],"texture":0}},"type":"cube","uuid":"20a14bb3-edf7-1ae1-132e-ef3d56d84f67"}],"outliner":["523f4164-daa5-4b79-eec7-013710b7ae88","4f48967d-c722-5593-6f77-079ee47d08af","d10fb8d4-fe44-ca10-77f0-63b32855f5d6","20a14bb3-edf7-1ae1-132e-ef3d56d84f67","d07d02d7-5ab9-0026-b3ed-029701536cf6","b9c9d695-4003-c9e6-efbb-9a75c658b47e","1fd288fe-a293-1ca2-a5b7-15d602eb44f6","c4356ab3-a7a5-43e5-489a-9ebb52492675"],"textures":[{"path":"/home/sollace/Desktop/hay_block_top.png","name":"hay_block_top.png","folder":"blocks","namespace":"minecraft","id":"top","particle":false,"render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"mode":"bitmap","saved":true,"uuid":"f73f23e2-d591-dd05-db6f-60869e1592c7","relative_path":"../../../../../../../Desktop/hay_block_top.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVVJREFUOE9tkyFOBEEQRWvckEAyuBWYFSRgCQgk3IgDcAKC4wo4rgBIxBIsJIg1iHVsAgnjhryevE6xTJvd6ar69ev/6ub+thte3yJmXR+c1bqNn++I+V5f/nuMm8Mvd83VRTccHUd8rvrYnbWRwUhafrQVjAJBDw/Gmubuuh3sMt+PWL5HASKY79df4x2xl+eRIeCFgXRBJXh+1sfTog2+ZSQTm/C9tR3R3Fx2AzPzwZkqMtkRpM84VQNpcUkiRTCRetbi9KSPh8dRmz8aMF+3858+oBQJZpPCABFVX/s2rWJuNNHKPFLRAHTVpxgWdFPA3FEm5FUbcwIBmHDcDxhk+opITmGgaHqrrapO1zyC+1H3gE66QDDPTFLeVGjneBFRilNWyirvCXmAolHdRH3O6wttHw06ObuuVQ1y0ua2EXM/cMojSMNzZi5fWX7KWdwppxjjF8NCOiclFu9xAAAAAElFTkSuQmCC"},{"path":"/home/sollace/Desktop/hay_block_side.png","name":"hay_block_side.png","folder":"blocks","namespace":"minecraft","id":"side","particle":true,"render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"mode":"bitmap","saved":true,"uuid":"1cf36f16-9f26-3125-d49c-45217088cbc7","relative_path":"../../../../../../../Desktop/hay_block_side.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAV1JREFUOE+VU7tOQkEUPGtiuAokeCExNIpBK2x9tITK7/EHqCmJv2DlNxhblZqORK2MiVxJBLmEhDVzktkclopt9p7X7OzcWde7bfiL6wMZDsfSalVl8Pwj7U5FXl4zjZn//pxKrV5aixunRXF33SNvGzFwdZmuARymBfnKFgpIIBx0crwrDgz2yytBE05AgYyQe/tYCup/vzs6gBg7l7u/Ofc+8ZJNckkrSSgg5ppNF1IsFTbq6NcrkCJPxAmgbPOMyYDMggaxSBTz6XGilGNAArmH/pnH3QEAVa36EPN9NFNtbN2KugGAAQvEwRiIfQqAASa23QMAqJNyDGivEDNUH8TOs+rjV0JALDoVPqHort9uehTpAZc7GedzqSZ7An8wtj34pm+CE5GE2+yiA7Fjxc5EXgFoUTTR1tYw9AEPsdYOTuQAH419E3xs1qnoh3aBgR20otKRVn2+Vuz/aIRXgq2GkfcAAAAASUVORK5CYII="}]} \ No newline at end of file diff --git a/assets/models/hay_bale.json b/assets/models/hay_bale.json new file mode 100644 index 00000000..a2ce1538 --- /dev/null +++ b/assets/models/hay_bale.json @@ -0,0 +1,113 @@ +{ + "textures": { + "top": "blocks/hay_block_top", + "particle": "blocks/hay_block_side", + "side": "blocks/hay_block_side" + }, + "elements": [ + { + "name": "bottom_south_east", + "from": [8, 0, 8], + "to": [16, 8, 16], + "faces": { + "north": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "east": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "south": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "west": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "up": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "down": {"uv": [8, 0, 16, 8], "texture": "#top"} + } + }, + { + "name": "top_south_east", + "from": [8, 8, 8], + "to": [16, 16, 16], + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "east": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "south": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "west": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "up": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "down": {"uv": [8, 0, 16, 8], "texture": "#top"} + } + }, + { + "name": "bottom_north_east", + "from": [8, 0, 0], + "to": [16, 8, 8], + "faces": { + "north": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "east": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "south": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "west": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "up": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "down": {"uv": [8, 8, 16, 16], "texture": "#top"} + } + }, + { + "name": "top_north_east", + "from": [8, 8, 0], + "to": [16, 16, 8], + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "east": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "south": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "west": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "up": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "down": {"uv": [8, 8, 16, 16], "texture": "#top"} + } + }, + { + "name": "bottom_south_west", + "from": [0, 0, 8], + "to": [8, 8, 16], + "faces": { + "north": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "east": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "south": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "west": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "up": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "down": {"uv": [0, 0, 8, 8], "texture": "#top"} + } + }, + { + "name": "top_south_west", + "from": [0, 8, 8], + "to": [8, 16, 16], + "faces": { + "north": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "east": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "south": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "west": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "up": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "down": {"uv": [0, 0, 8, 8], "texture": "#top"} + } + }, + { + "name": "bottom_north_west", + "from": [0, 0, 0], + "to": [8, 8, 8], + "faces": { + "north": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "east": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "south": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "west": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#top"} + } + }, + { + "name": "top_north_west", + "from": [0, 8, 0], + "to": [8, 16, 8], + "faces": { + "north": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "east": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "south": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "west": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index f02ee066..b1dcf2a5 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -12,6 +12,7 @@ import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.ability.data.Pos; import com.minelittlepony.unicopia.block.UBlocks; +import com.minelittlepony.unicopia.block.state.StateUtil; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.particle.ParticleUtils; @@ -29,7 +30,6 @@ import net.minecraft.item.BoneMealItem; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.particle.ParticleTypes; -import net.minecraft.state.property.Property; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; import net.minecraft.util.math.Vec3d; @@ -233,16 +233,7 @@ public class EarthPonyGrowAbility implements Ability { } public BlockState getResult(World world, BlockPos pos) { - BlockState input = world.getBlockState(pos); - BlockState output = this.output; - for (var property : input.getProperties()) { - output = copyProperty(input, output, property); - } - return output; - } - - private > BlockState copyProperty(BlockState from, BlockState to, Property property) { - return to.withIfExists(property, from.get(property)); + return StateUtil.copyState(world.getBlockState(pos), output); } record Result (TransmutationRecipe recipe, Set matchedLocations) { diff --git a/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java new file mode 100644 index 00000000..b4f0a5d2 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java @@ -0,0 +1,214 @@ +package com.minelittlepony.unicopia.block; + +import java.util.ArrayList; +import java.util.List; +import java.util.function.Function; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.USounds; +import com.minelittlepony.unicopia.block.state.StateUtil; +import com.minelittlepony.unicopia.entity.player.Pony; + +import net.fabricmc.fabric.api.event.player.UseBlockCallback; +import net.fabricmc.fabric.api.registry.FlammableBlockRegistry; +import net.minecraft.block.Block; +import net.minecraft.block.BlockState; +import net.minecraft.block.Blocks; +import net.minecraft.block.HayBlock; +import net.minecraft.block.ShapeContext; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; +import net.minecraft.registry.Registries; +import net.minecraft.sound.SoundCategory; +import net.minecraft.state.StateManager; +import net.minecraft.state.property.BooleanProperty; +import net.minecraft.util.ActionResult; +import net.minecraft.util.Hand; +import net.minecraft.util.Identifier; +import net.minecraft.util.Util; +import net.minecraft.util.hit.BlockHitResult; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Vec3d; +import net.minecraft.util.shape.VoxelShape; +import net.minecraft.util.shape.VoxelShapes; +import net.minecraft.world.BlockView; +import net.minecraft.world.World; + +public class EdibleBlock extends HayBlock { + private static final List REGISTRY = new ArrayList<>(); + + static final BooleanProperty TOP_NORTH_EAST = BooleanProperty.of("top_north_east"); + static final BooleanProperty TOP_NORTH_WEST = BooleanProperty.of("top_north_west"); + static final BooleanProperty TOP_SOUTH_EAST = BooleanProperty.of("top_south_east"); + static final BooleanProperty TOP_SOUTH_WEST = BooleanProperty.of("top_south_west"); + + static final BooleanProperty BOTTOM_NORTH_EAST = BooleanProperty.of("bottom_north_east"); + static final BooleanProperty BOTTOM_NORTH_WEST = BooleanProperty.of("bottom_north_west"); + static final BooleanProperty BOTTOM_SOUTH_EAST = BooleanProperty.of("bottom_south_east"); + static final BooleanProperty BOTTOM_SOUTH_WEST = BooleanProperty.of("bottom_south_west"); + + // [up/down][north/south][west/east] + private static final BooleanProperty[] SEGMENTS = { + BOTTOM_NORTH_WEST, + BOTTOM_NORTH_EAST, + BOTTOM_SOUTH_WEST, + BOTTOM_SOUTH_EAST, + TOP_NORTH_WEST, + TOP_NORTH_EAST, + TOP_SOUTH_WEST, + TOP_SOUTH_EAST + }; + private static final VoxelShape[] SHAPES = { + Block.createCuboidShape(0, 0, 0, 8, 8, 8), + Block.createCuboidShape(8, 0, 0, 16, 8, 8), + Block.createCuboidShape(0, 0, 8, 8, 8, 16), + Block.createCuboidShape(8, 0, 8, 16, 8, 16), + Block.createCuboidShape(0, 8, 0, 8, 16, 8), + Block.createCuboidShape(8, 8, 0, 16, 16, 8), + Block.createCuboidShape(0, 8, 8, 8, 16, 16), + Block.createCuboidShape(8, 8, 8, 16, 16, 16) + }; + private static final Function SHAPE_CACHE = Util.memoize(state -> { + @Nullable + VoxelShape shape = null; + for (int i = 0; i < SEGMENTS.length; i++) { + if (state.get(SEGMENTS[i])) { + shape = shape == null ? SHAPES[i] : VoxelShapes.union(shape, SHAPES[i]); + } + } + return shape == null ? VoxelShapes.fullCube() : shape.simplify(); + }); + + static void bootstrap() { + UseBlockCallback.EVENT.register((PlayerEntity player, World world, Hand hand, BlockHitResult hitResult) -> { + if (!Pony.of(player).getSpecies().isEquine() + || (player.shouldCancelInteraction() && (!player.getMainHandStack().isEmpty() || !player.getOffHandStack().isEmpty()))) { + return ActionResult.PASS; + } + + BlockPos pos = hitResult.getBlockPos(); + BlockState state = world.getBlockState(pos); + + for (EdibleBlock edibleBlock : REGISTRY) { + Block match = edibleBlock.getBaseBlock(); + if (match != Blocks.AIR && state.isOf(match)) { + ActionResult result = StateUtil.copyState(state, edibleBlock.getDefaultState()).onUse(world, player, hand, hitResult); + + if (result.isAccepted()) { + return result; + } + } + } + + return ActionResult.PASS; + }); + } + + private final Identifier baseBlock; + + public EdibleBlock(Identifier baseBlock, boolean register) { + super(Settings.copy(Blocks.HAY_BLOCK)); + for (BooleanProperty segment : SEGMENTS) { + setDefaultState(getDefaultState().with(segment, true)); + } + this.baseBlock = baseBlock; + if (register) { + REGISTRY.add(this); + FlammableBlockRegistry.getDefaultInstance().add(this, 60, 20); + } + } + + public Block getBaseBlock() { + return Registries.BLOCK.get(baseBlock); + } + + @Override + public String getTranslationKey() { + return getBaseBlock().getTranslationKey(); + } + + @Override + protected void appendProperties(StateManager.Builder builder) { + super.appendProperties(builder); + builder.add(SEGMENTS); + } + + @Override + public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) { + return SHAPE_CACHE.apply(state); + } + + @Override + @Deprecated + public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) { + if (player.isSpectator()) { + return ActionResult.FAIL; + } + + ItemStack stack = player.getStackInHand(hand); + if (stack.isOf(Items.WHEAT)) { + BooleanProperty segment = getHitCorner(hit, 1); + + if (!state.get(segment)) { + stack.decrement(1); + if (!world.isClient) { + state = state.with(segment, true); + if (SHAPE_CACHE.apply(state) == VoxelShapes.fullCube()) { + state = StateUtil.copyState(state, getBaseBlock().getDefaultState()); + } + world.setBlockState(pos, state); + } + world.playSound(player, pos, this.getSoundGroup(state).getPlaceSound(), SoundCategory.BLOCKS); + + return ActionResult.SUCCESS; + } + + return ActionResult.FAIL; + } + + BooleanProperty corner = getHitCorner(hit, -1); + + if (!state.get(corner)) { + return ActionResult.PASS; + } + + if (!(player.isCreative() || player.getHungerManager().isNotFull()) || !player.isSneaking()) { + return ActionResult.FAIL; + } + + if (!world.isClient) { + state = state.with(corner, false); + if (SHAPE_CACHE.apply(state) == VoxelShapes.fullCube()) { + world.removeBlock(pos, false); + } else { + world.setBlockState(pos, state); + } + } + player.playSound(USounds.Vanilla.ENTITY_GENERIC_EAT, 1, 1); + if (world.random.nextInt(10) == 0) { + player.playSound(USounds.Vanilla.ENTITY_PLAYER_BURP, 1, player.getSoundPitch()); + } + player.getHungerManager().add(4, 2.3F); + return ActionResult.SUCCESS; + } + + static BooleanProperty getHitCorner(BlockHitResult hit, int direction) { + Vec3d pos = hit.getPos().add(Vec3d.of(hit.getSide().getVector()).multiply(direction * 0.001F)); + + BlockPos bPos = hit.getBlockPos(); + + return SEGMENTS[ + (4 * getIndex(pos.y, bPos.getY())) + + (2 * getIndex(pos.z, bPos.getZ())) + + (1 - getIndex(pos.x, bPos.getX())) + ]; + } + + static int getIndex(double axisHit, int tile) { + axisHit = Math.abs(axisHit); + tile = Math.abs(tile); + return axisHit - ((int)axisHit) > 0.5 ? 1 : 0; + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index 7fc8d666..af03300f 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -29,6 +29,7 @@ import com.minelittlepony.unicopia.server.world.UTreeGen; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.registry.FlammableBlockRegistry; import net.fabricmc.fabric.api.registry.StrippableBlockRegistry; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.block.*; import net.minecraft.block.AbstractBlock.Settings; import net.minecraft.block.entity.BlockEntityType; @@ -224,6 +225,8 @@ public interface UBlocks { Block CRYSTAL_DOOR = register("crystal_door", new CrystalDoorBlock(Settings.copy(Blocks.IRON_DOOR), UWoodTypes.CRYSTAL), ItemGroups.FUNCTIONAL); Block CLOUD_DOOR = register("cloud_door", new CloudDoorBlock(Settings.copy(CLOUD), CLOUD.getDefaultState(), UWoodTypes.CLOUD), ItemGroups.FUNCTIONAL); + EdibleBlock HAY_BLOCK = register("hay_block", new EdibleBlock(new Identifier("hay_block"), true)); + private static T register(String name, T item) { return register(Unicopia.id(name), item); } @@ -247,10 +250,15 @@ public interface UBlocks { if (block instanceof CloudLike || block instanceof SlimePustuleBlock || block instanceof PileBlock) { SEMI_TRANSPARENT_BLOCKS.add(block); } + return Registry.register(Registries.BLOCK, id, block); } static void bootstrap() { + if (FabricLoader.getInstance().isModLoaded("farmersdelight")) { + register("rice_block", new EdibleBlock(new Identifier("farmersdelight", "rice_bale"), true)); + register("straw_block", new EdibleBlock(new Identifier("farmersdelight", "straw_bale"), true)); + } BlockEntityTypeSupportHelper.of(BlockEntityType.SIGN).addSupportedBlocks(PALM_SIGN, PALM_WALL_SIGN); BlockEntityTypeSupportHelper.of(BlockEntityType.HANGING_SIGN).addSupportedBlocks(PALM_HANGING_SIGN, PALM_WALL_HANGING_SIGN); @@ -276,5 +284,6 @@ public interface UBlocks { FlammableBlockRegistry.getDefaultInstance().add(BANANAS, 5, 20); UBlockEntities.bootstrap(); + EdibleBlock.bootstrap(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudBlock.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudBlock.java index 5e17ca06..15303184 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudBlock.java @@ -4,6 +4,8 @@ import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.block.state.StateUtil; + import net.minecraft.block.BlockState; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.BlockPos; @@ -22,7 +24,7 @@ public class PoreousCloudBlock extends CloudBlock implements Soakable { @Override public BlockState getStateWithMoisture(BlockState state, int moisture) { if (moisture <= 0) { - return Soakable.copyProperties(state, getDefaultState()); + return StateUtil.copyState(state, getDefaultState()); } return soggyBlock == null ? null : soggyBlock.get().getStateWithMoisture(state, moisture); } diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudStairsBlock.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudStairsBlock.java index 6733ee2d..3ee498a1 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudStairsBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/PoreousCloudStairsBlock.java @@ -4,6 +4,8 @@ import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.block.state.StateUtil; + import net.minecraft.block.BlockState; public class PoreousCloudStairsBlock extends CloudStairsBlock implements Soakable { @@ -19,7 +21,7 @@ public class PoreousCloudStairsBlock extends CloudStairsBlock implements Soakabl @Override public BlockState getStateWithMoisture(BlockState state, int moisture) { if (moisture <= 0) { - return Soakable.copyProperties(state, getDefaultState()); + return StateUtil.copyState(state, getDefaultState()); } return soggyBlock.get().getStateWithMoisture(state, moisture); } diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/Soakable.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/Soakable.java index e800bbf8..94ce19e8 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/Soakable.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/Soakable.java @@ -15,7 +15,6 @@ import net.minecraft.server.world.ServerWorld; import net.minecraft.sound.SoundCategory; import net.minecraft.sound.SoundEvents; import net.minecraft.state.property.IntProperty; -import net.minecraft.state.property.Property; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.util.Util; @@ -105,15 +104,4 @@ public interface Soakable { world.setBlockState(pos, soakable.getStateWithMoisture(state, newMoisture)); world.playSound(null, pos, SoundEvents.ENTITY_SALMON_FLOP, SoundCategory.BLOCKS, 1, (float)world.random.nextTriangular(0.5, 0.3F)); } - - @Nullable - @SuppressWarnings({ "rawtypes", "unchecked" }) - static BlockState copyProperties(BlockState from, @Nullable BlockState to) { - if (to != null) { - for (Property property : from.getProperties()) { - to = to.withIfExists(property, from.get(property)); - } - } - return to; - } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudBlock.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudBlock.java index e508b96a..5f769024 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudBlock.java @@ -4,6 +4,8 @@ import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.block.state.StateUtil; + import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.entity.player.PlayerEntity; @@ -43,9 +45,9 @@ public class SoggyCloudBlock extends CloudBlock implements Soakable { @Override public BlockState getStateWithMoisture(BlockState state, int moisture) { if (moisture <= 0) { - return Soakable.copyProperties(state, dryBlock.get().getDefaultState()); + return StateUtil.copyState(state, dryBlock.get().getDefaultState()); } - return Soakable.copyProperties(state, getDefaultState()).with(MOISTURE, moisture); + return StateUtil.copyState(state, getDefaultState()).with(MOISTURE, moisture); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudSlabBlock.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudSlabBlock.java index d074b2cb..7595c2b1 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudSlabBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudSlabBlock.java @@ -4,6 +4,8 @@ import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.block.state.StateUtil; + import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.entity.player.PlayerEntity; @@ -43,9 +45,9 @@ public class SoggyCloudSlabBlock extends CloudSlabBlock { @Override public BlockState getStateWithMoisture(BlockState state, int moisture) { if (moisture <= 0) { - return Soakable.copyProperties(state, dryBlock.get().getDefaultState()); + return StateUtil.copyState(state, dryBlock.get().getDefaultState()); } - return Soakable.copyProperties(state, getDefaultState()).with(MOISTURE, moisture); + return StateUtil.copyState(state, getDefaultState()).with(MOISTURE, moisture); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudStairsBlock.java b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudStairsBlock.java index 495c0f37..9e51e398 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudStairsBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/cloud/SoggyCloudStairsBlock.java @@ -4,6 +4,8 @@ import java.util.function.Supplier; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.block.state.StateUtil; + import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.item.ItemStack; @@ -36,8 +38,8 @@ public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable @Override public BlockState getStateWithMoisture(BlockState state, int moisture) { if (moisture <= 0) { - return Soakable.copyProperties(state, dryBlock.get().getDefaultState()); + return StateUtil.copyState(state, dryBlock.get().getDefaultState()); } - return Soakable.copyProperties(state, getDefaultState()).with(MOISTURE, moisture); + return StateUtil.copyState(state, getDefaultState()).with(MOISTURE, moisture); } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/state/StateChange.java b/src/main/java/com/minelittlepony/unicopia/block/state/StateChange.java index 72e7b9e4..972eef4f 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/state/StateChange.java +++ b/src/main/java/com/minelittlepony/unicopia/block/state/StateChange.java @@ -11,7 +11,6 @@ import com.minelittlepony.unicopia.Unicopia; import net.minecraft.block.Block; import net.minecraft.block.BlockState; -import net.minecraft.state.property.Property; import net.minecraft.util.Identifier; import net.minecraft.util.JsonHelper; import net.minecraft.registry.Registries; @@ -50,7 +49,7 @@ public abstract class StateChange { return state; } return Registries.BLOCK.getOrEmpty(id).map(Block::getDefaultState) - .map(newState -> merge(newState, state)) + .map(newState -> StateUtil.copyState(state, newState)) .orElse(state); } }; @@ -101,17 +100,4 @@ public abstract class StateChange { return serializer.apply(json); }).orElseThrow(() -> new IllegalArgumentException("Invalid action " + action)); } - - private static BlockState merge(BlockState into, BlockState from) { - for (var property : from.getProperties()) { - if (into.contains(property)) { - into = copy(into, from, property); - } - } - return into; - } - - private static > BlockState copy(BlockState to, BlockState from, Property property) { - return to.with(property, from.get(property)); - } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/state/StateUtil.java b/src/main/java/com/minelittlepony/unicopia/block/state/StateUtil.java new file mode 100644 index 00000000..42334368 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/state/StateUtil.java @@ -0,0 +1,19 @@ +package com.minelittlepony.unicopia.block.state; + +import org.jetbrains.annotations.Nullable; + +import net.minecraft.block.BlockState; +import net.minecraft.state.property.Property; + +public interface StateUtil { + @SuppressWarnings({ "unchecked", "rawtypes" }) + static BlockState copyState(BlockState from, @Nullable BlockState to) { + if (to == null) { + return to; + } + for (var property : from.getProperties()) { + to = to.withIfExists((Property)property, from.get(property)); + } + return to; + } +} diff --git a/src/main/resources/assets/unicopia/blockstates/hay_block.json b/src/main/resources/assets/unicopia/blockstates/hay_block.json new file mode 100644 index 00000000..1378545e --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/hay_block.json @@ -0,0 +1,31 @@ +{ + "multipart": [ + { "apply": { "model": "unicopia:block/hay_bale_bne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_east": true } }, + + { "apply": { "model": "unicopia:block/hay_bale_bne" }, "when": { "axis": "y", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bnw" }, "when": { "axis": "y", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bse" }, "when": { "axis": "y", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bsw" }, "when": { "axis": "y", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tne" }, "when": { "axis": "y", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tnw" }, "when": { "axis": "y", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tse" }, "when": { "axis": "y", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tsw" }, "when": { "axis": "y", "top_south_west": true } }, + + + { "apply": { "model": "unicopia:block/hay_bale_bne", "x": 90 }, "when": { "axis": "z", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bnw", "x": 90 }, "when": { "axis": "z", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bse", "x": 90 }, "when": { "axis": "z", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_bsw", "x": 90 }, "when": { "axis": "z", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tne", "x": 90 }, "when": { "axis": "z", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tnw", "x": 90 }, "when": { "axis": "z", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tse", "x": 90 }, "when": { "axis": "z", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/hay_bale_tsw", "x": 90 }, "when": { "axis": "z", "top_north_west": true } } + ] +} diff --git a/src/main/resources/assets/unicopia/blockstates/rice_block.json b/src/main/resources/assets/unicopia/blockstates/rice_block.json new file mode 100644 index 00000000..61251408 --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/rice_block.json @@ -0,0 +1,31 @@ +{ + "multipart": [ + { "apply": { "model": "unicopia:block/rice_bale_bne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_east": true } }, + + { "apply": { "model": "unicopia:block/rice_bale_bne" }, "when": { "axis": "y", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bnw" }, "when": { "axis": "y", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bse" }, "when": { "axis": "y", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bsw" }, "when": { "axis": "y", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tne" }, "when": { "axis": "y", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tnw" }, "when": { "axis": "y", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tse" }, "when": { "axis": "y", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tsw" }, "when": { "axis": "y", "top_south_west": true } }, + + + { "apply": { "model": "unicopia:block/rice_bale_bne", "x": 90 }, "when": { "axis": "z", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bnw", "x": 90 }, "when": { "axis": "z", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bse", "x": 90 }, "when": { "axis": "z", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_bsw", "x": 90 }, "when": { "axis": "z", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tne", "x": 90 }, "when": { "axis": "z", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tnw", "x": 90 }, "when": { "axis": "z", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tse", "x": 90 }, "when": { "axis": "z", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/rice_bale_tsw", "x": 90 }, "when": { "axis": "z", "top_north_west": true } } + ] +} diff --git a/src/main/resources/assets/unicopia/blockstates/straw_block.json b/src/main/resources/assets/unicopia/blockstates/straw_block.json new file mode 100644 index 00000000..4f1da006 --- /dev/null +++ b/src/main/resources/assets/unicopia/blockstates/straw_block.json @@ -0,0 +1,31 @@ +{ + "multipart": [ + { "apply": { "model": "unicopia:block/straw_bale_bne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tne", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tnw", "x": 90, "y": 90 }, "when": { "axis": "x", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tse", "x": 90, "y": 90 }, "when": { "axis": "x", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tsw", "x": 90, "y": 90 }, "when": { "axis": "x", "top_north_east": true } }, + + { "apply": { "model": "unicopia:block/straw_bale_bne" }, "when": { "axis": "y", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bnw" }, "when": { "axis": "y", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bse" }, "when": { "axis": "y", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bsw" }, "when": { "axis": "y", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tne" }, "when": { "axis": "y", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tnw" }, "when": { "axis": "y", "top_north_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tse" }, "when": { "axis": "y", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tsw" }, "when": { "axis": "y", "top_south_west": true } }, + + + { "apply": { "model": "unicopia:block/straw_bale_bne", "x": 90 }, "when": { "axis": "z", "bottom_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bnw", "x": 90 }, "when": { "axis": "z", "bottom_south_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bse", "x": 90 }, "when": { "axis": "z", "top_south_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_bsw", "x": 90 }, "when": { "axis": "z", "top_south_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tne", "x": 90 }, "when": { "axis": "z", "bottom_north_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tnw", "x": 90 }, "when": { "axis": "z", "bottom_north_west": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tse", "x": 90 }, "when": { "axis": "z", "top_north_east": true } }, + { "apply": { "model": "unicopia:block/straw_bale_tsw", "x": 90 }, "when": { "axis": "z", "top_north_west": true } } + ] +} diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_bne.json b/src/main/resources/assets/unicopia/models/block/hay_bale_bne.json new file mode 100644 index 00000000..7453b2e9 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_bne.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "bottom_north_east", + "from": [8, 0, 0], + "to": [16, 8, 8], + "faces": { + "north": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "east": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "south": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "west": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "up": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "down": {"uv": [8, 8, 16, 16], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_bnw.json b/src/main/resources/assets/unicopia/models/block/hay_bale_bnw.json new file mode 100644 index 00000000..6cde59a7 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_bnw.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "bottom_north_west", + "from": [0, 0, 0], + "to": [8, 8, 8], + "faces": { + "north": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "east": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "south": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "west": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_bse.json b/src/main/resources/assets/unicopia/models/block/hay_bale_bse.json new file mode 100644 index 00000000..76ec139b --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_bse.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "bottom_south_east", + "from": [8, 0, 8], + "to": [16, 8, 16], + "faces": { + "north": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "east": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "south": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "west": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "up": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "down": {"uv": [8, 0, 16, 8], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_bsw.json b/src/main/resources/assets/unicopia/models/block/hay_bale_bsw.json new file mode 100644 index 00000000..ed4ade6d --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_bsw.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "bottom_south_west", + "from": [0, 0, 8], + "to": [8, 8, 16], + "faces": { + "north": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "east": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "south": {"uv": [0, 8, 8, 16], "texture": "#side"}, + "west": {"uv": [8, 8, 16, 16], "texture": "#side"}, + "up": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "down": {"uv": [0, 0, 8, 8], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_tne.json b/src/main/resources/assets/unicopia/models/block/hay_bale_tne.json new file mode 100644 index 00000000..d23896b4 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_tne.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "top_north_east", + "from": [8, 8, 0], + "to": [16, 16, 8], + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "east": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "south": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "west": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "up": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "down": {"uv": [8, 8, 16, 16], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_tnw.json b/src/main/resources/assets/unicopia/models/block/hay_bale_tnw.json new file mode 100644 index 00000000..b465617c --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_tnw.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "top_north_west", + "from": [0, 8, 0], + "to": [8, 16, 8], + "faces": { + "north": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "east": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "south": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "west": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "up": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "down": {"uv": [0, 8, 8, 16], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_tse.json b/src/main/resources/assets/unicopia/models/block/hay_bale_tse.json new file mode 100644 index 00000000..64d34fa6 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_tse.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "top_south_east", + "from": [8, 8, 8], + "to": [16, 16, 16], + "faces": { + "north": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "east": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "south": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "west": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "up": {"uv": [8, 8, 16, 16], "texture": "#top"}, + "down": {"uv": [8, 0, 16, 8], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/hay_bale_tsw.json b/src/main/resources/assets/unicopia/models/block/hay_bale_tsw.json new file mode 100644 index 00000000..01f205b0 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/hay_bale_tsw.json @@ -0,0 +1,22 @@ +{ + "textures": { + "top": "block/hay_block_top", + "particle": "block/hay_block_side", + "side": "block/hay_block_side" + }, + "elements": [ + { + "name": "top_south_west", + "from": [0, 8, 8], + "to": [8, 16, 16], + "faces": { + "north": {"uv": [8, 0, 16, 8], "texture": "#top"}, + "east": {"uv": [0, 0, 8, 8], "texture": "#top"}, + "south": {"uv": [0, 0, 8, 8], "texture": "#side"}, + "west": {"uv": [8, 0, 16, 8], "texture": "#side"}, + "up": {"uv": [0, 8, 8, 16], "texture": "#top"}, + "down": {"uv": [0, 0, 8, 8], "texture": "#top"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_bne.json b/src/main/resources/assets/unicopia/models/block/rice_bale_bne.json new file mode 100644 index 00000000..3c280742 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_bne.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bne", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_bnw.json b/src/main/resources/assets/unicopia/models/block/rice_bale_bnw.json new file mode 100644 index 00000000..9b3d6ce0 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_bnw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bnw", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_bse.json b/src/main/resources/assets/unicopia/models/block/rice_bale_bse.json new file mode 100644 index 00000000..6fd0b774 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_bse.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bse", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_bsw.json b/src/main/resources/assets/unicopia/models/block/rice_bale_bsw.json new file mode 100644 index 00000000..c2ec227a --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_bsw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bsw", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_tne.json b/src/main/resources/assets/unicopia/models/block/rice_bale_tne.json new file mode 100644 index 00000000..81eb613c --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_tne.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tne", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_tnw.json b/src/main/resources/assets/unicopia/models/block/rice_bale_tnw.json new file mode 100644 index 00000000..c4bef47d --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_tnw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tnw", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_tse.json b/src/main/resources/assets/unicopia/models/block/rice_bale_tse.json new file mode 100644 index 00000000..f58ce7d1 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_tse.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tse", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/rice_bale_tsw.json b/src/main/resources/assets/unicopia/models/block/rice_bale_tsw.json new file mode 100644 index 00000000..9608f77e --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/rice_bale_tsw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tsw", + "textures": { + "top": "farmersdelight:block/rice_bale_top", + "particle": "farmersdelight:block/rice_bale_side", + "side": "farmersdelight:block/rice_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_bne.json b/src/main/resources/assets/unicopia/models/block/straw_bale_bne.json new file mode 100644 index 00000000..fef62f35 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_bne.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bne", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_bnw.json b/src/main/resources/assets/unicopia/models/block/straw_bale_bnw.json new file mode 100644 index 00000000..a5b3162b --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_bnw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bnw", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_bse.json b/src/main/resources/assets/unicopia/models/block/straw_bale_bse.json new file mode 100644 index 00000000..95d23675 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_bse.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bse", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_bsw.json b/src/main/resources/assets/unicopia/models/block/straw_bale_bsw.json new file mode 100644 index 00000000..3a5ef025 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_bsw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_bsw", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_tne.json b/src/main/resources/assets/unicopia/models/block/straw_bale_tne.json new file mode 100644 index 00000000..f8cc37a5 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_tne.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tne", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_tnw.json b/src/main/resources/assets/unicopia/models/block/straw_bale_tnw.json new file mode 100644 index 00000000..1b06dba9 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_tnw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tnw", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_tse.json b/src/main/resources/assets/unicopia/models/block/straw_bale_tse.json new file mode 100644 index 00000000..44d1f681 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_tse.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tse", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/unicopia/models/block/straw_bale_tsw.json b/src/main/resources/assets/unicopia/models/block/straw_bale_tsw.json new file mode 100644 index 00000000..0c74b850 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/block/straw_bale_tsw.json @@ -0,0 +1,8 @@ +{ + "parent": "unicopia:block/hay_bale_tsw", + "textures": { + "top": "farmersdelight:block/straw_bale_end", + "particle": "farmersdelight:block/straw_bale_side", + "side": "farmersdelight:block/straw_bale_side" + } +} \ No newline at end of file diff --git a/src/main/resources/data/c/tags/items/foraging/edibles_filling.json b/src/main/resources/data/c/tags/items/foraging/edibles_filling.json index c183c3fb..bc799386 100644 --- a/src/main/resources/data/c/tags/items/foraging/edibles_filling.json +++ b/src/main/resources/data/c/tags/items/foraging/edibles_filling.json @@ -1,6 +1,8 @@ { "replace": false, "values": [ - { "id": "farmersdelight:horse_feed", "required": false } + { "id": "farmersdelight:horse_feed", "required": false }, + { "id": "farmersdelight:rice_bale", "required": false }, + { "id": "farmersdelight:straw_bale", "required": false } ] } diff --git a/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json b/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json index ced25022..c6d84218 100644 --- a/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json +++ b/src/main/resources/data/minecraft/tags/blocks/mineable/hoe.json @@ -8,6 +8,9 @@ "unicopia:sweet_apple_leaves", "unicopia:sour_apple_leaves", "unicopia:golden_oak_leaves", - "unicopia:mango_leaves" + "unicopia:mango_leaves", + "unicopia:hay_block", + { "id": "unicopia:rice_block", "required": false }, + { "id": "unicopia:straw_block", "required": false } ] } diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json b/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json new file mode 100644 index 00000000..cce83e89 --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json @@ -0,0 +1,245 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:gold_root", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "enchantment": "minecraft:fortune", + "formula": "minecraft:binomial_with_bonus_count", + "function": "minecraft:apply_bonus", + "parameters": { + "extra": 3, + "probability": 0.5714286 + } + } + ], + "name": "minecraft:wheat" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/tags/items/food_types/forage_edible_filling.json b/src/main/resources/data/unicopia/tags/items/food_types/forage_edible_filling.json index ce1ec0f6..5bf8d28d 100644 --- a/src/main/resources/data/unicopia/tags/items/food_types/forage_edible_filling.json +++ b/src/main/resources/data/unicopia/tags/items/food_types/forage_edible_filling.json @@ -3,7 +3,6 @@ "values": [ "minecraft:hay_block", "#minecraft:leaves", - "#c:foraging/edibles_filling", - { "id": "farmersdelight:rice_bale", "required": false } + "#c:foraging/edibles_filling" ] } From e5236e5802a9e01668cfb46149bb2711a26f56bf Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Jan 2024 16:11:48 +0000 Subject: [PATCH 040/104] Fix loot tables --- .../loot_tables/blocks/hay_block.json | 104 +----------- .../loot_tables/blocks/rice_block.json | 157 ++++++++++++++++++ .../loot_tables/blocks/straw_block.json | 157 ++++++++++++++++++ 3 files changed, 322 insertions(+), 96 deletions(-) create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/rice_block.json create mode 100644 src/main/resources/data/unicopia/loot_tables/blocks/straw_block.json diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json b/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json index cce83e89..1101857f 100644 --- a/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json +++ b/src/main/resources/data/unicopia/loot_tables/blocks/hay_block.json @@ -5,7 +5,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "top_north_east": "true" @@ -15,17 +15,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -35,7 +24,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "top_north_west": "true" @@ -45,17 +34,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -65,7 +43,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "top_south_east": "true" @@ -75,17 +53,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -95,7 +62,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "top_south_west": "true" @@ -105,17 +72,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -125,7 +81,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "bottom_north_east": "true" @@ -135,17 +91,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -155,7 +100,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "bottom_north_west": "true" @@ -165,17 +110,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -185,7 +119,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "bottom_south_east": "true" @@ -195,17 +129,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], @@ -215,7 +138,7 @@ "bonus_rolls": 0.0, "conditions": [ { - "block": "unicopia:gold_root", + "block": "unicopia:hay_block", "condition": "minecraft:block_state_property", "properties": { "bottom_south_west": "true" @@ -225,17 +148,6 @@ "entries": [ { "type": "minecraft:item", - "functions": [ - { - "enchantment": "minecraft:fortune", - "formula": "minecraft:binomial_with_bonus_count", - "function": "minecraft:apply_bonus", - "parameters": { - "extra": 3, - "probability": 0.5714286 - } - } - ], "name": "minecraft:wheat" } ], diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/rice_block.json b/src/main/resources/data/unicopia/loot_tables/blocks/rice_block.json new file mode 100644 index 00000000..20a3852d --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/blocks/rice_block.json @@ -0,0 +1,157 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:rice_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:rice_panicle" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/loot_tables/blocks/straw_block.json b/src/main/resources/data/unicopia/loot_tables/blocks/straw_block.json new file mode 100644 index 00000000..ab4fa683 --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/blocks/straw_block.json @@ -0,0 +1,157 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "top_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_north_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_east": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "unicopia:straw_block", + "condition": "minecraft:block_state_property", + "properties": { + "bottom_south_west": "true" + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "farmersdelight:straw" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file From 08e1702a1a3b16d0154db1285a6db8583234703e Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Jan 2024 16:12:25 +0000 Subject: [PATCH 041/104] Fix bales being rebuilt with only wheat and added option to trim bales with a hoe --- .../unicopia/block/EdibleBlock.java | 40 ++++++++++++------- .../unicopia/block/UBlocks.java | 6 +-- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java index b4f0a5d2..57517560 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java @@ -19,8 +19,8 @@ import net.minecraft.block.HayBlock; import net.minecraft.block.ShapeContext; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; -import net.minecraft.item.Items; import net.minecraft.registry.Registries; +import net.minecraft.registry.tag.ItemTags; import net.minecraft.sound.SoundCategory; import net.minecraft.state.StateManager; import net.minecraft.state.property.BooleanProperty; @@ -107,13 +107,15 @@ public class EdibleBlock extends HayBlock { } private final Identifier baseBlock; + private final Identifier material; - public EdibleBlock(Identifier baseBlock, boolean register) { + public EdibleBlock(Identifier baseBlock, Identifier material, boolean register) { super(Settings.copy(Blocks.HAY_BLOCK)); for (BooleanProperty segment : SEGMENTS) { setDefaultState(getDefaultState().with(segment, true)); } this.baseBlock = baseBlock; + this.material = material; if (register) { REGISTRY.add(this); FlammableBlockRegistry.getDefaultInstance().add(this, 60, 20); @@ -148,7 +150,8 @@ public class EdibleBlock extends HayBlock { } ItemStack stack = player.getStackInHand(hand); - if (stack.isOf(Items.WHEAT)) { + + if (!stack.isEmpty() && stack.isOf(Registries.ITEM.get(material))) { BooleanProperty segment = getHitCorner(hit, 1); if (!state.get(segment)) { @@ -160,7 +163,7 @@ public class EdibleBlock extends HayBlock { } world.setBlockState(pos, state); } - world.playSound(player, pos, this.getSoundGroup(state).getPlaceSound(), SoundCategory.BLOCKS); + world.playSound(player, pos, getSoundGroup(state).getPlaceSound(), SoundCategory.BLOCKS); return ActionResult.SUCCESS; } @@ -174,8 +177,12 @@ public class EdibleBlock extends HayBlock { return ActionResult.PASS; } - if (!(player.isCreative() || player.getHungerManager().isNotFull()) || !player.isSneaking()) { - return ActionResult.FAIL; + boolean usingHoe = stack.isIn(ItemTags.HOES); + + if (!usingHoe) { + if (!(player.isCreative() || player.getHungerManager().isNotFull()) || !player.isSneaking()) { + return ActionResult.FAIL; + } } if (!world.isClient) { @@ -186,11 +193,17 @@ public class EdibleBlock extends HayBlock { world.setBlockState(pos, state); } } - player.playSound(USounds.Vanilla.ENTITY_GENERIC_EAT, 1, 1); - if (world.random.nextInt(10) == 0) { - player.playSound(USounds.Vanilla.ENTITY_PLAYER_BURP, 1, player.getSoundPitch()); + + if (usingHoe) { + dropStack(world, pos, Registries.ITEM.get(material).getDefaultStack()); + player.playSound(USounds.Vanilla.ITEM_HOE_TILL, 1, 1); + } else { + player.playSound(USounds.Vanilla.ENTITY_GENERIC_EAT, 1, 1); + if (world.random.nextInt(10) == 0) { + player.playSound(USounds.Vanilla.ENTITY_PLAYER_BURP, 1, player.getSoundPitch()); + } + player.getHungerManager().add(4, 2.3F); } - player.getHungerManager().add(4, 2.3F); return ActionResult.SUCCESS; } @@ -202,13 +215,12 @@ public class EdibleBlock extends HayBlock { return SEGMENTS[ (4 * getIndex(pos.y, bPos.getY())) + (2 * getIndex(pos.z, bPos.getZ())) - + (1 - getIndex(pos.x, bPos.getX())) + + (getIndex(pos.x, bPos.getX())) ]; } static int getIndex(double axisHit, int tile) { - axisHit = Math.abs(axisHit); - tile = Math.abs(tile); - return axisHit - ((int)axisHit) > 0.5 ? 1 : 0; + axisHit -= tile; + return Math.abs(axisHit) > 0.5 ? 1 : 0; } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java index af03300f..02ddcdb6 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java +++ b/src/main/java/com/minelittlepony/unicopia/block/UBlocks.java @@ -225,7 +225,7 @@ public interface UBlocks { Block CRYSTAL_DOOR = register("crystal_door", new CrystalDoorBlock(Settings.copy(Blocks.IRON_DOOR), UWoodTypes.CRYSTAL), ItemGroups.FUNCTIONAL); Block CLOUD_DOOR = register("cloud_door", new CloudDoorBlock(Settings.copy(CLOUD), CLOUD.getDefaultState(), UWoodTypes.CLOUD), ItemGroups.FUNCTIONAL); - EdibleBlock HAY_BLOCK = register("hay_block", new EdibleBlock(new Identifier("hay_block"), true)); + EdibleBlock HAY_BLOCK = register("hay_block", new EdibleBlock(new Identifier("hay_block"), new Identifier("wheat"), true)); private static T register(String name, T item) { return register(Unicopia.id(name), item); @@ -256,8 +256,8 @@ public interface UBlocks { static void bootstrap() { if (FabricLoader.getInstance().isModLoaded("farmersdelight")) { - register("rice_block", new EdibleBlock(new Identifier("farmersdelight", "rice_bale"), true)); - register("straw_block", new EdibleBlock(new Identifier("farmersdelight", "straw_bale"), true)); + register("rice_block", new EdibleBlock(new Identifier("farmersdelight", "rice_bale"), new Identifier("farmersdelight", "rice_panicle"), true)); + register("straw_block", new EdibleBlock(new Identifier("farmersdelight", "straw_bale"), new Identifier("farmersdelight", "straw"), true)); } BlockEntityTypeSupportHelper.of(BlockEntityType.SIGN).addSupportedBlocks(PALM_SIGN, PALM_WALL_SIGN); BlockEntityTypeSupportHelper.of(BlockEntityType.HANGING_SIGN).addSupportedBlocks(PALM_HANGING_SIGN, PALM_WALL_HANGING_SIGN); From 5d2478604c228eb8a0e10795fde10d8e10a12ebd Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Jan 2024 16:13:54 +0000 Subject: [PATCH 042/104] Fixed items being consumed in creative mode --- .../java/com/minelittlepony/unicopia/block/EdibleBlock.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java index 57517560..b450c828 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/EdibleBlock.java @@ -155,7 +155,9 @@ public class EdibleBlock extends HayBlock { BooleanProperty segment = getHitCorner(hit, 1); if (!state.get(segment)) { - stack.decrement(1); + if (!player.isCreative()) { + stack.decrement(1); + } if (!world.isClient) { state = state.with(segment, true); if (SHAPE_CACHE.apply(state) == VoxelShapes.fullCube()) { @@ -195,6 +197,7 @@ public class EdibleBlock extends HayBlock { } if (usingHoe) { + stack.damage(1, player, p -> p.sendToolBreakStatus(hand)); dropStack(world, pos, Registries.ITEM.get(material).getDefaultStack()); player.playSound(USounds.Vanilla.ITEM_HOE_TILL, 1, 1); } else { From d22dd3bdf9cb90e55f742487f50b6b96364dc5a6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 19 Jan 2024 22:12:22 +0000 Subject: [PATCH 043/104] Change how black holes function to instead generate energy --- .../magic/spell/effect/DarkVortexSpell.java | 16 +++++++------- .../magic/spell/effect/ShieldSpell.java | 22 +++++++++++-------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index bda10118..9402d692 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -37,10 +37,6 @@ import net.minecraft.world.World.ExplosionSourceType; /** * More powerful version of the vortex spell which creates a black hole. - * - * TODO: Possible uses - * - Garbage bin - * - Link with a teleportation spell to create a wormhole */ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelegate.BlockHitListener { public static final SpellTraits DEFAULT_TRAITS = new SpellTraits.Builder() @@ -91,10 +87,6 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega source.asWorld().playSound(null, source.getOrigin(), USounds.AMBIENT_DARK_VORTEX_ADDITIONS, SoundCategory.AMBIENT, 1, 1); } - if (!source.subtractEnergyCost(-accumulatedMass)) { - setDead(); - } - if (!source.isClient() && source.asWorld().random.nextInt(300) == 0) { ParticleUtils.spawnParticle(source.asWorld(), LightningBoltParticleEffect.DEFAULT, getOrigin(source), Vec3d.ZERO); } @@ -102,6 +94,14 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega return super.tick(source, situation); } + @Override + protected void consumeManage(Caster source, long costMultiplier, float knowledge) { + if (!source.subtractEnergyCost(-accumulatedMass)) { + setDead(); + } + } + + @Override public boolean isFriendlyTogether(Affine other) { return accumulatedMass < 4; diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java index 61cc6e79..71f5cede 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java @@ -97,20 +97,24 @@ public class ShieldSpell extends AbstractSpell { long costMultiplier = applyEntities(source); if (costMultiplier > 0) { - double cost = 2 - source.getLevel().getScaled(2); - - cost *= costMultiplier / ((1 + source.getLevel().get()) * 3F); - cost /= knowledge; - cost += getDrawDropOffRange(source) / 10F; - - if (!source.subtractEnergyCost(cost)) { - setDead(); - } + consumeManage(source, costMultiplier, knowledge); } return !isDead(); } + protected void consumeManage(Caster source, long costMultiplier, float knowledge) { + double cost = 2 - source.getLevel().getScaled(2); + + cost *= costMultiplier / ((1 + source.getLevel().get()) * 3F); + cost /= knowledge; + cost += getDrawDropOffRange(source) / 10F; + + if (!source.subtractEnergyCost(cost)) { + setDead(); + } + } + /** * Calculates the maximum radius of the shield. aka The area of effect. */ From ab3ac8cb0d6c1b1689e2587e2a55f48814246bb7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 15:12:23 +0000 Subject: [PATCH 044/104] Improve spell lookup performance by using the Ether --- .../unicopia/InteractionManager.java | 12 - .../unicopia/ability/magic/Caster.java | 7 +- .../unicopia/ability/magic/CasterView.java | 44 --- .../ability/magic/spell/PlaceableSpell.java | 21 +- .../spell/effect/AreaProtectionSpell.java | 8 + .../spell/effect/DisperseIllusionSpell.java | 2 +- .../magic/spell/effect/HydrophobicSpell.java | 41 ++- .../magic/spell/effect/PortalSpell.java | 44 +-- .../client/ClientInteractionManager.java | 15 -- .../unicopia/mixin/MixinFlowableFluid.java | 3 +- .../unicopia/server/world/Ether.java | 251 ++++++++++++------ .../unicopia/util/NbtSerialisable.java | 13 + 12 files changed, 263 insertions(+), 198 deletions(-) delete mode 100644 src/main/java/com/minelittlepony/unicopia/ability/magic/CasterView.java diff --git a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java index 0e507331..05a101d2 100644 --- a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java @@ -1,22 +1,17 @@ package com.minelittlepony.unicopia; import java.util.Map; -import java.util.Optional; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import com.minelittlepony.unicopia.ability.magic.CasterView; import com.minelittlepony.unicopia.entity.player.dummy.DummyPlayerEntity; -import com.minelittlepony.unicopia.server.world.Ether; import com.mojang.authlib.GameProfile; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.network.PacketByteBuf; -import net.minecraft.server.world.ServerWorld; import net.minecraft.util.Identifier; -import net.minecraft.world.BlockView; import net.minecraft.world.World; public class InteractionManager { @@ -37,13 +32,6 @@ public class InteractionManager { return INSTANCE; } - public Optional getCasterView(BlockView view) { - if (view instanceof ServerWorld world) { - return Optional.of(Ether.get(world)); - } - return Optional.empty(); - } - public Map readChapters(PacketByteBuf buf) { throw new RuntimeException("Method not supported"); } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/Caster.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/Caster.java index 98264836..150b1004 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/Caster.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/Caster.java @@ -11,6 +11,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.entity.*; import com.minelittlepony.unicopia.entity.damage.UDamageSources; import com.minelittlepony.unicopia.particle.ParticleSource; +import com.minelittlepony.unicopia.server.world.Ether; import com.minelittlepony.unicopia.server.world.ModificationType; import com.minelittlepony.unicopia.util.SoundEmitter; import com.minelittlepony.unicopia.util.VecHelper; @@ -99,11 +100,7 @@ public interface Caster extends } default boolean canCastAt(Vec3d pos) { - return findAllSpellsInRange(500, SpellType.ARCANE_PROTECTION::isOn).noneMatch(caster -> caster - .getSpellSlot().get(SpellType.ARCANE_PROTECTION, false) - .filter(spell -> spell.blocksMagicFor(caster, this, pos)) - .isPresent() - ); + return !Ether.get(asWorld()).anyMatch(SpellType.ARCANE_PROTECTION, (spell, caster) -> spell.blocksMagicFor(caster, this, pos)); } static Stream> stream(Stream entities) { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/CasterView.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/CasterView.java deleted file mode 100644 index 572f4542..00000000 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/CasterView.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.minelittlepony.unicopia.ability.magic; - -import java.util.Map; -import java.util.function.Predicate; -import java.util.stream.Stream; - -import org.jetbrains.annotations.Nullable; - -import com.minelittlepony.unicopia.EquinePredicates; -import com.minelittlepony.unicopia.ability.magic.spell.Spell; -import com.minelittlepony.unicopia.util.VecHelper; - -import net.minecraft.entity.Entity; -import net.minecraft.util.math.BlockPos; -import net.minecraft.util.math.Vec3d; -import net.minecraft.world.*; - -public interface CasterView { - EntityView getWorld(); - - default Stream, S>> findAllSpellsInRange(BlockPos pos, double radius, SpellPredicate type) { - return findAllCastersInRange(pos, radius).flatMap(caster -> { - return caster.getSpellSlot().stream(type, false).map(spell -> { - return Map.entry(caster, spell); - }); - }); - } - - default Stream> findAllCastersInRange(BlockPos pos, double radius) { - return findAllCastersInRange(pos, radius, null); - } - - default Stream> findAllCastersInRange(BlockPos pos, double radius, @Nullable Predicate test) { - return Caster.stream(findAllEntitiesInRange(pos, radius, test == null ? EquinePredicates.IS_CASTER : EquinePredicates.IS_CASTER.and(test))); - } - - default Stream findAllEntitiesInRange(BlockPos pos, double radius, @Nullable Predicate test) { - return VecHelper.findInRange(null, getWorld(), Vec3d.ofCenter(pos), radius, test).stream(); - } - - default Stream findAllEntitiesInRange(BlockPos pos, double radius) { - return findAllEntitiesInRange(pos, radius, null); - } -} diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java index 7154056a..e3736e59 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java @@ -45,6 +45,12 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS */ private final ParticleHandle particlEffect = new ParticleHandle(); + /** + * ID of the placed counterpart of this spell. + */ + @Nullable + private UUID placedSpellId; + /** * The cast spell entity */ @@ -82,10 +88,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Override public boolean tick(Caster source, Situation situation) { - if (situation == Situation.BODY) { if (!source.isClient()) { - if (dimension == null) { dimension = source.asWorld().getRegistryKey(); if (source instanceof Pony) { @@ -105,8 +109,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS if (situation == Situation.GROUND_ENTITY) { if (!source.isClient()) { - Ether ether = Ether.get(source.asWorld()); - if (ether.getEntry(getType(), source).isEmpty()) { + if (Ether.get(source.asWorld()).get(this, source) == null) { setDead(); return false; } @@ -127,7 +130,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS } private void checkDetachment(Caster source, EntityValues target) { - if (getWorld(source).map(Ether::get).flatMap(ether -> ether.getEntry(getType(), target.uuid())).isEmpty()) { + if (getWorld(source).map(Ether::get).map(ether -> ether.get(getType(), target, placedSpellId)).isEmpty()) { setDead(); } } @@ -143,7 +146,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS entity.getSpellSlot().put(copy); entity.setCaster(source); entity.getWorld().spawnEntity(entity); - Ether.get(entity.getWorld()).put(getType(), entity); + placedSpellId = copy.getUuid(); + Ether.get(entity.getWorld()).getOrCreate(copy, entity); castEntity.set(entity); setDirty(); @@ -174,8 +178,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS if (!source.isClient()) { castEntity.getTarget().ifPresent(target -> { getWorld(source).map(Ether::get) - .flatMap(ether -> ether.getEntry(getType(), target.uuid())) - .ifPresent(Ether.Entry::markDead); + .ifPresent(ether -> ether.remove(getType(), target.uuid())); }); castEntity.set(null); getSpellEntity(source).ifPresent(e -> { @@ -183,7 +186,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS }); if (source.asEntity() instanceof CastSpellEntity spellcast) { - Ether.get(source.asWorld()).remove(getType(), source); + Ether.get(source.asWorld()).remove(this, source); } } super.onDestroyed(source); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AreaProtectionSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AreaProtectionSpell.java index 75615785..920c5bd5 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AreaProtectionSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AreaProtectionSpell.java @@ -9,6 +9,7 @@ import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.item.FriendshipBraceletItem; import com.minelittlepony.unicopia.particle.MagicParticleEffect; +import com.minelittlepony.unicopia.server.world.Ether; import com.minelittlepony.unicopia.util.shape.Sphere; import net.minecraft.entity.Entity; @@ -42,6 +43,8 @@ public class AreaProtectionSpell extends AbstractAreaEffectSpell { source.addParticle(new MagicParticleEffect(getType().getColor()), pos, Vec3d.ZERO); } }); + } else { + Ether.get(source.asWorld()).getOrCreate(this, source); } source.findAllSpellsInRange(radius, e -> isValidTarget(source, e)).filter(caster -> !caster.hasCommonOwner(source)).forEach(caster -> { @@ -51,6 +54,11 @@ public class AreaProtectionSpell extends AbstractAreaEffectSpell { return !isDead(); } + @Override + protected void onDestroyed(Caster caster) { + Ether.get(caster.asWorld()).remove(this, caster); + } + /** * Calculates the maximum radius of the shield. aka The area of effect. */ diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisperseIllusionSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisperseIllusionSpell.java index 4806d10d..9affae3e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisperseIllusionSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisperseIllusionSpell.java @@ -12,7 +12,7 @@ import com.minelittlepony.unicopia.util.shape.Sphere; import net.minecraft.util.math.Vec3d; /** - * An area-effect spell that disperses illussions. + * An area-effect spell that disperses illusions. */ public class DisperseIllusionSpell extends AbstractAreaEffectSpell { protected DisperseIllusionSpell(CustomisedSpellType type) { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/HydrophobicSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/HydrophobicSpell.java index 5ff51120..d88d9dd0 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/HydrophobicSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/HydrophobicSpell.java @@ -5,14 +5,16 @@ import java.util.Set; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.ability.magic.Caster; -import com.minelittlepony.unicopia.ability.magic.CasterView; +import com.minelittlepony.unicopia.ability.magic.spell.CastingMethod; import com.minelittlepony.unicopia.ability.magic.spell.Situation; +import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.advancement.UCriteria; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; +import com.minelittlepony.unicopia.server.world.Ether; import com.minelittlepony.unicopia.util.NbtSerialisable; import com.minelittlepony.unicopia.util.shape.*; @@ -21,8 +23,10 @@ import net.minecraft.fluid.*; import net.minecraft.nbt.*; import net.minecraft.state.property.Properties; import net.minecraft.registry.tag.TagKey; +import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Vec3d; +import net.minecraft.world.BlockView; import net.minecraft.world.World; public class HydrophobicSpell extends AbstractSpell { @@ -41,16 +45,15 @@ public class HydrophobicSpell extends AbstractSpell { } @Override - public boolean apply(Caster source) { - if (getTraits().get(Trait.GENEROSITY) > 0) { - return toPlaceable().apply(source); + public Spell prepareForCast(Caster caster, CastingMethod method) { + if ((method == CastingMethod.DIRECT || method == CastingMethod.STAFF) && getTraits().get(Trait.GENEROSITY) > 0) { + return toPlaceable(); } - return super.apply(source); + return this; } @Override public boolean tick(Caster source, Situation situation) { - if (!source.isClient()) { World world = source.asWorld(); @@ -86,7 +89,11 @@ public class HydrophobicSpell extends AbstractSpell { setDead(); } - source.spawnParticles(new Sphere(true, getRange(source)), 10, pos -> { + double range = getRange(source); + var entry = Ether.get(source.asWorld()).getOrCreate(this, source); + entry.radius = (float)range; + + source.spawnParticles(new Sphere(true, range), 10, pos -> { BlockPos bp = BlockPos.ofFloored(pos); if (source.asWorld().getFluidState(bp.up()).isIn(affectedFluid)) { source.addParticle(UParticles.RAIN_DROPS, pos, Vec3d.ZERO); @@ -107,6 +114,7 @@ public class HydrophobicSpell extends AbstractSpell { @Override protected void onDestroyed(Caster caster) { + Ether.get(caster.asWorld()).remove(this, caster); storedFluidPositions.removeIf(entry -> { entry.restore(caster.asWorld()); return true; @@ -162,13 +170,20 @@ public class HydrophobicSpell extends AbstractSpell { } } - public boolean blocksFlow(Caster caster, BlockPos pos, FluidState fluid) { - return fluid.isIn(affectedFluid) && pos.isWithinDistance(caster.getOrigin(), getRange(caster) + 1); + public boolean blocksFlow(Ether.Entry entry, Vec3d center, BlockPos pos, FluidState fluid) { + return fluid.isIn(affectedFluid) && pos.isWithinDistance(center, (double)entry.radius + 1); } - public static boolean blocksFluidFlow(CasterView world, BlockPos pos, FluidState state) { - return world.findAllSpellsInRange(pos, 500, SpellType.HYDROPHOBIC).anyMatch(pair -> { - return pair.getValue().blocksFlow(pair.getKey(), pos, state); - }); + public static boolean blocksFluidFlow(BlockView world, BlockPos pos, FluidState state) { + if (world instanceof ServerWorld sw) { + return Ether.get(sw).anyMatch(SpellType.HYDROPHOBIC, entry -> { + var spell = entry.getSpell(); + var target = entry.entity.getTarget().orElse(null); + return spell != null && target != null && spell.blocksFlow(entry, target.pos(), pos, state); + }); + } + + return false; + } } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index 680a0ff1..8b25fbe9 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -1,6 +1,9 @@ package com.minelittlepony.unicopia.ability.magic.spell.effect; import java.util.Optional; +import java.util.UUID; + +import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.Unicopia; @@ -34,6 +37,8 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme .build(); private static final Shape PARTICLE_AREA = new Sphere(true, 2, 1, 1, 0); + @Nullable + private UUID targetPortalId; private final EntityReference teleportationTarget = new EntityReference<>(); private boolean publishedPosition; @@ -63,10 +68,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme Vec3d origin = source.getOriginVector(); ParticleEffect effect = teleportationTarget.getTarget() - .map(target -> { - getType(); - return (ParticleEffect)new FollowingParticleEffect(UParticles.HEALTH_DRAIN, target.pos(), 0.2F).withChild(ParticleTypes.ELECTRIC_SPARK); - }) + .map(target -> (ParticleEffect)new FollowingParticleEffect(UParticles.HEALTH_DRAIN, target.pos(), 0.2F).withChild(ParticleTypes.ELECTRIC_SPARK)) .orElse(ParticleTypes.ELECTRIC_SPARK); source.spawnParticles(origin, particleArea, 5, pos -> { @@ -82,7 +84,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme }); } else { teleportationTarget.getTarget().ifPresent(target -> { - if (Ether.get(source.asWorld()).getEntry(getType(), target.uuid()).isEmpty()) { + if (Ether.get(source.asWorld()).get(getType(), target, targetPortalId) != null) { Unicopia.LOGGER.debug("Lost sibling, breaking connection to " + target.uuid()); teleportationTarget.set(null); setDirty(); @@ -96,18 +98,15 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme ); } - if (!publishedPosition) { - publishedPosition = true; - Ether.Entry entry = Ether.get(source.asWorld()).put(getType(), source); - entry.pitch = pitch; - entry.yaw = yaw; - } + var entry = Ether.get(source.asWorld()).getOrCreate(this, source); + entry.pitch = pitch; + entry.yaw = yaw; } return !isDead(); } - private void tickWithTargetLink(Caster source, Ether.Entry destination) { + private void tickWithTargetLink(Caster source, Ether.Entry destination) { destination.entity.getTarget().ifPresent(target -> { source.findAllEntitiesInRange(1).forEach(entity -> { @@ -142,20 +141,21 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme return; } - Ether ether = Ether.get(source.asWorld()); - ether.getEntries(getType()) - .stream() - .filter(entry -> entry.isAvailable() && !entry.entity.referenceEquals(source.asEntity()) && entry.entity.isSet()) - .findAny() - .ifPresent(entry -> { + Ether.get(source.asWorld()).anyMatch(getType(), entry -> { + if (entry.isAvailable() && !entry.entity.referenceEquals(source.asEntity()) && entry.entity.isSet()) { entry.setTaken(true); teleportationTarget.copyFrom(entry.entity); + targetPortalId = entry.getSpellId(); setDirty(); - }); + } + return false; + }); } - private Optional getTarget(Caster source) { - return teleportationTarget.getTarget().flatMap(target -> Ether.get(source.asWorld()).getEntry(getType(), target.uuid())); + @SuppressWarnings("unchecked") + private Optional> getTarget(Caster source) { + return teleportationTarget.getTarget() + .map(target -> Ether.get(source.asWorld()).get((SpellType)getType(), target, targetPortalId)); } @Override @@ -189,7 +189,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme protected void onDestroyed(Caster caster) { particleEffect.destroy(); Ether ether = Ether.get(caster.asWorld()); - ether.remove(getType(), caster.asEntity().getUuid()); + ether.remove(getType(), caster); getTarget(caster).ifPresent(e -> e.setTaken(false)); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java index 0be0da61..68cf31a5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java @@ -2,7 +2,6 @@ package com.minelittlepony.unicopia.client; import java.lang.ref.WeakReference; import java.util.Map; -import java.util.Optional; import java.util.function.Predicate; import java.util.function.Supplier; @@ -13,14 +12,12 @@ import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.FlightType; import com.minelittlepony.unicopia.InteractionManager; import com.minelittlepony.unicopia.USounds; -import com.minelittlepony.unicopia.ability.magic.CasterView; import com.minelittlepony.unicopia.client.gui.DismissSpellScreen; import com.minelittlepony.unicopia.client.gui.spellbook.ClientChapters; import com.minelittlepony.unicopia.client.sound.*; import com.minelittlepony.unicopia.entity.player.PlayerPhysics; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.entity.player.dummy.DummyClientPlayerEntity; -import com.minelittlepony.unicopia.server.world.Ether; import com.mojang.authlib.GameProfile; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -37,29 +34,17 @@ import net.minecraft.entity.passive.BeeEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.vehicle.AbstractMinecartEntity; import net.minecraft.network.PacketByteBuf; -import net.minecraft.server.world.ServerWorld; import net.minecraft.sound.SoundCategory; import net.minecraft.util.Identifier; import net.minecraft.util.math.random.Random; -import net.minecraft.world.BlockView; import net.minecraft.world.World; public class ClientInteractionManager extends InteractionManager { private final MinecraftClient client = MinecraftClient.getInstance(); - private final Optional clientWorld = Optional.of(() -> MinecraftClient.getInstance().world); - private final Int2ObjectMap> playingSounds = new Int2ObjectOpenHashMap<>(); - @Override - public Optional getCasterView(BlockView view) { - if (view instanceof ServerWorld world) { - return Optional.of(Ether.get(world)); - } - return clientWorld; - } - @Override public Map readChapters(PacketByteBuf buffer) { return buffer.readMap(PacketByteBuf::readIdentifier, ClientChapters::loadChapter); diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/MixinFlowableFluid.java b/src/main/java/com/minelittlepony/unicopia/mixin/MixinFlowableFluid.java index dff7a8f9..14a9a84d 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/MixinFlowableFluid.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/MixinFlowableFluid.java @@ -5,7 +5,6 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; -import com.minelittlepony.unicopia.InteractionManager; import com.minelittlepony.unicopia.ability.magic.spell.effect.HydrophobicSpell; import net.minecraft.block.BlockState; @@ -17,7 +16,7 @@ import net.minecraft.world.BlockView; abstract class MixinFlowableFluid { @Inject(method = "canFill", at = @At("HEAD"), cancellable = true) private void onCanFill(BlockView world, BlockPos pos, BlockState state, Fluid fluid, CallbackInfoReturnable info) { - if (InteractionManager.instance().getCasterView(world).filter(view -> HydrophobicSpell.blocksFluidFlow(view, pos, fluid.getDefaultState())).isPresent()) { + if (HydrophobicSpell.blocksFluidFlow(world, pos, fluid.getDefaultState())) { info.setReturnValue(false); } } diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/Ether.java b/src/main/java/com/minelittlepony/unicopia/server/world/Ether.java index b6eb0eea..8d2e309c 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/Ether.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/Ether.java @@ -1,88 +1,93 @@ package com.minelittlepony.unicopia.server.world; +import java.lang.ref.WeakReference; import java.util.*; +import java.util.function.BiPredicate; +import java.util.function.Predicate; + +import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.Unicopia; -import com.minelittlepony.unicopia.ability.magic.CasterView; import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.util.NbtSerialisable; - import net.minecraft.nbt.*; import net.minecraft.util.Identifier; import net.minecraft.world.PersistentState; import net.minecraft.world.World; -public class Ether extends PersistentState implements CasterView { +public class Ether extends PersistentState { private static final Identifier ID = Unicopia.id("ether"); public static Ether get(World world) { return WorldOverlay.getPersistableStorage(world, ID, Ether::new, Ether::new); } - private final Map> advertisingEndpoints = new HashMap<>(); + private final Map>>> endpoints; private final Object locker = new Object(); private final World world; Ether(World world, NbtCompound compound) { - this(world); - compound.getKeys().forEach(key -> { - Identifier typeId = Identifier.tryParse(key); - if (typeId != null) { - Set uuids = getEntries(typeId); - compound.getList(key, NbtElement.COMPOUND_TYPE).forEach(entry -> { - Entry e = new Entry(); - e.fromNBT((NbtCompound)entry); - uuids.add(e); - }); - } + this.world = world; + this.endpoints = NbtSerialisable.readMap(compound.getCompound("endpoints"), Identifier::tryParse, typeNbt -> { + return NbtSerialisable.readMap((NbtCompound)typeNbt, UUID::fromString, entityNbt -> { + return NbtSerialisable.readMap((NbtCompound)entityNbt, UUID::fromString, Entry::new); + }); }); } Ether(World world) { this.world = world; + this.endpoints = new HashMap<>(); } @Override public NbtCompound writeNbt(NbtCompound compound) { synchronized (locker) { - advertisingEndpoints.forEach((id, uuids) -> { - NbtList list = new NbtList(); - uuids.forEach(uuid -> { - if (uuid.isAlive()) { - list.add(uuid.toNBT()); - } + pruneNodes(); + compound.put("endpoints", NbtSerialisable.writeMap(endpoints, Identifier::toString, entities -> { + return NbtSerialisable.writeMap(entities, UUID::toString, spells -> { + return NbtSerialisable.writeMap(spells, UUID::toString, Entry::toNBT); }); - compound.put(id.toString(), list); - }); - + })); return compound; } } - public Entry put(SpellType spellType, Caster caster) { + @SuppressWarnings("unchecked") + public Entry getOrCreate(T spell, Caster caster) { synchronized (locker) { - var entry = new Entry(caster); - getEntries(spellType.getId()).add(entry); - markDirty(); + Entry entry = (Entry)endpoints + .computeIfAbsent(spell.getType().getId(), typeId -> new HashMap<>()) + .computeIfAbsent(caster.asEntity().getUuid(), entityId -> new HashMap<>()) + .computeIfAbsent(spell.getUuid(), spellid -> { + markDirty(); + return new Entry<>(spell, caster); + }); + if (entry.removed) { + entry.removed = false; + markDirty(); + } + if (entry.spell.get() != spell) { + entry.spell = new WeakReference<>(spell); + markDirty(); + } return entry; } } - public void remove(SpellType spellType, UUID id) { + public void remove(SpellType spellType, UUID entityId) { synchronized (locker) { - Identifier typeId = spellType.getId(); - Set refs = advertisingEndpoints.get(typeId); - if (refs != null) { - refs.removeIf(ref -> ref.isDead() || ref.entity.getTarget().filter(target -> id.equals(target.uuid())).isPresent()); - if (refs.isEmpty()) { - advertisingEndpoints.remove(typeId); + endpoints.computeIfPresent(spellType.getId(), (typeId, entries) -> { + if (entries.remove(entityId) != null) { + markDirty(); } - markDirty(); - } + return entries.isEmpty() ? null : entries; + }); } } @@ -90,72 +95,123 @@ public class Ether extends PersistentState implements CasterView { remove(spellType, caster.asEntity().getUuid()); } - public Set getEntries(SpellType spellType) { - return getEntries(spellType.getId()); + public void remove(T spell, Caster caster) { + Entry entry = get(spell, caster); + if (entry != null) { + entry.markDead(); + } } - private Set getEntries(Identifier typeId) { + @SuppressWarnings("unchecked") + public Entry get(T spell, Caster caster) { + return get((SpellType)spell.getType(), caster.asEntity().getUuid(), spell.getUuid()); + } + + public Entry get(SpellType spell, EntityReference.EntityValues entityId, @Nullable UUID spellId) { + return get(spell, entityId.uuid(), spellId); + } + + @SuppressWarnings("unchecked") + @Nullable + private Entry get(SpellType spell, UUID entityId, @Nullable UUID spellId) { + if (spellId == null) { + return null; + } synchronized (locker) { - return advertisingEndpoints.compute(typeId, (k, old) -> { - if (old == null) { - old = new HashSet<>(); - } else { - old.removeIf(Entry::isDead); + Entry entry = endpoints + .getOrDefault(spell.getId(), Map.of()) + .getOrDefault(entityId, Map.of()) + .get(spellId); + return entry == null || entry.isDead() ? null : (Entry)entry; + } + } + + public boolean anyMatch(SpellType spellType, BiPredicate> condition) { + return anyMatch(spellType, entry -> { + var spell = entry.getSpell(); + var caster = entry.getCaster(); + return spell != null && caster != null && condition.test(spell, caster); + }); + } + + @SuppressWarnings("unchecked") + public boolean anyMatch(SpellType spellType, Predicate> condition) { + synchronized (locker) { + for (var entries : endpoints.getOrDefault(spellType.getId(), Map.of()).values()) { + for (var entry : entries.values()) { + if (!entry.isDead() && condition.test((Entry)entry)) { + return true; + } } - return old; + } + } + return false; + } + + private void pruneNodes() { + this.endpoints.values().removeIf(entities -> { + entities.values().removeIf(spells -> { + spells.values().removeIf(Entry::isDead); + return spells.isEmpty(); }); - } + return entities.isEmpty(); + }); } - public Optional getEntry(SpellType spellType, Caster caster) { - synchronized (locker) { - return getEntries(spellType).stream().filter(e -> e.entity.referenceEquals(caster.asEntity())).findFirst(); - } - } - - public Optional getEntry(SpellType spellType, UUID uuid) { - synchronized (locker) { - return getEntries(spellType).stream().filter(e -> e.equals(uuid)).findFirst(); - } - } - - @Override - public World getWorld() { - return world; - } - - public class Entry implements NbtSerialisable { + public class Entry implements NbtSerialisable { public final EntityReference entity; + + @Nullable + private UUID spellId; + private WeakReference spell; + private boolean removed; private boolean taken; public float pitch; public float yaw; + public float radius; - public Entry() { - entity = new EntityReference<>(); + private Entry(NbtElement nbt) { + this.entity = new EntityReference<>(); + this.spell = new WeakReference<>(null); + this.fromNBT((NbtCompound)nbt); } - public Entry(Caster caster) { - entity = new EntityReference<>(caster.asEntity()); + public Entry(T spell, Caster caster) { + this.entity = new EntityReference<>(caster.asEntity()); + this.spell = new WeakReference<>(spell); + spellId = spell.getUuid(); } boolean isAlive() { - return !removed; + return !isDead(); } boolean isDead() { + if (!removed) { + getSpell(); + } return removed; } + @Nullable + public UUID getSpellId() { + return spellId; + } + public void markDead() { Unicopia.LOGGER.debug("Marking " + entity.getTarget().orElse(null) + " as dead"); removed = true; markDirty(); } + public boolean entityMatches(UUID uuid) { + return entity.getTarget().filter(target -> uuid.equals(target.uuid())).isPresent(); + } + public boolean isAvailable() { - return !removed && !taken; + return !isDead() && !taken; } public void setTaken(boolean taken) { @@ -163,6 +219,43 @@ public class Ether extends PersistentState implements CasterView { markDirty(); } + @Nullable + public T getSpell() { + if (removed) { + return null; + } + T spell = this.spell.get(); + if (spell == null) { + if (spellId != null) { + spell = entity + .getOrEmpty(world) + .flatMap(Caster::of) + .flatMap(caster -> caster.getSpellSlot().get(s -> s.getUuid().equals(spellId), true)) + .orElse(null); + + if (spell != null) { + this.spell = new WeakReference<>(spell); + } + } + } + + if (spell != null && spell.isDead()) { + spellId = null; + spell = null; + markDead(); + } + + return spell; + } + + @Nullable + public Caster getCaster() { + if (removed) { + return null; + } + return Caster.of(this.entity.get(world)).orElse(null); + } + @Override public void toNBT(NbtCompound compound) { entity.toNBT(compound); @@ -170,6 +263,10 @@ public class Ether extends PersistentState implements CasterView { compound.putBoolean("taken", taken); compound.putFloat("pitch", pitch); compound.putFloat("yaw", yaw); + compound.putFloat("radius", radius); + if (spellId != null) { + compound.putUuid("spellId", spellId); + } } @Override @@ -179,20 +276,24 @@ public class Ether extends PersistentState implements CasterView { taken = compound.getBoolean("taken"); pitch = compound.getFloat("pitch"); yaw = compound.getFloat("yaw"); + radius = compound.getFloat("radius"); + spellId = compound.containsUuid("spellid") ? compound.getUuid("spellId") : null; } @Override public boolean equals(Object other) { - return other instanceof Entry e && e.entity.referenceEquals(entity); + return other instanceof Entry e + && e.entity.referenceEquals(entity) + && Objects.equals(e.spell.get(), spell.get()); } - public boolean equals(UUID uuid) { - return entity.referenceEquals(uuid); + public boolean equals(UUID entityId, UUID spellId) { + return entity.referenceEquals(entityId) && spellId.equals(this.spellId); } @Override public int hashCode() { - return entity.hashCode(); + return Objects.hash(entity, spell.get()); } } } diff --git a/src/main/java/com/minelittlepony/unicopia/util/NbtSerialisable.java b/src/main/java/com/minelittlepony/unicopia/util/NbtSerialisable.java index 7f40eb69..a346c460 100644 --- a/src/main/java/com/minelittlepony/unicopia/util/NbtSerialisable.java +++ b/src/main/java/com/minelittlepony/unicopia/util/NbtSerialisable.java @@ -2,6 +2,7 @@ package com.minelittlepony.unicopia.util; import java.util.*; import java.util.function.*; +import java.util.stream.Collectors; import java.util.stream.Stream; import com.mojang.datafixers.util.Pair; @@ -65,6 +66,18 @@ public interface NbtSerialisable { return parent; } + static Map readMap(NbtCompound nbt, Function keyFunction, Function valueFunction) { + return nbt.getKeys().stream().collect(Collectors.toMap(keyFunction, k -> valueFunction.apply(nbt.get(k)))); + } + + static NbtCompound writeMap(Map map, Function keyFunction, Function valueFunction) { + NbtCompound nbt = new NbtCompound(); + map.forEach((k, v) -> { + nbt.put(keyFunction.apply(k), valueFunction.apply(v)); + }); + return nbt; + } + interface Serializer { T read(NbtCompound compound); From 69985e50f9ded41b27f9b073c340dd40191777e1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 15:42:26 +0000 Subject: [PATCH 045/104] Fixed placed spells breaking when reloading a world --- .../ability/magic/spell/PlaceableSpell.java | 4 ++++ .../advancements/unicopia/earth/dead_ringer.json | 12 ++++++------ .../unicopia/earth/sticks_and_stones.json | 14 +++++++------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java index e3736e59..082460cf 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java @@ -219,6 +219,9 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS position.ifPresent(pos -> { compound.put("position", NbtSerialisable.writeVector(pos)); }); + if (placedSpellId != null) { + compound.putUuid("placedSpellId", placedSpellId); + } if (dimension != null) { compound.putString("dimension", dimension.getValue().toString()); } @@ -232,6 +235,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS pitch = compound.getFloat("pitch"); yaw = compound.getFloat("yaw"); position = compound.contains("position") ? Optional.of(NbtSerialisable.readVector(compound.getList("position", NbtElement.FLOAT_TYPE))) : Optional.empty(); + placedSpellId = compound.containsUuid("placedSpellId") ? compound.getUuid("placedSpellId") : null; if (compound.contains("dimension", NbtElement.STRING_TYPE)) { Identifier id = Identifier.tryParse(compound.getString("dimension")); if (id != null) { diff --git a/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json index 881e8c8d..b9859933 100644 --- a/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json +++ b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json @@ -2,13 +2,13 @@ "parent": "unicopia:unicopia/earth/born_on_a_rock_farm", "display": { "icon": { - "item": "unicopia:rock" + "item": "unicopia:iron_horseshoe" }, "title": { - "translate": "advancements.unicopia.sticks_and_stones.title" + "translate": "advancements.unicopia.dead_ringer.title" }, "description": { - "translate": "advancements.unicopia.sticks_and_stones.description" + "translate": "advancements.unicopia.dead_ringer.description" }, "frame": "task", "show_toast": true, @@ -16,13 +16,13 @@ "hidden": true }, "criteria": { - "killed_entity_with_rock": { + "killed_entity_with_horseshoe": { "trigger": "minecraft:player_killed_entity", "conditions": { "killing_blow": { "tags": [ { - "id": "unicopia:from_rocks", + "id": "unicopia:from_horseshoes", "expected": true } ] @@ -31,6 +31,6 @@ } }, "requirements": [ - [ "killed_entity_with_rock" ] + [ "killed_entity_with_horseshoe" ] ] } diff --git a/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json b/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json index 591e4616..083c3c04 100644 --- a/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json +++ b/src/main/resources/data/unicopia/advancements/unicopia/earth/sticks_and_stones.json @@ -2,13 +2,13 @@ "parent": "unicopia:unicopia/earth/born_on_a_rock_farm", "display": { "icon": { - "item": "unicopia:horseshoe" + "item": "unicopia:rock" }, "title": { - "translate": "advancements.unicopia.dead_ringer.title" + "translate": "advancements.unicopia.sticks_and_stones.title" }, "description": { - "translate": "advancements.unicopia.dead_ringer.description" + "translate": "advancements.unicopia.sticks_and_stones.description" }, "frame": "task", "show_toast": true, @@ -16,13 +16,13 @@ "hidden": true }, "criteria": { - "killed_entity_with_horseshoe": { + "killed_entity_with_rock": { "trigger": "minecraft:player_killed_entity", "conditions": { "killing_blow": { "tags": [ { - "id": "unicopia:from_horseshoes", + "id": "unicopia:from_rocks", "expected": true } ] @@ -31,6 +31,6 @@ } }, "requirements": [ - [ "killed_entity_with_horseshoe" ] + [ "killed_entity_with_rock" ] ] -} +} \ No newline at end of file From 35536e6e4ad9d2a5947b0cee9d07cccdd6e810fa Mon Sep 17 00:00:00 2001 From: LingVarr Date: Sun, 21 Jan 2024 03:03:41 +1100 Subject: [PATCH 046/104] Update ru_ru.json --- .../resources/assets/unicopia/lang/ru_ru.json | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/ru_ru.json b/src/main/resources/assets/unicopia/lang/ru_ru.json index 1e626a2f..eb31d7f4 100644 --- a/src/main/resources/assets/unicopia/lang/ru_ru.json +++ b/src/main/resources/assets/unicopia/lang/ru_ru.json @@ -123,6 +123,7 @@ "item.unicopia.green_apple_seeds": "Семена яблони Гренни Смит", "item.unicopia.sweet_apple_seeds": "Семена яблони Яблочной Аллеи", "item.unicopia.sour_apple_seeds": "Семена кислой яблони", + "item.unicopia.golden_oak_seeds": "Семена золотого дуба", "item.unicopia.apple_pie_hoof": "Яблочный пирог с отпечатком копыта", "item.unicopia.apple_pie_slice": "Кусочек яблочного пирога", "item.unicopia.candied_apple": "Засахаренное яблоко", @@ -248,6 +249,10 @@ "block.unicopia.weather_vane": "Флюгер", "block.unicopia.curing_joke": "Лечащая шутка", "block.unicopia.gold_root": "Золотой корень", + "block.unicopia.golden_oak_sprout": "Росток золотого дуба", + "block.unicopia.golden_oak_sapling": "Саженец золотого дуба", + "block.unicopia.golden_oak_leaves": "Листья золотого дуба", + "block.unicopia.golden_oak_log": "Бревно золотого дуба", "block.unicopia.mango": "Манго", "block.unicopia.mango_leaves": "Листья мангового дерева", "block.unicopia.mango_sapling": "Саженец мангового дерева", @@ -986,13 +991,17 @@ "death.attack.unicopia.kick.player": "%2$s очень сильно пнул %1$s", "death.attack.unicopia.steamroller": "%1$s был расплющен", "death.attack.unicopia.steamroller.self": "%1$s был расплющен", - "death.attack.unicopia.steamroller.player": "%2$s рассправился с %1$s", - "death.attack.unicopia.stalagmite.pegasus": "%1$s пытался устроиться на сталагмите", + "death.attack.unicopia.steamroller.player": "%2$s расплющил %1$s", + "death.attack.unicopia.stalagmite.pegasus": "%1$s попытался устроиться на сталагмите", "death.attack.unicopia.stalagmite.pegasus.player": "%1$s влетел в сталагмит пока боролся %2$s", - "death.attack.unicopia.rock": "%1$s был избит", - "death.attack.unicopia.rock.self": "%1$s был избит", - "death.attack.unicopia.rock.item": "%1$s был избит %2$s используя %3$s", - "death.attack.unicopia.rock.player": "%1$s был избит %2$s", + "death.attack.unicopia.rock": "%1$s был обстрелян камнями", + "death.attack.unicopia.rock.self": "%1$s обстрелял себя камнями", + "death.attack.unicopia.rock.item": "%1$s был обстрелян камнями %2$s используя %3$s", + "death.attack.unicopia.rock.player": "%1$s был обстрелян камнями %2$s", + "death.attack.unicopia.horseshoe": "В %1$s прилетела подкова", + "death.attack.unicopia.horseshoe.self": "%1$s зарядил подковой в себя", + "death.attack.unicopia.horseshoe.item": "%2$s зарядил подковой в %1$s используя %3$s", + "death.attack.unicopia.horseshoe.player": "%2$s зарядил подковой в %1$s", "death.fell.accident.ladder.pegasus": "%1$s забыл, что умеет летать, и упал с лестницы", "death.fell.accident.vines.pegasus": "%1$s забыл, что умеет летать, и упал с лозы", @@ -1159,6 +1168,8 @@ "advancements.unicopia.earth_route.description": "Вступить в клан Яблока", "advancements.unicopia.sticks_and_stones.title": "Палки и камни", "advancements.unicopia.sticks_and_stones.description": "Убейте моба, бросая в него камни", + "advancements.unicopia.dead_ringer.title": "Звон смерти", + "advancements.unicopia.dead_ringer.description": "Убейте моба подковой", "advancements.unicopia.born_on_a_rock_farm.title": "Рождённый на Ферме Камней", "advancements.unicopia.born_on_a_rock_farm.description": "Успешно вырастить свой первый камень", "advancements.unicopia.thats_unusual.title": "Это необычно", From 7b1f5ce0db11a896b5ff4ba837aa792d952af397 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 16:44:33 +0000 Subject: [PATCH 047/104] Fix error loading the dead ringer advancement --- .../data/unicopia/advancements/unicopia/earth/dead_ringer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json index b9859933..dc70d6e7 100644 --- a/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json +++ b/src/main/resources/data/unicopia/advancements/unicopia/earth/dead_ringer.json @@ -2,7 +2,7 @@ "parent": "unicopia:unicopia/earth/born_on_a_rock_farm", "display": { "icon": { - "item": "unicopia:iron_horseshoe" + "item": "unicopia:iron_horse_shoe" }, "title": { "translate": "advancements.unicopia.dead_ringer.title" From e017fb1b899d27587f74323f18d4599e7e9b3804 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 16:45:22 +0000 Subject: [PATCH 048/104] Fix lag when both a dark vortex and hydrophobic (as well as other combinations) of spells are active at once --- .../ability/magic/spell/effect/AttractiveSpell.java | 3 ++- .../ability/magic/spell/effect/DarkVortexSpell.java | 13 ++++++------- .../unicopia/network/datasync/EffectSync.java | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java index 669411a1..d91970b2 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java @@ -44,9 +44,10 @@ public class AttractiveSpell extends ShieldSpell implements HomingSpell, TimedSp if (timer.getTicksRemaining() <= 0) { return false; } + + setDirty(); } - setDirty(); target.getOrEmpty(caster.asWorld()) .filter(entity -> entity.distanceTo(caster.asEntity()) > getDrawDropOffRange(caster)) .ifPresent(entity -> { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index 9402d692..4e50d13e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -80,10 +80,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega return true; } - age++; - setDirty(); - - if (age % 20 == 0) { + if (++age % 20 == 0) { source.asWorld().playSound(null, source.getOrigin(), USounds.AMBIENT_DARK_VORTEX_ADDITIONS, SoundCategory.AMBIENT, 1, 1); } @@ -162,7 +159,6 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega applyRadialEffect(source, e, e.getPos().distanceTo(origin), radius); }); } - setDirty(); }); } } @@ -221,8 +217,11 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega double massOfTarget = AttractionUtils.getMass(target); - accumulatedMass += massOfTarget; - setDirty(); + if (massOfTarget != 0) { + accumulatedMass += massOfTarget; + setDirty(); + } + target.damage(source.damageOf(UDamageTypes.GAVITY_WELL_RECOIL, source), Integer.MAX_VALUE); if (!(target instanceof PlayerEntity)) { target.discard(); diff --git a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java index f54aebaa..2a4568e9 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java +++ b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java @@ -136,7 +136,7 @@ public class EffectSync implements SpellContainer, NbtSerialisable { @SuppressWarnings("unchecked") private Stream read(@Nullable SpellPredicate type, boolean synchronize, boolean sendUpdate) { if (synchronize && spells.fromNbt(owner.asEntity().getDataTracker().get(param)) && sendUpdate) { - owner.asEntity().getDataTracker().set(param, spells.toNbt()); + write(); } if (type == null) { From 81070be4b3ea012adae135ac523929d63ef4fed2 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 16:45:33 +0000 Subject: [PATCH 049/104] Fixed spells not affecting experience orbs --- src/main/java/com/minelittlepony/unicopia/EquinePredicates.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/EquinePredicates.java b/src/main/java/com/minelittlepony/unicopia/EquinePredicates.java index be559b38..9f055212 100644 --- a/src/main/java/com/minelittlepony/unicopia/EquinePredicates.java +++ b/src/main/java/com/minelittlepony/unicopia/EquinePredicates.java @@ -33,7 +33,7 @@ public interface EquinePredicates { Predicate IS_CASTER = e -> !e.isRemoved() && (e instanceof Caster || IS_PLAYER.test(e)); Predicate IS_PLACED_SPELL = e -> e instanceof Caster && !e.isRemoved(); - Predicate IS_MAGIC_IMMUNE = e -> (e instanceof MagicImmune || !(e instanceof LivingEntity)) && !(e instanceof ItemEntity); + Predicate IS_MAGIC_IMMUNE = e -> (e instanceof MagicImmune || !(e instanceof LivingEntity)) && !(e instanceof ItemEntity) && !(e instanceof ExperienceOrbEntity); Predicate EXCEPT_MAGIC_IMMUNE = IS_MAGIC_IMMUNE.negate(); Predicate VALID_LIVING_AND_NOT_MAGIC_IMMUNE = EntityPredicates.VALID_LIVING_ENTITY.and(EXCEPT_MAGIC_IMMUNE); From b3a7d338d236059c60790074491c600aca79f3c3 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 19:48:43 +0000 Subject: [PATCH 050/104] Reimplement placed spell rendering to no longer require a particle --- .../ability/magic/spell/PlaceableSpell.java | 47 ++++------ .../magic/spell/RainboomAbilitySpell.java | 2 +- .../magic/spell/effect/DisplacementSpell.java | 17 +--- .../magic/spell/effect/PortalSpell.java | 9 -- .../particle/OrientedBillboardParticle.java | 1 - .../client/particle/RunesParticle.java | 1 + .../unicopia/client/render/RenderUtil.java | 24 +++-- .../entity/CastSpellEntityRenderer.java | 4 +- .../render/spell/PlacedSpellRenderer.java | 88 +++++++++++++++++++ .../spell/SpellEffectsRenderDispatcher.java | 6 ++ .../unicopia/particle/ParticleHandle.java | 1 + .../unicopia/particle/UParticles.java | 1 + 12 files changed, 125 insertions(+), 76 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java index 082460cf..98095393 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java @@ -13,10 +13,6 @@ import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.network.Channel; import com.minelittlepony.unicopia.network.MsgCasterLookRequest; -import com.minelittlepony.unicopia.particle.OrientedBillboardParticleEffect; -import com.minelittlepony.unicopia.particle.ParticleHandle; -import com.minelittlepony.unicopia.particle.UParticles; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.server.world.Ether; import com.minelittlepony.unicopia.util.NbtSerialisable; @@ -24,6 +20,7 @@ import net.minecraft.nbt.*; import net.minecraft.registry.*; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Identifier; +import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; import net.minecraft.world.World; @@ -40,11 +37,6 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Nullable private RegistryKey dimension; - /** - * The visual effect - */ - private final ParticleHandle particlEffect = new ParticleHandle(); - /** * ID of the placed counterpart of this spell. */ @@ -64,6 +56,9 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS public float pitch; public float yaw; + private int prevAge; + private int age; + private Optional position = Optional.empty(); public PlaceableSpell(CustomisedSpellType type) { @@ -75,15 +70,13 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS return this; } - @Override - public Collection getDelegates() { - return List.of(spell); + public float getAge(float tickDelta) { + return MathHelper.lerp(tickDelta, prevAge, age); } @Override - public void setDead() { - super.setDead(); - particlEffect.destroy(); + public Collection getDelegates() { + return List.of(spell); } @Override @@ -113,16 +106,13 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS setDead(); return false; } + } else { + prevAge = age; + if (age < 25) { + age++; + } } - if (spell instanceof PlacementDelegate delegate) { - delegate.updatePlacement(source, this); - } - - getParticleEffectAttachment(source).ifPresent(p -> { - p.setAttribute(Attachment.ATTR_COLOR, spell.getType().getColor()); - }); - return super.tick(source, Situation.GROUND); } @@ -200,12 +190,6 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS return castEntity.getTarget().map(EntityValues::pos); } - public Optional getParticleEffectAttachment(Caster source) { - return particlEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new OrientedBillboardParticleEffect(UParticles.MAGIC_RUNES, pitch + 90, yaw), Vec3d.ZERO, Vec3d.ZERO); - }); - } - protected Optional getWorld(Caster source) { return Optional.ofNullable(dimension) .map(dim -> source.asWorld().getServer().getWorld(dim)); @@ -214,6 +198,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Override public void toNBT(NbtCompound compound) { super.toNBT(compound); + compound.putInt("age", age); compound.putFloat("pitch", pitch); compound.putFloat("yaw", yaw); position.ifPresent(pos -> { @@ -232,6 +217,7 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Override public void fromNBT(NbtCompound compound) { super.fromNBT(compound); + age = compound.getInt("age"); pitch = compound.getFloat("pitch"); yaw = compound.getFloat("yaw"); position = compound.contains("position") ? Optional.of(NbtSerialisable.readVector(compound.getList("position", NbtElement.FLOAT_TYPE))) : Optional.empty(); @@ -264,9 +250,6 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS } public interface PlacementDelegate { - void onPlaced(Caster source, PlaceableSpell parent, CastSpellEntity entity); - - void updatePlacement(Caster source, PlaceableSpell parent); } } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java index 4bf0d726..d7b7b562 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java @@ -54,7 +54,7 @@ public class RainboomAbilitySpell extends AbstractSpell { }); if (source.isClient()) { - // source.addParticle(new OrientedBillboardParticleEffect(UParticles.RAINBOOM_RING, source.getPhysics().getMotionAngle()), source.getOriginVector(), Vec3d.ZERO); + //source.addParticle(new OrientedBillboardParticleEffect(UParticles.RAINBOOM_RING, source.getPhysics().getMotionAngle()), source.getOriginVector(), Vec3d.ZERO); } source.findAllEntitiesInRange(RADIUS).forEach(e -> { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java index 14d3abf8..a58b77de 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java @@ -6,8 +6,6 @@ import com.minelittlepony.unicopia.ability.magic.spell.*; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; -import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; import com.minelittlepony.unicopia.projectile.ProjectileDelegate; @@ -16,7 +14,7 @@ import net.minecraft.nbt.NbtCompound; import net.minecraft.util.hit.EntityHitResult; import net.minecraft.util.math.Vec3d; -public class DisplacementSpell extends AbstractSpell implements HomingSpell, PlaceableSpell.PlacementDelegate, ProjectileDelegate.EntityHitListener { +public class DisplacementSpell extends AbstractSpell implements HomingSpell, ProjectileDelegate.EntityHitListener { private final EntityReference target = new EntityReference<>(); @@ -67,19 +65,6 @@ public class DisplacementSpell extends AbstractSpell implements HomingSpell, Pla originator.subtractEnergyCost(destinationPos.distanceTo(sourcePos) / 20F); } - @Override - public void onPlaced(Caster source, PlaceableSpell parent, CastSpellEntity entity) { - - } - - @Override - public void updatePlacement(Caster caster, PlaceableSpell parent) { - parent.getParticleEffectAttachment(caster).ifPresent(attachment -> { - float r = 3 - (1 - ((ticks + 10) / 20F)) * 3; - attachment.setAttribute(Attachment.ATTR_RADIUS, r); - }); - } - private void teleport(Caster source, Entity entity, Vec3d pos, Vec3d vel) { entity.teleport(pos.x, pos.y, pos.z); entity.setVelocity(vel); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index 8b25fbe9..e55f388c 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -14,7 +14,6 @@ import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; import com.minelittlepony.unicopia.particle.*; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.server.world.Ether; import com.minelittlepony.unicopia.util.shape.*; @@ -177,14 +176,6 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme entity.setPos(targetPos.x, caster.getY() + 1.5, targetPos.z); } - @Override - public void updatePlacement(Caster source, PlaceableSpell parent) { - parent.getParticleEffectAttachment(source).ifPresent(attachment -> { - attachment.setAttribute(Attachment.ATTR_RADIUS, 2); - attachment.setAttribute(Attachment.ATTR_OPACITY, 0.92F); - }); - } - @Override protected void onDestroyed(Caster caster) { particleEffect.destroy(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/OrientedBillboardParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/OrientedBillboardParticle.java index f3f04b23..4c25b465 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/OrientedBillboardParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/OrientedBillboardParticle.java @@ -22,7 +22,6 @@ public abstract class OrientedBillboardParticle extends AbstractBillboardParticl fixed = effect.fixed(); if (fixed) { - // Was hamiltonianProduct (CHECK THIS!!) rotation.mul(RotationAxis.POSITIVE_Y.rotationDegrees(effect.pitch())); rotation.mul(RotationAxis.POSITIVE_X.rotationDegrees(180 - effect.yaw())); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java index 58a8d453..87ee30c2 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java @@ -20,6 +20,7 @@ import net.minecraft.entity.Entity; import net.minecraft.util.Identifier; import net.minecraft.util.math.*; +@Deprecated public class RunesParticle extends OrientedBillboardParticle implements Attachment { private static final Identifier[] TEXTURES = new Identifier[] { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java index a126ee28..fc981555 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java @@ -1,6 +1,5 @@ package com.minelittlepony.unicopia.client.render; -import org.joml.Matrix4f; import org.joml.Vector3f; import org.joml.Vector4f; @@ -11,7 +10,7 @@ import net.minecraft.client.render.VertexFormats; import net.minecraft.client.util.math.MatrixStack; public class RenderUtil { - private static final Vector4f TEMP_VECTOR = new Vector4f(); + public static final Vector4f TEMP_VECTOR = new Vector4f(); public static final Vertex[] UNIT_FACE = new Vertex[] { new Vertex(new Vector3f(0, 0, 0), 1, 1), new Vertex(new Vector3f(0, 1, 0), 1, 0), @@ -21,21 +20,18 @@ public class RenderUtil { public static void renderFace(MatrixStack matrices, Tessellator te, BufferBuilder buffer, float r, float g, float b, float a, int light) { buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); - - Vertex[] UNIT_FACE = new Vertex[] { - new Vertex(new Vector3f(0, 0, 0), 1, 1), - new Vertex(new Vector3f(0, 1, 0), 1, 0), - new Vertex(new Vector3f(1, 1, 0), 0, 0), - new Vertex(new Vector3f(1, 0, 0), 0, 1) - }; - - Matrix4f transformation = matrices.peek().getPositionMatrix(); for (Vertex vertex : UNIT_FACE) { - transformation.transform(TEMP_VECTOR.set(vertex.position(), 1)); - buffer.vertex(TEMP_VECTOR.x, TEMP_VECTOR.y, TEMP_VECTOR.z).texture(vertex.u(), vertex.v()).color(r, g, b, a).light(light).next(); + Vector4f position = vertex.position(matrices); + buffer.vertex(position.x, position.y, position.z).texture(vertex.u(), vertex.v()).color(r, g, b, a).light(light).next(); } te.draw(); } - record Vertex(Vector3f position, float u, float v) {} + public record Vertex(Vector3f position, float u, float v) { + + public Vector4f position(MatrixStack matrices) { + matrices.peek().getPositionMatrix().transform(TEMP_VECTOR.set(position, 1)); + return TEMP_VECTOR; + } + } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/CastSpellEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/CastSpellEntityRenderer.java index 7b4fae4e..ece6638b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/CastSpellEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/CastSpellEntityRenderer.java @@ -11,8 +11,6 @@ import net.minecraft.screen.PlayerScreenHandler; import net.minecraft.util.Identifier; public class CastSpellEntityRenderer extends EntityRenderer { - private final SpellEffectsRenderDispatcher spellRenderDispatcher = new SpellEffectsRenderDispatcher(); - public CastSpellEntityRenderer(EntityRendererFactory.Context ctx) { super(ctx); } @@ -24,7 +22,7 @@ public class CastSpellEntityRenderer extends EntityRenderer { @Override public void render(CastSpellEntity entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) { - spellRenderDispatcher.render(matrices, vertexConsumers, light, entity, 0, 0, tickDelta, getAnimationProgress(entity, tickDelta), yaw, 0); + SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertexConsumers, light, entity, 0, 0, tickDelta, getAnimationProgress(entity, tickDelta), yaw, 0); } protected float getAnimationProgress(CastSpellEntity entity, float tickDelta) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java new file mode 100644 index 00000000..4e293248 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -0,0 +1,88 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import org.joml.Vector3f; +import org.joml.Vector4f; + +import com.minelittlepony.common.util.Color; +import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.PlaceableSpell; +import com.minelittlepony.unicopia.ability.magic.spell.Spell; +import com.minelittlepony.unicopia.client.render.RenderUtil; + +import net.minecraft.client.render.RenderLayer; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.Identifier; +import net.minecraft.util.math.RotationAxis; + +public class PlacedSpellRenderer implements SpellRenderer { + private static final Identifier[] TEXTURES = new Identifier[] { + Unicopia.id("textures/particles/runes_0.png"), + Unicopia.id("textures/particles/runes_1.png"), + Unicopia.id("textures/particles/runes_2.png"), + Unicopia.id("textures/particles/runes_3.png"), + Unicopia.id("textures/particles/runes_4.png"), + Unicopia.id("textures/particles/runes_5.png") + }; + private static final RenderUtil.Vertex[] CORNERS = new RenderUtil.Vertex[]{ + new RenderUtil.Vertex(new Vector3f(-1, -1, 0), 0, 0), + new RenderUtil.Vertex(new Vector3f(-1, 1, 0), 1, 0), + new RenderUtil.Vertex(new Vector3f( 1, 1, 0), 1, 1), + new RenderUtil.Vertex(new Vector3f( 1, -1, 0), 0, 1) + }; + + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + + for (Spell delegate : spell.getDelegates()) { + + matrices.push(); + matrices.translate(0, 0.001, 0); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(spell.pitch)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90 - spell.yaw)); + float scale = (spell.getAge(tickDelta) / 25F) * 3; + matrices.scale(scale, scale, scale); + + float alpha = scale; + + float angle = (animationProgress / 9F) % 360; + + int color = delegate.getType().getColor(); + + float red = Color.r(color); + float green = Color.g(color); + float blue = Color.b(color); + + for (int i = 0; i < TEXTURES.length; i++) { + VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(TEXTURES[i])); + + for (int dim = 0; dim < 3; dim++) { + float ringSpeed = (i % 2 == 0 ? i : -1) * i; + + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(angle * ringSpeed)); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(angle * ringSpeed * dim)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(angle * ringSpeed * dim)); + renderQuad(buffer, matrices, red, green, blue, alpha / ((float)(dim * 3) + 1), light); + matrices.pop(); + } + } + + matrices.pop(); + + var renderer = SpellEffectsRenderDispatcher.INSTANCE.getRenderer(delegate); + if (renderer != null) { + renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + } + } + } + + protected final void renderQuad(VertexConsumer buffer, MatrixStack matrices, float red, float green, float blue, float alpha, int light) { + for (var corner : CORNERS) { + Vector4f pos = corner.position(matrices); + buffer.vertex(pos.x, pos.y, pos.z, red, green, blue, alpha, corner.u(), corner.v(), 0, light, 1, 1, 1); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index 7f5d26a8..f44aad5f 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -43,10 +43,16 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader REGISTRY.put(type, rendererFactory); } + static { + register(SpellType.PLACED_SPELL, PlacedSpellRenderer::new); + } + @Nullable private Map, SpellRenderer> renderers = Map.of(); private final MinecraftClient client = MinecraftClient.getInstance(); + private SpellEffectsRenderDispatcher() {} + @Override public Identifier getFabricId() { return ID; diff --git a/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java b/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java index 1fc12c06..b099f347 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java @@ -20,6 +20,7 @@ import net.minecraft.world.World; /** * A connection class for updating and persisting an attached particle effect. */ +@Deprecated public class ParticleHandle { private final Map loadedEffects = new WeakHashMap<>(); diff --git a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java index 8d5208f0..186be3e0 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java @@ -16,6 +16,7 @@ public interface UParticles { ParticleType RAINBOOM_RING = register("rainboom_ring", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); DefaultParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.simple()); + @Deprecated ParticleType MAGIC_RUNES = register("magic_runes", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); DefaultParticleType RAIN_DROPS = register("rain_drops", FabricParticleTypes.simple()); From 7fb9543dbe21fd3f57d1216916f5a50d6be0cf6b Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Jan 2024 22:31:32 +0000 Subject: [PATCH 051/104] Move shield effect over to a spell renderer --- .../magic/spell/effect/DarkVortexSpell.java | 9 ++++ .../magic/spell/effect/ShieldSpell.java | 53 +++++++++++-------- .../client/particle/MagicParticle.java | 6 +-- .../unicopia/client/render/RenderLayers.java | 10 +++- .../client/render/model/BakedModel.java | 25 +++++---- .../render/spell/ShieldSpellRenderer.java | 41 ++++++++++++++ .../spell/SpellEffectsRenderDispatcher.java | 1 + 7 files changed, 107 insertions(+), 38 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index 4e50d13e..740a2a21 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -13,6 +13,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; +import com.minelittlepony.unicopia.particle.ParticleHandle; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.particle.SphereParticleEffect; import com.minelittlepony.unicopia.particle.UParticles; @@ -51,6 +52,9 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega private int age = 0; private float accumulatedMass = 0; + @Deprecated + protected final ParticleHandle particlEffect = new ParticleHandle(); + protected DarkVortexSpell(CustomisedSpellType type) { super(type); } @@ -109,6 +113,11 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega return EntityPredicates.EXCEPT_CREATIVE_OR_SPECTATOR.test(entity) && getAttractiveForce(source, entity) > 0; } + @Override + protected void onDestroyed(Caster caster) { + particlEffect.destroy(); + } + @Override public void generateParticles(Caster source) { super.generateParticles(source); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java index 71f5cede..023da1c7 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.ability.magic.spell.effect; +import java.util.Optional; + import com.minelittlepony.unicopia.Affinity; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.Unicopia; @@ -10,11 +12,9 @@ import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.player.Pony; +import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; import com.minelittlepony.unicopia.particle.MagicParticleEffect; -import com.minelittlepony.unicopia.particle.ParticleHandle; -import com.minelittlepony.unicopia.particle.SphereParticleEffect; -import com.minelittlepony.unicopia.particle.UParticles; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; +import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.projectile.ProjectileUtil; import com.minelittlepony.unicopia.util.shape.Sphere; @@ -30,6 +30,7 @@ import net.minecraft.entity.passive.PassiveEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.vehicle.AbstractMinecartEntity; import net.minecraft.entity.vehicle.BoatEntity; +import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; public class ShieldSpell extends AbstractSpell { @@ -40,10 +41,14 @@ public class ShieldSpell extends AbstractSpell { .with(Trait.AIR, 9) .build(); - protected final ParticleHandle particlEffect = new ParticleHandle(); - private final TargetSelecter targetSelecter = new TargetSelecter(this); + private float prevRadius; + private float radius; + + private float rangeMultiplier; + private float targetRangeMultiplier; + protected ShieldSpell(CustomisedSpellType type) { super(type); } @@ -53,33 +58,27 @@ public class ShieldSpell extends AbstractSpell { return method == CastingMethod.STAFF || getTraits().get(Trait.GENEROSITY) > 0 ? toPlaceable() : this; } - @Override - protected void onDestroyed(Caster caster) { - particlEffect.destroy(); - } - @Override public Affinity getAffinity() { return getTraits().get(Trait.DARKNESS) > 0 ? Affinity.BAD : Affinity.GOOD; } protected void generateParticles(Caster source) { - float radius = (float)getDrawDropOffRange(source); Vec3d origin = getOrigin(source); source.spawnParticles(origin, new Sphere(true, radius), (int)(radius * 6), pos -> { source.addParticle(new MagicParticleEffect(getType().getColor()), pos, Vec3d.ZERO); - }); - particlEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.SPHERE, getType().getColor(), 0.3F, radius), origin, Vec3d.ZERO); - }).ifPresent(p -> { - p.setAttribute(Attachment.ATTR_RADIUS, radius); + if (source.asWorld().random.nextInt(10) == 0 && source.asWorld().random.nextFloat() < source.getCorruption().getScaled(1)) { + ParticleUtils.spawnParticle(source.asWorld(), new LightningBoltParticleEffect(true, 3, 2, 0.1F, Optional.empty()), pos, Vec3d.ZERO); + } }); } @Override public boolean tick(Caster source, Situation situation) { + prevRadius = radius; + radius = (float)getDrawDropOffRange(source); if (source.isClient()) { generateParticles(source); @@ -108,20 +107,32 @@ public class ShieldSpell extends AbstractSpell { cost *= costMultiplier / ((1 + source.getLevel().get()) * 3F); cost /= knowledge; - cost += getDrawDropOffRange(source) / 10F; + cost += radius / 10F; if (!source.subtractEnergyCost(cost)) { setDead(); } } + public float getRadius(float tickDelta) { + return MathHelper.lerp(tickDelta, prevRadius, radius); + } + /** * Calculates the maximum radius of the shield. aka The area of effect. */ public double getDrawDropOffRange(Caster source) { - float multiplier = source instanceof Pony pony && pony.asEntity().isSneaking() ? 1 : 2; + targetRangeMultiplier = source instanceof Pony pony && pony.asEntity().isSneaking() ? 1 : 2; + if (rangeMultiplier < targetRangeMultiplier - 0.1F) { + rangeMultiplier += 0.1F; + } else if (rangeMultiplier > targetRangeMultiplier + 0.1) { + rangeMultiplier -= 0.1F; + } else { + rangeMultiplier = targetRangeMultiplier; + } + float min = (source instanceof Pony ? 4 : 6) + getTraits().get(Trait.POWER); - double range = (min + (source.getLevel().getScaled(source instanceof Pony ? 4 : 40) * (source instanceof Pony ? 2 : 10))) / multiplier; + double range = (min + (source.getLevel().getScaled(source instanceof Pony ? 4 : 40) * (source instanceof Pony ? 2 : 10))) / rangeMultiplier; return range; } @@ -150,7 +161,7 @@ public class ShieldSpell extends AbstractSpell { } protected long applyEntities(Caster source) { - double radius = getDrawDropOffRange(source); + double radius = this.radius; Vec3d origin = getOrigin(source); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java index 700963a6..fd40922f 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java @@ -22,9 +22,9 @@ public class MagicParticle extends SpriteBillboardParticle { velocityX = vX; velocityY = vY; velocityZ = vZ; - startX = x + random.nextGaussian()/3; - startY = y + random.nextGaussian()/3; - startZ = z + random.nextGaussian()/3; + startX = x;// + random.nextGaussian()/3; + startY = y;// + random.nextGaussian()/3; + startZ = z;// + random.nextGaussian()/3; scale = random.nextFloat() * 0.12F; maxAge = (int)(Math.random() * 10) + 20; diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java b/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java index 80eeefd4..5f58b7b1 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java @@ -72,7 +72,15 @@ public final class RenderLayers extends RenderLayer { } public static RenderLayer getMagicNoColor() { - return MAGIC_NO_COLOR; + //return MAGIC_NO_COLOR; + return of("magic_no_color", VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, + VertexFormat.DrawMode.QUADS, 256, true, true, MultiPhaseParameters.builder() + .program(COLOR_PROGRAM) + .transparency(TRANSLUCENT_TRANSPARENCY) + .target(TRANSLUCENT_TARGET) + .cull(DISABLE_CULLING) + .writeMaskState(COLOR_MASK) + .build(false)); } public static RenderLayer getMagicColored() { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java index f868ff04..694571c3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java @@ -3,38 +3,37 @@ package com.minelittlepony.unicopia.client.render.model; import java.util.ArrayList; import java.util.List; -import org.joml.Matrix4f; +import org.joml.Vector3f; import org.joml.Vector4f; +import com.minelittlepony.unicopia.client.render.RenderUtil; + import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.util.math.MatrixStack; public class BakedModel { - private static final Vector4f drawVert = new Vector4f(); - - protected final List vertices = new ArrayList<>(); + protected final List vertices = new ArrayList<>(); protected void addVertex(Vector4f vertex) { addVertex(vertex.x, vertex.y, vertex.z, 0, 0); } protected void addVertex(float x, float y, float z, float u, float v) { - vertices.add(new Vertex(x, y, z, u, v)); + vertices.add(new RenderUtil.Vertex(new Vector3f(x, y, z), u, v)); } - public final void render(MatrixStack matrices, VertexConsumer vertexWriter, int light, int overlay, float scale, float r, float g, float b, float a) { + public final void render(MatrixStack matrices, VertexConsumer buffer, int light, int overlay, float scale, float r, float g, float b, float a) { scale = Math.abs(scale); if (scale < 0.001F) { return; } - Matrix4f model = matrices.peek().getPositionMatrix(); - for (Vertex vertex : vertices) { - drawVert.set(vertex.x() * scale, vertex.y() * scale, vertex.z() * scale, 1); - drawVert.mul(model); - vertexWriter.vertex(drawVert.x, drawVert.y, drawVert.z, r, g, b, a, vertex.u(), vertex.v(), overlay, light, 0, 0, 0); + matrices.push(); + matrices.scale(scale, scale, scale); + for (RenderUtil.Vertex vertex : vertices) { + Vector4f pos = vertex.position(matrices); + buffer.vertex(pos.x, pos.y, pos.z, r, g, b, a, vertex.u(), vertex.v(), overlay, light, 0, 0, 0); } + matrices.pop(); } - - record Vertex(float x, float y, float z, float u, float v) {} } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java new file mode 100644 index 00000000..45731fd0 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java @@ -0,0 +1,41 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import com.minelittlepony.common.util.Color; +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.ShieldSpell; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.model.SphereModel; +import com.minelittlepony.unicopia.util.ColorHelper; + +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.VertexConsumerProvider.Immediate; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.math.MathHelper; + +public class ShieldSpellRenderer implements SpellRenderer { + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, ShieldSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + matrices.push(); + double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; + matrices.translate(0, height, 0); + + Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers(); + immediate.draw(); + + int color = ColorHelper.lerp(caster.getCorruption().getScaled(1) * (tickDelta / (1 + caster.asWorld().random.nextFloat())), spell.getType().getColor(), 0xFF000); + float[] colors = ColorHelper.changeSaturation(Color.r(color), Color.g(color), Color.b(color), 4); + float radius = 0.35F + spell.getRadius(tickDelta) + MathHelper.sin(animationProgress / 30F) * 0.01F; + + VertexConsumer buffer = vertices.getBuffer(RenderLayers.getMagicNoColor()); + + float thickness = 0.02F * MathHelper.sin(animationProgress / 30F); + float alpha = 1 - Math.abs(MathHelper.sin(animationProgress / 20F)) * 0.2F; + SphereModel.SPHERE.render(matrices, buffer, light, 1, radius + thickness, colors[0], colors[1], colors[2], alpha * 0.08F); + SphereModel.SPHERE.render(matrices, buffer, light, 1, radius - thickness, colors[0], colors[1], colors[2], alpha * 0.05F); + SphereModel.SPHERE.render(matrices, buffer, light, 1, radius + thickness * 2, colors[0], colors[1], colors[2], alpha * 0.05F); + + matrices.pop(); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index f44aad5f..692a8e89 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -45,6 +45,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader static { register(SpellType.PLACED_SPELL, PlacedSpellRenderer::new); + register(SpellType.SHIELD, ShieldSpellRenderer::new); } @Nullable From 3827deb2350170ba49242f98e877202d133e296b Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 21 Jan 2024 15:17:21 +0000 Subject: [PATCH 052/104] Set up a proper render layer for shields --- .../magic/spell/effect/DarkVortexSpell.java | 14 +++-------- .../unicopia/client/render/RenderLayers.java | 23 +++++++++++-------- .../render/spell/ShieldSpellRenderer.java | 2 +- 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index 740a2a21..0cea87e2 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -11,12 +11,9 @@ import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; import com.minelittlepony.unicopia.particle.ParticleHandle; import com.minelittlepony.unicopia.particle.ParticleUtils; -import com.minelittlepony.unicopia.particle.SphereParticleEffect; -import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; import com.minelittlepony.unicopia.projectile.ProjectileDelegate; import com.minelittlepony.unicopia.util.shape.Sphere; @@ -113,16 +110,11 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega return EntityPredicates.EXCEPT_CREATIVE_OR_SPECTATOR.test(entity) && getAttractiveForce(source, entity) > 0; } - @Override - protected void onDestroyed(Caster caster) { - particlEffect.destroy(); - } - @Override public void generateParticles(Caster source) { super.generateParticles(source); - float radius = (float)getEventHorizonRadius(); + /*float radius = (float)getEventHorizonRadius(); particlEffect.update(getUuid(), source, spawner -> { spawner.addParticle(new SphereParticleEffect(UParticles.SPHERE, 0x000000, 0.99F, radius, SPHERE_OFFSET), source.getOriginVector(), Vec3d.ZERO); @@ -134,7 +126,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega spawner.addParticle(new SphereParticleEffect(UParticles.DISK, 0xAAAAAA, 0.4F, radius + 1, SPHERE_OFFSET), getOrigin(source), Vec3d.ZERO); }).ifPresent(p -> { p.setAttribute(Attachment.ATTR_RADIUS, radius * 0F); - }); + });*/ source.spawnParticles(ParticleTypes.SMOKE, 3); } @@ -185,7 +177,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega // 2. max force (at dist 0) is taken from accumulated mass // 3. force reaches 0 at distance of drawDropOffRange - private double getEventHorizonRadius() { + public double getEventHorizonRadius() { return Math.sqrt(Math.max(0.001, getMass() - 12)); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java b/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java index 5f58b7b1..45a3ae35 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/RenderLayers.java @@ -39,6 +39,15 @@ public final class RenderLayers extends RenderLayer { .target(TRANSLUCENT_TARGET) .build(false)); + private static final RenderLayer MAGIC_SHIELD = of("magic_shield", VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, + VertexFormat.DrawMode.QUADS, 256, true, true, MultiPhaseParameters.builder() + .program(COLOR_PROGRAM) + .transparency(TRANSLUCENT_TRANSPARENCY) + .target(TRANSLUCENT_TARGET) + .cull(DISABLE_CULLING) + .writeMaskState(COLOR_MASK) + .build(false)); + private static final Function MAGIC_COLORIN_FUNC = Util.memoize(color -> { return of("magic_colored_" + color, VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, @@ -72,15 +81,11 @@ public final class RenderLayers extends RenderLayer { } public static RenderLayer getMagicNoColor() { - //return MAGIC_NO_COLOR; - return of("magic_no_color", VertexFormats.POSITION_COLOR_TEXTURE_OVERLAY_LIGHT_NORMAL, - VertexFormat.DrawMode.QUADS, 256, true, true, MultiPhaseParameters.builder() - .program(COLOR_PROGRAM) - .transparency(TRANSLUCENT_TRANSPARENCY) - .target(TRANSLUCENT_TARGET) - .cull(DISABLE_CULLING) - .writeMaskState(COLOR_MASK) - .build(false)); + return MAGIC_NO_COLOR; + } + + public static RenderLayer getMagicShield() { + return MAGIC_SHIELD; } public static RenderLayer getMagicColored() { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java index 45731fd0..347a66ba 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java @@ -28,7 +28,7 @@ public class ShieldSpellRenderer implements SpellRenderer { float[] colors = ColorHelper.changeSaturation(Color.r(color), Color.g(color), Color.b(color), 4); float radius = 0.35F + spell.getRadius(tickDelta) + MathHelper.sin(animationProgress / 30F) * 0.01F; - VertexConsumer buffer = vertices.getBuffer(RenderLayers.getMagicNoColor()); + VertexConsumer buffer = vertices.getBuffer(RenderLayers.getMagicShield()); float thickness = 0.02F * MathHelper.sin(animationProgress / 30F); float alpha = 1 - Math.abs(MathHelper.sin(animationProgress / 20F)) * 0.2F; From e09ade57b15935a1ef9d838537e2e1c8cafac0b2 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 21 Jan 2024 15:19:49 +0000 Subject: [PATCH 053/104] Add a method to render a spell using the dispatcher --- .../client/render/spell/PlacedSpellRenderer.java | 5 +---- .../render/spell/SpellEffectsRenderDispatcher.java | 12 ++++++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 4e293248..78789761 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -72,10 +72,7 @@ public class PlacedSpellRenderer implements SpellRenderer { matrices.pop(); - var renderer = SpellEffectsRenderDispatcher.INSTANCE.getRenderer(delegate); - if (renderer != null) { - renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); - } + SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertices, delegate, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index 692a8e89..e911a81a 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -64,12 +64,16 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader return (SpellRenderer)renderers.get(spell.getType()); } + public void render(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + var renderer = getRenderer(spell); + if (renderer != null) { + renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + } + } + public void render(MatrixStack matrices, VertexConsumerProvider vertices, int light, Caster caster, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { caster.getSpellSlot().forEach(spell -> { - var renderer = getRenderer(spell); - if (renderer != null) { - renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); - } + render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); return Operation.SKIP; }, false); From 9510b83c72f7e2ff21ad025ad0547739f7d3f6af Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 21 Jan 2024 18:06:53 +0000 Subject: [PATCH 054/104] Implement a renderer for the back hole --- .../ability/magic/spell/PlaceableSpell.java | 10 +- .../magic/spell/effect/AttractiveSpell.java | 6 +- .../magic/spell/effect/DarkVortexSpell.java | 38 +++---- .../render/spell/DarkVortexSpellRenderer.java | 99 +++++++++++++++++++ .../render/spell/PlacedSpellRenderer.java | 5 + .../render/spell/ShieldSpellRenderer.java | 5 - .../spell/SpellEffectsRenderDispatcher.java | 2 + .../unicopia/entity/mob/CastSpellEntity.java | 1 + .../unicopia/entity/player/PlayerCamera.java | 2 + 9 files changed, 133 insertions(+), 35 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java index 98095393..bba345b4 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java @@ -106,11 +106,11 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS setDead(); return false; } - } else { - prevAge = age; - if (age < 25) { - age++; - } + } + + prevAge = age; + if (age < 25) { + age++; } return super.tick(source, Situation.GROUND); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java index d91970b2..a28dc8ee 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java @@ -7,7 +7,6 @@ import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.Living; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; import com.minelittlepony.unicopia.particle.FollowingParticleEffect; -import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; import com.minelittlepony.unicopia.projectile.ProjectileDelegate; @@ -16,6 +15,7 @@ import com.minelittlepony.unicopia.util.shape.Sphere; import net.minecraft.entity.Entity; import net.minecraft.entity.ItemEntity; import net.minecraft.nbt.NbtCompound; +import net.minecraft.particle.ParticleTypes; import net.minecraft.util.hit.EntityHitResult; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; @@ -60,12 +60,12 @@ public class AttractiveSpell extends ShieldSpell implements HomingSpell, TimedSp @Override public void generateParticles(Caster source) { - double range = getDrawDropOffRange(source) + 10; + double range = getDrawDropOffRange(source); source.spawnParticles(getOrigin(source), new Sphere(false, range), 7, p -> { source.addParticle( new FollowingParticleEffect(UParticles.HEALTH_DRAIN, source.asEntity(), 0.4F) - .withChild(new MagicParticleEffect(getType().getColor())), + .withChild(ParticleTypes.AMBIENT_ENTITY_EFFECT), p, Vec3d.ZERO ); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index 0cea87e2..edf3b732 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -11,9 +11,10 @@ import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; +import com.minelittlepony.unicopia.particle.FollowingParticleEffect; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; -import com.minelittlepony.unicopia.particle.ParticleHandle; import com.minelittlepony.unicopia.particle.ParticleUtils; +import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; import com.minelittlepony.unicopia.projectile.ProjectileDelegate; import com.minelittlepony.unicopia.util.shape.Sphere; @@ -49,9 +50,6 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega private int age = 0; private float accumulatedMass = 0; - @Deprecated - protected final ParticleHandle particlEffect = new ParticleHandle(); - protected DarkVortexSpell(CustomisedSpellType type) { super(type); } @@ -114,21 +112,17 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega public void generateParticles(Caster source) { super.generateParticles(source); - /*float radius = (float)getEventHorizonRadius(); - - particlEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.SPHERE, 0x000000, 0.99F, radius, SPHERE_OFFSET), source.getOriginVector(), Vec3d.ZERO); - }).ifPresent(p -> { - p.setAttribute(Attachment.ATTR_RADIUS, radius); - p.setAttribute(Attachment.ATTR_OPACITY, 2F); - }); - particlEffect.update(getUuid(), "_ring", source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.DISK, 0xAAAAAA, 0.4F, radius + 1, SPHERE_OFFSET), getOrigin(source), Vec3d.ZERO); - }).ifPresent(p -> { - p.setAttribute(Attachment.ATTR_RADIUS, radius * 0F); - });*/ - - source.spawnParticles(ParticleTypes.SMOKE, 3); + if (getEventHorizonRadius() > 3) { + double range = getDrawDropOffRange(source); + source.spawnParticles(getOrigin(source), new Sphere(false, range), 17, p -> { + source.addParticle( + new FollowingParticleEffect(UParticles.HEALTH_DRAIN, source.asEntity(), 0.4F) + .withChild(ParticleTypes.CAMPFIRE_SIGNAL_SMOKE), + p, + Vec3d.ZERO + ); + }); + } } @Override @@ -178,7 +172,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega // 3. force reaches 0 at distance of drawDropOffRange public double getEventHorizonRadius() { - return Math.sqrt(Math.max(0.001, getMass() - 12)); + return Math.sqrt(Math.max(0.001, getMass() / 3F)); } private double getAttractiveForce(Caster source, Entity target) { @@ -186,8 +180,8 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega } private double getMass() { - float pulse = (float)Math.sin(age * 8) / 1F; - return 10 + Math.min(15, Math.min(0.5F + pulse, (float)Math.exp(age) / 8F - 90) + accumulatedMass / 10F) + pulse; + float pulse = (float)Math.sin(age * 8) / 160F; + return Math.min(15, Math.min(0.5F, (float)Math.exp(age) / 8F - 90) + accumulatedMass / 10F) + pulse; } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java new file mode 100644 index 00000000..98b32575 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java @@ -0,0 +1,99 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import org.joml.Vector3f; +import org.joml.Vector4f; + +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.DarkVortexSpell; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.RenderUtil; +import com.minelittlepony.unicopia.client.render.model.SphereModel; +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.RenderLayer; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.entity.Entity; +import net.minecraft.util.Identifier; +import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.RotationAxis; + +public class DarkVortexSpellRenderer implements SpellRenderer { + + private static float cameraDistortion; + + public static float getCameraDistortion() { + cameraDistortion *= 0.9F; + cameraDistortion = MathHelper.clamp(cameraDistortion, 0, 80); + System.out.println(cameraDistortion); + return cameraDistortion; + } + + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, DarkVortexSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + matrices.push(); + double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; + matrices.translate(0, height + 2, 0); + + Entity cameraEntity = MinecraftClient.getInstance().getCameraEntity(); + + float radius = (float)spell.getEventHorizonRadius(); + float absDistance = (float)cameraEntity.getEyePos().distanceTo(caster.getOriginVector().add(0, 2, 0)); + + SphereModel.SPHERE.render(matrices, vertices.getBuffer(RenderLayers.getSolid()), light, 1, Math.min(radius, absDistance / 2F), 0, 0, 0, 1); + + matrices.push(); + + + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(90)); + matrices.multiply(RotationAxis.NEGATIVE_X.rotationDegrees(90 + cameraEntity.getYaw(tickDelta))); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(-cameraEntity.getPitch(tickDelta))); + matrices.scale(0.7F, 1, 1); + + + float distance = 1F / MathHelper.clamp((absDistance / (radius * 4)), 0.0000001F, 1); + distance *= distance; + if (absDistance < radius * 4) { + cameraDistortion += distance; + } + + matrices.scale(distance, distance, distance); + + matrices.push(); + for (int i = 0; i < 10; i++) { + matrices.scale(0.96F, 1, 1); + float brightness = i / 10F; + SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicNoColor()), light, 1, radius * (1 + (0.25F * i)), brightness, brightness, brightness, 0.2F); + } + matrices.pop(); + + SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getEndPortal()), light, 1, radius * 0.5F, 1, 0.5F, 0, 1); + + matrices.pop(); + + if (radius > 1 && absDistance > radius) { + radius *= 1.1F; + + matrices.scale(radius, radius, radius); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(animationProgress)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(45)); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(animationProgress * 168)); + + + RenderUtil.Vertex[] CORNERS = new RenderUtil.Vertex[]{ + new RenderUtil.Vertex(new Vector3f(-1, -1, 0), 0, 0), + new RenderUtil.Vertex(new Vector3f(-1, 1, 0), 1, 0), + new RenderUtil.Vertex(new Vector3f( 1, 1, 0), 1, 1), + new RenderUtil.Vertex(new Vector3f( 1, -1, 0), 0, 1) + }; + + VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(new Identifier("textures/misc/forcefield.png"))); + + for (var corner : CORNERS) { + Vector4f pos = corner.position(matrices); + buffer.vertex(pos.x, pos.y, pos.z, 1, 1, 1, 1, corner.u(), corner.v(), 0, light, 1, 1, 1); + } + } + matrices.pop(); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 78789761..142b11ac 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -9,6 +9,7 @@ import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.PlaceableSpell; import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.client.render.RenderUtil; +import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.VertexConsumer; @@ -36,6 +37,10 @@ public class PlacedSpellRenderer implements SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + if (!(caster.asEntity() instanceof CastSpellEntity)) { + return; + } + for (Spell delegate : spell.getDelegates()) { matrices.push(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java index 347a66ba..55844dd9 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java @@ -7,10 +7,8 @@ import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.util.ColorHelper; -import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; -import net.minecraft.client.render.VertexConsumerProvider.Immediate; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.MathHelper; @@ -21,9 +19,6 @@ public class ShieldSpellRenderer implements SpellRenderer { double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; matrices.translate(0, height, 0); - Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers(); - immediate.draw(); - int color = ColorHelper.lerp(caster.getCorruption().getScaled(1) * (tickDelta / (1 + caster.asWorld().random.nextFloat())), spell.getType().getColor(), 0xFF000); float[] colors = ColorHelper.changeSaturation(Color.r(color), Color.g(color), Color.b(color), 4); float radius = 0.35F + spell.getRadius(tickDelta) + MathHelper.sin(animationProgress / 30F) * 0.01F; diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index e911a81a..9de95849 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -46,6 +46,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader static { register(SpellType.PLACED_SPELL, PlacedSpellRenderer::new); register(SpellType.SHIELD, ShieldSpellRenderer::new); + register(SpellType.DARK_VORTEX, DarkVortexSpellRenderer::new); } @Nullable @@ -67,6 +68,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader public void render(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { var renderer = getRenderer(spell); if (renderer != null) { + MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers().draw(); renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java index df9c7e37..16a4100b 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java @@ -37,6 +37,7 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster type, World world) { super(type, world); + ignoreCameraFrustum = true; } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java index 11b71c2e..2a2a8449 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java @@ -5,6 +5,7 @@ import java.util.Optional; import com.minelittlepony.common.util.animation.MotionCompositor; import com.minelittlepony.unicopia.ability.magic.SpellPredicate; import com.minelittlepony.unicopia.ability.magic.spell.AbstractDisguiseSpell; +import com.minelittlepony.unicopia.client.render.spell.DarkVortexSpellRenderer; import net.minecraft.util.math.Vec3d; @@ -62,6 +63,7 @@ public class PlayerCamera extends MotionCompositor { public double calculateFieldOfView(double fov) { fov += player.getMagicalReserves().getExertion().get() / 5F; fov += getEnergyAddition(); + fov += DarkVortexSpellRenderer.getCameraDistortion(); return fov; } From 134db120cdc584cbc0640f9e1cdb433ee1552312 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:17:45 +0000 Subject: [PATCH 055/104] Fix timed spells' timers not displaying correctly --- .../minelittlepony/unicopia/ability/magic/spell/TimedSpell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/TimedSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/TimedSpell.java index 9e19b8ae..d81e4f39 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/TimedSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/TimedSpell.java @@ -29,7 +29,7 @@ public interface TimedSpell extends Spell { } public float getPercentTimeRemaining(float tickDelta) { - return MathHelper.lerp(tickDelta, prevDuration, duration) / maxDuration; + return MathHelper.lerp(tickDelta, prevDuration, duration) / (float)maxDuration; } public int getTicksRemaining() { From 8cb3ba298d085c75120b9ef272ad1f2fbdb2232a Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:19:01 +0000 Subject: [PATCH 056/104] Fixed dark vortex particles not going to its actual center --- .../magic/spell/effect/AttractiveSpell.java | 5 ++-- .../magic/spell/effect/DarkVortexSpell.java | 5 ++-- .../particle/CloudsEscapingParticle.java | 2 +- .../client/particle/MagicParticle.java | 6 ++--- .../client/render/model/PlaneModel.java | 12 ++++++++++ .../render/spell/DarkVortexSpellRenderer.java | 23 ++++--------------- .../render/spell/PlacedSpellRenderer.java | 22 ++---------------- .../unicopia/util/shape/Sphere.java | 15 ++++++++++++ 8 files changed, 44 insertions(+), 46 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/model/PlaneModel.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java index a28dc8ee..9af5cddb 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AttractiveSpell.java @@ -61,10 +61,11 @@ public class AttractiveSpell extends ShieldSpell implements HomingSpell, TimedSp @Override public void generateParticles(Caster source) { double range = getDrawDropOffRange(source); + Vec3d origin = getOrigin(source); - source.spawnParticles(getOrigin(source), new Sphere(false, range), 7, p -> { + source.spawnParticles(origin, new Sphere(false, range), 7, p -> { source.addParticle( - new FollowingParticleEffect(UParticles.HEALTH_DRAIN, source.asEntity(), 0.4F) + new FollowingParticleEffect(UParticles.HEALTH_DRAIN, origin, 0.4F) .withChild(ParticleTypes.AMBIENT_ENTITY_EFFECT), p, Vec3d.ZERO diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index edf3b732..c8fb3a6d 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -114,9 +114,10 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega if (getEventHorizonRadius() > 3) { double range = getDrawDropOffRange(source); - source.spawnParticles(getOrigin(source), new Sphere(false, range), 17, p -> { + Vec3d origin = getOrigin(source); + source.spawnParticles(origin, new Sphere(false, range), 17, p -> { source.addParticle( - new FollowingParticleEffect(UParticles.HEALTH_DRAIN, source.asEntity(), 0.4F) + new FollowingParticleEffect(UParticles.HEALTH_DRAIN, origin, 0.4F) .withChild(ParticleTypes.CAMPFIRE_SIGNAL_SMOKE), p, Vec3d.ZERO diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/CloudsEscapingParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/CloudsEscapingParticle.java index 50792cfe..32ff15f7 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/CloudsEscapingParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/CloudsEscapingParticle.java @@ -30,7 +30,7 @@ public class CloudsEscapingParticle extends GroundPoundParticle { ); double columnHeight = 1 + age / 30; - new Sphere(true, columnHeight, 1, 1, 1) + new Sphere(true, columnHeight) .translate(center) .randomPoints(random) .forEach(point -> { diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java index fd40922f..700963a6 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/MagicParticle.java @@ -22,9 +22,9 @@ public class MagicParticle extends SpriteBillboardParticle { velocityX = vX; velocityY = vY; velocityZ = vZ; - startX = x;// + random.nextGaussian()/3; - startY = y;// + random.nextGaussian()/3; - startZ = z;// + random.nextGaussian()/3; + startX = x + random.nextGaussian()/3; + startY = y + random.nextGaussian()/3; + startZ = z + random.nextGaussian()/3; scale = random.nextFloat() * 0.12F; maxAge = (int)(Math.random() * 10) + 20; diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/PlaneModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/PlaneModel.java new file mode 100644 index 00000000..bfbcfc24 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/PlaneModel.java @@ -0,0 +1,12 @@ +package com.minelittlepony.unicopia.client.render.model; + +public class PlaneModel extends BakedModel { + public static final PlaneModel INSTANCE = new PlaneModel(); + + private PlaneModel() { + addVertex(-1, -1, 0, 0, 0); + addVertex(-1, 1, 0, 1, 0); + addVertex( 1, 1, 0, 1, 1); + addVertex( 1, -1, 0, 0, 1); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java index 98b32575..0389cfca 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java @@ -1,12 +1,9 @@ package com.minelittlepony.unicopia.client.render.spell; -import org.joml.Vector3f; -import org.joml.Vector4f; - import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.DarkVortexSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; -import com.minelittlepony.unicopia.client.render.RenderUtil; +import com.minelittlepony.unicopia.client.render.model.PlaneModel; import com.minelittlepony.unicopia.client.render.model.SphereModel; import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.RenderLayer; @@ -20,12 +17,13 @@ import net.minecraft.util.math.RotationAxis; public class DarkVortexSpellRenderer implements SpellRenderer { + private static final Identifier ECRETION_RING_TEXTURE = new Identifier("textures/misc/forcefield.png"); + private static float cameraDistortion; public static float getCameraDistortion() { cameraDistortion *= 0.9F; cameraDistortion = MathHelper.clamp(cameraDistortion, 0, 80); - System.out.println(cameraDistortion); return cameraDistortion; } @@ -79,20 +77,9 @@ public class DarkVortexSpellRenderer implements SpellRenderer { matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(45)); matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(animationProgress * 168)); + VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(ECRETION_RING_TEXTURE)); - RenderUtil.Vertex[] CORNERS = new RenderUtil.Vertex[]{ - new RenderUtil.Vertex(new Vector3f(-1, -1, 0), 0, 0), - new RenderUtil.Vertex(new Vector3f(-1, 1, 0), 1, 0), - new RenderUtil.Vertex(new Vector3f( 1, 1, 0), 1, 1), - new RenderUtil.Vertex(new Vector3f( 1, -1, 0), 0, 1) - }; - - VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(new Identifier("textures/misc/forcefield.png"))); - - for (var corner : CORNERS) { - Vector4f pos = corner.position(matrices); - buffer.vertex(pos.x, pos.y, pos.z, 1, 1, 1, 1, corner.u(), corner.v(), 0, light, 1, 1, 1); - } + PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, 1, 1, 1, 1); } matrices.pop(); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 142b11ac..4630912b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -1,14 +1,11 @@ package com.minelittlepony.unicopia.client.render.spell; -import org.joml.Vector3f; -import org.joml.Vector4f; - import com.minelittlepony.common.util.Color; import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.PlaceableSpell; import com.minelittlepony.unicopia.ability.magic.spell.Spell; -import com.minelittlepony.unicopia.client.render.RenderUtil; +import com.minelittlepony.unicopia.client.render.model.PlaneModel; import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; import net.minecraft.client.render.RenderLayer; @@ -27,12 +24,6 @@ public class PlacedSpellRenderer implements SpellRenderer { Unicopia.id("textures/particles/runes_4.png"), Unicopia.id("textures/particles/runes_5.png") }; - private static final RenderUtil.Vertex[] CORNERS = new RenderUtil.Vertex[]{ - new RenderUtil.Vertex(new Vector3f(-1, -1, 0), 0, 0), - new RenderUtil.Vertex(new Vector3f(-1, 1, 0), 1, 0), - new RenderUtil.Vertex(new Vector3f( 1, 1, 0), 1, 1), - new RenderUtil.Vertex(new Vector3f( 1, -1, 0), 0, 1) - }; @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { @@ -50,8 +41,6 @@ public class PlacedSpellRenderer implements SpellRenderer { float scale = (spell.getAge(tickDelta) / 25F) * 3; matrices.scale(scale, scale, scale); - float alpha = scale; - float angle = (animationProgress / 9F) % 360; int color = delegate.getType().getColor(); @@ -70,7 +59,7 @@ public class PlacedSpellRenderer implements SpellRenderer { matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(angle * ringSpeed)); matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(angle * ringSpeed * dim)); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(angle * ringSpeed * dim)); - renderQuad(buffer, matrices, red, green, blue, alpha / ((float)(dim * 3) + 1), light); + PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, red, green, blue, scale / ((float)(dim * 3) + 1)); matrices.pop(); } } @@ -80,11 +69,4 @@ public class PlacedSpellRenderer implements SpellRenderer { SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertices, delegate, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); } } - - protected final void renderQuad(VertexConsumer buffer, MatrixStack matrices, float red, float green, float blue, float alpha, int light) { - for (var corner : CORNERS) { - Vector4f pos = corner.position(matrices); - buffer.vertex(pos.x, pos.y, pos.z, red, green, blue, alpha, corner.u(), corner.v(), 0, light, 1, 1, 1); - } - } } diff --git a/src/main/java/com/minelittlepony/unicopia/util/shape/Sphere.java b/src/main/java/com/minelittlepony/unicopia/util/shape/Sphere.java index 7ebf61af..c151b47c 100644 --- a/src/main/java/com/minelittlepony/unicopia/util/shape/Sphere.java +++ b/src/main/java/com/minelittlepony/unicopia/util/shape/Sphere.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.util.shape; +import org.spongepowered.include.com.google.common.base.Objects; + import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; import net.minecraft.util.math.random.Random; @@ -102,6 +104,19 @@ public class Sphere implements Shape { return stretch.multiply(rad); } + @Override + public boolean equals(Object other) { + return other instanceof Sphere o + && Objects.equal(stretch, o.stretch) + && hollow == o.hollow + && Double.compare(rad, o.rad) == 0; + } + + @Override + public int hashCode() { + return Objects.hashCode(stretch, hollow, rad); + } + public static double computeEllipsoidArea(double rad, Vec3d stretch) { double p = 1.6075; double result = Math.pow(rad * stretch.x, p) * Math.pow(rad * stretch.y, p); From e1d9faa223dd86c1bec6829351ce119adc0f5091 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:19:29 +0000 Subject: [PATCH 057/104] Switch to using a spell renderer for bubble spells --- .../magic/spell/effect/BubbleSpell.java | 32 +++++++-------- .../unicopia/client/URenderers.java | 2 + .../particle/FloatingBubbleParticle.java | 31 ++++++++++++++ .../render/spell/BubbleSpellRenderer.java | 41 +++++++++++++++++++ .../unicopia/particle/UParticles.java | 1 + .../assets/unicopia/particles/bubble.json | 5 +++ 6 files changed, 96 insertions(+), 16 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/particle/FloatingBubbleParticle.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java create mode 100644 src/main/resources/assets/unicopia/particles/bubble.json diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java index 4a9dc915..db9f7d5e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/BubbleSpell.java @@ -11,12 +11,10 @@ import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.*; import com.minelittlepony.unicopia.entity.mob.UEntityAttributes; import com.minelittlepony.unicopia.entity.player.Pony; -import com.minelittlepony.unicopia.particle.ParticleHandle; -import com.minelittlepony.unicopia.particle.SphereParticleEffect; import com.minelittlepony.unicopia.particle.UParticles; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; import com.minelittlepony.unicopia.projectile.ProjectileDelegate; +import com.minelittlepony.unicopia.util.shape.Sphere; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; @@ -48,11 +46,11 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, .with(Trait.POWER, 1) .build(); - protected final ParticleHandle particlEffect = new ParticleHandle(); - private final Timer timer; private int struggles; + + private float prevRadius; private float radius; protected BubbleSpell(CustomisedSpellType type) { @@ -66,6 +64,10 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, return timer; } + public float getRadius(float tickDelta) { + return MathHelper.lerp(tickDelta, prevRadius, radius); + } + @Override public boolean apply(Caster source) { @@ -95,14 +97,19 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, public boolean tick(Caster source, Situation situation) { if (situation == Situation.PROJECTILE) { - - source.spawnParticles(ParticleTypes.BUBBLE, 2); + source.spawnParticles(UParticles.BUBBLE, 2); return true; } timer.tick(); - if (timer.getTicksRemaining() <= 0) { + boolean done = timer.getTicksRemaining() <= 0; + + source.spawnParticles(source.getOriginVector().add(0, 1, 0), new Sphere(true, radius * (done ? 0.25F : 0.5F)), done ? 13 : 1, pos -> { + source.addParticle(done ? ParticleTypes.BUBBLE_POP : UParticles.BUBBLE, pos, Vec3d.ZERO); + }); + + if (done) { return false; } @@ -116,7 +123,7 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, source.asEntity().fallDistance = 0; - Vec3d origin = source.getOriginVector(); + prevRadius = radius; if (source instanceof Pony pony && pony.sneakingChanged() && pony.asEntity().isSneaking()) { setDirty(); @@ -128,18 +135,11 @@ public class BubbleSpell extends AbstractSpell implements TimedSpell, } } - particlEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.SPHERE, 0xFFFFFF, 0.3F, 0, new Vec3d(0, radius / 2F, 0)), origin, Vec3d.ZERO); - }).ifPresent(p -> { - p.setAttribute(Attachment.ATTR_RADIUS, radius); - }); - return !isDead(); } @Override protected void onDestroyed(Caster source) { - particlEffect.destroy(); if (source.asEntity() instanceof LivingEntity l) { MODIFIERS.forEach((attribute, modifier) -> { if (l.getAttributes().hasAttribute(attribute)) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 98046073..1d91a1d5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -10,6 +10,7 @@ import com.minelittlepony.unicopia.block.cloud.CloudChestBlock; import com.minelittlepony.unicopia.client.particle.ChangelingMagicParticle; import com.minelittlepony.unicopia.client.particle.CloudsEscapingParticle; import com.minelittlepony.unicopia.client.particle.DiskParticle; +import com.minelittlepony.unicopia.client.particle.FloatingBubbleParticle; import com.minelittlepony.unicopia.client.particle.GroundPoundParticle; import com.minelittlepony.unicopia.client.particle.HealthDrainParticle; import com.minelittlepony.unicopia.client.particle.LightningBoltParticle; @@ -65,6 +66,7 @@ public interface URenderers { static void bootstrap() { ParticleFactoryRegistry.getInstance().register(UParticles.UNICORN_MAGIC, createFactory(MagicParticle::new)); ParticleFactoryRegistry.getInstance().register(UParticles.CHANGELING_MAGIC, createFactory(ChangelingMagicParticle::new)); + ParticleFactoryRegistry.getInstance().register(UParticles.BUBBLE, createFactory(FloatingBubbleParticle::new)); ParticleFactoryRegistry.getInstance().register(UParticles.RAIN_DROPS, createFactory(RaindropsParticle::new)); ParticleFactoryRegistry.getInstance().register(UParticles.HEALTH_DRAIN, createFactory(HealthDrainParticle::create)); ParticleFactoryRegistry.getInstance().register(UParticles.RAINBOOM_RING, RainboomParticle::new); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/FloatingBubbleParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/FloatingBubbleParticle.java new file mode 100644 index 00000000..68d51be7 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/FloatingBubbleParticle.java @@ -0,0 +1,31 @@ +package com.minelittlepony.unicopia.client.particle; + +import net.minecraft.client.particle.ParticleTextureSheet; +import net.minecraft.client.particle.SpriteBillboardParticle; +import net.minecraft.client.particle.SpriteProvider; +import net.minecraft.client.world.ClientWorld; +import net.minecraft.particle.ParticleEffect; +import net.minecraft.particle.ParticleTypes; + +public class FloatingBubbleParticle extends SpriteBillboardParticle { + public FloatingBubbleParticle(ParticleEffect effect, SpriteProvider provider, ClientWorld clientWorld, double x, double y, double z, double dX, double dY, double dZ) { + super(clientWorld, x, y, z, dX, dY, dZ); + setSprite(provider); + scale((float)clientWorld.random.nextTriangular(1F, 0.5F)); + this.velocityX *= -0.1F; + this.velocityY *= -0.1F; + this.velocityZ *= -0.1F; + this.maxAge *= 3; + } + + @Override + public ParticleTextureSheet getType() { + return ParticleTextureSheet.PARTICLE_SHEET_OPAQUE; + } + + @Override + public void markDead() { + super.markDead(); + world.addParticle(ParticleTypes.BUBBLE_POP, x, y, z, 0, 0, 0); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java new file mode 100644 index 00000000..d15863b7 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java @@ -0,0 +1,41 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.BubbleSpell; +import com.minelittlepony.unicopia.client.gui.DrawableUtil; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.model.SphereModel; + +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.entity.Entity; +import net.minecraft.util.math.RotationAxis; + +public class BubbleSpellRenderer implements SpellRenderer { + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, BubbleSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + matrices.push(); + double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; + matrices.translate(0, height * 0.5F, 0); + + float radius = spell.getRadius(tickDelta) * 0.7F; + + VertexConsumer buffer = vertices.getBuffer(RenderLayers.getMagicNoColor()); + + Entity cameraEntity = MinecraftClient.getInstance().getCameraEntity(); + + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(-45)); + matrices.multiply(RotationAxis.NEGATIVE_X.rotationDegrees(45 + cameraEntity.getYaw(tickDelta))); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(-cameraEntity.getPitch(tickDelta))); + + new SphereModel(40, 40, DrawableUtil.PI * 0.25F).render(matrices, buffer, light, 0, radius - 0.1F, 0.9F, 0.9F, 1, 0.3F); + matrices.pop(); + + SphereModel.SPHERE.render(matrices, buffer, light, 0, radius, 0.9F, 0.9F, 1, 0.25F); + + matrices.pop(); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java index 186be3e0..f1e88314 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java @@ -12,6 +12,7 @@ public interface UParticles { ParticleType UNICORN_MAGIC = register("unicorn_magic", FabricParticleTypes.complex(MagicParticleEffect.FACTORY)); DefaultParticleType CHANGELING_MAGIC = register("changeling_magic", FabricParticleTypes.simple()); + DefaultParticleType BUBBLE = register("bubble", FabricParticleTypes.simple()); ParticleType RAINBOOM_RING = register("rainboom_ring", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); DefaultParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.simple()); diff --git a/src/main/resources/assets/unicopia/particles/bubble.json b/src/main/resources/assets/unicopia/particles/bubble.json new file mode 100644 index 00000000..21bb4eeb --- /dev/null +++ b/src/main/resources/assets/unicopia/particles/bubble.json @@ -0,0 +1,5 @@ +{ + "textures": [ + "minecraft:bubble" + ] +} From dd9bec2a0ccde9a06b3f6092a2430e170d060dd5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:19:58 +0000 Subject: [PATCH 058/104] Added a visible icon for active spells in the world (shows timer countdown when applicable) --- .../spell/SpellEffectsRenderDispatcher.java | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index 9de95849..341abe8a 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -8,12 +8,18 @@ import java.util.stream.Stream; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.SpellContainer.Operation; import com.minelittlepony.unicopia.ability.magic.spell.Spell; +import com.minelittlepony.unicopia.ability.magic.spell.TimedSpell; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; +import com.minelittlepony.unicopia.client.gui.DrawableUtil; import com.minelittlepony.unicopia.entity.Living; +import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; +import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; +import com.minelittlepony.unicopia.util.ColorHelper; import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; import net.minecraft.client.MinecraftClient; @@ -22,6 +28,7 @@ import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.WorldRenderer; +import net.minecraft.client.render.model.json.ModelTransformationMode; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.registry.Registries; import net.minecraft.resource.ResourceManager; @@ -31,6 +38,7 @@ import net.minecraft.util.Colors; import net.minecraft.util.Formatting; import net.minecraft.util.Identifier; import net.minecraft.util.math.Box; +import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RotationAxis; import net.minecraft.util.math.Vec3d; @@ -47,6 +55,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader register(SpellType.PLACED_SPELL, PlacedSpellRenderer::new); register(SpellType.SHIELD, ShieldSpellRenderer::new); register(SpellType.DARK_VORTEX, DarkVortexSpellRenderer::new); + register(SpellType.BUBBLE, BubbleSpellRenderer::new); } @Nullable @@ -67,9 +76,15 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader public void render(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { var renderer = getRenderer(spell); + if (renderer != null) { - MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers().draw(); + client.getBufferBuilders().getEntityVertexConsumers().draw(); + renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + + if (EquinePredicates.IS_CASTER.test(client.player)) { + renderGemstone(matrices, vertices, spell, caster, light, tickDelta, animationProgress); + } } } @@ -90,6 +105,38 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader renderers = REGISTRY.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().create())); } + private void renderGemstone(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float tickDelta, float animationProgress) { + matrices.push(); + + if (!(caster.asEntity() instanceof MagicProjectileEntity)) { + + float y = -caster.asEntity().getHeight(); + if (caster.asEntity() instanceof CastSpellEntity) { + y = 1F; + } + + matrices.translate(0, y + MathHelper.sin(animationProgress / 3F) * 0.2F, 0); + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(animationProgress)); + + client.getItemRenderer().renderItem(spell.getType().withTraits(spell.getTraits()).getDefaultStack(), ModelTransformationMode.FIXED, light, 0, matrices, vertices, caster.asWorld(), 0); + matrices.pop(); + + if (spell instanceof TimedSpell timed && spell.getType() != SpellType.DARK_VORTEX) { + matrices.multiply(client.getEntityRenderDispatcher().getRotation().invert()); + float radius = 0.6F; + float timeRemaining = timed.getTimer().getPercentTimeRemaining(tickDelta); + + DrawableUtil.drawArc(matrices, radius, radius + 0.3F, 0, DrawableUtil.TAU * timeRemaining, + ColorHelper.lerp(MathHelper.clamp(timeRemaining * 4, 0, 1), 0xFF0000FF, 0xFFFFFFFF), + false + ); + } + } + + matrices.pop(); + } + private void renderSpellDebugInfo(MatrixStack matrices, VertexConsumerProvider vertices, Caster caster, int light) { matrices.push(); matrices.multiply(client.getEntityRenderDispatcher().getRotation()); From 39672e5028f2aa5ed3754f2d1e0190b7ca7c5b87 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:48:03 +0000 Subject: [PATCH 059/104] Fixed crash when equipping the bangle of comradery --- .../minelittlepony/unicopia/item/FriendshipBraceletItem.java | 2 +- .../java/com/minelittlepony/unicopia/item/WearableItem.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java b/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java index 326ddd43..da2018d0 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java @@ -78,7 +78,7 @@ public class FriendshipBraceletItem extends WearableItem implements DyeableItem, @Override public EquipmentSlot getSlotType(ItemStack stack) { - return isSigned(stack) ? EquipmentSlot.CHEST : super.getSlotType(); + return isSigned(stack) ? EquipmentSlot.CHEST : super.getSlotType(stack); } private boolean checkSignature(ItemStack stack, PlayerEntity player) { diff --git a/src/main/java/com/minelittlepony/unicopia/item/WearableItem.java b/src/main/java/com/minelittlepony/unicopia/item/WearableItem.java index b745b9bb..1b7067da 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/WearableItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/WearableItem.java @@ -49,6 +49,7 @@ public abstract class WearableItem extends Item implements Equipment { return ArmorMaterials.LEATHER.getEquipSound(); } + @Deprecated @Override public final EquipmentSlot getSlotType() { return getSlotType(getDefaultStack()); From 34aa3b8ced535885cfc245013aadf02d9eb852f8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 13:48:24 +0000 Subject: [PATCH 060/104] Fixed spells not rendering on non-pony entities --- .../render/AccessoryFeatureRenderer.java | 15 +++++--- .../client/MixinArmorFeatureRenderer.java | 18 +++------- .../client/MixinLivingEntityRenderer.java | 34 ++++++++++++++++++- .../client/MixinPlayerEntityRenderer.java | 23 ++----------- 4 files changed, 49 insertions(+), 41 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java index 5ef86cf0..857e4c96 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java @@ -6,6 +6,7 @@ import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.client.FirstPersonRendererOverrides.ArmRenderer; +import com.minelittlepony.unicopia.client.minelittlepony.MineLPDelegate; import com.minelittlepony.unicopia.client.render.spell.SpellEffectsRenderDispatcher; import net.minecraft.client.MinecraftClient; @@ -13,14 +14,14 @@ import net.minecraft.client.model.ModelPart; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.feature.FeatureRenderer; import net.minecraft.client.render.entity.feature.FeatureRendererContext; -import net.minecraft.client.render.entity.model.BipedEntityModel; +import net.minecraft.client.render.entity.model.EntityModel; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.entity.LivingEntity; import net.minecraft.util.Arm; public class AccessoryFeatureRenderer< T extends LivingEntity, - M extends BipedEntityModel> extends FeatureRenderer { + M extends EntityModel> extends FeatureRenderer { private static final List> REGISTRY = new ArrayList<>(); @@ -40,6 +41,10 @@ public class AccessoryFeatureRenderer< @Override public void render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, T entity, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + if (MineLPDelegate.getInstance().getRace(entity).isEquine()) { + return; + } + features.forEach(feature -> feature.render(matrices, vertexConsumers, light, entity, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch)); Caster.of(entity).ifPresent(caster -> { @@ -60,7 +65,7 @@ public class AccessoryFeatureRenderer< } public interface FeatureFactory { - Feature create(FeatureRendererContext> context); + Feature create(FeatureRendererContext> context); } public interface Feature { @@ -75,11 +80,11 @@ public class AccessoryFeatureRenderer< public interface FeatureRoot< T extends LivingEntity, - M extends BipedEntityModel> { + M extends EntityModel> { AccessoryFeatureRenderer getAccessories(); @SuppressWarnings("unchecked") @Nullable - static > FeatureRoot of(T entity) { + static > FeatureRoot of(T entity) { var renderer = MinecraftClient.getInstance().getEntityRenderDispatcher().getRenderer(entity); if (renderer instanceof FeatureRoot) { return (FeatureRoot)renderer; diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinArmorFeatureRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinArmorFeatureRenderer.java index be01f778..2e6cc68b 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinArmorFeatureRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinArmorFeatureRenderer.java @@ -1,19 +1,9 @@ package com.minelittlepony.unicopia.mixin.client; import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -import com.minelittlepony.unicopia.client.render.AccessoryFeatureRenderer; - -import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.feature.ArmorFeatureRenderer; import net.minecraft.client.render.entity.feature.FeatureRenderer; -import net.minecraft.client.render.entity.feature.FeatureRendererContext; import net.minecraft.client.render.entity.model.BipedEntityModel; -import net.minecraft.client.render.model.BakedModelManager; -import net.minecraft.client.util.math.MatrixStack; import net.minecraft.entity.LivingEntity; @Mixin(ArmorFeatureRenderer.class) @@ -21,13 +11,13 @@ abstract class MixinArmorFeatureRenderer< T extends LivingEntity, M extends BipedEntityModel, A extends BipedEntityModel> - extends FeatureRenderer implements AccessoryFeatureRenderer.FeatureRoot { + extends FeatureRenderer/* implements AccessoryFeatureRenderer.FeatureRoot*/ { - private AccessoryFeatureRenderer accessories; + //private AccessoryFeatureRenderer accessories; MixinArmorFeatureRenderer() { super(null); } - @Override + /*@Override public AccessoryFeatureRenderer getAccessories() { return accessories; } @@ -40,5 +30,5 @@ abstract class MixinArmorFeatureRenderer< @Inject(method = "render", at = @At("RETURN")) private void onRender(MatrixStack stack, VertexConsumerProvider renderContext, int lightUv, T entity, float limbDistance, float limbAngle, float tickDelta, float age, float headYaw, float headPitch, CallbackInfo info) { getAccessories().render(stack, renderContext, lightUv, entity, limbDistance, limbAngle, tickDelta, age, headYaw, headPitch); - } + }*/ } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinLivingEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinLivingEntityRenderer.java index 3e153574..6f915b70 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinLivingEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinLivingEntityRenderer.java @@ -1,17 +1,25 @@ package com.minelittlepony.unicopia.mixin.client; +import java.util.List; + +import org.jetbrains.annotations.Nullable; +import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At.Shift; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import com.minelittlepony.unicopia.client.render.AccessoryFeatureRenderer; import com.minelittlepony.unicopia.client.render.AnimalPoser; import com.minelittlepony.unicopia.client.render.PlayerPoser; +import com.minelittlepony.unicopia.client.render.AccessoryFeatureRenderer.FeatureRoot; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.EntityRenderer; import net.minecraft.client.render.entity.LivingEntityRenderer; +import net.minecraft.client.render.entity.feature.FeatureRenderer; import net.minecraft.client.render.entity.feature.FeatureRendererContext; import net.minecraft.client.render.entity.model.BipedEntityModel; import net.minecraft.client.render.entity.model.EntityModel; @@ -21,8 +29,31 @@ import net.minecraft.entity.mob.MobEntity; import net.minecraft.entity.player.PlayerEntity; @Mixin(LivingEntityRenderer.class) -abstract class MixinLivingEntityRenderer> extends EntityRenderer implements FeatureRendererContext { +abstract class MixinLivingEntityRenderer> extends EntityRenderer + implements FeatureRendererContext, FeatureRoot { + @Shadow + private @Final List> features; + MixinLivingEntityRenderer() { super(null); } + @Nullable + private AccessoryFeatureRenderer accessories; + + @Override + @SuppressWarnings("unchecked") + public AccessoryFeatureRenderer getAccessories() { + if (accessories == null) { + accessories = features.stream() + .filter(a -> a instanceof FeatureRoot) + .map(a -> ((FeatureRoot)a).getAccessories()) + .findFirst() + .orElseGet(() -> { + var feature = new AccessoryFeatureRenderer<>(this); + features.add(feature); + return feature; + }); + } + return accessories; + } @Inject(method = "render", at = @At( @@ -36,6 +67,7 @@ abstract class MixinLivingEntityRenderer)getModel(), PlayerPoser.Context.THIRD_PERSON); } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinPlayerEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinPlayerEntityRenderer.java index 35503ffd..cd1eac71 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinPlayerEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinPlayerEntityRenderer.java @@ -1,13 +1,11 @@ package com.minelittlepony.unicopia.mixin.client; -import org.jetbrains.annotations.Nullable; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.At.Shift; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import com.minelittlepony.unicopia.client.render.AccessoryFeatureRenderer; import com.minelittlepony.unicopia.client.render.PlayerPoser; import com.minelittlepony.unicopia.client.render.AccessoryFeatureRenderer.FeatureRoot; @@ -21,31 +19,14 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.Arm; @Mixin(PlayerEntityRenderer.class) -abstract class MixinPlayerEntityRenderer - extends LivingEntityRenderer> - implements FeatureRoot> { - @Nullable - private AccessoryFeatureRenderer> accessories; - +abstract class MixinPlayerEntityRenderer extends LivingEntityRenderer> { MixinPlayerEntityRenderer() { super(null, null, 0); } - @Override @SuppressWarnings("unchecked") - public AccessoryFeatureRenderer> getAccessories() { - if (accessories == null) { - accessories = features.stream() - .filter(a -> a instanceof FeatureRoot) - .map(a -> ((FeatureRoot>)a).getAccessories()) - .findFirst() - .orElseGet(() -> new AccessoryFeatureRenderer<>(this)); - } - return accessories; - } - @Inject(method = "renderArm", at = @At("RETURN")) private void onRenderArm(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, AbstractClientPlayerEntity player, ModelPart arm, ModelPart sleeve, CallbackInfo info) { Arm a = this.getModel().leftArm == arm ? Arm.LEFT : Arm.RIGHT; - getAccessories().renderArm(matrices, vertexConsumers, light, player, arm, a); + ((FeatureRoot>)this).getAccessories().renderArm(matrices, vertexConsumers, light, player, arm, a); } @Inject(method = "renderArm", From 225c67d5582d51c109f7cbfce63e036891ac6270 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 15:47:58 +0000 Subject: [PATCH 061/104] Tweak dark vortex rendering and fix its behaviour --- .../magic/spell/effect/DarkVortexSpell.java | 37 +++++++------ .../magic/spell/effect/TargetSelecter.java | 8 ++- .../unicopia/client/gui/UHud.java | 15 ++++++ .../render/spell/DarkVortexSpellRenderer.java | 50 +++++++++++------- .../unicopia/entity/player/PlayerCamera.java | 2 +- .../spells/dark_vortex/accretion_disk.png | Bin 0 -> 55384 bytes 6 files changed, 76 insertions(+), 36 deletions(-) create mode 100644 src/main/resources/assets/unicopia/textures/spells/dark_vortex/accretion_disk.png diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index c8fb3a6d..7c05d439 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -10,6 +10,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.Situation; import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; +import com.minelittlepony.unicopia.entity.Living; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; import com.minelittlepony.unicopia.particle.FollowingParticleEffect; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; @@ -47,7 +48,6 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega private static final Vec3d SPHERE_OFFSET = new Vec3d(0, 2, 0); - private int age = 0; private float accumulatedMass = 0; protected DarkVortexSpell(CustomisedSpellType type) { @@ -79,7 +79,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega return true; } - if (++age % 20 == 0) { + if (source.asEntity().age % 20 == 0) { source.asWorld().playSound(null, source.getOrigin(), USounds.AMBIENT_DARK_VORTEX_ADDITIONS, SoundCategory.AMBIENT, 1, 1); } @@ -112,16 +112,18 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega public void generateParticles(Caster source) { super.generateParticles(source); - if (getEventHorizonRadius() > 3) { + if (getEventHorizonRadius() > 0.3) { double range = getDrawDropOffRange(source); Vec3d origin = getOrigin(source); - source.spawnParticles(origin, new Sphere(false, range), 17, p -> { - source.addParticle( - new FollowingParticleEffect(UParticles.HEALTH_DRAIN, origin, 0.4F) - .withChild(ParticleTypes.CAMPFIRE_SIGNAL_SMOKE), - p, - Vec3d.ZERO - ); + source.spawnParticles(origin, new Sphere(false, range), 1, p -> { + if (!source.asWorld().isAir(BlockPos.ofFloored(p))) { + source.addParticle( + new FollowingParticleEffect(UParticles.HEALTH_DRAIN, origin, 0.4F) + .withChild(ParticleTypes.CAMPFIRE_SIGNAL_SMOKE), + p, + Vec3d.ZERO + ); + } }); } } @@ -181,8 +183,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega } private double getMass() { - float pulse = (float)Math.sin(age * 8) / 160F; - return Math.min(15, Math.min(0.5F, (float)Math.exp(age) / 8F - 90) + accumulatedMass / 10F) + pulse; + return Math.min(15, 0.1F + accumulatedMass / 10F); } @Override @@ -194,6 +195,11 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega if (distance <= getEventHorizonRadius() + 0.5) { target.setVelocity(target.getVelocity().multiply(distance / (2 * radius))); + if (distance < 1) { + target.setVelocity(target.getVelocity().multiply(distance)); + + } + Living.updateVelocity(target); @Nullable Entity master = source.getMaster(); @@ -213,7 +219,7 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega double massOfTarget = AttractionUtils.getMass(target); - if (massOfTarget != 0) { + if (!source.isClient() && massOfTarget != 0) { accumulatedMass += massOfTarget; setDirty(); } @@ -223,6 +229,9 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega target.discard(); source.asWorld().playSound(null, source.getOrigin(), USounds.ENCHANTMENT_CONSUMPTION_CONSUME, SoundCategory.AMBIENT, 2, 0.02F); } + if (target.isAlive()) { + target.damage(source.asEntity().getDamageSources().outOfWorld(), Integer.MAX_VALUE); + } source.subtractEnergyCost(-massOfTarget * 10); source.asWorld().playSound(null, source.getOrigin(), USounds.AMBIENT_DARK_VORTEX_MOOD, SoundCategory.AMBIENT, 2, 0.02F); @@ -238,14 +247,12 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega @Override public void toNBT(NbtCompound compound) { super.toNBT(compound); - compound.putInt("age", age); compound.putFloat("accumulatedMass", accumulatedMass); } @Override public void fromNBT(NbtCompound compound) { super.fromNBT(compound); - age = compound.getInt("age"); accumulatedMass = compound.getFloat("accumulatedMass"); } } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java index b2482157..d1730e78 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java @@ -10,7 +10,6 @@ import java.util.stream.Stream; import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.ability.magic.Affine; import com.minelittlepony.unicopia.ability.magic.Caster; -import com.minelittlepony.unicopia.ability.magic.SpellPredicate; import com.minelittlepony.unicopia.ability.magic.spell.Spell; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.item.FriendshipBraceletItem; @@ -29,7 +28,7 @@ public class TargetSelecter { public Stream getEntities(Caster source, double radius, BiPredicate, Entity> filter) { targets.values().removeIf(Target::tick); return source.findAllEntitiesInRange(radius) - .filter(entity -> entity.isAlive() && !entity.isRemoved() && notOwnerOrFriend(spell, source, entity) && !SpellPredicate.IS_SHIELD_LIKE.isOn(entity)) + .filter(entity -> entity.isAlive() && !entity.isRemoved() && notOwnerOrFriend(spell, source, entity)) .filter(EquinePredicates.EXCEPT_MAGIC_IMMUNE) .filter(e -> filter.test(source, e)) .map(i -> { @@ -57,6 +56,11 @@ public class TargetSelecter { public static boolean isOwnerOrFriend(Affine affine, Caster source, Entity target) { Entity owner = source.getMaster(); + var equine = Pony.of(target); + if (equine.isPresent() && !affine.isFriendlyTogether(equine.get())) { + return false; + } + if (affine.isEnemy(source)) { return FriendshipBraceletItem.isComrade(source, target); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java index 8cde15c2..c731c559 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java @@ -7,6 +7,8 @@ import com.minelittlepony.unicopia.*; import com.minelittlepony.unicopia.ability.*; import com.minelittlepony.unicopia.ability.magic.spell.effect.CustomisedSpellType; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.spell.DarkVortexSpellRenderer; import com.minelittlepony.unicopia.client.sound.*; import com.minelittlepony.unicopia.entity.ItemTracker; import com.minelittlepony.unicopia.entity.effect.EffectUtils; @@ -193,6 +195,19 @@ public class UHud { protected void renderViewEffects(Pony pony, DrawContext context, int scaledWidth, int scaledHeight, float tickDelta) { + float vortexDistortion = DarkVortexSpellRenderer.getCameraDistortion(); + + if (vortexDistortion > 20) { + context.fill(RenderLayers.getEndPortal(), 0, 0, scaledWidth, scaledHeight, 0); + context.getMatrices().push(); + context.getMatrices().translate(scaledWidth / 2, scaledHeight / 2, 0); + DrawableUtil.drawArc(context.getMatrices(), 0, 20, 0, MathHelper.TAU, 0x000000FF, false); + context.getMatrices().pop(); + return; + } else if (vortexDistortion > 0) { + context.fill(0, 0, scaledWidth, scaledHeight, (int)((vortexDistortion / 20F) * 255) << 24); + } + boolean hasEffect = client.player.hasStatusEffect(UEffects.SUN_BLINDNESS); ItemStack glasses = GlassesItem.getForEntity(client.player); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java index 0389cfca..548854ae 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java @@ -1,5 +1,6 @@ package com.minelittlepony.unicopia.client.render.spell; +import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.DarkVortexSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; @@ -17,7 +18,7 @@ import net.minecraft.util.math.RotationAxis; public class DarkVortexSpellRenderer implements SpellRenderer { - private static final Identifier ECRETION_RING_TEXTURE = new Identifier("textures/misc/forcefield.png"); + private static final Identifier ACCRETION_DISK_TEXTURE = Unicopia.id("textures/spells/dark_vortex/accretion_disk.png"); private static float cameraDistortion; @@ -29,16 +30,17 @@ public class DarkVortexSpellRenderer implements SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, DarkVortexSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { - matrices.push(); - double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; - matrices.translate(0, height + 2, 0); + Entity cameraEntity = MinecraftClient.getInstance().getCameraEntity(); float radius = (float)spell.getEventHorizonRadius(); float absDistance = (float)cameraEntity.getEyePos().distanceTo(caster.getOriginVector().add(0, 2, 0)); - SphereModel.SPHERE.render(matrices, vertices.getBuffer(RenderLayers.getSolid()), light, 1, Math.min(radius, absDistance / 2F), 0, 0, 0, 1); + matrices.push(); + matrices.translate(0, 2 + radius, 0); + + SphereModel.SPHERE.render(matrices, vertices.getBuffer(RenderLayers.getSolid()), light, 1, Math.min(radius * 0.6F, absDistance * 0.1F), 0, 0, 0, 1); matrices.push(); @@ -46,6 +48,7 @@ public class DarkVortexSpellRenderer implements SpellRenderer { matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(90)); matrices.multiply(RotationAxis.NEGATIVE_X.rotationDegrees(90 + cameraEntity.getYaw(tickDelta))); matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(-cameraEntity.getPitch(tickDelta))); + matrices.scale(0.7F, 1, 1); @@ -57,30 +60,41 @@ public class DarkVortexSpellRenderer implements SpellRenderer { matrices.scale(distance, distance, distance); - matrices.push(); - for (int i = 0; i < 10; i++) { - matrices.scale(0.96F, 1, 1); - float brightness = i / 10F; - SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicNoColor()), light, 1, radius * (1 + (0.25F * i)), brightness, brightness, brightness, 0.2F); + if (absDistance > radius) { + matrices.push(); + matrices.translate(0, -0.1F, 0); + for (int i = 0; i < 10; i++) { + matrices.scale(1, 1, 0.796F); + float brightness = i / 10F; + SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicNoColor()), light, 1, radius * (1 + (0.25F * i)) * 0.7F, brightness, brightness, brightness, 0.2F); + } + matrices.pop(); } - matrices.pop(); SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getEndPortal()), light, 1, radius * 0.5F, 1, 0.5F, 0, 1); - matrices.pop(); - - if (radius > 1 && absDistance > radius) { - radius *= 1.1F; + if (radius > 0.3F && absDistance > radius) { + radius *= 3 + radius; matrices.scale(radius, radius, radius); - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(animationProgress)); - matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(45)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90)); matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(animationProgress * 168)); - VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(ECRETION_RING_TEXTURE)); + VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(ACCRETION_DISK_TEXTURE)); PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, 1, 1, 1, 1); + + matrices.push(); + matrices.scale(0.5F, 0.5F, 0.5F); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(33)); + + PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, 1, 1, 1, 1); + matrices.pop(); + + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(45)); + PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, 1, 1, 1, 1); } matrices.pop(); + matrices.pop(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java index 2a2a8449..26c6d4c7 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCamera.java @@ -63,7 +63,7 @@ public class PlayerCamera extends MotionCompositor { public double calculateFieldOfView(double fov) { fov += player.getMagicalReserves().getExertion().get() / 5F; fov += getEnergyAddition(); - fov += DarkVortexSpellRenderer.getCameraDistortion(); + fov += DarkVortexSpellRenderer.getCameraDistortion() * 2.5F; return fov; } diff --git a/src/main/resources/assets/unicopia/textures/spells/dark_vortex/accretion_disk.png b/src/main/resources/assets/unicopia/textures/spells/dark_vortex/accretion_disk.png new file mode 100644 index 0000000000000000000000000000000000000000..d1ffe0c5253680da875ca764aefae2f0e76c788e GIT binary patch literal 55384 zcmXtf2T)Vp^Y%>$5EOyXMQNcc9Z^wAfY5^UCLkRH(h&iv2?COUfHbKB(xr&L0qI2r zK@43$dJ!oC0j0O(%kMw)W#;DIWG0h6d-j}to@e*qjSY1!UEsL@0Kg?ZU8E@hfT)iE z8A?ZeAA3FBLcKu(H1y1&)K@sv6-WKd;HPUH006W@|GPj^FX2C_UtWHqb^nQ(FZxNa z)8mIgaB#5nBOlKI7bm}m(!P(~a!JZO03ZP9A=S;F=54lpPrah^pH%Z1EQO&E5%2Zk z)XUqOz~}x|P{*yTV6C=QZCI`F&4BLsNBaL}b##&~-{N%8F)j1zNXsZk4z0Jg@UdsP zrHdvN;FlSmO{b5UnHQWp(oNK)gFYONOLMJte2x4Q^1@-+?7^n9+ORZaXK*rNb=zQd z@9Gg3yz%GV`ir15<-2OWd!4(hoNf)PhcZDQ9LDzSFxdIRVU0Ml#5ZJ=fIXxXQmv7{AyxG*vIaKhBk`8$_@t_FX&`?lh_qyZYagx!d2H@+)97Q>M zNtnnBJr5X?De?QzKsc?-jN_wWwtBD@RX~xZ8sO{89OW>OGzwi{KMVTT06r|gz!f$Y zdC#wHJFs*1*p5^{@j8Azf3DQQ(wR*CSF|8V{cc>mmEOYMl0qvJ`FG=knA&O0Ld+WZ zcsnoCW>D+rXaKoIjlu|IJG=eiLl;BY(3pydN2|d3n7Jd%umN2-^8lbzRy!tJ)b?j zCe8dv_WK4VdG&0ZItjmm97vc84>QZc*xM;hJeYe9 zoNeBZB#G6wa8rLG8rFMS5J$eqAbHqC8F;)Xh1?m^It}~p7KozyzGMBi5zT-~$D+mg zL(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kV*)5mJh7HFS(%mr41_$7Q0&Qdwe5n~PTwlV2?iQJF(~0Ywz+GkKWeDTsW3OGo zo1U`vfZi7VdEv!hBiGebjJw-B{6SlbhwW!MT7s-Fw`4u~^ZDC~(zJNC3)e(Y-moPB z+9|s_Jvm#G`H39%EX3N#HC*JyKhFW`2*G)?&h zi8&ZST0Kr$5CajLhYu!+ceZhm!kdO}4V{9+9nX$;XNcvsSOOE$9QHe|-0@^k&+_g^ zA3XGkzU#kZ?fiarEVeC9X7{GNFxPW}w_%C*sL<4E)ZyJuLF1{t^A!~--~^M?4Fl?x zjpZ9Zi@U{GK;#WUIPLu7-yeE^3rL>boZ9&mzVwHBY1+sU@LS@ZU28r9Ol@5}+i0{q z{%2QXnmlfFaAd)B)u5xfp$`&VRob zAg_MY+ILr$#Z7wpx znZYlFea@z>b#0b>p|PcCr0!C`X)X*5VRa^?@;a$uyKLT~ggqC}=tuv*r)s5fZ?>}& zgi83<#@(+J3f9}!CZ-)8^^q(p{dOTa=fUS>;=a{_3F>eP1*$)*JZ&$rnqq|DDt`D* UR1Y95jsoCy*~AJ}e$gZTfAvZM4gdfE literal 0 HcmV?d00001 From edb1e024d631fca15fee8490a028e3024419e8b7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 17:23:11 +0000 Subject: [PATCH 062/104] Fix portals and move them to a spell renderer --- .../magic/spell/effect/PortalSpell.java | 17 ++-- .../unicopia/client/URenderers.java | 1 + .../render/spell/BubbleSpellRenderer.java | 4 +- .../render/spell/DarkVortexSpellRenderer.java | 18 ++-- .../render/spell/PlacedSpellRenderer.java | 87 +++++++++++-------- .../render/spell/PortalSpellRenderer.java | 51 +++++++++++ .../render/spell/ShieldSpellRenderer.java | 4 +- .../spell/SpellEffectsRenderDispatcher.java | 50 +---------- .../client/render/spell/SpellRenderer.java | 66 +++++++++++++- .../unicopia/entity/mob/UEntities.java | 2 +- 10 files changed, 197 insertions(+), 103 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index e55f388c..9eb227ca 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -42,8 +42,6 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme private boolean publishedPosition; - private final ParticleHandle particleEffect = new ParticleHandle(); - private float pitch; private float yaw; @@ -53,6 +51,10 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme super(type); } + public boolean isLinked() { + return teleportationTarget.getTarget().isPresent(); + } + @Override public boolean apply(Caster caster) { setOrientation(caster.asEntity().getPitch(), caster.asEntity().getYaw()); @@ -73,17 +75,9 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme source.spawnParticles(origin, particleArea, 5, pos -> { source.addParticle(effect, pos, Vec3d.ZERO); }); - - teleportationTarget.getTarget().ifPresentOrElse(target -> { - particleEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.DISK, getType().getColor(), 0.8F, 1.8F, new Vec3d(-pitch + 90, -yaw, 0)), source.getOriginVector(), Vec3d.ZERO); - }); - }, () -> { - particleEffect.destroy(); - }); } else { teleportationTarget.getTarget().ifPresent(target -> { - if (Ether.get(source.asWorld()).get(getType(), target, targetPortalId) != null) { + if (Ether.get(source.asWorld()).get(getType(), target, targetPortalId) == null) { Unicopia.LOGGER.debug("Lost sibling, breaking connection to " + target.uuid()); teleportationTarget.set(null); setDirty(); @@ -178,7 +172,6 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme @Override protected void onDestroyed(Caster caster) { - particleEffect.destroy(); Ether ether = Ether.get(caster.asWorld()); ether.remove(getType(), caster); getTarget(caster).ifPresent(e -> e.setTaken(false)); diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 1d91a1d5..dad19f19 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -63,6 +63,7 @@ import net.minecraft.world.BlockRenderView; public interface URenderers { BlockEntity CHEST_RENDER_ENTITY = new CloudChestBlock.TileData(BlockPos.ORIGIN, UBlocks.CLOUD_CHEST.getDefaultState()); + @SuppressWarnings("unchecked") static void bootstrap() { ParticleFactoryRegistry.getInstance().register(UParticles.UNICORN_MAGIC, createFactory(MagicParticle::new)); ParticleFactoryRegistry.getInstance().register(UParticles.CHANGELING_MAGIC, createFactory(ChangelingMagicParticle::new)); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java index d15863b7..48f0dbb9 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/BubbleSpellRenderer.java @@ -13,9 +13,11 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.entity.Entity; import net.minecraft.util.math.RotationAxis; -public class BubbleSpellRenderer implements SpellRenderer { +public class BubbleSpellRenderer extends SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, BubbleSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + matrices.push(); double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; matrices.translate(0, height * 0.5F, 0); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java index 548854ae..2c03bc11 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/DarkVortexSpellRenderer.java @@ -2,6 +2,7 @@ package com.minelittlepony.unicopia.client.render.spell; import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.TimedSpell; import com.minelittlepony.unicopia.ability.magic.spell.effect.DarkVortexSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.PlaneModel; @@ -16,7 +17,7 @@ import net.minecraft.util.Identifier; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RotationAxis; -public class DarkVortexSpellRenderer implements SpellRenderer { +public class DarkVortexSpellRenderer extends SpellRenderer { private static final Identifier ACCRETION_DISK_TEXTURE = Unicopia.id("textures/spells/dark_vortex/accretion_disk.png"); @@ -29,8 +30,13 @@ public class DarkVortexSpellRenderer implements SpellRenderer { } @Override - public void render(MatrixStack matrices, VertexConsumerProvider vertices, DarkVortexSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + public boolean shouldRenderEffectPass(int pass) { + return pass < 2; + } + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, DarkVortexSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); Entity cameraEntity = MinecraftClient.getInstance().getCameraEntity(); @@ -43,15 +49,12 @@ public class DarkVortexSpellRenderer implements SpellRenderer { SphereModel.SPHERE.render(matrices, vertices.getBuffer(RenderLayers.getSolid()), light, 1, Math.min(radius * 0.6F, absDistance * 0.1F), 0, 0, 0, 1); matrices.push(); - - matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(90)); matrices.multiply(RotationAxis.NEGATIVE_X.rotationDegrees(90 + cameraEntity.getYaw(tickDelta))); matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(-cameraEntity.getPitch(tickDelta))); matrices.scale(0.7F, 1, 1); - float distance = 1F / MathHelper.clamp((absDistance / (radius * 4)), 0.0000001F, 1); distance *= distance; if (absDistance < radius * 4) { @@ -97,4 +100,9 @@ public class DarkVortexSpellRenderer implements SpellRenderer { matrices.pop(); matrices.pop(); } + + @Override + protected void renderCountdown(MatrixStack matrices, TimedSpell spell, float tickDelta) { + + } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 4630912b..c833c5fd 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -15,7 +15,7 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.Identifier; import net.minecraft.util.math.RotationAxis; -public class PlacedSpellRenderer implements SpellRenderer { +public class PlacedSpellRenderer extends SpellRenderer { private static final Identifier[] TEXTURES = new Identifier[] { Unicopia.id("textures/particles/runes_0.png"), Unicopia.id("textures/particles/runes_1.png"), @@ -27,46 +27,65 @@ public class PlacedSpellRenderer implements SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { - - if (!(caster.asEntity() instanceof CastSpellEntity)) { + if (!(caster.asEntity() instanceof CastSpellEntity castSpell)) { return; } + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-castSpell.getYaw())); + for (Spell delegate : spell.getDelegates()) { + renderAmbientEffects(matrices, vertices, spell, delegate, caster, light, animationProgress, tickDelta); matrices.push(); - matrices.translate(0, 0.001, 0); - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(spell.pitch)); - matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90 - spell.yaw)); - float scale = (spell.getAge(tickDelta) / 25F) * 3; - matrices.scale(scale, scale, scale); - - float angle = (animationProgress / 9F) % 360; - - int color = delegate.getType().getColor(); - - float red = Color.r(color); - float green = Color.g(color); - float blue = Color.b(color); - - for (int i = 0; i < TEXTURES.length; i++) { - VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(TEXTURES[i])); - - for (int dim = 0; dim < 3; dim++) { - float ringSpeed = (i % 2 == 0 ? i : -1) * i; - - matrices.push(); - matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(angle * ringSpeed)); - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(angle * ringSpeed * dim)); - matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(angle * ringSpeed * dim)); - PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, red, green, blue, scale / ((float)(dim * 3) + 1)); - matrices.pop(); - } - } - - matrices.pop(); - + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(-spell.pitch)); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - spell.yaw)); SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertices, delegate, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + matrices.pop(); } + + matrices.pop(); + } + + protected void renderAmbientEffects(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Spell delegate, Caster caster, int light, float animationProgress, float tickDelta) { + matrices.push(); + matrices.translate(0, 0.001, 0); + + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(-spell.pitch)); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - spell.yaw)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90)); + + float scale = (spell.getAge(tickDelta) / 25F) * 3; + matrices.scale(scale, scale, scale); + + float angle = (animationProgress / 9F) % 360; + + int color = delegate.getType().getColor(); + + float red = Color.r(color); + float green = Color.g(color); + float blue = Color.b(color); + + SpellRenderer renderer = SpellEffectsRenderDispatcher.INSTANCE.getRenderer(delegate); + + for (int i = 0; i < TEXTURES.length; i++) { + if (!renderer.shouldRenderEffectPass(i)) { + continue; + } + VertexConsumer buffer = vertices.getBuffer(RenderLayer.getEntityTranslucent(TEXTURES[i])); + + for (int dim = 0; dim < 3; dim++) { + float ringSpeed = (i % 2 == 0 ? i : -1) * i; + + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(angle * ringSpeed)); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(angle * ringSpeed * dim)); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(angle * ringSpeed * dim)); + PlaneModel.INSTANCE.render(matrices, buffer, light, 0, 1, red, green, blue, scale / ((float)(dim * 3) + 1)); + matrices.pop(); + } + } + + matrices.pop(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java new file mode 100644 index 00000000..4199c38d --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -0,0 +1,51 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import com.minelittlepony.common.util.Color; +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.model.SphereModel; + +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.math.RotationAxis; + +public class PortalSpellRenderer extends SpellRenderer { + + @Override + public boolean shouldRenderEffectPass(int pass) { + return pass == 0; + } + + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, PortalSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + + if (!spell.isLinked()) { + return; + } + + int color = spell.getType().getColor(); + + float red = Color.r(color); + float green = Color.g(color); + float blue = Color.b(color); + + VertexConsumer buffer = vertices.getBuffer(RenderLayers.getEndGateway()); + + double thickness = 0.1; + + matrices.push(); + matrices.translate(0, thickness, 0); + SphereModel.DISK.render(matrices, buffer, light, 0, 2.5F, red, green, blue, 1); + matrices.pop(); + + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); + matrices.translate(0, thickness, 0); + SphereModel.DISK.render(matrices, buffer, light, 0, 2.5F, red, green, blue, 1); + + matrices.pop(); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java index 55844dd9..8ce41089 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java @@ -12,9 +12,11 @@ import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.MathHelper; -public class ShieldSpellRenderer implements SpellRenderer { +public class ShieldSpellRenderer extends SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, ShieldSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + matrices.push(); double height = caster.asEntity().getEyeY() - caster.getOriginVector().y; matrices.translate(0, height, 0); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index 341abe8a..04a7363e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -8,19 +8,12 @@ import java.util.stream.Stream; import org.jetbrains.annotations.Nullable; -import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.SpellContainer.Operation; import com.minelittlepony.unicopia.ability.magic.spell.Spell; -import com.minelittlepony.unicopia.ability.magic.spell.TimedSpell; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; -import com.minelittlepony.unicopia.client.gui.DrawableUtil; import com.minelittlepony.unicopia.entity.Living; -import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; -import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; -import com.minelittlepony.unicopia.util.ColorHelper; - import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; import net.minecraft.client.MinecraftClient; import net.minecraft.client.font.TextRenderer.TextLayerType; @@ -28,7 +21,6 @@ import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.WorldRenderer; -import net.minecraft.client.render.model.json.ModelTransformationMode; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.registry.Registries; import net.minecraft.resource.ResourceManager; @@ -38,7 +30,6 @@ import net.minecraft.util.Colors; import net.minecraft.util.Formatting; import net.minecraft.util.Identifier; import net.minecraft.util.math.Box; -import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RotationAxis; import net.minecraft.util.math.Vec3d; @@ -56,6 +47,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader register(SpellType.SHIELD, ShieldSpellRenderer::new); register(SpellType.DARK_VORTEX, DarkVortexSpellRenderer::new); register(SpellType.BUBBLE, BubbleSpellRenderer::new); + register(SpellType.PORTAL, PortalSpellRenderer::new); } @Nullable @@ -71,20 +63,16 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader @SuppressWarnings("unchecked") public SpellRenderer getRenderer(S spell) { - return (SpellRenderer)renderers.get(spell.getType()); + return (SpellRenderer)renderers.getOrDefault(spell.getType(), SpellRenderer.DEFAULT); } public void render(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { var renderer = getRenderer(spell); - if (renderer != null) { + if (renderer != SpellRenderer.DEFAULT) { client.getBufferBuilders().getEntityVertexConsumers().draw(); renderer.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); - - if (EquinePredicates.IS_CASTER.test(client.player)) { - renderGemstone(matrices, vertices, spell, caster, light, tickDelta, animationProgress); - } } } @@ -105,38 +93,6 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader renderers = REGISTRY.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().create())); } - private void renderGemstone(MatrixStack matrices, VertexConsumerProvider vertices, Spell spell, Caster caster, int light, float tickDelta, float animationProgress) { - matrices.push(); - - if (!(caster.asEntity() instanceof MagicProjectileEntity)) { - - float y = -caster.asEntity().getHeight(); - if (caster.asEntity() instanceof CastSpellEntity) { - y = 1F; - } - - matrices.translate(0, y + MathHelper.sin(animationProgress / 3F) * 0.2F, 0); - matrices.push(); - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(animationProgress)); - - client.getItemRenderer().renderItem(spell.getType().withTraits(spell.getTraits()).getDefaultStack(), ModelTransformationMode.FIXED, light, 0, matrices, vertices, caster.asWorld(), 0); - matrices.pop(); - - if (spell instanceof TimedSpell timed && spell.getType() != SpellType.DARK_VORTEX) { - matrices.multiply(client.getEntityRenderDispatcher().getRotation().invert()); - float radius = 0.6F; - float timeRemaining = timed.getTimer().getPercentTimeRemaining(tickDelta); - - DrawableUtil.drawArc(matrices, radius, radius + 0.3F, 0, DrawableUtil.TAU * timeRemaining, - ColorHelper.lerp(MathHelper.clamp(timeRemaining * 4, 0, 1), 0xFF0000FF, 0xFFFFFFFF), - false - ); - } - } - - matrices.pop(); - } - private void renderSpellDebugInfo(MatrixStack matrices, VertexConsumerProvider vertices, Caster caster, int light) { matrices.push(); matrices.multiply(client.getEntityRenderDispatcher().getRotation()); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellRenderer.java index 8c7e6466..cdaf9f79 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellRenderer.java @@ -1,11 +1,73 @@ package com.minelittlepony.unicopia.client.render.spell; +import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.Spell; +import com.minelittlepony.unicopia.ability.magic.spell.TimedSpell; +import com.minelittlepony.unicopia.client.gui.DrawableUtil; +import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; +import com.minelittlepony.unicopia.projectile.MagicProjectileEntity; +import com.minelittlepony.unicopia.util.ColorHelper; +import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.model.json.ModelTransformationMode; import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.RotationAxis; -public interface SpellRenderer { - void render(MatrixStack matrices, VertexConsumerProvider vertices, T spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch); +public class SpellRenderer { + public static final SpellRenderer DEFAULT = new SpellRenderer<>(); + + protected final MinecraftClient client = MinecraftClient.getInstance(); + + public boolean shouldRenderEffectPass(int pass) { + return true; + } + + public void render(MatrixStack matrices, VertexConsumerProvider vertices, T spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + if (caster.asEntity() == client.cameraEntity || (caster.asEntity() instanceof MagicProjectileEntity)) { + return; + } + + if (EquinePredicates.IS_CASTER.test(client.player)) { + renderGemstone(matrices, vertices, spell, caster, light, tickDelta, animationProgress); + } + } + + private void renderGemstone(MatrixStack matrices, VertexConsumerProvider vertices, T spell, Caster caster, int light, float tickDelta, float animationProgress) { + matrices.push(); + + transformGemstone(matrices, vertices, spell, caster, animationProgress); + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(animationProgress)); + + client.getItemRenderer().renderItem(spell.getType().withTraits(spell.getTraits()).getDefaultStack(), ModelTransformationMode.FIXED, light, 0, matrices, vertices, caster.asWorld(), 0); + matrices.pop(); + + if (spell instanceof TimedSpell timed) { + renderCountdown(matrices, timed, tickDelta); + } + + matrices.pop(); + } + + protected void renderCountdown(MatrixStack matrices, TimedSpell spell, float tickDelta) { + matrices.multiply(client.getEntityRenderDispatcher().getRotation().invert()); + float radius = 0.6F; + float timeRemaining = spell.getTimer().getPercentTimeRemaining(tickDelta); + + DrawableUtil.drawArc(matrices, radius, radius + 0.3F, 0, DrawableUtil.TAU * timeRemaining, + ColorHelper.lerp(MathHelper.clamp(timeRemaining * 4, 0, 1), 0xFF0000FF, 0xFFFFFFFF), + false + ); + } + + protected void transformGemstone(MatrixStack matrices, VertexConsumerProvider vertices, T spell, Caster caster, float animationProgress) { + float y = -caster.asEntity().getHeight(); + if (caster.asEntity() instanceof CastSpellEntity) { + y = 1F; + } + matrices.translate(0, y + MathHelper.sin(animationProgress / 3F) * 0.2F, 0); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java index 49904028..0aa7e069 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/UEntities.java @@ -41,7 +41,7 @@ public interface UEntities { .dimensions(EntityDimensions.fixed(1, 1))); EntityType CAST_SPELL = register("cast_spell", FabricEntityTypeBuilder.create(SpawnGroup.MISC, CastSpellEntity::new) .trackRangeBlocks(200) - .dimensions(EntityDimensions.fixed(1, 0.4F))); + .dimensions(EntityDimensions.fixed(1, 1))); EntityType TWITTERMITE = register("twittermite", FabricEntityTypeBuilder.create(SpawnGroup.MISC, FairyEntity::new) .trackRangeBlocks(200) .dimensions(EntityDimensions.fixed(0.1F, 0.1F))); From eb1b767319d7962de053456425caf49d15aa86ac Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 22 Jan 2024 23:28:03 +0000 Subject: [PATCH 063/104] Clean up deprecated particle handling --- .../unicopia/InteractionManager.java | 6 + .../ability/PegasusRainboomAbility.java | 5 - .../magic/spell/RainboomAbilitySpell.java | 32 ++--- .../client/ClientInteractionManager.java | 10 +- .../AbstractGeometryBasedParticle.java | 12 ++ .../particle/ClientBoundParticleSpawner.java | 57 ++++++++ .../client/particle/RainbowTrailParticle.java | 126 ++++++------------ .../client/particle/RunesParticle.java | 68 +--------- .../client/particle/SphereParticle.java | 74 +--------- .../client/render/bezier/BezierSegment.java | 16 ++- .../unicopia/client/render/bezier/Ribbon.java | 49 ------- .../unicopia/client/render/bezier/Trail.java | 67 ++++++++++ .../render/spell/RainboomSpellRenderer.java | 13 ++ .../spell/SpellEffectsRenderDispatcher.java | 1 + .../unicopia/particle/ParticleHandle.java | 120 ----------------- .../unicopia/particle/ParticleSpawner.java | 2 + .../particle/TargetBoundParticleEffect.java | 55 ++++++++ .../unicopia/particle/UParticles.java | 2 +- 18 files changed, 292 insertions(+), 423 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/particle/ClientBoundParticleSpawner.java delete mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/bezier/Ribbon.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/bezier/Trail.java create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/RainboomSpellRenderer.java delete mode 100644 src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java create mode 100644 src/main/java/com/minelittlepony/unicopia/particle/TargetBoundParticleEffect.java diff --git a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java index 05a101d2..736cf4a3 100644 --- a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java @@ -1,11 +1,13 @@ package com.minelittlepony.unicopia; import java.util.Map; +import java.util.UUID; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.entity.player.dummy.DummyPlayerEntity; +import com.minelittlepony.unicopia.particle.ParticleSpawner; import com.mojang.authlib.GameProfile; import net.minecraft.entity.Entity; @@ -32,6 +34,10 @@ public class InteractionManager { return INSTANCE; } + public ParticleSpawner createBoundParticle(UUID id) { + return ParticleSpawner.EMPTY; + } + public Map readChapters(PacketByteBuf buf) { throw new RuntimeException("Method not supported"); } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/PegasusRainboomAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/PegasusRainboomAbility.java index 087e1cb0..bbe7256e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/PegasusRainboomAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/PegasusRainboomAbility.java @@ -10,10 +10,6 @@ import com.minelittlepony.unicopia.ability.magic.spell.CastingMethod; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.particle.MagicParticleEffect; -import com.minelittlepony.unicopia.particle.OrientedBillboardParticleEffect; -import com.minelittlepony.unicopia.particle.UParticles; - -import net.minecraft.util.math.Vec3d; /** * Pegasus ability to perform rainbooms @@ -72,7 +68,6 @@ public class PegasusRainboomAbility implements Ability { } if (player.consumeSuperMove()) { - player.addParticle(new OrientedBillboardParticleEffect(UParticles.RAINBOOM_RING, player.getPhysics().getMotionAngle()), player.getOriginVector(), Vec3d.ZERO); SpellType.RAINBOOM.withTraits().apply(player, CastingMethod.INNATE); } return true; diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java index d7b7b562..6c6d1099 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RainboomAbilitySpell.java @@ -1,12 +1,16 @@ package com.minelittlepony.unicopia.ability.magic.spell; +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.InteractionManager; import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.*; import com.minelittlepony.unicopia.entity.damage.UDamageTypes; import com.minelittlepony.unicopia.entity.player.Pony; -import com.minelittlepony.unicopia.particle.ParticleHandle; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; +import com.minelittlepony.unicopia.particle.OrientedBillboardParticleEffect; +import com.minelittlepony.unicopia.particle.ParticleSpawner; +import com.minelittlepony.unicopia.particle.TargetBoundParticleEffect; import com.minelittlepony.unicopia.server.world.ModificationType; import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.util.shape.Shape; @@ -26,7 +30,8 @@ public class RainboomAbilitySpell extends AbstractSpell { private static final int RADIUS = 5; private static final Shape EFFECT_RANGE = new Sphere(false, RADIUS); - private final ParticleHandle particlEffect = new ParticleHandle(); + @Nullable + private ParticleSpawner boundParticle; private int age; @@ -35,11 +40,6 @@ public class RainboomAbilitySpell extends AbstractSpell { setHidden(true); } - @Override - protected void onDestroyed(Caster source) { - particlEffect.destroy(); - } - @Override public boolean tick(Caster source, Situation situation) { @@ -47,14 +47,15 @@ public class RainboomAbilitySpell extends AbstractSpell { return false; } - particlEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(UParticles.RAINBOOM_TRAIL, source.getOriginVector(), Vec3d.ZERO); - }).ifPresent(attachment -> { - attachment.setAttribute(Attachment.ATTR_BOUND, 1); - }); - if (source.isClient()) { - //source.addParticle(new OrientedBillboardParticleEffect(UParticles.RAINBOOM_RING, source.getPhysics().getMotionAngle()), source.getOriginVector(), Vec3d.ZERO); + if (boundParticle == null) { + boundParticle = InteractionManager.INSTANCE.createBoundParticle(getUuid()); + } + boundParticle.addParticle(new TargetBoundParticleEffect(UParticles.RAINBOOM_TRAIL, source.asEntity()), source.getOriginVector(), Vec3d.ZERO); + + if (age == 0) { + source.addParticle(new OrientedBillboardParticleEffect(UParticles.RAINBOOM_RING, source.getPhysics().getMotionAngle()), source.getOriginVector(), Vec3d.ZERO); + } } source.findAllEntitiesInRange(RADIUS).forEach(e -> { @@ -92,5 +93,6 @@ public class RainboomAbilitySpell extends AbstractSpell { public void fromNBT(NbtCompound compound) { super.fromNBT(compound); age = compound.getInt("age"); + boundParticle = null; } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java index 68cf31a5..3a4105b9 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java @@ -2,6 +2,7 @@ package com.minelittlepony.unicopia.client; import java.lang.ref.WeakReference; import java.util.Map; +import java.util.UUID; import java.util.function.Predicate; import java.util.function.Supplier; @@ -14,10 +15,12 @@ import com.minelittlepony.unicopia.InteractionManager; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.client.gui.DismissSpellScreen; import com.minelittlepony.unicopia.client.gui.spellbook.ClientChapters; +import com.minelittlepony.unicopia.client.particle.ClientBoundParticleSpawner; import com.minelittlepony.unicopia.client.sound.*; import com.minelittlepony.unicopia.entity.player.PlayerPhysics; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.entity.player.dummy.DummyClientPlayerEntity; +import com.minelittlepony.unicopia.particle.ParticleSpawner; import com.mojang.authlib.GameProfile; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; @@ -47,7 +50,7 @@ public class ClientInteractionManager extends InteractionManager { @Override public Map readChapters(PacketByteBuf buffer) { - return buffer.readMap(PacketByteBuf::readIdentifier, ClientChapters::loadChapter); + return buffer.readMap(PacketByteBuf::readIdentifier, ClientChapters::loadChapter); } @Override @@ -144,4 +147,9 @@ public class ClientInteractionManager extends InteractionManager { public int getViewMode() { return client.options.getPerspective().ordinal(); } + + @Override + public ParticleSpawner createBoundParticle(UUID id) { + return new ClientBoundParticleSpawner(id); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java index fffcade8..297c2e65 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java @@ -2,6 +2,8 @@ package com.minelittlepony.unicopia.client.particle; import org.joml.Vector3f; +import com.minelittlepony.unicopia.client.render.RenderUtil; + import net.minecraft.client.particle.Particle; import net.minecraft.client.particle.ParticleTextureSheet; import net.minecraft.client.render.BufferBuilder; @@ -36,6 +38,16 @@ public abstract class AbstractGeometryBasedParticle extends Particle { te.draw(); } + protected final void renderQuad(Tessellator te, BufferBuilder buffer, RenderUtil.Vertex[] corners, float alpha, float tickDelta) { + int light = getBrightness(tickDelta); + buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); + for (RenderUtil.Vertex corner : corners) { + buffer.vertex(corner.position().x, corner.position().y, corner.position().z).texture(corner.u(), corner.v()).color(red, green, blue, alpha).light(light).next(); + } + te.draw(); + } + + protected final void renderQuad(VertexConsumer buffer, Vector3f[] corners, float alpha, float tickDelta) { int light = getBrightness(tickDelta); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/ClientBoundParticleSpawner.java b/src/main/java/com/minelittlepony/unicopia/client/particle/ClientBoundParticleSpawner.java new file mode 100644 index 00000000..4fdc8e3a --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/ClientBoundParticleSpawner.java @@ -0,0 +1,57 @@ +package com.minelittlepony.unicopia.client.particle; + +import java.lang.ref.WeakReference; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.function.BooleanSupplier; + +import com.minelittlepony.unicopia.particle.ParticleSpawner; + +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.particle.Particle; +import net.minecraft.particle.ParticleEffect; +import net.minecraft.util.math.Vec3d; +import net.minecraft.world.World; + +/** + * A connection class for updating and persisting an attached particle effect. + */ +public class ClientBoundParticleSpawner implements ParticleSpawner { + private static final Map SPAWNED_PARTICLES = new HashMap<>(); + + private final UUID id; + private WeakReference attachment = new WeakReference<>(null); + + private final MinecraftClient client = MinecraftClient.getInstance(); + + public ClientBoundParticleSpawner(UUID id) { + this.id = id; + } + + @Override + public void addParticle(ParticleEffect effect, Vec3d pos, Vec3d vel) { + BooleanSupplier a = attachment.get(); + if ((a == null || !a.getAsBoolean())) { + SPAWNED_PARTICLES.values().removeIf(set -> !set.getAsBoolean()); + attachment = new WeakReference<>(SPAWNED_PARTICLES.computeIfAbsent(id, i -> { + return new Entry( + new WeakReference<>(client.world), + new WeakReference<>(client.particleManager.addParticle(effect, pos.x, pos.y, pos.z, vel.x, vel.y, vel.z)) + ); + })); + } + } + + private record Entry (WeakReference world, WeakReference particle) implements BooleanSupplier { + @Override + public boolean getAsBoolean() { + if (world.get() == null || world.get() != MinecraftClient.getInstance().world) { + return false; + } + + Particle particle = this.particle.get(); + return particle != null && particle.isAlive(); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/RainbowTrailParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/RainbowTrailParticle.java index 6093fa45..978fede1 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/RainbowTrailParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/RainbowTrailParticle.java @@ -1,39 +1,46 @@ package com.minelittlepony.unicopia.client.particle; -import java.util.ArrayList; import java.util.List; -import java.util.Optional; +import org.jetbrains.annotations.Nullable; -import org.joml.Vector3f; - -import com.minelittlepony.unicopia.EntityConvertable; import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.client.render.bezier.BezierSegment; -import com.minelittlepony.unicopia.entity.player.Pony; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; -import com.minelittlepony.unicopia.particle.ParticleHandle.Link; +import com.minelittlepony.unicopia.client.render.bezier.Trail; +import com.minelittlepony.unicopia.particle.TargetBoundParticleEffect; -import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.BufferBuilder; import net.minecraft.client.render.Tessellator; import net.minecraft.client.world.ClientWorld; -import net.minecraft.particle.DefaultParticleType; +import net.minecraft.entity.Entity; import net.minecraft.util.Identifier; +import net.minecraft.util.math.Box; import net.minecraft.util.math.Vec3d; -public class RainbowTrailParticle extends AbstractBillboardParticle implements Attachment { +public class RainbowTrailParticle extends AbstractBillboardParticle { private static final Identifier TEXTURE = Unicopia.id("textures/particles/rainboom_trail.png"); - private final List segments = new ArrayList<>(); + private final Trail trail; - private Optional link = Optional.empty(); + @Nullable + private Entity target; + private boolean isAbility; - private boolean bound; - - public RainbowTrailParticle(DefaultParticleType effect, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) { + public RainbowTrailParticle(TargetBoundParticleEffect effect, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) { super(world, x, y, z, velocityX, velocityY, velocityZ); - segments.add(new Segment(new Vec3d(x, y, z))); + trail = new Trail(new Vec3d(x, y, z)); setMaxAge(300); + this.velocityX = velocityX; + this.velocityY = velocityY; + this.velocityZ = velocityZ; + + if (effect.getTargetId() <= 0) { + this.target = world.getOtherEntities(null, Box.from(trail.pos)).get(0); + } else { + this.target = world.getEntityById(effect.getTargetId()); + } + isAbility = Caster.of(target).filter(caster -> SpellType.RAINBOOM.isOn(caster)).isPresent(); } @Override @@ -42,98 +49,45 @@ public class RainbowTrailParticle extends AbstractBillboardParticle implements A } @Override - public boolean isStillAlive() { - return age < getMaxAge() && (!dead || !segments.isEmpty()); - } - - @Override - public void attach(Link link) { - this.link = Optional.of(link); - bound = true; - } - - @Override - public void detach() { - link = Optional.empty(); - } - - @Override - public void setAttribute(int key, Number value) { - + public boolean isAlive() { + return age < getMaxAge() && (!dead || !trail.getSegments().isEmpty()); } @Override protected void renderQuads(Tessellator te, BufferBuilder buffer, float x, float y, float z, float tickDelta) { - float alpha = 1 - (float)age / maxAge; + float alpha = this.alpha * (1 - (float)age / maxAge); + + List segments = trail.getSegments(); for (int i = 0; i < segments.size() - 1; i++) { BezierSegment corners = segments.get(i).getPlane(segments.get(i + 1)); float scale = getScale(tickDelta); corners.forEachCorner(corner -> { - corner.mul(scale); - corner.add(x, y, z); + corner.position().mul(scale).add(x, y, z); }); renderQuad(te, buffer, corners.corners(), segments.get(i).getAlpha() * alpha, tickDelta); } } - private void follow(EntityConvertable caster) { - Vec3d next = caster.asEntity().getPos(); - - if (segments.isEmpty()) { - segments.add(new Segment(next)); - } else { - Vec3d last = segments.get(segments.size() - 1).position; - if (next.distanceTo(last) > 0.2) { - segments.add(new Segment(next)); - } - } - } - @Override public void tick() { super.tick(); - if (link.isPresent()) { - age = 0; - link.flatMap(Link::get).ifPresent(this::follow); - } else if (!dead && !bound) { - follow(Pony.of(MinecraftClient.getInstance().player)); + if (target != null && target.isAlive()) { + if (isAbility) { + age = 0; + } + trail.update(target.getEyePos()); + + if (isAbility && Caster.of(target).filter(caster -> SpellType.RAINBOOM.isOn(caster)).isEmpty()) { + target = null; + } } - if (segments.size() > 1) { - segments.removeIf(Segment::tick); - } - if (segments.isEmpty()) { + if (trail.tick()) { markDead(); } } - - private final class Segment { - Vec3d position; - Vector3f offset; - - int age; - int maxAge; - - Segment(Vec3d position) { - this.position = position; - this.offset = new Vector3f((float)(position.getX() - x), (float)(position.getY() - y), (float)(position.getZ() - z)); - this.maxAge = 90; - } - - float getAlpha() { - return alpha * (1 - ((float)age / maxAge)); - } - - boolean tick() { - return segments.indexOf(this) < segments.size() - 1 && age++ >= maxAge; - } - - BezierSegment getPlane(Segment to) { - return new BezierSegment(offset, to.offset, 1); - } - } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java index 87ee30c2..21294ca3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/RunesParticle.java @@ -1,27 +1,20 @@ package com.minelittlepony.unicopia.client.particle; -import java.util.Optional; - import org.joml.Quaternionf; import org.joml.Vector3f; -import com.minelittlepony.common.util.Color; -import com.minelittlepony.unicopia.EntityConvertable; import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.particle.OrientedBillboardParticleEffect; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; -import com.minelittlepony.unicopia.particle.ParticleHandle.Link; import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.render.BufferBuilder; import net.minecraft.client.render.Tessellator; import net.minecraft.client.world.ClientWorld; -import net.minecraft.entity.Entity; import net.minecraft.util.Identifier; import net.minecraft.util.math.*; @Deprecated -public class RunesParticle extends OrientedBillboardParticle implements Attachment { +public class RunesParticle extends OrientedBillboardParticle { private static final Identifier[] TEXTURES = new Identifier[] { Unicopia.id("textures/particles/runes_0.png"), @@ -40,10 +33,6 @@ public class RunesParticle extends OrientedBillboardParticle implements Attachme private float prevRotationAngle; private float rotationAngle; - private Optional link = Optional.empty(); - - private int stasisAge = -1; - public RunesParticle(OrientedBillboardParticleEffect effect, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) { super(effect, world, x, y, z, velocityX, velocityY, velocityZ); setMaxAge(70); @@ -53,52 +42,6 @@ public class RunesParticle extends OrientedBillboardParticle implements Attachme blue = world.random.nextFloat(); } - @Override - public boolean isStillAlive() { - return age < (maxAge - 1); - } - - @Override - public void attach(Link link) { - this.link = Optional.of(link); - velocityX = 0; - velocityY = 0; - velocityZ = 0; - Vec3d pos = link.get().map(EntityConvertable::asEntity).map(Entity::getPos).orElse(Vec3d.ZERO); - setPos(pos.x, pos.y + 0.25, pos.z); - } - - @Override - public void detach() { - link = Optional.empty(); - if (targetSize > 1) { - this.targetSize = 0; - } - } - - @Override - public void setAttribute(int key, Number value) { - if (key == ATTR_COLOR) { - int tint = value.intValue(); - red = Color.r(tint); - green = Color.g(tint); - blue = Color.b(tint); - } - if (key == ATTR_OPACITY) { - alpha = value.floatValue(); - } - if (key == ATTR_RADIUS) { - targetSize = value.floatValue(); - } - if (key == ATTR_PITCH) { - rotation = new Quaternionf(0, 0, 0, 1); - rotation.mul(RotationAxis.POSITIVE_Y.rotationDegrees(value.floatValue())); - } - if (key == ATTR_YAW) { - rotation.mul(RotationAxis.POSITIVE_X.rotationDegrees(180 - value.floatValue())); - } - } - @Override public float getScale(float tickDelta) { return MathHelper.lerp(tickDelta, prevBaseSize, baseSize) * super.getScale(tickDelta); @@ -166,15 +109,6 @@ public class RunesParticle extends OrientedBillboardParticle implements Attachme public void tick() { super.tick(); - link.flatMap(Link::get).map(EntityConvertable::asEntity).ifPresentOrElse(e -> { - if (getAlphaScale() >= 0.9F) { - if (stasisAge < 0) { - stasisAge = age; - } - age = stasisAge; - } - }, this::detach); - prevBaseSize = baseSize; if (baseSize < targetSize) { baseSize += 0.1F; diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/SphereParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/SphereParticle.java index 911b10bd..7bbb555e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/SphereParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/SphereParticle.java @@ -10,22 +10,13 @@ import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.client.world.ClientWorld; import net.minecraft.util.math.MathHelper; -import net.minecraft.util.math.Vec3d; - -import com.minelittlepony.unicopia.EntityConvertable; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.particle.SphereParticleEffect; -import com.minelittlepony.unicopia.particle.ParticleHandle.Attachment; -import com.minelittlepony.unicopia.particle.ParticleHandle.Link; import com.minelittlepony.unicopia.util.ColorHelper; import com.mojang.blaze3d.systems.RenderSystem; -import java.util.Optional; - -import com.minelittlepony.common.util.Color; - -public class SphereParticle extends Particle implements Attachment { +public class SphereParticle extends Particle { protected float prevRadius; protected float radius; @@ -34,12 +25,6 @@ public class SphereParticle extends Particle implements Attachment { protected float lerpIncrement; protected float toRadius; - private Optional link = Optional.empty(); - - private final SphereParticleEffect parameters; - - private boolean bound; - public SphereParticle(SphereParticleEffect parameters, ClientWorld w, double x, double y, double z, double vX, double vY, double vZ) { this(parameters, w, x, y, z); @@ -50,7 +35,6 @@ public class SphereParticle extends Particle implements Attachment { public SphereParticle(SphereParticleEffect parameters, ClientWorld w, double x, double y, double z) { super(w, x, y, z); - this.parameters = parameters; this.radius = parameters.radius(); this.red = parameters.color().x / 255F; this.green = parameters.color().y / 255F; @@ -60,43 +44,6 @@ public class SphereParticle extends Particle implements Attachment { setMaxAge(10); } - @Override - public boolean isStillAlive() { - return age < (maxAge - 1); - } - - @Override - public void attach(Link link) { - setMaxAge(50000); - this.link = Optional.of(link); - } - - @Override - public void detach() { - markDead(); - } - - @Override - public void setAttribute(int key, Number value) { - if (key == ATTR_RADIUS) { - toRadius = value.floatValue(); - steps = 20; - lerpIncrement = (toRadius - radius) / steps; - } - if (key == ATTR_COLOR) { - int tint = value.intValue(); - red = Color.r(tint); - green = Color.g(tint); - blue = Color.b(tint); - } - if (key == ATTR_OPACITY) { - alpha = value.floatValue(); - } - if (key == ATTR_BOUND) { - bound = value.intValue() == 1; - } - } - @Override public ParticleTextureSheet getType() { return ParticleTextureSheet.CUSTOM; @@ -106,24 +53,7 @@ public class SphereParticle extends Particle implements Attachment { public void tick() { super.tick(); - if (link.isPresent()) { - link.flatMap(Link::get).map(EntityConvertable::asEntity).ifPresentOrElse(e -> { - if (!bound) { - Vec3d offset = parameters.offset(); - setPos(e.getX() + offset.getX(), e.getY() + offset.getY(), e.getZ() + offset.getZ()); - - prevPosX = e.lastRenderX + offset.getX(); - prevPosY = e.lastRenderY + offset.getY(); - prevPosZ = e.lastRenderZ + offset.getZ(); - } - }, this::detach); - - if (steps-- > 0) { - radius += lerpIncrement; - } - } else { - radius *= 0.9998281; - } + radius *= 0.9998281; } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java index f38b0182..d8ce8d35 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java @@ -4,20 +4,22 @@ import java.util.function.Consumer; import org.joml.Vector3f; +import com.minelittlepony.unicopia.client.render.RenderUtil; + public record BezierSegment( - Vector3f[] corners + RenderUtil.Vertex[] corners ) { public BezierSegment(Vector3f from, Vector3f to, float height) { - this(new Vector3f[] { - new Vector3f(from.x, from.y - height/2F, from.z), // bottom left - new Vector3f(from.x, from.y + height/2F, from.z), // top left - new Vector3f(to.x, to.y + height/2F, to.z), // top right - new Vector3f(to.x, to.y - height/2F, to.z) // bottom right + this(new RenderUtil.Vertex[] { + new RenderUtil.Vertex(new Vector3f(from.x, from.y - height/2F, from.z), 0, 0), // bottom left + new RenderUtil.Vertex(new Vector3f(from.x, from.y + height/2F, from.z), 1, 0), // top left + new RenderUtil.Vertex(new Vector3f(to.x, to.y + height/2F, to.z), 1, 1), // top right + new RenderUtil.Vertex(new Vector3f(to.x, to.y - height/2F, to.z), 0, 1) // bottom right }); } - public void forEachCorner(Consumer transformer) { + public void forEachCorner(Consumer transformer) { for (var corner : corners) { transformer.accept(corner); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Ribbon.java b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Ribbon.java deleted file mode 100644 index 361a437a..00000000 --- a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Ribbon.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.minelittlepony.unicopia.client.render.bezier; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import org.joml.Vector3f; - -import net.minecraft.util.math.Vec3d; - -public class Ribbon implements Iterable { - public float width; - public float angle; - - private final List nodes = new ArrayList<>(); - private final List segments = new ArrayList<>(); - private Node lastNode; - - public Ribbon(Vec3d position, Vector3f bottom, Vector3f top, float angle) { - this.angle = angle; - lastNode = new Node(position, position.toVector3f().add(bottom), position.toVector3f().add(top)); - nodes.add(lastNode); - } - - public void addNode(Vec3d position, float angle) { - Vector3f directionVector = position.subtract(lastNode.position()).toVector3f(); - - Vector3f bottom = lastNode.bottom().add(directionVector).rotateAxis(angle, directionVector.x, directionVector.y, directionVector.z); - Vector3f top = lastNode.top().add(directionVector).rotateAxis(angle, directionVector.x, directionVector.y, directionVector.z); - - Node oldNode = lastNode; - lastNode = new Node(position, bottom, top); - nodes.add(lastNode); - segments.add(new BezierSegment(new Vector3f[] { - oldNode.bottom(), - oldNode.top(), - lastNode.bottom(), - lastNode.top() - })); - } - - @Override - public Iterator iterator() { - return segments.iterator(); - } - - record Node(Vec3d position, Vector3f bottom, Vector3f top) { - - } -} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Trail.java b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Trail.java new file mode 100644 index 00000000..f130fbcc --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/Trail.java @@ -0,0 +1,67 @@ +package com.minelittlepony.unicopia.client.render.bezier; + +import java.util.ArrayList; +import java.util.List; +import org.joml.Vector3f; + +import net.minecraft.util.math.Vec3d; + +public class Trail { + + private final List segments = new ArrayList<>(); + + public final Vec3d pos; + + public Trail(Vec3d pos) { + this.pos = pos; + segments.add(new Segment(pos)); + } + + public List getSegments() { + return segments; + } + + public void update(Vec3d newPosition) { + if (segments.isEmpty()) { + segments.add(new Segment(newPosition)); + } else { + Vec3d last = segments.get(segments.size() - 1).position; + if (newPosition.distanceTo(last) > 0.2) { + segments.add(new Segment(newPosition)); + } + } + } + + public boolean tick() { + if (segments.size() > 1) { + segments.removeIf(Segment::tick); + } + return segments.isEmpty(); + } + + public final class Segment { + Vec3d position; + Vector3f offset; + + int age; + int maxAge; + + Segment(Vec3d position) { + this.position = position; + this.offset = position.subtract(pos).toVector3f(); + this.maxAge = 90; + } + + public float getAlpha() { + return (1 - ((float)age / maxAge)); + } + + boolean tick() { + return segments.indexOf(this) < segments.size() - 1 && age++ >= maxAge; + } + + public BezierSegment getPlane(Segment to) { + return new BezierSegment(offset, to.offset, 1); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/RainboomSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/RainboomSpellRenderer.java new file mode 100644 index 00000000..0f7e0b9c --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/RainboomSpellRenderer.java @@ -0,0 +1,13 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.RainboomAbilitySpell; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.util.math.MatrixStack; + +public class RainboomSpellRenderer extends SpellRenderer { + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, RainboomAbilitySpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index 04a7363e..cbfdd7dc 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -48,6 +48,7 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader register(SpellType.DARK_VORTEX, DarkVortexSpellRenderer::new); register(SpellType.BUBBLE, BubbleSpellRenderer::new); register(SpellType.PORTAL, PortalSpellRenderer::new); + register(SpellType.RAINBOOM, RainboomSpellRenderer::new); } @Nullable diff --git a/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java b/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java deleted file mode 100644 index b099f347..00000000 --- a/src/main/java/com/minelittlepony/unicopia/particle/ParticleHandle.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.minelittlepony.unicopia.particle; - -import java.lang.ref.WeakReference; -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; -import java.util.UUID; -import java.util.WeakHashMap; -import java.util.function.Consumer; - -import com.minelittlepony.unicopia.EntityConvertable; -import com.minelittlepony.unicopia.ability.magic.Caster; - -import net.fabricmc.api.EnvType; -import net.fabricmc.api.Environment; -import net.minecraft.client.MinecraftClient; -import net.minecraft.client.particle.Particle; -import net.minecraft.world.World; - -/** - * A connection class for updating and persisting an attached particle effect. - */ -@Deprecated -public class ParticleHandle { - private final Map loadedEffects = new WeakHashMap<>(); - - public Optional update(UUID id, ParticleSource source, Consumer constructor) { - return update(id, "prime", source, constructor); - } - - public Optional update(UUID id, String partName, ParticleSource source, Consumer constructor) { - return get(partName).or(() -> { - if (source.asEntity().getWorld().isClient) { - new ClientHandle().addParticle(id, partName, source, constructor); - } - return get(partName); - }); - } - - public void destroy() { - loadedEffects.values().forEach(Attachment::detach); - loadedEffects.clear(); - } - - private Optional get(String partName) { - return Optional.ofNullable(loadedEffects.get(partName)).filter(Attachment::isStillAlive); - } - - private final class ClientHandle { - private static final Map> SPAWNED_PARTICLES = new HashMap<>(); - - private Particle pp; - - @Environment(EnvType.CLIENT) - private void addParticle(UUID id, String partName, ParticleSource source, Consumer constructor) { - SPAWNED_PARTICLES.values().removeIf(set -> { - set.values().removeIf(particle -> particle.get() == null); - return set.isEmpty(); - }); - - Entry p = SPAWNED_PARTICLES.computeIfAbsent(id, i -> new WeakHashMap<>()).computeIfAbsent(partName, i -> { - constructor.accept((effect, pos, vel) -> { - pp = MinecraftClient.getInstance().particleManager.addParticle(effect, pos.x, pos.y, pos.z, vel.x, vel.y, vel.z); - if (pp instanceof Attachment) { - ((Attachment) pp).attach(new Link(id, source)); - } - }); - return new Entry(new WeakReference<>(MinecraftClient.getInstance().world), new WeakReference<>(pp)); - }); - - if (p.get() instanceof Attachment) { - loadedEffects.put(partName, (Attachment)p.get()); - } - } - - record Entry (WeakReference world, WeakReference particle) { - public Particle get() { - if (world.get() == null || world.get() != MinecraftClient.getInstance().world) { - return null; - } - - Particle particle = this.particle.get(); - - return particle == null || !particle.isAlive() ? null : particle; - } - } - } - - public interface Attachment { - int ATTR_RADIUS = 0; - int ATTR_COLOR = 1; - int ATTR_OPACITY = 2; - int ATTR_PITCH = 3; - int ATTR_YAW = 4; - int ATTR_BOUND = 5; - - boolean isStillAlive(); - - void attach(Link link); - - void detach(); - - void setAttribute(int key, Number value); - } - - public static final class Link { - private Optional>> caster = Optional.empty(); - private UUID effect; - - private Link(UUID effect, EntityConvertable caster) { - this.caster = Optional.of(new WeakReference<>(caster)); - this.effect = effect; - } - - public Optional> get() { - caster = caster.filter(r -> r.get() != null && (!(r.get() instanceof Caster c) || c.getSpellSlot().contains(effect)) && r.get().asEntity().isAlive()); - return caster.map(WeakReference::get); - } - } -} diff --git a/src/main/java/com/minelittlepony/unicopia/particle/ParticleSpawner.java b/src/main/java/com/minelittlepony/unicopia/particle/ParticleSpawner.java index e19436e2..f1adf5a0 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/ParticleSpawner.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/ParticleSpawner.java @@ -4,5 +4,7 @@ import net.minecraft.particle.ParticleEffect; import net.minecraft.util.math.Vec3d; public interface ParticleSpawner { + ParticleSpawner EMPTY = (effect, pos, vel) -> {}; + void addParticle(ParticleEffect effect, Vec3d position, Vec3d velocity); } diff --git a/src/main/java/com/minelittlepony/unicopia/particle/TargetBoundParticleEffect.java b/src/main/java/com/minelittlepony/unicopia/particle/TargetBoundParticleEffect.java new file mode 100644 index 00000000..15171015 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/particle/TargetBoundParticleEffect.java @@ -0,0 +1,55 @@ +package com.minelittlepony.unicopia.particle; + + +import java.util.Locale; + +import com.mojang.brigadier.StringReader; +import com.mojang.brigadier.exceptions.CommandSyntaxException; + +import net.minecraft.entity.Entity; +import net.minecraft.network.PacketByteBuf; +import net.minecraft.particle.ParticleEffect; +import net.minecraft.particle.ParticleType; +import net.minecraft.registry.Registries; + +public class TargetBoundParticleEffect implements ParticleEffect { + @SuppressWarnings("deprecation") + public static final Factory FACTORY = ParticleFactoryHelper.of(TargetBoundParticleEffect::new, TargetBoundParticleEffect::new); + + private final ParticleType type; + private final int targetId; + + protected TargetBoundParticleEffect(ParticleType type, StringReader reader) throws CommandSyntaxException { + this.type = type; + this.targetId = -1; + } + + protected TargetBoundParticleEffect(ParticleType type, PacketByteBuf buf) { + this.type = type; + this.targetId = buf.readInt(); + } + + public TargetBoundParticleEffect(ParticleType type, Entity target) { + this.type = type; + this.targetId = target.getId(); + } + + public int getTargetId() { + return targetId; + } + + @Override + public ParticleType getType() { + return type; + } + + @Override + public void write(PacketByteBuf buf) { + buf.writeInt(targetId); + } + + @Override + public String asString() { + return String.format(Locale.ROOT, "%s", Registries.PARTICLE_TYPE.getId(getType()), targetId); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java index f1e88314..17554070 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java @@ -15,7 +15,7 @@ public interface UParticles { DefaultParticleType BUBBLE = register("bubble", FabricParticleTypes.simple()); ParticleType RAINBOOM_RING = register("rainboom_ring", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); - DefaultParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.simple()); + ParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.complex(TargetBoundParticleEffect.FACTORY)); @Deprecated ParticleType MAGIC_RUNES = register("magic_runes", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); From 56e1f5ffeb2eaaf4056cb4eefa280924d7f31213 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 24 Jan 2024 19:44:30 +0000 Subject: [PATCH 064/104] Fixed portals breaking when relogging and fixed various portal placements --- .../magic/spell/effect/PortalSpell.java | 81 ++++++++++++++++--- 1 file changed, 68 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index 9eb227ca..255be78e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -12,6 +12,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.*; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.entity.EntityReference; +import com.minelittlepony.unicopia.entity.Living; import com.minelittlepony.unicopia.entity.mob.CastSpellEntity; import com.minelittlepony.unicopia.particle.*; import com.minelittlepony.unicopia.server.world.Ether; @@ -19,11 +20,16 @@ import com.minelittlepony.unicopia.util.shape.*; import net.minecraft.block.Block; import net.minecraft.block.Blocks; +import net.minecraft.client.MinecraftClient; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.nbt.NbtCompound; +import net.minecraft.network.packet.s2c.play.PositionFlag; import net.minecraft.particle.ParticleEffect; import net.minecraft.particle.ParticleTypes; +import net.minecraft.server.world.ServerWorld; +import net.minecraft.text.Text; +import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; import net.minecraft.world.WorldEvents; @@ -38,6 +44,8 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme @Nullable private UUID targetPortalId; + private float targetPortalPitch; + private float targetPortalYaw; private final EntityReference teleportationTarget = new EntityReference<>(); private boolean publishedPosition; @@ -55,6 +63,35 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme return teleportationTarget.getTarget().isPresent(); } + public Optional> getTarget() { + return teleportationTarget.getTarget(); + } + + public float getPitch() { + return pitch; + } + + public float getYaw() { + return yaw; + } + + public float getTargetPitch() { + return targetPortalPitch; + } + + public float getTargetYaw() { + return targetPortalYaw; + } + + public float getYawDifference() { + return MathHelper.wrapDegrees(180 + targetPortalYaw - yaw); + } + + @SuppressWarnings("unchecked") + private Optional> getTarget(Caster source) { + return getTarget().map(target -> Ether.get(source.asWorld()).get((SpellType)getType(), target, targetPortalId)); + } + @Override public boolean apply(Caster caster) { setOrientation(caster.asEntity().getPitch(), caster.asEntity().getYaw()); @@ -68,7 +105,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme if (source.isClient()) { Vec3d origin = source.getOriginVector(); - ParticleEffect effect = teleportationTarget.getTarget() + ParticleEffect effect = getTarget() .map(target -> (ParticleEffect)new FollowingParticleEffect(UParticles.HEALTH_DRAIN, target.pos(), 0.2F).withChild(ParticleTypes.ELECTRIC_SPARK)) .orElse(ParticleTypes.ELECTRIC_SPARK); @@ -76,7 +113,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme source.addParticle(effect, pos, Vec3d.ZERO); }); } else { - teleportationTarget.getTarget().ifPresent(target -> { + getTarget().ifPresent(target -> { if (Ether.get(source.asWorld()).get(getType(), target, targetPortalId) == null) { Unicopia.LOGGER.debug("Lost sibling, breaking connection to " + target.uuid()); teleportationTarget.set(null); @@ -94,6 +131,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme var entry = Ether.get(source.asWorld()).getOrCreate(this, source); entry.pitch = pitch; entry.yaw = yaw; + Ether.get(source.asWorld()).markDirty(); } return !isDead(); @@ -101,24 +139,41 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme private void tickWithTargetLink(Caster source, Ether.Entry destination) { + if (!MathHelper.approximatelyEquals(targetPortalPitch, destination.pitch)) { + targetPortalPitch = destination.pitch; + setDirty(); + } + if (!MathHelper.approximatelyEquals(targetPortalYaw, destination.yaw)) { + targetPortalYaw = destination.yaw; + setDirty(); + } + destination.entity.getTarget().ifPresent(target -> { source.findAllEntitiesInRange(1).forEach(entity -> { if (!entity.hasPortalCooldown() && entity.timeUntilRegen <= 0) { Vec3d offset = entity.getPos().subtract(source.getOriginVector()); - float yawDifference = pitch < 15 ? (180 - yaw + destination.yaw) : 0; - Vec3d dest = target.pos().add(offset.rotateY(yawDifference * MathHelper.RADIANS_PER_DEGREE)).add(0, 0.05, 0); + float yawDifference = pitch < 15 ? getYawDifference() : 0; + Vec3d dest = target.pos().add(offset.rotateY(yawDifference * MathHelper.RADIANS_PER_DEGREE)).add(0, 0.1, 0); + MinecraftClient.getInstance().player.sendMessage(Text.literal(yawDifference + "")); + + if (entity.getWorld().isTopSolid(BlockPos.ofFloored(dest).up(), entity)) { + dest = dest.add(0, 1, 0); + } entity.resetPortalCooldown(); entity.timeUntilRegen = 100; - entity.setYaw(entity.getYaw() + yawDifference); + float yaw = MathHelper.wrapDegrees(entity.getYaw() + yawDifference); + entity.setVelocity(entity.getVelocity().rotateY(yawDifference * MathHelper.RADIANS_PER_DEGREE)); entity.getWorld().playSoundFromEntity(null, entity, USounds.ENTITY_PLAYER_UNICORN_TELEPORT, entity.getSoundCategory(), 1, 1); - entity.teleport(dest.x, dest.y, dest.z); + entity.teleport((ServerWorld)entity.getWorld(), dest.x, dest.y, dest.z, PositionFlag.VALUES, yaw, entity.getPitch()); entity.getWorld().playSoundFromEntity(null, entity, USounds.ENTITY_PLAYER_UNICORN_TELEPORT, entity.getSoundCategory(), 1, 1); setDirty(); + Living.updateVelocity(entity); + if (!source.subtractEnergyCost(Math.sqrt(entity.getPos().subtract(dest).length()))) { setDead(); } @@ -145,12 +200,6 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme }); } - @SuppressWarnings("unchecked") - private Optional> getTarget(Caster source) { - return teleportationTarget.getTarget() - .map(target -> Ether.get(source.asWorld()).get((SpellType)getType(), target, targetPortalId)); - } - @Override public void setOrientation(float pitch, float yaw) { this.pitch = pitch; @@ -167,7 +216,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme LivingEntity caster = source.getMaster(); Vec3d targetPos = caster.getRotationVector().multiply(3).add(caster.getEyePos()); parent.setOrientation(pitch, yaw); - entity.setPos(targetPos.x, caster.getY() + 1.5, targetPos.z); + entity.setPos(targetPos.x, caster.getEyePos().y, targetPos.z); } @Override @@ -180,15 +229,21 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme @Override public void toNBT(NbtCompound compound) { super.toNBT(compound); + if (targetPortalId != null) { + compound.putUuid("targetPortalId", targetPortalId); + } compound.putBoolean("publishedPosition", publishedPosition); compound.put("teleportationTarget", teleportationTarget.toNBT()); compound.putFloat("pitch", pitch); compound.putFloat("yaw", yaw); + compound.putFloat("targetPortalPitch", targetPortalPitch); + compound.putFloat("targetPortalYaw", targetPortalYaw); } @Override public void fromNBT(NbtCompound compound) { super.fromNBT(compound); + targetPortalId = compound.containsUuid("targetPortalId") ? compound.getUuid("targetPortalId") : null; publishedPosition = compound.getBoolean("publishedPosition"); teleportationTarget.fromNBT(compound.getCompound("teleportationTarget")); pitch = compound.getFloat("pitch"); From fce8623f446bc93622a2ddd4f20df07741fc6db6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 24 Jan 2024 19:44:46 +0000 Subject: [PATCH 065/104] Add svg source for the black hole's texture --- assets/accretion_disk.svg | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 assets/accretion_disk.svg diff --git a/assets/accretion_disk.svg b/assets/accretion_disk.svg new file mode 100644 index 00000000..ee302045 --- /dev/null +++ b/assets/accretion_disk.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + From 8785a3f5aa5e029690474ecac44390ace1e93ce7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 24 Jan 2024 19:44:57 +0000 Subject: [PATCH 066/104] Add portal rendering (wip) --- .../unicopia/client/render/RenderUtil.java | 13 +- .../client/render/model/SphereModel.java | 2 +- .../render/model/TexturedSphereModel.java | 41 +++ .../render/spell/PlacedSpellRenderer.java | 2 + .../render/spell/PortalSpellRenderer.java | 268 +++++++++++++++++- .../mixin/client/MixinMinecraftClient.java | 14 + .../mixin/client/MixinWorldRenderer.java | 9 +- src/main/resources/unicopia.mixin.json | 1 + 8 files changed, 336 insertions(+), 14 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java create mode 100644 src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java index fc981555..a9cbbd1e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java @@ -17,18 +17,27 @@ public class RenderUtil { new Vertex(new Vector3f(1, 1, 0), 0, 0), new Vertex(new Vector3f(1, 0, 0), 0, 1) }; + public static final Vertex[] FRAME_BUFFER_VERTICES = new Vertex[] { + new Vertex(new Vector3f(0, 1, 0), 0, 0), + new Vertex(new Vector3f(1, 1, 0), 1, 0), + new Vertex(new Vector3f(1, 0, 0), 1, 1), + new Vertex(new Vector3f(0, 0, 0), 0, 1) + }; public static void renderFace(MatrixStack matrices, Tessellator te, BufferBuilder buffer, float r, float g, float b, float a, int light) { + renderFace(matrices, te, buffer, r, g, b, a, light, 1, 1); + } + + public static void renderFace(MatrixStack matrices, Tessellator te, BufferBuilder buffer, float r, float g, float b, float a, int light, float uScale, float vScale) { buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); for (Vertex vertex : UNIT_FACE) { Vector4f position = vertex.position(matrices); - buffer.vertex(position.x, position.y, position.z).texture(vertex.u(), vertex.v()).color(r, g, b, a).light(light).next(); + buffer.vertex(position.x, position.y, position.z).texture(vertex.u() * uScale, vertex.v() * vScale).color(r, g, b, a).light(light).next(); } te.draw(); } public record Vertex(Vector3f position, float u, float v) { - public Vector4f position(MatrixStack matrices) { matrices.peek().getPositionMatrix().transform(TEMP_VECTOR.set(position, 1)); return TEMP_VECTOR; diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/SphereModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/SphereModel.java index 1d94ae8a..f1202b56 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/model/SphereModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/SphereModel.java @@ -20,7 +20,7 @@ public class SphereModel extends BakedModel { compileVertices(azimuthRange, zenithIncrement, azimuthIncrement, this::addVertex); } - private static void compileVertices(double azimuthRange, double zenithIncrement, double azimuthIncrement, Consumer collector) { + static void compileVertices(double azimuthRange, double zenithIncrement, double azimuthIncrement, Consumer collector) { Vector4f vector = new Vector4f(); for (double zenith = 0; zenith < DrawableUtil.PI; zenith += zenithIncrement) { for (double azimuth = 0; azimuth < azimuthRange; azimuth += azimuthIncrement) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java new file mode 100644 index 00000000..60c0b74e --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java @@ -0,0 +1,41 @@ +package com.minelittlepony.unicopia.client.render.model; + +import org.joml.Vector4f; + +import com.minelittlepony.unicopia.client.gui.DrawableUtil; +import com.minelittlepony.unicopia.client.render.RenderUtil; + +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.util.math.MatrixStack; + +public class TexturedSphereModel extends BakedModel { + public static final TexturedSphereModel DISK = new TexturedSphereModel(40, 2, DrawableUtil.PI); + + public TexturedSphereModel(double rings, double sectors, double azimuthRange) { + double zenithIncrement = DrawableUtil.PI / rings; + double azimuthIncrement = DrawableUtil.TAU / sectors; + SphereModel.compileVertices(azimuthRange, zenithIncrement, azimuthIncrement, this::addVertex); + } + + @Override + protected void addVertex(Vector4f vertex) { + addVertex(vertex.x, vertex.y, vertex.z, vertex.x, vertex.z); + } + + public final void render(MatrixStack matrices, VertexConsumer buffer, float scale, float r, float g, float b, float a, float uScale, float vScale) { + scale = Math.abs(scale); + if (scale < 0.001F) { + return; + } + + matrices.push(); + matrices.scale(scale, scale, scale); + uScale *= 0.5F; + vScale *= 0.5F; + for (RenderUtil.Vertex vertex : vertices) { + Vector4f pos = vertex.position(matrices); + buffer.vertex(pos.x, pos.y, pos.z).texture((vertex.u() + 1) * uScale, (vertex.v() + 1) * vScale).color(r, g, b, a).next(); + } + matrices.pop(); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index c833c5fd..698375c9 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -27,6 +27,8 @@ public class PlacedSpellRenderer extends SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + + if (!(caster.asEntity() instanceof CastSpellEntity castSpell)) { return; } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index 4199c38d..aef30589 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -1,17 +1,57 @@ package com.minelittlepony.unicopia.client.render.spell; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +import org.jetbrains.annotations.Nullable; +import org.joml.Matrix3f; +import org.joml.Matrix4f; + +import com.google.common.cache.CacheBuilder; +import com.google.common.cache.CacheLoader; +import com.google.common.cache.LoadingCache; import com.minelittlepony.common.util.Color; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; +import com.minelittlepony.unicopia.client.render.model.TexturedSphereModel; +import com.minelittlepony.unicopia.entity.EntityReference; +import com.minelittlepony.unicopia.entity.mob.UEntities; +import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; +import com.mojang.blaze3d.platform.GlConst; +import com.mojang.blaze3d.systems.RenderSystem; +import com.mojang.blaze3d.systems.VertexSorter; +import it.unimi.dsi.fastutil.objects.ObjectArrayList; +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.gl.SimpleFramebuffer; +import net.minecraft.client.option.Perspective; +import net.minecraft.client.render.BackgroundRenderer; +import net.minecraft.client.render.BufferBuilder; +import net.minecraft.client.render.Camera; +import net.minecraft.client.render.GameRenderer; +import net.minecraft.client.render.Tessellator; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.VertexFormat; +import net.minecraft.client.render.VertexFormats; +import net.minecraft.client.util.Window; import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.entity.Entity; +import net.minecraft.screen.PlayerScreenHandler; +import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RotationAxis; +import net.minecraft.util.math.Vec3d; public class PortalSpellRenderer extends SpellRenderer { + private static final LoadingCache FRAME_BUFFERS = CacheBuilder.newBuilder() + .expireAfterAccess(10, TimeUnit.SECONDS) + .removalListener(n -> n.getValue().close()) + .build(CacheLoader.from(uuid -> new PortalFrameBuffer())); @Override public boolean shouldRenderEffectPass(int pass) { @@ -32,20 +72,228 @@ public class PortalSpellRenderer extends SpellRenderer { float green = Color.g(color); float blue = Color.b(color); - VertexConsumer buffer = vertices.getBuffer(RenderLayers.getEndGateway()); - - double thickness = 0.1; + VertexConsumer buff = vertices.getBuffer(RenderLayers.getEndGateway()); matrices.push(); - matrices.translate(0, thickness, 0); - SphereModel.DISK.render(matrices, buffer, light, 0, 2.5F, red, green, blue, 1); + matrices.translate(0, 0.02, 0); + SphereModel.DISK.render(matrices, buff, light, 0, 2F, red, green, blue, 1); matrices.pop(); - matrices.push(); - matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); - matrices.translate(0, thickness, 0); - SphereModel.DISK.render(matrices, buffer, light, 0, 2.5F, red, green, blue, 1); + if (caster.asEntity().distanceTo(client.cameraEntity) > 50) { + return; // don't bother rendering if too far away + } - matrices.pop(); + spell.getTarget().ifPresent(target -> { + try { + float grown = Math.min(caster.asEntity().age, 20) / 20F; + matrices.push(); + matrices.translate(0, 0.01, 0); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-spell.getYaw())); + matrices.scale(grown, 1, grown); + PortalFrameBuffer buffer = FRAME_BUFFERS.get(target.uuid()); + buffer.build(spell, caster, target); + buffer.draw(matrices); + matrices.pop(); + } catch (ExecutionException e) { } + }); + } + + static class PortalFrameBuffer implements AutoCloseable { + @Nullable + private SimpleFramebuffer framebuffer; + private boolean closed; + + private final MinecraftClient client = MinecraftClient.getInstance(); + + private boolean pendingDraw; + + private static int recursionCount; + + public void draw(MatrixStack matrices) { + if (closed || framebuffer == null) { + return; + } + float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; + float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; + + Tessellator tessellator = RenderSystem.renderThreadTesselator(); + BufferBuilder buffer = tessellator.getBuffer(); + + RenderSystem.enableDepthTest(); + RenderSystem.disableCull(); + RenderSystem.setShaderTexture(0, framebuffer.getColorAttachment()); + RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); + + Matrix4f textureMatrix = matrices.peek().getPositionMatrix(); + + RenderSystem.setTextureMatrix(textureMatrix); + + buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); + TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); + tessellator.draw(); + client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); + RenderSystem.enableCull(); + RenderSystem.resetTextureMatrix(); + } + + public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { + + if (System.currentTimeMillis() % 100 < 50) { + return; + } + + if (pendingDraw && recursionCount > 0) { + innerBuild(spell, caster, target); + return; + } + + if (pendingDraw) { + return; + } + pendingDraw = true; + if (recursionCount > 0) { + innerBuild(spell, caster, target); + } else { + ((MixinMinecraftClient)client).getRenderTaskQueue().add(() -> innerBuild(spell, caster, target)); + } + } + + private void innerBuild(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { + synchronized (client) { + pendingDraw = false; + + if (recursionCount > 2) { + return; + } + recursionCount++; + + try { + if (closed || client.interactionManager == null) { + close(); + return; + } + + var fov = client.options.getFov(); + int originalFov = fov.getValue(); + fov.setValue(110); + + Vec3d offset = new Vec3d(0, -1.2, -0.2); + float yaw = spell.getYawDifference();// spell.getYawDifference(); + + offset = offset.rotateY(yaw * MathHelper.RADIANS_PER_DEGREE); + + Entity cameraEntity = UEntities.CAST_SPELL.create(caster.asWorld()); + cameraEntity.setPosition(target.pos().add(offset)); + cameraEntity.setPitch(spell.getTargetPitch()); + cameraEntity.setYaw(yaw); + + drawWorld(cameraEntity, 400, 400); + + fov.setValue(originalFov); + } finally { + recursionCount--; + } + } + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private void drawWorld(Entity cameraEntity, int width, int height) { + Entity oldCameraEntity = client.cameraEntity; + client.cameraEntity = cameraEntity; + + Window window = client.getWindow(); + + Perspective perspective = client.options.getPerspective(); + client.options.setPerspective(Perspective.FIRST_PERSON); + + int i = window.getFramebufferWidth(); + int j = window.getFramebufferHeight(); + + width = i; + height = j; + + client.getFramebuffer().endWrite(); + + if (framebuffer == null) { + framebuffer = new SimpleFramebuffer(width, height, true, MinecraftClient.IS_SYSTEM_MAC); + } + + window.setFramebufferWidth(width); + window.setFramebufferHeight(height); + + MatrixStack view = RenderSystem.getModelViewStack(); + view.push(); + view.loadIdentity(); + RenderSystem.applyModelViewMatrix(); + Matrix4f proj = RenderSystem.getProjectionMatrix(); + Matrix3f invView = RenderSystem.getInverseViewRotationMatrix(); + + int fbo = client.getFramebuffer().fbo; + client.getFramebuffer().fbo = framebuffer.fbo; + + framebuffer.setClearColor(0, 0, 0, 0); + framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC); + + RenderSystem.clear(GlConst.GL_DEPTH_BUFFER_BIT | GlConst.GL_COLOR_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC); + framebuffer.beginWrite(true); + BackgroundRenderer.clearFog(); + + Camera camera = client.gameRenderer.getCamera(); + + ObjectArrayList chunkInfos = ((WorldRendererDuck)client.worldRenderer).unicopia_getChunkInfos(); + List backup = new ArrayList<>(chunkInfos); + + client.gameRenderer.setRenderHand(false); + MatrixStack matrices = new MatrixStack(); + + matrices.scale((float)width / height, 1, 1); + + client.gameRenderer.renderWorld(1, 0, matrices); + if (recursionCount <= 1) { + client.gameRenderer.setRenderHand(true); + } + framebuffer.endWrite(); + + chunkInfos.clear(); + chunkInfos.addAll((List)backup); + + view.pop(); + RenderSystem.applyModelViewMatrix(); + + client.getFramebuffer().fbo = fbo; + window.setFramebufferWidth(i); + window.setFramebufferHeight(j); + + client.options.setPerspective(perspective); + client.cameraEntity = oldCameraEntity; + + RenderSystem.setProjectionMatrix(proj, VertexSorter.BY_Z); + RenderSystem.setInverseViewRotationMatrix(invView); + + if (recursionCount <= 1) { + camera.update(client.world, + client.getCameraEntity() == null ? client.player : client.getCameraEntity(), + perspective.isFirstPerson(), + perspective.isFrontView(), + 1 + ); + } + + client.getFramebuffer().beginWrite(true); + } + + @Override + public void close() { + closed = true; + if (framebuffer != null) { + SimpleFramebuffer fb = framebuffer; + framebuffer = null; + fb.delete(); + } + } + } + + public interface WorldRendererDuck { + ObjectArrayList unicopia_getChunkInfos(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java new file mode 100644 index 00000000..f210faea --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java @@ -0,0 +1,14 @@ +package com.minelittlepony.unicopia.mixin.client; + +import java.util.Queue; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.gen.Accessor; + +import net.minecraft.client.MinecraftClient; + +@Mixin(MinecraftClient.class) +public interface MixinMinecraftClient { + @Accessor("renderTaskQueue") + Queue getRenderTaskQueue(); +} diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java index edcc852d..bf5dc7b5 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java @@ -15,7 +15,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import com.minelittlepony.unicopia.client.ClientBlockDestructionManager; import com.minelittlepony.unicopia.client.UnicopiaClient; +import com.minelittlepony.unicopia.client.render.spell.PortalSpellRenderer; + import it.unimi.dsi.fastutil.longs.Long2ObjectMap; +import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.render.BlockBreakingInfo; import net.minecraft.client.render.Camera; import net.minecraft.client.render.WorldRenderer; @@ -25,7 +28,7 @@ import net.minecraft.resource.SynchronousResourceReloader; import net.minecraft.util.math.RotationAxis; @Mixin(value = WorldRenderer.class, priority = 1001) -abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source { +abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source, PortalSpellRenderer.WorldRendererDuck { private final ClientBlockDestructionManager destructions = new ClientBlockDestructionManager(); @@ -41,6 +44,10 @@ abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCl return destructions; } + @Override + @Accessor("chunkInfos") + public abstract ObjectArrayList unicopia_getChunkInfos(); + @Override @Accessor("ticks") public abstract int getTicks(); diff --git a/src/main/resources/unicopia.mixin.json b/src/main/resources/unicopia.mixin.json index d8654fc3..dc5da585 100644 --- a/src/main/resources/unicopia.mixin.json +++ b/src/main/resources/unicopia.mixin.json @@ -73,6 +73,7 @@ "client.MixinItemStack", "client.MixinKeyboardInput", "client.MixinLivingEntityRenderer", + "client.MixinMinecraftClient", "client.MixinModelPart", "client.MixinMouse", "client.MixinPlayerEntityRenderer", From 5356c5c7ec4ef4c9b62f8b0c25ce28331fd6a360 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 24 Jan 2024 22:06:40 +0000 Subject: [PATCH 067/104] Disable fancy portal rendering since they don't work quite right --- .../magic/spell/effect/PortalSpell.java | 2 + .../render/spell/PortalSpellRenderer.java | 95 ++++++++++++------- 2 files changed, 62 insertions(+), 35 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index 255be78e..dfdd204f 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -248,6 +248,8 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme teleportationTarget.fromNBT(compound.getCompound("teleportationTarget")); pitch = compound.getFloat("pitch"); yaw = compound.getFloat("yaw"); + targetPortalPitch = compound.getFloat("targetPortalPitch"); + targetPortalYaw = compound.getFloat("targetPortalYaw"); particleArea = PARTICLE_AREA.rotate( pitch * MathHelper.RADIANS_PER_DEGREE, (180 - yaw) * MathHelper.RADIANS_PER_DEGREE diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index aef30589..ebdf5fc3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -23,6 +23,7 @@ import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; import com.mojang.blaze3d.platform.GlConst; +import com.mojang.blaze3d.platform.GlStateManager; import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.systems.VertexSorter; @@ -48,6 +49,8 @@ import net.minecraft.util.math.RotationAxis; import net.minecraft.util.math.Vec3d; public class PortalSpellRenderer extends SpellRenderer { + static boolean FANCY_PORTAlS = false; + private static final LoadingCache FRAME_BUFFERS = CacheBuilder.newBuilder() .expireAfterAccess(10, TimeUnit.SECONDS) .removalListener(n -> n.getValue().close()) @@ -79,6 +82,20 @@ public class PortalSpellRenderer extends SpellRenderer { SphereModel.DISK.render(matrices, buff, light, 0, 2F, red, green, blue, 1); matrices.pop(); + if (!FANCY_PORTAlS) { + matrices.push(); + matrices.translate(0, -0.02, 0); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); + SphereModel.DISK.render(matrices, buff, light, 0, 2F, red, green, blue, 1); + matrices.pop(); + return; + } + + // Fancy portal rendering is disabled for now + // Need to fix: + // 1. Transparent parts of the sky (because the game sets the clear to (0,0,0,0) + // 2. Chunk flickering at long distances between portals + if (caster.asEntity().distanceTo(client.cameraEntity) > 50) { return; // don't bother rendering if too far away } @@ -87,12 +104,12 @@ public class PortalSpellRenderer extends SpellRenderer { try { float grown = Math.min(caster.asEntity().age, 20) / 20F; matrices.push(); - matrices.translate(0, 0.01, 0); + matrices.translate(0, -0.01, 0); matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-spell.getYaw())); matrices.scale(grown, 1, grown); PortalFrameBuffer buffer = FRAME_BUFFERS.get(target.uuid()); buffer.build(spell, caster, target); - buffer.draw(matrices); + buffer.draw(matrices, vertices); matrices.pop(); } catch (ExecutionException e) { } }); @@ -101,6 +118,8 @@ public class PortalSpellRenderer extends SpellRenderer { static class PortalFrameBuffer implements AutoCloseable { @Nullable private SimpleFramebuffer framebuffer; + @Nullable + private SimpleFramebuffer backgroundBuffer; private boolean closed; private final MinecraftClient client = MinecraftClient.getInstance(); @@ -109,31 +128,32 @@ public class PortalSpellRenderer extends SpellRenderer { private static int recursionCount; - public void draw(MatrixStack matrices) { - if (closed || framebuffer == null) { - return; + public void draw(MatrixStack matrices, VertexConsumerProvider vertices) { + Vec3d skyColor = client.world.getSkyColor(client.gameRenderer.getCamera().getPos(), client.getTickDelta()); + BackgroundRenderer.setFogBlack(); + SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicShield()), 0, 0, 2, (float)skyColor.x, (float)skyColor.y, (float)skyColor.z, 1); + matrices.translate(0, -0.001, 0); + + if (!(closed || framebuffer == null)) { + RenderSystem.assertOnRenderThread(); + GlStateManager._colorMask(true, true, true, false); + GlStateManager._enableDepthTest(); + GlStateManager._disableCull(); + Tessellator tessellator = RenderSystem.renderThreadTesselator(); + BufferBuilder buffer = tessellator.getBuffer(); + float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; + float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; + RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); + RenderSystem._setShaderTexture(0, framebuffer.getColorAttachment()); + buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); + TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); + tessellator.draw(); + + client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); + GlStateManager._enableCull(); + GlStateManager._colorMask(true, true, true, true); + GlStateManager._depthMask(true); } - float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; - float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; - - Tessellator tessellator = RenderSystem.renderThreadTesselator(); - BufferBuilder buffer = tessellator.getBuffer(); - - RenderSystem.enableDepthTest(); - RenderSystem.disableCull(); - RenderSystem.setShaderTexture(0, framebuffer.getColorAttachment()); - RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); - - Matrix4f textureMatrix = matrices.peek().getPositionMatrix(); - - RenderSystem.setTextureMatrix(textureMatrix); - - buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); - TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); - tessellator.draw(); - client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); - RenderSystem.enableCull(); - RenderSystem.resetTextureMatrix(); } public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { @@ -177,15 +197,15 @@ public class PortalSpellRenderer extends SpellRenderer { int originalFov = fov.getValue(); fov.setValue(110); - Vec3d offset = new Vec3d(0, -1.2, -0.2); - float yaw = spell.getYawDifference();// spell.getYawDifference(); + Vec3d offset = new Vec3d(0, 1.8, 0); + float yaw = spell.getYawDifference(); offset = offset.rotateY(yaw * MathHelper.RADIANS_PER_DEGREE); Entity cameraEntity = UEntities.CAST_SPELL.create(caster.asWorld()); cameraEntity.setPosition(target.pos().add(offset)); cameraEntity.setPitch(spell.getTargetPitch()); - cameraEntity.setYaw(yaw); + cameraEntity.setYaw(spell.getTargetYaw() + 180); drawWorld(cameraEntity, 400, 400); @@ -216,6 +236,8 @@ public class PortalSpellRenderer extends SpellRenderer { if (framebuffer == null) { framebuffer = new SimpleFramebuffer(width, height, true, MinecraftClient.IS_SYSTEM_MAC); + framebuffer.setClearColor(0, 0, 0, 0); + framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC); } window.setFramebufferWidth(width); @@ -231,12 +253,10 @@ public class PortalSpellRenderer extends SpellRenderer { int fbo = client.getFramebuffer().fbo; client.getFramebuffer().fbo = framebuffer.fbo; - framebuffer.setClearColor(0, 0, 0, 0); - framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC); - RenderSystem.clear(GlConst.GL_DEPTH_BUFFER_BIT | GlConst.GL_COLOR_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC); framebuffer.beginWrite(true); BackgroundRenderer.clearFog(); + RenderSystem.enableCull(); Camera camera = client.gameRenderer.getCamera(); @@ -254,13 +274,15 @@ public class PortalSpellRenderer extends SpellRenderer { } framebuffer.endWrite(); + client.getFramebuffer().fbo = fbo; + client.getFramebuffer().beginWrite(true); + chunkInfos.clear(); chunkInfos.addAll((List)backup); view.pop(); RenderSystem.applyModelViewMatrix(); - client.getFramebuffer().fbo = fbo; window.setFramebufferWidth(i); window.setFramebufferHeight(j); @@ -278,8 +300,6 @@ public class PortalSpellRenderer extends SpellRenderer { 1 ); } - - client.getFramebuffer().beginWrite(true); } @Override @@ -290,6 +310,11 @@ public class PortalSpellRenderer extends SpellRenderer { framebuffer = null; fb.delete(); } + if (backgroundBuffer != null) { + SimpleFramebuffer fb = backgroundBuffer; + backgroundBuffer = null; + fb.delete(); + } } } From a19637a8e46670a70a433f86c67a26e5cb2e9218 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 25 Jan 2024 19:09:57 +0000 Subject: [PATCH 068/104] Allow spells to animate post-removal --- .../ability/UnicornDispellAbility.java | 7 +++- .../magic/spell/AbstractDelegatingSpell.java | 17 ++++++++- .../ability/magic/spell/PlaceableSpell.java | 37 +++++++++++++++++++ .../unicopia/ability/magic/spell/Spell.java | 11 +++++- .../magic/spell/effect/AbstractSpell.java | 15 +++++++- .../render/spell/PlacedSpellRenderer.java | 2 +- .../unicopia/entity/mob/CastSpellEntity.java | 4 ++ .../unicopia/network/datasync/EffectSync.java | 8 +++- 8 files changed, 95 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/UnicornDispellAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/UnicornDispellAbility.java index 99dda711..d965f9da 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/UnicornDispellAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/UnicornDispellAbility.java @@ -7,6 +7,7 @@ import com.minelittlepony.unicopia.InteractionManager; import com.minelittlepony.unicopia.Race; import com.minelittlepony.unicopia.ability.data.Pos; import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.SpellContainer.Operation; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.client.render.PlayerPoser.Animation; import com.minelittlepony.unicopia.entity.player.Pony; @@ -92,7 +93,11 @@ public class UnicornDispellAbility implements Ability { public boolean apply(Pony player, Pos data) { player.setAnimation(Animation.WOLOLO, Animation.Recipient.ANYONE); Caster.stream(VecHelper.findInRange(player.asEntity(), player.asWorld(), data.vec(), 3, EquinePredicates.IS_PLACED_SPELL).stream()).forEach(target -> { - target.getSpellSlot().clear(); + target.getSpellSlot().forEach(spell -> { + spell.setDead(); + spell.tickDying(target); + return Operation.ofBoolean(!spell.isDead()); + }, true); }); return true; } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/AbstractDelegatingSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/AbstractDelegatingSpell.java index f6219d62..68a006ed 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/AbstractDelegatingSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/AbstractDelegatingSpell.java @@ -69,11 +69,20 @@ public abstract class AbstractDelegatingSpell implements Spell, getDelegates().forEach(Spell::setDead); } + @Override + public void tickDying(Caster caster) { + } + @Override public boolean isDead() { return getDelegates().isEmpty() || getDelegates().stream().allMatch(Spell::isDead); } + @Override + public boolean isDying() { + return false; + } + @Override public boolean isDirty() { return dirty || getDelegates().stream().anyMatch(Spell::isDirty); @@ -110,7 +119,13 @@ public abstract class AbstractDelegatingSpell implements Spell, @Override public boolean tick(Caster source, Situation situation) { - return execute(getDelegates().stream(), a -> a.tick(source, situation)); + return execute(getDelegates().stream(), a -> { + if (a.isDying()) { + a.tickDying(source); + return !a.isDead(); + } + return a.tick(source, situation); + }); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java index bba345b4..ed03506d 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/PlaceableSpell.java @@ -59,6 +59,10 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS private int prevAge; private int age; + private boolean dead; + private int prevDeathTicks; + private int deathTicks; + private Optional position = Optional.empty(); public PlaceableSpell(CustomisedSpellType type) { @@ -74,6 +78,29 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS return MathHelper.lerp(tickDelta, prevAge, age); } + public float getScale(float tickDelta) { + float add = MathHelper.clamp(getAge(tickDelta) / 25F, 0, 1); + float subtract = dead ? 1 - (MathHelper.lerp(tickDelta, prevDeathTicks, deathTicks) / 20F) : 0; + return MathHelper.clamp(add - subtract, 0, 1); + } + + @Override + public boolean isDying() { + return dead && deathTicks > 0; + } + + @Override + public void setDead() { + super.setDead(); + dead = true; + deathTicks = 20; + } + + @Override + public boolean isDead() { + return dead && deathTicks <= 0; + } + @Override public Collection getDelegates() { return List.of(spell); @@ -119,6 +146,12 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS return !isDead(); } + @Override + public void tickDying(Caster caster) { + prevDeathTicks = deathTicks; + deathTicks--; + } + private void checkDetachment(Caster source, EntityValues target) { if (getWorld(source).map(Ether::get).map(ether -> ether.get(getType(), target, placedSpellId)).isEmpty()) { setDead(); @@ -198,6 +231,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Override public void toNBT(NbtCompound compound) { super.toNBT(compound); + compound.putBoolean("dead", dead); + compound.putInt("deathTicks", deathTicks); compound.putInt("age", age); compound.putFloat("pitch", pitch); compound.putFloat("yaw", yaw); @@ -217,6 +252,8 @@ public class PlaceableSpell extends AbstractDelegatingSpell implements OrientedS @Override public void fromNBT(NbtCompound compound) { super.fromNBT(compound); + dead = compound.getBoolean("dead"); + deathTicks = compound.getInt("deathTicks"); age = compound.getInt("age"); pitch = compound.getFloat("pitch"); yaw = compound.getFloat("yaw"); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/Spell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/Spell.java index d6bb1ccf..55a5f3bf 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/Spell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/Spell.java @@ -61,6 +61,8 @@ public interface Spell extends NbtSerialisable, Affine { */ boolean isDead(); + boolean isDying(); + /** * Returns true if this effect has changes that need to be sent to the client. */ @@ -68,6 +70,7 @@ public interface Spell extends NbtSerialisable, Affine { /** * Applies this spell to the supplied caster. + * @param caster The caster to apply the spell to */ default boolean apply(Caster caster) { caster.getSpellSlot().put(this); @@ -76,7 +79,7 @@ public interface Spell extends NbtSerialisable, Affine { /** * Gets the default form of this spell used to apply to a caster. - * @param caster + * @param caster The caster currently fueling this spell */ default Spell prepareForCast(Caster caster, CastingMethod method) { return this; @@ -89,6 +92,12 @@ public interface Spell extends NbtSerialisable, Affine { */ boolean tick(Caster caster, Situation situation); + /** + * Called on spells that are actively dying to update any post-death animations before removal. + * @param caster The caster currently fueling this spell + */ + void tickDying(Caster caster); + /** * Marks this effect as dirty. */ diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AbstractSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AbstractSpell.java index a8c1b706..8b64d9c3 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AbstractSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/AbstractSpell.java @@ -12,6 +12,7 @@ import net.minecraft.nbt.NbtCompound; public abstract class AbstractSpell implements Spell { private boolean dead; + private boolean dying; private boolean dirty; private boolean hidden; private boolean destroyed; @@ -45,7 +46,7 @@ public abstract class AbstractSpell implements Spell { @Override public final void setDead() { - dead = true; + dying = true; setDirty(); } @@ -54,6 +55,11 @@ public abstract class AbstractSpell implements Spell { return dead; } + @Override + public final boolean isDying() { + return dying; + } + @Override public final boolean isDirty() { return dirty; @@ -82,6 +88,11 @@ public abstract class AbstractSpell implements Spell { protected void onDestroyed(Caster caster) { } + @Override + public void tickDying(Caster caster) { + dead = true; + } + @Override public final void destroy(Caster caster) { if (destroyed) { @@ -94,6 +105,7 @@ public abstract class AbstractSpell implements Spell { @Override public void toNBT(NbtCompound compound) { + compound.putBoolean("dying", dying); compound.putBoolean("dead", dead); compound.putBoolean("hidden", hidden); compound.putUuid("uuid", uuid); @@ -106,6 +118,7 @@ public abstract class AbstractSpell implements Spell { if (compound.contains("uuid")) { uuid = compound.getUuid("uuid"); } + dying = compound.getBoolean("dying"); dead = compound.getBoolean("dead"); hidden = compound.getBoolean("hidden"); if (compound.contains("traits")) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 698375c9..7c4d09c3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -57,7 +57,7 @@ public class PlacedSpellRenderer extends SpellRenderer { matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - spell.yaw)); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90)); - float scale = (spell.getAge(tickDelta) / 25F) * 3; + float scale = spell.getScale(tickDelta) * 3; matrices.scale(scale, scale, scale); float angle = (animationProgress / 9F) % 360; diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java index 16a4100b..9677a123 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java @@ -72,6 +72,10 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster getMasterReference() { return owner; diff --git a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java index 2a4568e9..b2cad93c 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java +++ b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java @@ -44,7 +44,13 @@ public class EffectSync implements SpellContainer, NbtSerialisable { } public boolean tick(Situation situation) { - return tick(spell -> Operation.ofBoolean(spell.tick(owner, situation))); + return tick(spell -> { + if (spell.isDying()) { + spell.tickDying(owner); + return Operation.ofBoolean(!spell.isDead()); + } + return Operation.ofBoolean(spell.tick(owner, situation)); + }); } public boolean tick(Function tickAction) { From 1a17ff7dd0731e6dcdcc30b10e0eb9d7f79e6b41 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 25 Jan 2024 22:56:22 +0000 Subject: [PATCH 069/104] Fix portal rendering issues :D --- .../render/spell/PortalFrameBuffer.java | 287 +++++++++++++++++ .../render/spell/PortalSpellRenderer.java | 302 ++---------------- .../mixin/client/MixinMinecraftClient.java | 6 + 3 files changed, 326 insertions(+), 269 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java new file mode 100644 index 00000000..dffa297b --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java @@ -0,0 +1,287 @@ +package com.minelittlepony.unicopia.client.render.spell; + +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +import org.jetbrains.annotations.Nullable; +import org.joml.Matrix3f; +import org.joml.Matrix4f; + +import com.google.common.cache.CacheBuilder; +import com.google.common.cache.CacheLoader; +import com.google.common.cache.LoadingCache; +import com.minelittlepony.unicopia.ability.magic.Caster; +import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; +import com.minelittlepony.unicopia.client.render.RenderLayers; +import com.minelittlepony.unicopia.client.render.model.SphereModel; +import com.minelittlepony.unicopia.client.render.model.TexturedSphereModel; +import com.minelittlepony.unicopia.entity.EntityReference; +import com.minelittlepony.unicopia.entity.mob.UEntities; +import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; +import com.mojang.blaze3d.platform.GlConst; +import com.mojang.blaze3d.platform.GlStateManager; +import com.mojang.blaze3d.systems.RenderSystem; +import com.mojang.blaze3d.systems.VertexSorter; + +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.gl.SimpleFramebuffer; +import net.minecraft.client.option.Perspective; +import net.minecraft.client.render.BackgroundRenderer; +import net.minecraft.client.render.BufferBuilder; +import net.minecraft.client.render.Camera; +import net.minecraft.client.render.Frustum; +import net.minecraft.client.render.GameRenderer; +import net.minecraft.client.render.Tessellator; +import net.minecraft.client.render.VertexConsumerProvider; +import net.minecraft.client.render.VertexFormat; +import net.minecraft.client.render.VertexFormats; +import net.minecraft.client.render.WorldRenderer; +import net.minecraft.client.util.Window; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.client.world.ClientWorld; +import net.minecraft.entity.Entity; +import net.minecraft.screen.PlayerScreenHandler; +import net.minecraft.util.math.Vec3d; + +class PortalFrameBuffer implements AutoCloseable { + private static final LoadingCache CACHE = CacheBuilder.newBuilder() + .expireAfterAccess(10, TimeUnit.SECONDS) + .removalListener(n -> n.getValue().close()) + .build(CacheLoader.from(PortalFrameBuffer::new)); + + private static int recursionCount; + + @Nullable + public static PortalFrameBuffer unpool(UUID id) { + try { + return CACHE.get(id); + } catch (ExecutionException e) { + return null; + } + } + + @Nullable + private SimpleFramebuffer framebuffer; + @Nullable + private SimpleFramebuffer backgroundBuffer; + @Nullable + private WorldRenderer renderer; + @Nullable + private ClientWorld world; + + private boolean closed; + + private final MinecraftClient client = MinecraftClient.getInstance(); + + private boolean pendingDraw; + + private final UUID id; + + @Nullable + private Frustum frustum; + + PortalFrameBuffer(UUID id) { + this.id = id; + } + + public void draw(MatrixStack matrices, VertexConsumerProvider vertices) { + matrices.translate(0, -0.001, 0); + + if (!(closed || framebuffer == null)) { + RenderSystem.assertOnRenderThread(); + GlStateManager._colorMask(true, true, true, false); + GlStateManager._enableDepthTest(); + GlStateManager._disableCull(); + Tessellator tessellator = RenderSystem.renderThreadTesselator(); + BufferBuilder buffer = tessellator.getBuffer(); + float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; + float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; + RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); + RenderSystem._setShaderTexture(0, framebuffer.getColorAttachment()); + buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); + TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); + tessellator.draw(); + + client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); + GlStateManager._enableCull(); + GlStateManager._colorMask(true, true, true, true); + GlStateManager._depthMask(true); + } else { + Vec3d skyColor = client.world.getSkyColor(client.gameRenderer.getCamera().getPos(), client.getTickDelta()); + SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicShield()), 0, 0, 2, (float)skyColor.x, (float)skyColor.y, (float)skyColor.z, 1); + } + } + + public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { + + if (framebuffer != null && System.currentTimeMillis() % 100 != 0) { + return; + } + + if (pendingDraw && recursionCount > 0) { + innerBuild(spell, caster, target); + return; + } + + if (pendingDraw) { + return; + } + pendingDraw = true; + if (recursionCount > 0) { + innerBuild(spell, caster, target); + } else { + ((MixinMinecraftClient)client).getRenderTaskQueue().add(() -> innerBuild(spell, caster, target)); + } + } + + private void innerBuild(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { + synchronized (client) { + pendingDraw = false; + + if (recursionCount > 2) { + return; + } + recursionCount++; + + try { + if (closed || client.interactionManager == null) { + close(); + return; + } + + var fov = client.options.getFov(); + int originalFov = fov.getValue(); + fov.setValue(110); + + Entity cameraEntity = UEntities.CAST_SPELL.create(caster.asWorld()); + cameraEntity.setPosition(target.pos()); + cameraEntity.setPitch(spell.getTargetPitch()); + cameraEntity.setYaw(spell.getTargetYaw() + 180); + + drawWorld(cameraEntity, 400, 400); + + fov.setValue(originalFov); + } finally { + recursionCount--; + } + } + } + + private void drawWorld(Entity cameraEntity, int width, int height) { + Entity oldCameraEntity = client.cameraEntity; + Window window = client.getWindow(); + + int i = window.getFramebufferWidth(); + int j = window.getFramebufferHeight(); + + width = i; + height = j; + + Perspective perspective = client.options.getPerspective(); + MatrixStack view = RenderSystem.getModelViewStack(); + + Matrix4f proj = RenderSystem.getProjectionMatrix(); + Matrix3f invView = RenderSystem.getInverseViewRotationMatrix(); + + int fbo = client.getFramebuffer().fbo; + Camera camera = client.gameRenderer.getCamera(); + + WorldRenderer globalRenderer = client.worldRenderer; + try { + client.cameraEntity = cameraEntity; + client.getFramebuffer().endWrite(); + + if (framebuffer == null) { + framebuffer = new SimpleFramebuffer(width, height, true, MinecraftClient.IS_SYSTEM_MAC); + framebuffer.setClearColor(0, 0, 0, 0); + framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC); + } + + view.push(); + view.loadIdentity(); + RenderSystem.applyModelViewMatrix(); + + window.setFramebufferWidth(width); + window.setFramebufferHeight(height); + client.getFramebuffer().fbo = framebuffer.fbo; + + client.options.setPerspective(Perspective.FIRST_PERSON); + + RenderSystem.clear(GlConst.GL_DEPTH_BUFFER_BIT | GlConst.GL_COLOR_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC); + framebuffer.beginWrite(true); + BackgroundRenderer.clearFog(); + RenderSystem.enableCull(); + + if (renderer == null) { + renderer = new WorldRenderer(client, client.getEntityRenderDispatcher(), client.getBlockEntityRenderDispatcher(), client.getBufferBuilders()); + } + if (client.world != world) { + world = client.world; + renderer.setWorld(client.world); + } + ((MixinMinecraftClient)client).setWorldRenderer(renderer); + + renderer.scheduleBlockRenders((int)cameraEntity.getX() / 16, (int)cameraEntity.getY() / 16, (int)cameraEntity.getZ() / 16); + + client.gameRenderer.setRenderHand(false); + MatrixStack matrices = new MatrixStack(); + + matrices.scale((float)width / height, 1, 1); + + client.gameRenderer.renderWorld(1, 0, matrices); + + // Strip transparency + RenderSystem.colorMask(false, false, false, true); + RenderSystem.clearColor(1, 1, 1, 1); + RenderSystem.clear(GlConst.GL_COLOR_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC); + RenderSystem.colorMask(true, true, true, true); + + framebuffer.endWrite(); + } finally { + ((MixinMinecraftClient)client).setWorldRenderer(globalRenderer); + + client.getFramebuffer().fbo = fbo; + client.getFramebuffer().beginWrite(true); + + view.pop(); + RenderSystem.applyModelViewMatrix(); + RenderSystem.setProjectionMatrix(proj, VertexSorter.BY_Z); + RenderSystem.setInverseViewRotationMatrix(invView); + + window.setFramebufferWidth(i); + window.setFramebufferHeight(j); + + client.options.setPerspective(perspective); + client.cameraEntity = oldCameraEntity; + + if (recursionCount <= 1) { + client.gameRenderer.setRenderHand(true); + camera.update(client.world, + client.getCameraEntity() == null ? client.player : client.getCameraEntity(), + perspective.isFirstPerson(), + perspective.isFrontView(), + 1 + ); + } + } + } + + @Override + public void close() { + closed = true; + if (framebuffer != null) { + SimpleFramebuffer fb = framebuffer; + framebuffer = null; + fb.delete(); + } + if (backgroundBuffer != null) { + SimpleFramebuffer fb = backgroundBuffer; + backgroundBuffer = null; + fb.delete(); + } + if (renderer != null) { + renderer.close(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index ebdf5fc3..4324ef30 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -1,60 +1,21 @@ package com.minelittlepony.unicopia.client.render.spell; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeUnit; - -import org.jetbrains.annotations.Nullable; -import org.joml.Matrix3f; -import org.joml.Matrix4f; - -import com.google.common.cache.CacheBuilder; -import com.google.common.cache.CacheLoader; -import com.google.common.cache.LoadingCache; -import com.minelittlepony.common.util.Color; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; -import com.minelittlepony.unicopia.client.render.model.TexturedSphereModel; import com.minelittlepony.unicopia.entity.EntityReference; -import com.minelittlepony.unicopia.entity.mob.UEntities; -import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; -import com.mojang.blaze3d.platform.GlConst; -import com.mojang.blaze3d.platform.GlStateManager; -import com.mojang.blaze3d.systems.RenderSystem; -import com.mojang.blaze3d.systems.VertexSorter; import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.gl.SimpleFramebuffer; -import net.minecraft.client.option.Perspective; -import net.minecraft.client.render.BackgroundRenderer; -import net.minecraft.client.render.BufferBuilder; -import net.minecraft.client.render.Camera; -import net.minecraft.client.render.GameRenderer; -import net.minecraft.client.render.Tessellator; +import net.minecraft.client.render.Frustum; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; -import net.minecraft.client.render.VertexFormat; -import net.minecraft.client.render.VertexFormats; -import net.minecraft.client.util.Window; import net.minecraft.client.util.math.MatrixStack; -import net.minecraft.entity.Entity; -import net.minecraft.screen.PlayerScreenHandler; -import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RotationAxis; -import net.minecraft.util.math.Vec3d; public class PortalSpellRenderer extends SpellRenderer { - static boolean FANCY_PORTAlS = false; - - private static final LoadingCache FRAME_BUFFERS = CacheBuilder.newBuilder() - .expireAfterAccess(10, TimeUnit.SECONDS) - .removalListener(n -> n.getValue().close()) - .build(CacheLoader.from(uuid -> new PortalFrameBuffer())); + static boolean FANCY_PORTAlS = true; @Override public boolean shouldRenderEffectPass(int pass) { @@ -62,31 +23,21 @@ public class PortalSpellRenderer extends SpellRenderer { } @Override - public void render(MatrixStack matrices, VertexConsumerProvider vertices, PortalSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { - super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); - - if (!spell.isLinked()) { - return; - } - - int color = spell.getType().getColor(); - - float red = Color.r(color); - float green = Color.g(color); - float blue = Color.b(color); + public void render(MatrixStack matrices, VertexConsumerProvider vertices, PortalSpell spell, Caster caster, int light, float strength, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { + super.render(matrices, vertices, spell, caster, light, strength, limbDistance, tickDelta, animationProgress, headYaw, headPitch); VertexConsumer buff = vertices.getBuffer(RenderLayers.getEndGateway()); matrices.push(); matrices.translate(0, 0.02, 0); - SphereModel.DISK.render(matrices, buff, light, 0, 2F, red, green, blue, 1); + SphereModel.DISK.render(matrices, buff, light, 0, 2F * strength, 1, 1, 1, 1); matrices.pop(); - if (!FANCY_PORTAlS) { + if (!FANCY_PORTAlS || !spell.isLinked()) { matrices.push(); matrices.translate(0, -0.02, 0); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); - SphereModel.DISK.render(matrices, buff, light, 0, 2F, red, green, blue, 1); + SphereModel.DISK.render(matrices, buff, light, 0, 2F * strength, 1, 1, 1, 1); matrices.pop(); return; } @@ -94,231 +45,44 @@ public class PortalSpellRenderer extends SpellRenderer { // Fancy portal rendering is disabled for now // Need to fix: // 1. Transparent parts of the sky (because the game sets the clear to (0,0,0,0) - // 2. Chunk flickering at long distances between portals if (caster.asEntity().distanceTo(client.cameraEntity) > 50) { return; // don't bother rendering if too far away } + matrices.push(); + matrices.scale(strength, strength, strength); + spell.getTarget().ifPresent(target -> { - try { - float grown = Math.min(caster.asEntity().age, 20) / 20F; - matrices.push(); - matrices.translate(0, -0.01, 0); - matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-spell.getYaw())); - matrices.scale(grown, 1, grown); - PortalFrameBuffer buffer = FRAME_BUFFERS.get(target.uuid()); - buffer.build(spell, caster, target); + float grown = Math.min(caster.asEntity().age, 20) / 20F; + matrices.push(); + matrices.translate(0, -0.01, 0); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-spell.getYaw())); + matrices.scale(grown, 1, grown); + boolean inRange = MinecraftClient.getInstance().player.getPos().distanceTo(target.pos()) < MinecraftClient.getInstance().gameRenderer.getViewDistance(); + + PortalFrameBuffer buffer = PortalFrameBuffer.unpool(target.uuid()); + if (buffer != null) { + if (inRange) { + buffer.build(spell, caster, target); + } buffer.draw(matrices, vertices); - matrices.pop(); - } catch (ExecutionException e) { } + } + if (!inRange) { + buffer = PortalFrameBuffer.unpool(caster.asEntity().getUuid()); + if (buffer != null) { + buffer.build(spell, caster, new EntityReference.EntityValues<>(caster.asEntity())); + } + } + matrices.pop(); }); - } - static class PortalFrameBuffer implements AutoCloseable { - @Nullable - private SimpleFramebuffer framebuffer; - @Nullable - private SimpleFramebuffer backgroundBuffer; - private boolean closed; - - private final MinecraftClient client = MinecraftClient.getInstance(); - - private boolean pendingDraw; - - private static int recursionCount; - - public void draw(MatrixStack matrices, VertexConsumerProvider vertices) { - Vec3d skyColor = client.world.getSkyColor(client.gameRenderer.getCamera().getPos(), client.getTickDelta()); - BackgroundRenderer.setFogBlack(); - SphereModel.DISK.render(matrices, vertices.getBuffer(RenderLayers.getMagicShield()), 0, 0, 2, (float)skyColor.x, (float)skyColor.y, (float)skyColor.z, 1); - matrices.translate(0, -0.001, 0); - - if (!(closed || framebuffer == null)) { - RenderSystem.assertOnRenderThread(); - GlStateManager._colorMask(true, true, true, false); - GlStateManager._enableDepthTest(); - GlStateManager._disableCull(); - Tessellator tessellator = RenderSystem.renderThreadTesselator(); - BufferBuilder buffer = tessellator.getBuffer(); - float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; - float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; - RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); - RenderSystem._setShaderTexture(0, framebuffer.getColorAttachment()); - buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); - TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); - tessellator.draw(); - - client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); - GlStateManager._enableCull(); - GlStateManager._colorMask(true, true, true, true); - GlStateManager._depthMask(true); - } - } - - public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { - - if (System.currentTimeMillis() % 100 < 50) { - return; - } - - if (pendingDraw && recursionCount > 0) { - innerBuild(spell, caster, target); - return; - } - - if (pendingDraw) { - return; - } - pendingDraw = true; - if (recursionCount > 0) { - innerBuild(spell, caster, target); - } else { - ((MixinMinecraftClient)client).getRenderTaskQueue().add(() -> innerBuild(spell, caster, target)); - } - } - - private void innerBuild(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { - synchronized (client) { - pendingDraw = false; - - if (recursionCount > 2) { - return; - } - recursionCount++; - - try { - if (closed || client.interactionManager == null) { - close(); - return; - } - - var fov = client.options.getFov(); - int originalFov = fov.getValue(); - fov.setValue(110); - - Vec3d offset = new Vec3d(0, 1.8, 0); - float yaw = spell.getYawDifference(); - - offset = offset.rotateY(yaw * MathHelper.RADIANS_PER_DEGREE); - - Entity cameraEntity = UEntities.CAST_SPELL.create(caster.asWorld()); - cameraEntity.setPosition(target.pos().add(offset)); - cameraEntity.setPitch(spell.getTargetPitch()); - cameraEntity.setYaw(spell.getTargetYaw() + 180); - - drawWorld(cameraEntity, 400, 400); - - fov.setValue(originalFov); - } finally { - recursionCount--; - } - } - } - - @SuppressWarnings({ "rawtypes", "unchecked" }) - private void drawWorld(Entity cameraEntity, int width, int height) { - Entity oldCameraEntity = client.cameraEntity; - client.cameraEntity = cameraEntity; - - Window window = client.getWindow(); - - Perspective perspective = client.options.getPerspective(); - client.options.setPerspective(Perspective.FIRST_PERSON); - - int i = window.getFramebufferWidth(); - int j = window.getFramebufferHeight(); - - width = i; - height = j; - - client.getFramebuffer().endWrite(); - - if (framebuffer == null) { - framebuffer = new SimpleFramebuffer(width, height, true, MinecraftClient.IS_SYSTEM_MAC); - framebuffer.setClearColor(0, 0, 0, 0); - framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC); - } - - window.setFramebufferWidth(width); - window.setFramebufferHeight(height); - - MatrixStack view = RenderSystem.getModelViewStack(); - view.push(); - view.loadIdentity(); - RenderSystem.applyModelViewMatrix(); - Matrix4f proj = RenderSystem.getProjectionMatrix(); - Matrix3f invView = RenderSystem.getInverseViewRotationMatrix(); - - int fbo = client.getFramebuffer().fbo; - client.getFramebuffer().fbo = framebuffer.fbo; - - RenderSystem.clear(GlConst.GL_DEPTH_BUFFER_BIT | GlConst.GL_COLOR_BUFFER_BIT, MinecraftClient.IS_SYSTEM_MAC); - framebuffer.beginWrite(true); - BackgroundRenderer.clearFog(); - RenderSystem.enableCull(); - - Camera camera = client.gameRenderer.getCamera(); - - ObjectArrayList chunkInfos = ((WorldRendererDuck)client.worldRenderer).unicopia_getChunkInfos(); - List backup = new ArrayList<>(chunkInfos); - - client.gameRenderer.setRenderHand(false); - MatrixStack matrices = new MatrixStack(); - - matrices.scale((float)width / height, 1, 1); - - client.gameRenderer.renderWorld(1, 0, matrices); - if (recursionCount <= 1) { - client.gameRenderer.setRenderHand(true); - } - framebuffer.endWrite(); - - client.getFramebuffer().fbo = fbo; - client.getFramebuffer().beginWrite(true); - - chunkInfos.clear(); - chunkInfos.addAll((List)backup); - - view.pop(); - RenderSystem.applyModelViewMatrix(); - - window.setFramebufferWidth(i); - window.setFramebufferHeight(j); - - client.options.setPerspective(perspective); - client.cameraEntity = oldCameraEntity; - - RenderSystem.setProjectionMatrix(proj, VertexSorter.BY_Z); - RenderSystem.setInverseViewRotationMatrix(invView); - - if (recursionCount <= 1) { - camera.update(client.world, - client.getCameraEntity() == null ? client.player : client.getCameraEntity(), - perspective.isFirstPerson(), - perspective.isFrontView(), - 1 - ); - } - } - - @Override - public void close() { - closed = true; - if (framebuffer != null) { - SimpleFramebuffer fb = framebuffer; - framebuffer = null; - fb.delete(); - } - if (backgroundBuffer != null) { - SimpleFramebuffer fb = backgroundBuffer; - backgroundBuffer = null; - fb.delete(); - } - } + matrices.pop(); } public interface WorldRendererDuck { ObjectArrayList unicopia_getChunkInfos(); + + Frustum unicopia_getFrustum(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java index f210faea..848ef7d0 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinMinecraftClient.java @@ -3,12 +3,18 @@ package com.minelittlepony.unicopia.mixin.client; import java.util.Queue; import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Mutable; import org.spongepowered.asm.mixin.gen.Accessor; import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.WorldRenderer; @Mixin(MinecraftClient.class) public interface MixinMinecraftClient { @Accessor("renderTaskQueue") Queue getRenderTaskQueue(); + + @Mutable + @Accessor("worldRenderer") + void setWorldRenderer(WorldRenderer worldRenderer); } From 4c821a521cd91c86630defd120f1fd92548ad878 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 25 Jan 2024 22:57:23 +0000 Subject: [PATCH 070/104] Change cast spells to be easier to reach and change the center to be the center of the entity not its base position --- .../minelittlepony/unicopia/EntityConvertable.java | 2 +- .../ability/magic/spell/effect/PortalSpell.java | 2 +- .../client/render/spell/PlacedSpellRenderer.java | 10 +++++++--- .../unicopia/entity/mob/CastSpellEntity.java | 13 +++++++++++-- .../unicopia/entity/mob/UEntities.java | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/EntityConvertable.java b/src/main/java/com/minelittlepony/unicopia/EntityConvertable.java index d21ac152..6a0ffce7 100644 --- a/src/main/java/com/minelittlepony/unicopia/EntityConvertable.java +++ b/src/main/java/com/minelittlepony/unicopia/EntityConvertable.java @@ -25,7 +25,7 @@ public interface EntityConvertable extends WorldConvertable { * Gets the center position where this caster is located. */ default Vec3d getOriginVector() { - return asEntity().getPos(); + return asEntity().getPos().add(0, asEntity().getHeight() * 0.5F, 0); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index dfdd204f..c067300c 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -216,7 +216,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme LivingEntity caster = source.getMaster(); Vec3d targetPos = caster.getRotationVector().multiply(3).add(caster.getEyePos()); parent.setOrientation(pitch, yaw); - entity.setPos(targetPos.x, caster.getEyePos().y, targetPos.z); + entity.setPos(targetPos.x, caster.getEyePos().y - (entity.getHeight() * 0.5F), targetPos.z); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java index 7c4d09c3..fbdfce47 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PlacedSpellRenderer.java @@ -27,8 +27,6 @@ public class PlacedSpellRenderer extends SpellRenderer { @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, PlaceableSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { - - if (!(caster.asEntity() instanceof CastSpellEntity castSpell)) { return; } @@ -36,13 +34,16 @@ public class PlacedSpellRenderer extends SpellRenderer { matrices.push(); matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(-castSpell.getYaw())); + for (Spell delegate : spell.getDelegates()) { renderAmbientEffects(matrices, vertices, spell, delegate, caster, light, animationProgress, tickDelta); matrices.push(); + float height = caster.asEntity().getHeight(); + matrices.translate(0, (-spell.pitch / 90F) * height * 0.5F, 0); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(-spell.pitch)); matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - spell.yaw)); - SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertices, delegate, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); + SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertices, delegate, caster, light, spell.getScale(tickDelta), limbDistance, tickDelta, animationProgress, headYaw, headPitch); matrices.pop(); } @@ -53,6 +54,9 @@ public class PlacedSpellRenderer extends SpellRenderer { matrices.push(); matrices.translate(0, 0.001, 0); + float height = caster.asEntity().getHeight(); + matrices.translate(0, (-spell.pitch / 90F) * height * 0.5F, 0); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(-spell.pitch)); matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees(180 - spell.yaw)); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(90)); diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java index 9677a123..92b1a909 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java @@ -6,6 +6,7 @@ import com.minelittlepony.unicopia.ability.magic.Levelled; import com.minelittlepony.unicopia.ability.magic.SpellContainer; import com.minelittlepony.unicopia.ability.magic.spell.Situation; import com.minelittlepony.unicopia.ability.magic.spell.Spell; +import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; import com.minelittlepony.unicopia.entity.EntityPhysics; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.MagicImmune; @@ -13,6 +14,8 @@ import com.minelittlepony.unicopia.entity.Physics; import com.minelittlepony.unicopia.network.datasync.EffectSync; import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityDimensions; +import net.minecraft.entity.EntityPose; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.data.DataTracker; @@ -72,8 +75,9 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster spell.getScale(1)).orElse(1F)); } @Override @@ -117,6 +121,11 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster CAST_SPELL = register("cast_spell", FabricEntityTypeBuilder.create(SpawnGroup.MISC, CastSpellEntity::new) .trackRangeBlocks(200) - .dimensions(EntityDimensions.fixed(1, 1))); + .dimensions(EntityDimensions.changing(4, 4))); EntityType TWITTERMITE = register("twittermite", FabricEntityTypeBuilder.create(SpawnGroup.MISC, FairyEntity::new) .trackRangeBlocks(200) .dimensions(EntityDimensions.fixed(0.1F, 0.1F))); From 885bf6d1c48828e0dbb29e2593d285d327d50a1c Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 25 Jan 2024 22:58:02 +0000 Subject: [PATCH 071/104] Only send entities through a portal if they're facing into it --- .../ability/magic/spell/effect/PortalSpell.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index c067300c..fcac287e 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -20,7 +20,6 @@ import com.minelittlepony.unicopia.util.shape.*; import net.minecraft.block.Block; import net.minecraft.block.Blocks; -import net.minecraft.client.MinecraftClient; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.nbt.NbtCompound; @@ -28,7 +27,6 @@ import net.minecraft.network.packet.s2c.play.PositionFlag; import net.minecraft.particle.ParticleEffect; import net.minecraft.particle.ParticleTypes; import net.minecraft.server.world.ServerWorld; -import net.minecraft.text.Text; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; @@ -110,7 +108,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme .orElse(ParticleTypes.ELECTRIC_SPARK); source.spawnParticles(origin, particleArea, 5, pos -> { - source.addParticle(effect, pos, Vec3d.ZERO); + source.addParticle(ParticleTypes.ELECTRIC_SPARK, pos, Vec3d.ZERO); }); } else { getTarget().ifPresent(target -> { @@ -150,18 +148,22 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme destination.entity.getTarget().ifPresent(target -> { source.findAllEntitiesInRange(1).forEach(entity -> { - if (!entity.hasPortalCooldown() && entity.timeUntilRegen <= 0) { + if (!entity.hasPortalCooldown()) { + + float approachYaw = Math.abs(MathHelper.wrapDegrees(entity.getYaw() - this.yaw)); + if (approachYaw > 80) { + return; + } + Vec3d offset = entity.getPos().subtract(source.getOriginVector()); float yawDifference = pitch < 15 ? getYawDifference() : 0; Vec3d dest = target.pos().add(offset.rotateY(yawDifference * MathHelper.RADIANS_PER_DEGREE)).add(0, 0.1, 0); - MinecraftClient.getInstance().player.sendMessage(Text.literal(yawDifference + "")); if (entity.getWorld().isTopSolid(BlockPos.ofFloored(dest).up(), entity)) { dest = dest.add(0, 1, 0); } entity.resetPortalCooldown(); - entity.timeUntilRegen = 100; float yaw = MathHelper.wrapDegrees(entity.getYaw() + yawDifference); From bbe9eb00680897089e46fe6f690c6a83c2191598 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 25 Jan 2024 22:58:40 +0000 Subject: [PATCH 072/104] Fix shields not rendering in first person and change shields to be a semi-circle (since the rest will just clip into the ground) --- .../magic/spell/effect/ShieldSpell.java | 15 ++++++++++++- .../render/AccessoryFeatureRenderer.java | 4 ++++ .../render/spell/ShieldSpellRenderer.java | 21 ++++++++++++++++--- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java index 023da1c7..5ad19d2d 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java @@ -49,6 +49,9 @@ public class ShieldSpell extends AbstractSpell { private float rangeMultiplier; private float targetRangeMultiplier; + private int prevTicksDying; + private int ticksDying; + protected ShieldSpell(CustomisedSpellType type) { super(type); } @@ -102,6 +105,14 @@ public class ShieldSpell extends AbstractSpell { return !isDead(); } + @Override + public void tickDying(Caster caster) { + prevTicksDying = ticksDying; + if (ticksDying++ > 25) { + super.tickDying(caster); + } + } + protected void consumeManage(Caster source, long costMultiplier, float knowledge) { double cost = 2 - source.getLevel().getScaled(2); @@ -115,7 +126,9 @@ public class ShieldSpell extends AbstractSpell { } public float getRadius(float tickDelta) { - return MathHelper.lerp(tickDelta, prevRadius, radius); + float base = MathHelper.lerp(tickDelta, prevRadius, radius); + float scale = MathHelper.clamp(MathHelper.lerp(tickDelta, prevTicksDying, ticksDying), 0, 1); + return base * scale; } /** diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java index 857e4c96..16261ff6 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java @@ -57,6 +57,10 @@ public class AccessoryFeatureRenderer< } public boolean beforeRenderArms(ArmRenderer sender, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, int light) { + Caster caster = Caster.of(entity).orElse(null); + if (caster != null) { + SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertexConsumers, light, caster, 0, 0, tickDelta, entity.age + tickDelta, 0, 0); + } boolean cancelled = false; for (var feature : features) { cancelled |= feature.beforeRenderArms(sender, tickDelta, matrices, vertexConsumers, entity, light); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java index 8ce41089..260b322c 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/ShieldSpellRenderer.java @@ -3,16 +3,21 @@ package com.minelittlepony.unicopia.client.render.spell; import com.minelittlepony.common.util.Color; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.ShieldSpell; +import com.minelittlepony.unicopia.client.gui.DrawableUtil; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.util.ColorHelper; +import net.minecraft.client.option.Perspective; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.RotationAxis; public class ShieldSpellRenderer extends SpellRenderer { + private final SphereModel model = new SphereModel(40, 40, DrawableUtil.PI); + @Override public void render(MatrixStack matrices, VertexConsumerProvider vertices, ShieldSpell spell, Caster caster, int light, float limbAngle, float limbDistance, float tickDelta, float animationProgress, float headYaw, float headPitch) { super.render(matrices, vertices, spell, caster, light, limbAngle, limbDistance, tickDelta, animationProgress, headYaw, headPitch); @@ -27,11 +32,21 @@ public class ShieldSpellRenderer extends SpellRenderer { VertexConsumer buffer = vertices.getBuffer(RenderLayers.getMagicShield()); + boolean firstPerson = caster.asEntity() == client.player && client.options.getPerspective() == Perspective.FIRST_PERSON; + float thickness = 0.02F * MathHelper.sin(animationProgress / 30F); float alpha = 1 - Math.abs(MathHelper.sin(animationProgress / 20F)) * 0.2F; - SphereModel.SPHERE.render(matrices, buffer, light, 1, radius + thickness, colors[0], colors[1], colors[2], alpha * 0.08F); - SphereModel.SPHERE.render(matrices, buffer, light, 1, radius - thickness, colors[0], colors[1], colors[2], alpha * 0.05F); - SphereModel.SPHERE.render(matrices, buffer, light, 1, radius + thickness * 2, colors[0], colors[1], colors[2], alpha * 0.05F); + + if (firstPerson) { + matrices.translate(0, -1.75F, 0); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(client.cameraEntity.getPitch(tickDelta))); + model.render(matrices, buffer, light, 1, radius, colors[0], colors[1], colors[2], alpha * 0.2F); + } else { + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); + model.render(matrices, buffer, light, 1, radius + thickness, colors[0], colors[1], colors[2], alpha * 0.08F); + model.render(matrices, buffer, light, 1, radius - thickness, colors[0], colors[1], colors[2], alpha * 0.05F); + model.render(matrices, buffer, light, 1, radius + thickness * 2, colors[0], colors[1], colors[2], alpha * 0.05F); + } matrices.pop(); } From 4151b66e99cccc3241567ec2fc89f2147ef79a6a Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 26 Jan 2024 15:57:36 +0000 Subject: [PATCH 073/104] Fix shields targetting the entity it belongs to --- .../com/minelittlepony/unicopia/Owned.java | 21 ++++++--- .../unicopia/ability/magic/Affine.java | 4 ++ .../magic/spell/effect/DarkVortexSpell.java | 1 - .../magic/spell/effect/FireBoltSpell.java | 4 +- .../magic/spell/effect/PortalSpell.java | 9 +--- .../magic/spell/effect/ShieldSpell.java | 7 +-- .../magic/spell/effect/TargetSelecter.java | 45 +++++++------------ .../unicopia/entity/Creature.java | 2 +- .../unicopia/entity/player/Pony.java | 5 +++ .../player/dummy/DummyClientPlayerEntity.java | 9 ++++ .../player/dummy/DummyPlayerEntity.java | 9 ++++ .../unicopia/item/FriendshipBraceletItem.java | 14 +++--- 12 files changed, 71 insertions(+), 59 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/Owned.java b/src/main/java/com/minelittlepony/unicopia/Owned.java index 37642a1d..337a59ed 100644 --- a/src/main/java/com/minelittlepony/unicopia/Owned.java +++ b/src/main/java/com/minelittlepony/unicopia/Owned.java @@ -5,6 +5,8 @@ import java.util.UUID; import org.jetbrains.annotations.Nullable; +import com.minelittlepony.unicopia.item.FriendshipBraceletItem; + import net.minecraft.entity.Entity; /** @@ -27,14 +29,23 @@ public interface Owned { * Since {@link Owned#getMaster()} will only return if the owner is loaded, use this to perform checks * in the owner's absence. */ - default Optional getMasterId() { - return Optional.of(getMaster()).map(Entity::getUuid); + Optional getMasterId(); + + default boolean isOwnerOrFriend(Entity target) { + return FriendshipBraceletItem.isComrade(this, target) || isOwnerOrVehicle(target); + } + + default boolean isOwnerOrVehicle(@Nullable Entity target) { + if (isOwnedBy(target)) { + return true; + } + + Entity owner = getMaster(); + return target != null && owner != null && owner.isConnectedThroughVehicle(target); } default boolean isOwnedBy(@Nullable Object owner) { - return owner instanceof Entity e - && getMasterId().isPresent() - && e.getUuid().equals(getMasterId().get()); + return owner instanceof Entity e && e.getUuid().equals(getMasterId().orElse(null)); } default boolean hasCommonOwner(Owned sibling) { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/Affine.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/Affine.java index 007da627..7cdfdaef 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/Affine.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/Affine.java @@ -19,4 +19,8 @@ public interface Affine { default boolean isFriendlyTogether(Affine other) { return getAffinity() != Affinity.BAD && other.getAffinity() != Affinity.BAD; } + + default boolean applyInversion(Affine other, boolean friendly) { + return isEnemy(other) ? !friendly : friendly; + } } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java index 7c05d439..02eb96d3 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DarkVortexSpell.java @@ -97,7 +97,6 @@ public class DarkVortexSpell extends AttractiveSpell implements ProjectileDelega } } - @Override public boolean isFriendlyTogether(Affine other) { return accumulatedMass < 4; diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/FireBoltSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/FireBoltSpell.java index c2324a5f..a76ef43b 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/FireBoltSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/FireBoltSpell.java @@ -48,7 +48,7 @@ public class FireBoltSpell extends AbstractSpell implements HomingSpell, if (caster instanceof MagicProjectileEntity && getTraits().get(Trait.FOCUS) >= 50) { caster.findAllEntitiesInRange( getTraits().get(Trait.FOCUS) - 49, - EntityPredicates.VALID_LIVING_ENTITY.and(TargetSelecter.notOwnerOrFriend(this, caster)) + EntityPredicates.VALID_LIVING_ENTITY.and(TargetSelecter.validTarget(this, caster)) ).findFirst().ifPresent(target -> { ((MagicProjectileEntity)caster).setHomingTarget(target); }); @@ -60,7 +60,7 @@ public class FireBoltSpell extends AbstractSpell implements HomingSpell, if (getTraits().get(Trait.FOCUS) >= 50 && target.getOrEmpty(caster.asWorld()).isEmpty()) { target.set(caster.findAllEntitiesInRange( getTraits().get(Trait.FOCUS) - 49, - EntityPredicates.VALID_LIVING_ENTITY.and(TargetSelecter.notOwnerOrFriend(this, caster)) + EntityPredicates.VALID_LIVING_ENTITY.and(TargetSelecter.validTarget(this, caster)) ).findFirst().orElse(null)); } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index fcac287e..fa2963f5 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -24,7 +24,6 @@ import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.nbt.NbtCompound; import net.minecraft.network.packet.s2c.play.PositionFlag; -import net.minecraft.particle.ParticleEffect; import net.minecraft.particle.ParticleTypes; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.BlockPos; @@ -101,13 +100,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme if (situation == Situation.GROUND) { if (source.isClient()) { - Vec3d origin = source.getOriginVector(); - - ParticleEffect effect = getTarget() - .map(target -> (ParticleEffect)new FollowingParticleEffect(UParticles.HEALTH_DRAIN, target.pos(), 0.2F).withChild(ParticleTypes.ELECTRIC_SPARK)) - .orElse(ParticleTypes.ELECTRIC_SPARK); - - source.spawnParticles(origin, particleArea, 5, pos -> { + source.spawnParticles(particleArea, 5, pos -> { source.addParticle(ParticleTypes.ELECTRIC_SPARK, pos, Vec3d.ZERO); }); } else { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java index 5ad19d2d..04831ef6 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/ShieldSpell.java @@ -41,7 +41,7 @@ public class ShieldSpell extends AbstractSpell { .with(Trait.AIR, 9) .build(); - private final TargetSelecter targetSelecter = new TargetSelecter(this); + private final TargetSelecter targetSelecter = new TargetSelecter(this).setFilter(this::isValidTarget); private float prevRadius; private float radius; @@ -174,11 +174,8 @@ public class ShieldSpell extends AbstractSpell { } protected long applyEntities(Caster source) { - double radius = this.radius; - Vec3d origin = getOrigin(source); - - targetSelecter.getEntities(source, radius, this::isValidTarget).forEach(i -> { + targetSelecter.getEntities(source, radius).forEach(i -> { try { applyRadialEffect(source, i, i.getPos().distanceTo(origin), radius); } catch (Throwable e) { diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java index d1730e78..87119eab 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/TargetSelecter.java @@ -11,26 +11,31 @@ import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.ability.magic.Affine; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.Spell; -import com.minelittlepony.unicopia.entity.player.Pony; -import com.minelittlepony.unicopia.item.FriendshipBraceletItem; import net.minecraft.entity.Entity; +import net.minecraft.predicate.entity.EntityPredicates; public class TargetSelecter { - private final Map targets = new TreeMap<>(); private final Spell spell; + private BiPredicate, Entity> filter = (a, b) -> true; + public TargetSelecter(Spell spell) { this.spell = spell; } - public Stream getEntities(Caster source, double radius, BiPredicate, Entity> filter) { + public TargetSelecter setFilter(BiPredicate, Entity> filter) { + this.filter = filter; + return this; + } + + public Stream getEntities(Caster source, double radius) { targets.values().removeIf(Target::tick); return source.findAllEntitiesInRange(radius) - .filter(entity -> entity.isAlive() && !entity.isRemoved() && notOwnerOrFriend(spell, source, entity)) + .filter(EntityPredicates.VALID_ENTITY) .filter(EquinePredicates.EXCEPT_MAGIC_IMMUNE) - .filter(e -> filter.test(source, e)) + .filter(entity -> entity != source.asEntity() && validTarget(spell, source, entity) && filter.test(source, entity)) .map(i -> { targets.computeIfAbsent(i.getUuid(), Target::new); return i; @@ -41,35 +46,19 @@ public class TargetSelecter { return targets.values().stream().filter(Target::canHurt).count(); } - public static Predicate notOwnerOrFriend(Affine affine, Caster source) { - return target -> notOwnerOrFriend(affine, source, target); + public static Predicate validTarget(Affine affine, Caster source) { + return target -> validTarget(affine, source, target); } - public static Predicate isOwnerOrFriend(Affine affine, Caster source) { - return target -> isOwnerOrFriend(affine, source, target); - } - - public static boolean notOwnerOrFriend(Affine affine, Caster source, Entity target) { + public static boolean validTarget(Affine affine, Caster source, Entity target) { return !isOwnerOrFriend(affine, source, target); } - public static boolean isOwnerOrFriend(Affine affine, Caster source, Entity target) { - Entity owner = source.getMaster(); - - var equine = Pony.of(target); - if (equine.isPresent() && !affine.isFriendlyTogether(equine.get())) { - return false; - } - - if (affine.isEnemy(source)) { - return FriendshipBraceletItem.isComrade(source, target); - } - - return FriendshipBraceletItem.isComrade(source, target) - || (owner != null && (Pony.equal(target, owner) || owner.isConnectedThroughVehicle(target))); + public static boolean isOwnerOrFriend(Affine affine, Caster source, Entity target) { + return affine.applyInversion(source, source.isOwnerOrFriend(target)); } - static final class Target { + private static final class Target { private int cooldown = 20; Target(UUID id) { } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/Creature.java b/src/main/java/com/minelittlepony/unicopia/entity/Creature.java index eec0a798..82039a7f 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/Creature.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/Creature.java @@ -60,7 +60,7 @@ public class Creature extends Living implements WeaklyOwned.Mutabl private boolean discordedChanged = true; private int smittenTicks; - private final Predicate targetPredicate = TargetSelecter.notOwnerOrFriend(() -> getOriginatingCaster().getAffinity(), this).and(e -> { + private final Predicate targetPredicate = TargetSelecter.validTarget(() -> getOriginatingCaster().getAffinity(), this).and(e -> { return Equine.of(e) .filter(eq -> eq instanceof Creature) .filter(eq -> isDiscorded() != ((Creature)eq).hasCommonOwner(this)) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 666ca9c2..7b1f6ccf 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -362,6 +362,11 @@ public class Pony extends Living implements Copyable, Update return asEntity(); } + @Override + public Optional getMasterId() { + return Optional.of(asEntity().getUuid()); + } + public void onSpawn() { if (entity.getWorld() instanceof ServerWorld sw && sw.getServer().getSaveProperties().getGameMode() != GameMode.ADVENTURE) { boolean mustAvoidSun = getObservedSpecies() == Race.BAT && MeteorlogicalUtil.isPositionExposedToSun(sw, getOrigin()); diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyClientPlayerEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyClientPlayerEntity.java index f7ee0cde..926581a9 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyClientPlayerEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyClientPlayerEntity.java @@ -1,5 +1,8 @@ package com.minelittlepony.unicopia.entity.player.dummy; +import java.util.Optional; +import java.util.UUID; + import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -13,6 +16,7 @@ import net.minecraft.client.network.ClientPlayNetworkHandler; import net.minecraft.client.network.PlayerListEntry; import net.minecraft.client.render.entity.PlayerModelPart; import net.minecraft.client.world.ClientWorld; +import net.minecraft.entity.Entity; import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; @@ -79,4 +83,9 @@ public class DummyClientPlayerEntity extends AbstractClientPlayerEntity implemen public void setMaster(PlayerEntity owner) { this.owner = owner; } + + @Override + public Optional getMasterId() { + return Optional.ofNullable(owner).map(Entity::getUuid); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyPlayerEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyPlayerEntity.java index 798dc6e1..c5ce8f09 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyPlayerEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/dummy/DummyPlayerEntity.java @@ -1,5 +1,8 @@ package com.minelittlepony.unicopia.entity.player.dummy; +import java.util.Optional; +import java.util.UUID; + import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.InteractionManager; @@ -7,6 +10,7 @@ import com.minelittlepony.unicopia.Owned; import com.mojang.authlib.GameProfile; import net.minecraft.block.BlockState; +import net.minecraft.entity.Entity; import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; @@ -42,6 +46,11 @@ public class DummyPlayerEntity extends PlayerEntity implements Owned getMasterId() { + return Optional.ofNullable(owner).map(Entity::getUuid); + } + @Override public boolean shouldRenderName() { return !InteractionManager.instance().isClientPlayer(getMaster()); diff --git a/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java b/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java index da2018d0..4062ae4a 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/FriendshipBraceletItem.java @@ -7,6 +7,7 @@ import java.util.stream.Stream; import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.EquinePredicates; +import com.minelittlepony.unicopia.Owned; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.compat.trinkets.TrinketsDelegate; @@ -113,15 +114,10 @@ public class FriendshipBraceletItem extends WearableItem implements DyeableItem, && ((FriendshipBraceletItem)stack.getItem()).checkSignature(stack, player); } - public static boolean isComrade(Caster caster, Entity entity) { - if (entity instanceof LivingEntity) { - return caster.getMasterId() - .filter(id -> getWornBangles((LivingEntity)entity) - .anyMatch(stack -> isSignedBy(stack, id)) - ) - .isPresent(); - } - return false; + public static boolean isComrade(Owned caster, Entity entity) { + return entity instanceof LivingEntity l && caster.getMasterId() + .filter(id -> getWornBangles(l).anyMatch(stack -> isSignedBy(stack, id))) + .isPresent(); } public static Stream getPartyMembers(Caster caster, double radius) { From 0910ad72cad26e91d134b7b01eb0eaeb8556b3ed Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 26 Jan 2024 15:58:22 +0000 Subject: [PATCH 074/104] Fixed dismissing spells from the gui killing them without going through the normal removal process --- .../unicopia/ability/magic/SpellContainer.java | 7 +++++++ .../client/render/spell/PortalFrameBuffer.java | 6 +----- .../unicopia/network/MsgRemoveSpell.java | 4 ++-- .../unicopia/network/datasync/EffectSync.java | 10 ++++++++++ .../network/datasync/NetworkedReferenceSet.java | 8 +++++++- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/SpellContainer.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/SpellContainer.java index bbe1ad70..e703911d 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/SpellContainer.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/SpellContainer.java @@ -39,6 +39,13 @@ public interface SpellContainer { */ void put(@Nullable Spell effect); + /** + * Cleanly removes a spell from this spell container. + * + * @param spellid ID of the spell to remove. + */ + void remove(UUID spellid); + /** * Removes all active effects that match or contain a matching effect. * diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java index dffa297b..81a99039 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java @@ -76,14 +76,10 @@ class PortalFrameBuffer implements AutoCloseable { private boolean pendingDraw; - private final UUID id; - @Nullable private Frustum frustum; - PortalFrameBuffer(UUID id) { - this.id = id; - } + PortalFrameBuffer(UUID id) { } public void draw(MatrixStack matrices, VertexConsumerProvider vertices) { matrices.translate(0, -0.001, 0); diff --git a/src/main/java/com/minelittlepony/unicopia/network/MsgRemoveSpell.java b/src/main/java/com/minelittlepony/unicopia/network/MsgRemoveSpell.java index 37b1e0a4..771b2c73 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/MsgRemoveSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/network/MsgRemoveSpell.java @@ -10,7 +10,7 @@ import net.minecraft.network.PacketByteBuf; import net.minecraft.server.network.ServerPlayerEntity; /** - * Sent to the server when a player activates an ability. + * Sent to the server when a player dismisses a spell from their dismiss spell screen */ public record MsgRemoveSpell (UUID id) implements HandledPacket { MsgRemoveSpell(PacketByteBuf buffer) { @@ -30,7 +30,7 @@ public record MsgRemoveSpell (UUID id) implements HandledPacket spell.getUuid().equals(id), true); + player.getSpellSlot().remove(id); } } } diff --git a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java index b2cad93c..83507e6b 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java +++ b/src/main/java/com/minelittlepony/unicopia/network/datasync/EffectSync.java @@ -93,6 +93,16 @@ public class EffectSync implements SpellContainer, NbtSerialisable { } } + @Override + public void remove(UUID id) { + Spell spell = spells.getReference(id); + spell.setDead(); + spell.tickDying(owner); + if (spell.isDead()) { + spells.removeReference(id); + } + } + @Override public boolean removeWhere(Predicate test, boolean update) { return reduce(update, (initial, effect) -> { diff --git a/src/main/java/com/minelittlepony/unicopia/network/datasync/NetworkedReferenceSet.java b/src/main/java/com/minelittlepony/unicopia/network/datasync/NetworkedReferenceSet.java index df54150f..90582e52 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/datasync/NetworkedReferenceSet.java +++ b/src/main/java/com/minelittlepony/unicopia/network/datasync/NetworkedReferenceSet.java @@ -83,7 +83,13 @@ public class NetworkedReferenceSet { } } - private synchronized void removeReference(UUID id) { + @Nullable + synchronized T getReference(UUID id) { + NetworkedReference i = values.get(id); + return i == null ? null : i.getReference().orElse(null); + } + + synchronized void removeReference(UUID id) { dirty |= ids.remove(id); NetworkedReference i = values.remove(id); if (i != null) { From 7c7ea1e555a9455715952cb3bf9d0ead756322b7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 26 Jan 2024 16:10:59 +0000 Subject: [PATCH 075/104] Fix build --- .../minelittlepony/unicopia/client/URenderers.java | 2 +- .../client/render/AccessoryFeatureRenderer.java | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index dad19f19..c09bbf8e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -60,10 +60,10 @@ import net.minecraft.util.Identifier; import net.minecraft.util.math.BlockPos; import net.minecraft.world.BlockRenderView; +@SuppressWarnings("deprecation") public interface URenderers { BlockEntity CHEST_RENDER_ENTITY = new CloudChestBlock.TileData(BlockPos.ORIGIN, UBlocks.CLOUD_CHEST.getDefaultState()); - @SuppressWarnings("unchecked") static void bootstrap() { ParticleFactoryRegistry.getInstance().register(UParticles.UNICORN_MAGIC, createFactory(MagicParticle::new)); ParticleFactoryRegistry.getInstance().register(UParticles.CHANGELING_MAGIC, createFactory(ChangelingMagicParticle::new)); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java index 16261ff6..6b6cf861 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/AccessoryFeatureRenderer.java @@ -14,6 +14,7 @@ import net.minecraft.client.model.ModelPart; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.feature.FeatureRenderer; import net.minecraft.client.render.entity.feature.FeatureRendererContext; +import net.minecraft.client.render.entity.model.BipedEntityModel; import net.minecraft.client.render.entity.model.EntityModel; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.entity.LivingEntity; @@ -23,9 +24,10 @@ public class AccessoryFeatureRenderer< T extends LivingEntity, M extends EntityModel> extends FeatureRenderer { - private static final List> REGISTRY = new ArrayList<>(); + private static final List> REGISTRY = new ArrayList<>(); - public static void register(FeatureFactory...factories) { + @SafeVarargs + public static void register(FeatureFactory>...factories) { for (var factory : factories) { REGISTRY.add(factory); } @@ -36,7 +38,7 @@ public class AccessoryFeatureRenderer< @SuppressWarnings("unchecked") public AccessoryFeatureRenderer(FeatureRendererContext context) { super(context); - features = REGISTRY.stream().map(f -> ((FeatureFactory)f).create(context)).toList(); + features = REGISTRY.stream().map(f -> ((FeatureFactory)f).create(context)).toList(); } @Override @@ -68,8 +70,8 @@ public class AccessoryFeatureRenderer< return cancelled; } - public interface FeatureFactory { - Feature create(FeatureRendererContext> context); + public interface FeatureFactory> { + Feature create(FeatureRendererContext context); } public interface Feature { From 8b7a55d764beb297603d58fb1630583470448467 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 26 Jan 2024 23:30:22 +0000 Subject: [PATCH 076/104] Combine TexturedSphereModel into SphereModel --- .../client/render/model/BakedModel.java | 17 +++++++- .../render/model/TexturedSphereModel.java | 41 ------------------- .../render/spell/PortalFrameBuffer.java | 3 +- 3 files changed, 17 insertions(+), 44 deletions(-) delete mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java index 694571c3..d2c03914 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java @@ -15,7 +15,7 @@ public class BakedModel { protected final List vertices = new ArrayList<>(); protected void addVertex(Vector4f vertex) { - addVertex(vertex.x, vertex.y, vertex.z, 0, 0); + addVertex(vertex.x, vertex.y, vertex.z, (vertex.x + 1) * 0.5F, (vertex.z + 1) * 0.5F); } protected void addVertex(float x, float y, float z, float u, float v) { @@ -36,4 +36,19 @@ public class BakedModel { } matrices.pop(); } + + public final void render(MatrixStack matrices, VertexConsumer buffer, float scale, float r, float g, float b, float a, float uScale, float vScale) { + scale = Math.abs(scale); + if (scale < 0.001F) { + return; + } + + matrices.push(); + matrices.scale(scale, scale, scale); + for (RenderUtil.Vertex vertex : vertices) { + Vector4f pos = vertex.position(matrices); + buffer.vertex(pos.x, pos.y, pos.z).texture(vertex.u() * uScale, vertex.v() * vScale).color(r, g, b, a).next(); + } + matrices.pop(); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java deleted file mode 100644 index 60c0b74e..00000000 --- a/src/main/java/com/minelittlepony/unicopia/client/render/model/TexturedSphereModel.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.minelittlepony.unicopia.client.render.model; - -import org.joml.Vector4f; - -import com.minelittlepony.unicopia.client.gui.DrawableUtil; -import com.minelittlepony.unicopia.client.render.RenderUtil; - -import net.minecraft.client.render.VertexConsumer; -import net.minecraft.client.util.math.MatrixStack; - -public class TexturedSphereModel extends BakedModel { - public static final TexturedSphereModel DISK = new TexturedSphereModel(40, 2, DrawableUtil.PI); - - public TexturedSphereModel(double rings, double sectors, double azimuthRange) { - double zenithIncrement = DrawableUtil.PI / rings; - double azimuthIncrement = DrawableUtil.TAU / sectors; - SphereModel.compileVertices(azimuthRange, zenithIncrement, azimuthIncrement, this::addVertex); - } - - @Override - protected void addVertex(Vector4f vertex) { - addVertex(vertex.x, vertex.y, vertex.z, vertex.x, vertex.z); - } - - public final void render(MatrixStack matrices, VertexConsumer buffer, float scale, float r, float g, float b, float a, float uScale, float vScale) { - scale = Math.abs(scale); - if (scale < 0.001F) { - return; - } - - matrices.push(); - matrices.scale(scale, scale, scale); - uScale *= 0.5F; - vScale *= 0.5F; - for (RenderUtil.Vertex vertex : vertices) { - Vector4f pos = vertex.position(matrices); - buffer.vertex(pos.x, pos.y, pos.z).texture((vertex.u() + 1) * uScale, (vertex.v() + 1) * vScale).color(r, g, b, a).next(); - } - matrices.pop(); - } -} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java index 81a99039..f864c098 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java @@ -15,7 +15,6 @@ import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; -import com.minelittlepony.unicopia.client.render.model.TexturedSphereModel; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; @@ -96,7 +95,7 @@ class PortalFrameBuffer implements AutoCloseable { RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); RenderSystem._setShaderTexture(0, framebuffer.getColorAttachment()); buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); - TexturedSphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); + SphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); tessellator.draw(); client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); From cd9597f117f3b264b85f704da26d4d6809f5e6fd Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 00:21:27 +0000 Subject: [PATCH 077/104] Fix portals placing in the ground --- .../unicopia/ability/magic/spell/effect/PortalSpell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index fa2963f5..82a66ad9 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -211,7 +211,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme LivingEntity caster = source.getMaster(); Vec3d targetPos = caster.getRotationVector().multiply(3).add(caster.getEyePos()); parent.setOrientation(pitch, yaw); - entity.setPos(targetPos.x, caster.getEyePos().y - (entity.getHeight() * 0.5F), targetPos.z); + entity.setPos(targetPos.x, Math.abs(pitch) > 15 ? targetPos.y : caster.getPos().y, targetPos.z); } @Override From da3aec8d8359d82e60bad58ea00e125fbd20ebf0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 00:22:27 +0000 Subject: [PATCH 078/104] Don't render debug info for the first person entity --- .../client/render/spell/SpellEffectsRenderDispatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java index cbfdd7dc..37c4c51b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/SpellEffectsRenderDispatcher.java @@ -17,6 +17,7 @@ import com.minelittlepony.unicopia.entity.Living; import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; import net.minecraft.client.MinecraftClient; import net.minecraft.client.font.TextRenderer.TextLayerType; +import net.minecraft.client.option.Perspective; import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; @@ -83,7 +84,9 @@ public class SpellEffectsRenderDispatcher implements SynchronousResourceReloader return Operation.SKIP; }, false); - if (client.getEntityRenderDispatcher().shouldRenderHitboxes() && !client.hasReducedDebugInfo()) { + if (client.getEntityRenderDispatcher().shouldRenderHitboxes() + && !client.hasReducedDebugInfo() + && !(caster.asEntity() == client.cameraEntity && client.options.getPerspective() == Perspective.FIRST_PERSON)) { renderHotspot(matrices, vertices, caster, animationProgress); renderSpellDebugInfo(matrices, vertices, caster, light); } From 80500a74c8d21750b6434c7c51ffb506803238c9 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 04:08:56 +0000 Subject: [PATCH 079/104] Improve portal rendering --- .../unicopia/client/URenderers.java | 2 + .../AbstractGeometryBasedParticle.java | 2 +- .../unicopia/client/render/RenderUtil.java | 38 ++++++++++++------- .../client/render/bezier/BezierSegment.java | 8 ++-- .../client/render/model/BakedModel.java | 34 ++++++++++++----- .../client/render/shader/UShaders.java | 29 ++++++++++++++ .../render/spell/PortalFrameBuffer.java | 35 ++++++++++------- .../render/spell/PortalSpellRenderer.java | 4 +- .../core/rendertype_portal_surface.fsh | 20 ++++++++++ .../core/rendertype_portal_surface.json | 20 ++++++++++ .../core/rendertype_portal_surface.vsh | 19 ++++++++++ 11 files changed, 169 insertions(+), 42 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/render/shader/UShaders.java create mode 100644 src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh create mode 100644 src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json create mode 100644 src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.vsh diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index c09bbf8e..ebe72254 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -23,6 +23,7 @@ import com.minelittlepony.unicopia.client.particle.ShockwaveParticle; import com.minelittlepony.unicopia.client.particle.SphereParticle; import com.minelittlepony.unicopia.client.render.*; import com.minelittlepony.unicopia.client.render.entity.*; +import com.minelittlepony.unicopia.client.render.shader.UShaders; import com.minelittlepony.unicopia.client.render.spell.SpellRendererFactory; import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.item.ChameleonItem; @@ -128,6 +129,7 @@ public interface URenderers { TerraformBoatClientHelper.registerModelLayers(Unicopia.id("palm"), false); SpellRendererFactory.bootstrap(); + UShaders.bootstrap(); } private static void register(DynamicItemRenderer renderer, ItemConvertible...items) { diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java index 297c2e65..1714d93a 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java @@ -42,7 +42,7 @@ public abstract class AbstractGeometryBasedParticle extends Particle { int light = getBrightness(tickDelta); buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); for (RenderUtil.Vertex corner : corners) { - buffer.vertex(corner.position().x, corner.position().y, corner.position().z).texture(corner.u(), corner.v()).color(red, green, blue, alpha).light(light).next(); + buffer.vertex(corner.position().x, corner.position().y, corner.position().z).texture(corner.texture().x, corner.texture().y).color(red, green, blue, alpha).light(light).next(); } te.draw(); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java index a9cbbd1e..cb43a128 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/RenderUtil.java @@ -1,5 +1,6 @@ package com.minelittlepony.unicopia.client.render; +import org.joml.Matrix4f; import org.joml.Vector3f; import org.joml.Vector4f; @@ -11,17 +12,18 @@ import net.minecraft.client.util.math.MatrixStack; public class RenderUtil { public static final Vector4f TEMP_VECTOR = new Vector4f(); + private static final Vector4f TEMP_UV_VECTOR = new Vector4f(); public static final Vertex[] UNIT_FACE = new Vertex[] { - new Vertex(new Vector3f(0, 0, 0), 1, 1), - new Vertex(new Vector3f(0, 1, 0), 1, 0), - new Vertex(new Vector3f(1, 1, 0), 0, 0), - new Vertex(new Vector3f(1, 0, 0), 0, 1) + new Vertex(0, 0, 0, 1, 1), + new Vertex(0, 1, 0, 1, 0), + new Vertex(1, 1, 0, 0, 0), + new Vertex(1, 0, 0, 0, 1) }; public static final Vertex[] FRAME_BUFFER_VERTICES = new Vertex[] { - new Vertex(new Vector3f(0, 1, 0), 0, 0), - new Vertex(new Vector3f(1, 1, 0), 1, 0), - new Vertex(new Vector3f(1, 0, 0), 1, 1), - new Vertex(new Vector3f(0, 0, 0), 0, 1) + new Vertex(0, 1, 0, 0, 0), + new Vertex(1, 1, 0, 1, 0), + new Vertex(1, 0, 0, 1, 1), + new Vertex(0, 0, 0, 0, 1) }; public static void renderFace(MatrixStack matrices, Tessellator te, BufferBuilder buffer, float r, float g, float b, float a, int light) { @@ -30,17 +32,25 @@ public class RenderUtil { public static void renderFace(MatrixStack matrices, Tessellator te, BufferBuilder buffer, float r, float g, float b, float a, int light, float uScale, float vScale) { buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); + Matrix4f positionmatrix = matrices.peek().getPositionMatrix(); for (Vertex vertex : UNIT_FACE) { - Vector4f position = vertex.position(matrices); - buffer.vertex(position.x, position.y, position.z).texture(vertex.u() * uScale, vertex.v() * vScale).color(r, g, b, a).light(light).next(); + Vector4f position = vertex.position(positionmatrix); + buffer.vertex(position.x, position.y, position.z).texture(vertex.texture().x * uScale, vertex.texture().y * vScale).color(r, g, b, a).light(light).next(); } te.draw(); } - public record Vertex(Vector3f position, float u, float v) { - public Vector4f position(MatrixStack matrices) { - matrices.peek().getPositionMatrix().transform(TEMP_VECTOR.set(position, 1)); - return TEMP_VECTOR; + public record Vertex(Vector3f position, Vector3f texture) { + public Vertex(float x, float y, float z, float u, float v) { + this(new Vector3f(x, y, z), new Vector3f(u, v, 1)); + } + + public Vector4f position(Matrix4f mat) { + return mat.transform(TEMP_VECTOR.set(position, 1)); + } + + public Vector4f texture(Matrix4f mat) { + return mat.transform(TEMP_UV_VECTOR.set(texture, 1)); } } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java index d8ce8d35..bb30b1f5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/bezier/BezierSegment.java @@ -12,10 +12,10 @@ public record BezierSegment( public BezierSegment(Vector3f from, Vector3f to, float height) { this(new RenderUtil.Vertex[] { - new RenderUtil.Vertex(new Vector3f(from.x, from.y - height/2F, from.z), 0, 0), // bottom left - new RenderUtil.Vertex(new Vector3f(from.x, from.y + height/2F, from.z), 1, 0), // top left - new RenderUtil.Vertex(new Vector3f(to.x, to.y + height/2F, to.z), 1, 1), // top right - new RenderUtil.Vertex(new Vector3f(to.x, to.y - height/2F, to.z), 0, 1) // bottom right + new RenderUtil.Vertex(from.x, from.y - height/2F, from.z, 0, 0), // bottom left + new RenderUtil.Vertex(from.x, from.y + height/2F, from.z, 1, 0), // top left + new RenderUtil.Vertex(to.x, to.y + height/2F, to.z, 1, 1), // top right + new RenderUtil.Vertex(to.x, to.y - height/2F, to.z, 0, 1) // bottom right }); } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java index d2c03914..3bceca54 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/model/BakedModel.java @@ -1,25 +1,35 @@ package com.minelittlepony.unicopia.client.render.model; -import java.util.ArrayList; import java.util.List; -import org.joml.Vector3f; +import org.joml.Matrix4f; import org.joml.Vector4f; import com.minelittlepony.unicopia.client.render.RenderUtil; +import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.util.math.MatrixStack; public class BakedModel { - protected final List vertices = new ArrayList<>(); + protected final List vertices = new ObjectArrayList<>(); + + private final Matrix4f textureMatrix = new Matrix4f(); + + public Matrix4f getTextureMatrix() { + return textureMatrix; + } + + public void scaleUV(float uScale, float vScale) { + getTextureMatrix().scale(uScale, vScale, 1); + } protected void addVertex(Vector4f vertex) { addVertex(vertex.x, vertex.y, vertex.z, (vertex.x + 1) * 0.5F, (vertex.z + 1) * 0.5F); } protected void addVertex(float x, float y, float z, float u, float v) { - vertices.add(new RenderUtil.Vertex(new Vector3f(x, y, z), u, v)); + vertices.add(new RenderUtil.Vertex(x, y, z, u, v)); } public final void render(MatrixStack matrices, VertexConsumer buffer, int light, int overlay, float scale, float r, float g, float b, float a) { @@ -30,14 +40,17 @@ public class BakedModel { matrices.push(); matrices.scale(scale, scale, scale); + Matrix4f positionmatrix = matrices.peek().getPositionMatrix(); for (RenderUtil.Vertex vertex : vertices) { - Vector4f pos = vertex.position(matrices); - buffer.vertex(pos.x, pos.y, pos.z, r, g, b, a, vertex.u(), vertex.v(), overlay, light, 0, 0, 0); + Vector4f pos = vertex.position(positionmatrix); + Vector4f tex = vertex.texture(textureMatrix); + buffer.vertex(pos.x, pos.y, pos.z, r, g, b, a, tex.x, tex.y, overlay, light, 0, 0, 0); } matrices.pop(); + textureMatrix.identity(); } - public final void render(MatrixStack matrices, VertexConsumer buffer, float scale, float r, float g, float b, float a, float uScale, float vScale) { + public final void render(MatrixStack matrices, VertexConsumer buffer, float scale, float r, float g, float b, float a) { scale = Math.abs(scale); if (scale < 0.001F) { return; @@ -45,10 +58,13 @@ public class BakedModel { matrices.push(); matrices.scale(scale, scale, scale); + Matrix4f positionmatrix = matrices.peek().getPositionMatrix(); for (RenderUtil.Vertex vertex : vertices) { - Vector4f pos = vertex.position(matrices); - buffer.vertex(pos.x, pos.y, pos.z).texture(vertex.u() * uScale, vertex.v() * vScale).color(r, g, b, a).next(); + Vector4f pos = vertex.position(positionmatrix); + Vector4f tex = vertex.texture(textureMatrix); + buffer.vertex(pos.x, pos.y, pos.z).texture(tex.x, tex.y).color(r, g, b, a).next(); } matrices.pop(); + textureMatrix.identity(); } } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/shader/UShaders.java b/src/main/java/com/minelittlepony/unicopia/client/render/shader/UShaders.java new file mode 100644 index 00000000..fd86786d --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/render/shader/UShaders.java @@ -0,0 +1,29 @@ +package com.minelittlepony.unicopia.client.render.shader; + +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.Unicopia; +import net.fabricmc.fabric.api.client.rendering.v1.CoreShaderRegistrationCallback; +import net.minecraft.client.gl.ShaderProgram; +import net.minecraft.client.render.VertexFormat; +import net.minecraft.client.render.VertexFormats; + +public final class UShaders { + @Nullable + private static Supplier renderTypePortalSurfaceProgram = register("rendertype_portal_surface", VertexFormats.POSITION_COLOR); + + public static ShaderProgram getRenderTypePortalSurfaceProgram() { + return renderTypePortalSurfaceProgram.get(); + } + + public static void bootstrap() { } + + static Supplier register(String name, VertexFormat format) { + AtomicReference holder = new AtomicReference<>(); + CoreShaderRegistrationCallback.EVENT.register(context -> context.register(Unicopia.id(name), format, holder::set)); + return holder::get; + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java index f864c098..161d667e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java @@ -15,6 +15,7 @@ import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; +import com.minelittlepony.unicopia.client.render.shader.UShaders; import com.minelittlepony.unicopia.entity.EntityReference; import com.minelittlepony.unicopia.entity.mob.UEntities; import com.minelittlepony.unicopia.mixin.client.MixinMinecraftClient; @@ -30,7 +31,6 @@ import net.minecraft.client.render.BackgroundRenderer; import net.minecraft.client.render.BufferBuilder; import net.minecraft.client.render.Camera; import net.minecraft.client.render.Frustum; -import net.minecraft.client.render.GameRenderer; import net.minecraft.client.render.Tessellator; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.VertexFormat; @@ -41,6 +41,7 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.client.world.ClientWorld; import net.minecraft.entity.Entity; import net.minecraft.screen.PlayerScreenHandler; +import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; class PortalFrameBuffer implements AutoCloseable { @@ -92,10 +93,14 @@ class PortalFrameBuffer implements AutoCloseable { BufferBuilder buffer = tessellator.getBuffer(); float uScale = (float)framebuffer.viewportWidth / (float)framebuffer.textureWidth; float vScale = (float)framebuffer.viewportHeight / (float)framebuffer.textureHeight; - RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); + RenderSystem.setShader(UShaders::getRenderTypePortalSurfaceProgram); + //RenderSystem.setShader(GameRenderer::getPositionTexColorProgram); RenderSystem._setShaderTexture(0, framebuffer.getColorAttachment()); buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR); - SphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1, uScale, vScale); + SphereModel.DISK.scaleUV(uScale, vScale); + + RenderSystem.setTextureMatrix(SphereModel.DISK.getTextureMatrix()); + SphereModel.DISK.render(matrices, buffer, 2F, 1, 1, 1, 1); tessellator.draw(); client.getTextureManager().bindTexture(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE); @@ -110,11 +115,11 @@ class PortalFrameBuffer implements AutoCloseable { public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { - if (framebuffer != null && System.currentTimeMillis() % 100 != 0) { + if (framebuffer != null && System.currentTimeMillis() % 1 != 0) { return; } - if (pendingDraw && recursionCount > 0) { + if (pendingDraw && recursionCount > 2) { innerBuild(spell, caster, target); return; } @@ -134,7 +139,7 @@ class PortalFrameBuffer implements AutoCloseable { synchronized (client) { pendingDraw = false; - if (recursionCount > 2) { + if (recursionCount > 0) { return; } recursionCount++; @@ -149,10 +154,17 @@ class PortalFrameBuffer implements AutoCloseable { int originalFov = fov.getValue(); fov.setValue(110); + Camera camera = client.gameRenderer.getCamera(); + Entity cameraEntity = UEntities.CAST_SPELL.create(caster.asWorld()); - cameraEntity.setPosition(target.pos()); - cameraEntity.setPitch(spell.getTargetPitch()); - cameraEntity.setYaw(spell.getTargetYaw() + 180); + Vec3d offset = new Vec3d(0, -0.2F, -0.2F).rotateY(-spell.getTargetYaw() * MathHelper.RADIANS_PER_DEGREE); + + float yaw = spell.getTargetYaw() + camera.getYaw() - spell.getYaw() + 180; + float pitch = spell.getTargetPitch() + (camera.getPitch() - spell.getPitch()) * 1.65F; + + cameraEntity.setPosition(target.pos().add(offset)); + cameraEntity.setPitch(pitch); + cameraEntity.setYaw(yaw); drawWorld(cameraEntity, 400, 400); @@ -220,11 +232,8 @@ class PortalFrameBuffer implements AutoCloseable { renderer.scheduleBlockRenders((int)cameraEntity.getX() / 16, (int)cameraEntity.getY() / 16, (int)cameraEntity.getZ() / 16); client.gameRenderer.setRenderHand(false); - MatrixStack matrices = new MatrixStack(); - matrices.scale((float)width / height, 1, 1); - - client.gameRenderer.renderWorld(1, 0, matrices); + client.gameRenderer.renderWorld(1, 0, new MatrixStack()); // Strip transparency RenderSystem.colorMask(false, false, false, true); diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index 4324ef30..a509d1fc 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -5,7 +5,6 @@ import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.entity.EntityReference; - import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.MinecraftClient; import net.minecraft.client.render.Frustum; @@ -49,6 +48,9 @@ public class PortalSpellRenderer extends SpellRenderer { if (caster.asEntity().distanceTo(client.cameraEntity) > 50) { return; // don't bother rendering if too far away } + if (client.cameraEntity == caster.asEntity()) { + return; + } matrices.push(); matrices.scale(strength, strength, strength); diff --git a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh new file mode 100644 index 00000000..09b197aa --- /dev/null +++ b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh @@ -0,0 +1,20 @@ +#version 150 + +#moj_import + +uniform sampler2D Sampler0; +uniform sampler2D Sampler1; + +uniform vec4 ColorModulator; +uniform float GameTime; +uniform int EndPortalLayers; + +in vec4 texProj0; +in vec4 vertexColor; + +out vec4 fragColor; + +void main() { + vec4 scale = vec4(0.25, 0.25, 0.25, 0.25); + fragColor = textureProj(Sampler0, texProj0 * scale); +} diff --git a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json new file mode 100644 index 00000000..4c978b4f --- /dev/null +++ b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json @@ -0,0 +1,20 @@ +{ + "blend": { + "func": "add", + "srcrgb": "srcalpha", + "dstrgb": "1-srcalpha" + }, + "vertex": "unicopia:rendertype_portal_surface", + "fragment": "unicopia:rendertype_portal_surface", + "attributes": [], + "samplers": [ + { "name": "Sampler0" }, + { "name": "Sampler1" } + ], + "uniforms": [ + { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, + { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, + { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 15 ] } + ] +} diff --git a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.vsh b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.vsh new file mode 100644 index 00000000..42aadd7b --- /dev/null +++ b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.vsh @@ -0,0 +1,19 @@ +#version 150 + +#moj_import + +in vec3 Position; +in vec4 Color; + +uniform mat4 ModelViewMat; +uniform mat4 ProjMat; + +out vec4 texProj0; +out vec4 vertexColor; + +void main() { + gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0); + + vertexColor = Color; + texProj0 = projection_from_position(gl_Position); +} From e385eb564037886281a7be10ca06717e3c64138b Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 04:21:31 +0000 Subject: [PATCH 080/104] Add config options for portal rendering --- src/main/java/com/minelittlepony/unicopia/Config.java | 10 ++++++++++ .../client/render/spell/PortalFrameBuffer.java | 6 ++++-- .../client/render/spell/PortalSpellRenderer.java | 5 ++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/Config.java b/src/main/java/com/minelittlepony/unicopia/Config.java index c0f86374..3a128a0e 100644 --- a/src/main/java/com/minelittlepony/unicopia/Config.java +++ b/src/main/java/com/minelittlepony/unicopia/Config.java @@ -45,6 +45,16 @@ public class Config extends com.minelittlepony.common.util.settings.Config { .addComment("Removes butterflies from spawning in your world") .addComment("Turn this ON if you have another mod that adds butterflies."); + public final Setting simplifiedPortals = value("compatibility", "simplifiedPortals", false) + .addComment("Disables dynamic portal rendering"); + + public final Setting fancyPortalRefreshRate = value("client", "fancyPortalRefreshRate", -1L) + .addComment("Sets the refresh rate of portals when using fancy portal rendering") + .addComment("Set to -1 (default) for unlimited"); + + public final Setting maxPortalRecursion = value("client", "maxPortalRecursion", 2) + .addComment("Sets the maximum depth to reach when rendering portals through portals"); + public Config() { super(new HeirarchicalJsonConfigAdapter(new GsonBuilder() .registerTypeAdapter(Race.class, RegistryTypeAdapter.of(Race.REGISTRY)) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java index 161d667e..823220f5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalFrameBuffer.java @@ -11,6 +11,7 @@ import org.joml.Matrix4f; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; +import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; @@ -115,11 +116,12 @@ class PortalFrameBuffer implements AutoCloseable { public void build(PortalSpell spell, Caster caster, EntityReference.EntityValues target) { - if (framebuffer != null && System.currentTimeMillis() % 1 != 0) { + long refreshRate = Unicopia.getConfig().fancyPortalRefreshRate.get(); + if (refreshRate > 0 && framebuffer != null && System.currentTimeMillis() % refreshRate != 0) { return; } - if (pendingDraw && recursionCount > 2) { + if (pendingDraw && recursionCount > Math.max(0, Unicopia.getConfig().maxPortalRecursion.get())) { innerBuild(spell, caster, target); return; } diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index a509d1fc..8881834e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -1,5 +1,6 @@ package com.minelittlepony.unicopia.client.render.spell; +import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.ability.magic.Caster; import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; @@ -14,8 +15,6 @@ import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.math.RotationAxis; public class PortalSpellRenderer extends SpellRenderer { - static boolean FANCY_PORTAlS = true; - @Override public boolean shouldRenderEffectPass(int pass) { return pass == 0; @@ -32,7 +31,7 @@ public class PortalSpellRenderer extends SpellRenderer { SphereModel.DISK.render(matrices, buff, light, 0, 2F * strength, 1, 1, 1, 1); matrices.pop(); - if (!FANCY_PORTAlS || !spell.isLinked()) { + if (Unicopia.getConfig().simplifiedPortals.get() || !spell.isLinked()) { matrices.push(); matrices.translate(0, -0.02, 0); matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees(180)); From e06ae63077d33c03fc2bf2b852fdd2b0e546acbe Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 21:17:16 +0000 Subject: [PATCH 081/104] Add time-limited variants of the metamorphosis potions and add make all potions craftable --- .../unicopia/ability/ChangeFormAbility.java | 4 +- .../effect/MetamorphosisStatusEffect.java | 60 ++++++++++++ .../entity/effect/RaceChangeStatusEffect.java | 35 ++++--- .../unicopia/entity/effect/UPotions.java | 67 ++++++++++--- .../unicopia/entity/mob/UTradeOffers.java | 20 ---- .../unicopia/entity/player/Pony.java | 5 +- .../resources/assets/unicopia/lang/en_us.json | 88 +++++++++++++++++- .../mob_effect/change_race_hippogriff.png | Bin 0 -> 6551 bytes .../textures/mob_effect/change_race_kirin.png | Bin 0 -> 6550 bytes .../textures/mob_effect/morph_race_bat.png | Bin 0 -> 4462 bytes .../mob_effect/morph_race_changeling.png | Bin 0 -> 4377 bytes .../textures/mob_effect/morph_race_earth.png | Bin 0 -> 4414 bytes .../mob_effect/morph_race_hippogriff.png | Bin 0 -> 4654 bytes .../textures/mob_effect/morph_race_kirin.png | Bin 0 -> 4692 bytes .../mob_effect/morph_race_pegasus.png | Bin 0 -> 4428 bytes .../mob_effect/morph_race_unicorn.png | Bin 0 -> 4397 bytes 16 files changed, 224 insertions(+), 55 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/entity/effect/MetamorphosisStatusEffect.java create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/change_race_hippogriff.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/change_race_kirin.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_bat.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_changeling.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_earth.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_hippogriff.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_kirin.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_pegasus.png create mode 100644 src/main/resources/assets/unicopia/textures/mob_effect/morph_race_unicorn.png diff --git a/src/main/java/com/minelittlepony/unicopia/ability/ChangeFormAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/ChangeFormAbility.java index 4c841b1a..64fabfa4 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/ChangeFormAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/ChangeFormAbility.java @@ -76,9 +76,9 @@ public class ChangeFormAbility implements Ability { targets.forEach(target -> { Race supressed = target.getSuppressedRace(); if (target == player || supressed.isUnset() == isTransforming) { - Race actualRace = target.getSpecies(); + Race actualRace = isTransforming ? target.getSpecies() : Race.UNSET; target.setSpecies(supressed.or(player.getCompositeRace().potential())); - target.setSuppressedRace(isTransforming ? actualRace : Race.UNSET); + target.setSuppressedRace(actualRace); } }); diff --git a/src/main/java/com/minelittlepony/unicopia/entity/effect/MetamorphosisStatusEffect.java b/src/main/java/com/minelittlepony/unicopia/entity/effect/MetamorphosisStatusEffect.java new file mode 100644 index 00000000..56accf6f --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/entity/effect/MetamorphosisStatusEffect.java @@ -0,0 +1,60 @@ +package com.minelittlepony.unicopia.entity.effect; + +import java.util.HashMap; +import java.util.Map; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.Race; +import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.effect.StatusEffect; +import net.minecraft.entity.effect.StatusEffectCategory; +import net.minecraft.registry.Registries; +import net.minecraft.registry.Registry; +import net.minecraft.util.Identifier; + +public class MetamorphosisStatusEffect extends StatusEffect { + public static final int MAX_DURATION = 20 * 60; + + private static final Map REGISTRY = new HashMap<>(); + + public static final StatusEffect EARTH = register(0x886F0F, Race.EARTH); + public static final StatusEffect UNICORN = register(0x88FFFF, Race.UNICORN); + public static final StatusEffect PEGASUS = register(0x00C0ff, Race.PEGASUS); + public static final StatusEffect BAT = register(0x152F13, Race.BAT); + public static final StatusEffect CHANGELING = register(0xFFFF00, Race.CHANGELING); + public static final StatusEffect KIRIN = register(0xFF8800, Race.KIRIN); + public static final StatusEffect HIPPOGRIFF = register(0xE04F77, Race.HIPPOGRIFF); + + @Nullable + public static StatusEffect forRace(Race race) { + return REGISTRY.get(race); + } + + public static StatusEffect register(int color, Race race) { + Identifier id = Race.REGISTRY.getId(race); + StatusEffect effect = new MetamorphosisStatusEffect(color, race); + REGISTRY.put(race, effect); + return Registry.register(Registries.STATUS_EFFECT, + id.withPath(p -> "morph_race_" + p), + effect + ); + } + + public static Race getEffectiveRace(LivingEntity entity, Race fallback) { + return entity.getStatusEffects().stream().filter(effect -> effect.getEffectType() instanceof MetamorphosisStatusEffect).map(effect -> { + return ((MetamorphosisStatusEffect)effect.getEffectType()).getRace(); + }).findFirst().orElse(fallback); + } + + private final Race race; + + private MetamorphosisStatusEffect(int color, Race race) { + super(StatusEffectCategory.NEUTRAL, color); + this.race = race; + } + + public Race getRace() { + return race; + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/entity/effect/RaceChangeStatusEffect.java b/src/main/java/com/minelittlepony/unicopia/entity/effect/RaceChangeStatusEffect.java index 462936ad..210395b9 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/effect/RaceChangeStatusEffect.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/effect/RaceChangeStatusEffect.java @@ -1,5 +1,8 @@ package com.minelittlepony.unicopia.entity.effect; +import java.util.HashMap; +import java.util.Map; + import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.Race; @@ -28,25 +31,31 @@ public class RaceChangeStatusEffect extends StatusEffect { public static final int STAGE_DURATION = 200; public static final int MAX_DURATION = Stage.VALUES.length * STAGE_DURATION + 1; - public static final StatusEffect CHANGE_RACE_EARTH = register(0x886F0F, Race.EARTH); - public static final StatusEffect CHANGE_RACE_UNICORN = register(0x88FFFF, Race.UNICORN); - public static final StatusEffect CHANGE_RACE_PEGASUS = register(0x00FFFF, Race.PEGASUS); - public static final StatusEffect CHANGE_RACE_BAT = register(0x0FFF00, Race.BAT); - public static final StatusEffect CHANGE_RACE_CHANGELING = register(0xFFFF00, Race.CHANGELING); - public static final StatusEffect CHANGE_RACE_KIRIN = register(0xFF8800, Race.KIRIN); - public static final StatusEffect CHANGE_RACE_HIPPOGRIFF = register(0x00FFFF, Race.HIPPOGRIFF); + private static final Map REGISTRY = new HashMap<>(); + + @Nullable + public static StatusEffect forRace(Race race) { + return REGISTRY.get(race); + } + + public static final StatusEffect EARTH = register(0x886F0F, Race.EARTH); + public static final StatusEffect UNICORN = register(0x88FFFF, Race.UNICORN); + public static final StatusEffect PEGASUS = register(0x00C0ff, Race.PEGASUS); + public static final StatusEffect BAT = register(0x152F13, Race.BAT); + public static final StatusEffect CHANGELING = register(0xFFFF00, Race.CHANGELING); + public static final StatusEffect KIRIN = register(0xFF8800, Race.KIRIN); + public static final StatusEffect HIPPOGRIFF = register(0xE04F77, Race.HIPPOGRIFF); private final Race race; public static StatusEffect register(int color, Race race) { - Identifier id = Race.REGISTRY.getId(race); - return Registry.register(Registries.STATUS_EFFECT, - new Identifier(id.getNamespace(), "change_race_" + id.getPath().toLowerCase()), - new RaceChangeStatusEffect(color, race) - ); + Identifier id = race.getId(); + StatusEffect effect = new RaceChangeStatusEffect(color, race); + REGISTRY.put(race, effect); + return Registry.register(Registries.STATUS_EFFECT, id.withPath(p -> "change_race_" + id.getPath()), effect); } - public RaceChangeStatusEffect(int color, Race race) { + private RaceChangeStatusEffect(int color, Race race) { super(StatusEffectCategory.NEUTRAL, color); this.race = race; } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/effect/UPotions.java b/src/main/java/com/minelittlepony/unicopia/entity/effect/UPotions.java index 82f5a0b3..2fb07320 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/effect/UPotions.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/effect/UPotions.java @@ -1,29 +1,70 @@ package com.minelittlepony.unicopia.entity.effect; -import java.util.ArrayList; -import java.util.List; +import java.util.Objects; +import org.spongepowered.include.com.google.common.base.Preconditions; + +import com.minelittlepony.unicopia.Race; import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.item.UItems; +import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectInstance; +import net.minecraft.item.Item; +import net.minecraft.item.Items; import net.minecraft.potion.Potion; +import net.minecraft.potion.Potions; +import net.minecraft.recipe.BrewingRecipeRegistry; import net.minecraft.registry.Registry; +import net.minecraft.util.Identifier; import net.minecraft.registry.Registries; public interface UPotions { - List REGISTRY = new ArrayList<>(); - - Potion TRIBE_SWAP_EARTH_PONY = register("tribe_swap_earth", new Potion("unicopia.tribe_swap_earth", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_EARTH, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_UNICORN = register("tribe_swap_unicorn", new Potion("unicopia.tribe_swap_unicorn", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_UNICORN, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_PEGASUS = register("tribe_swap_pegasus", new Potion("unicopia.tribe_swap_pegasus", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_PEGASUS, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_BAT = register("tribe_swap_bat", new Potion("unicopia.tribe_swap_bat", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_BAT, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_CHANGELING = register("tribe_swap_changeling", new Potion("unicopia.tribe_swap_changeling", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_CHANGELING, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_KIRIN = register("tribe_swap_kirin", new Potion("unicopia.tribe_swap_kirin", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_KIRIN, RaceChangeStatusEffect.MAX_DURATION))); - Potion TRIBE_SWAP_HIPPOGRIFF = register("tribe_swap_hippogriff", new Potion("unicopia.tribe_swap_hippogriff", new StatusEffectInstance(RaceChangeStatusEffect.CHANGE_RACE_HIPPOGRIFF, RaceChangeStatusEffect.MAX_DURATION))); + MorphingPotion MORPH_EARTH_PONY = new MorphingPotion(Race.EARTH).registerBaseRecipes(Potions.STRENGTH, UItems.CURING_JOKE); + MorphingPotion MORPH_UNICORN = new MorphingPotion(Race.UNICORN).registerBaseRecipes(Potions.REGENERATION, UItems.BOTCHED_GEM); + MorphingPotion MORPH_PEGASUS = new MorphingPotion(Race.PEGASUS).registerBaseRecipes(Potions.SWIFTNESS, UItems.PEGASUS_FEATHER, UItems.HIPPOGRIFF_BADGE, Items.FEATHER); + MorphingPotion MORPH_BAT = new MorphingPotion(Race.BAT).registerBaseRecipes(Potions.NIGHT_VISION, UItems.BUTTERFLY); + MorphingPotion MORPH_CHANGELING = new MorphingPotion(Race.CHANGELING).registerBaseRecipes(Potions.HARMING, UItems.CARAPACE); + MorphingPotion MORPH_KIRIN = new MorphingPotion(Race.KIRIN).registerBaseRecipes(Potions.FIRE_RESISTANCE, Items.MAGMA_CREAM); + MorphingPotion MORPH_HIPPOGRIFF = new MorphingPotion(Race.HIPPOGRIFF).registerBaseRecipes(Potions.WATER_BREATHING, UItems.CLAM_SHELL, UItems.TURRET_SHELL, UItems.SCALLOP_SHELL); static Potion register(String name, Potion potion) { - REGISTRY.add(potion); - return Registry.register(Registries.POTION, Unicopia.id(name), potion); + return register(Unicopia.id(name), potion); + } + + static Potion register(Identifier id, Potion potion) { + return Registry.register(Registries.POTION, id, potion); + } + + static void addRecipe(Potion result, Potion basePotion, Item...items) { + Preconditions.checkArgument(BrewingRecipeRegistry.isBrewable(basePotion), "Base potion is not craftable. " + Registries.POTION.getId(basePotion) + " required for crafting " + Registries.POTION.getId(result)); + for (Item item : items) { + BrewingRecipeRegistry.registerPotionRecipe(basePotion, item, result); + } + } + + record MorphingPotion(Identifier id, Potion shortEffect, Potion longEffect, Potion permanentEffect) { + public MorphingPotion(Race race) { + this(race.getId(), + Objects.requireNonNull(MetamorphosisStatusEffect.forRace(race), "No metamorphosis status effect registered for " + race.getId()), + Objects.requireNonNull(RaceChangeStatusEffect.forRace(race), "No race change status effect registered for " + race.getId()) + ); + } + + public MorphingPotion(Identifier id, StatusEffect morphEffect, StatusEffect permanentEffect) { + this(id, + register(id.withPath(p -> "short_morph_" + p), new Potion(id.getNamespace() + ".short_morph_" + id.getPath(), new StatusEffectInstance(morphEffect, MetamorphosisStatusEffect.MAX_DURATION))), + register(id.withPath(p -> "long_morph_" + p), new Potion(id.getNamespace() + ".long_morph_" + id.getPath(), new StatusEffectInstance(morphEffect, MetamorphosisStatusEffect.MAX_DURATION * 10))), + register(id, new Potion(id.getNamespace() + ".tribe_swap_" + id.getPath(), new StatusEffectInstance(permanentEffect, RaceChangeStatusEffect.MAX_DURATION))) + ); + } + + public MorphingPotion registerBaseRecipes(Potion basePotion, Item...items) { + addRecipe(shortEffect, basePotion, items); + addRecipe(longEffect, shortEffect, Items.REDSTONE); + addRecipe(permanentEffect, longEffect, UItems.CURING_JOKE); + return this; + } } static void bootstrap() { diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/UTradeOffers.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/UTradeOffers.java index cedc1064..ff73a2f8 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/UTradeOffers.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/UTradeOffers.java @@ -4,7 +4,6 @@ import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.magic.spell.effect.SpellType; -import com.minelittlepony.unicopia.entity.effect.UPotions; import com.minelittlepony.unicopia.item.EnchantableItem; import com.minelittlepony.unicopia.item.UItems; import com.minelittlepony.unicopia.util.RegistryUtils; @@ -14,7 +13,6 @@ import net.minecraft.entity.Entity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; -import net.minecraft.potion.PotionUtil; import net.minecraft.registry.tag.ItemTags; import net.minecraft.registry.tag.TagKey; import net.minecraft.util.Util; @@ -22,7 +20,6 @@ import net.minecraft.util.math.random.Random; import net.minecraft.village.TradeOffer; import net.minecraft.village.TradeOffers; import net.minecraft.village.VillagerProfession; -import net.minecraft.village.TradeOffers.Factory; public interface UTradeOffers { static void bootstrap() { @@ -59,10 +56,6 @@ public interface UTradeOffers { factories.add(buy(UItems.CRYSTAL_HEART, 1, UItems.MUSIC_DISC_CRUSADE, 1, 10, 6, 0.08F)); factories.add(buy(UItems.PEGASUS_AMULET, 1, UItems.ALICORN_AMULET, 1, 2, 6, 0.05F)); factories.add(buyForEmeralds(UItems.FRIENDSHIP_BRACELET, 2, 1, 10, 7, 0.17F)); - factories.add(new SellPotionHoldingItemFactory( - new Item[] { Items.ARROW, Items.GLASS_BOTTLE, Items.GLASS_BOTTLE }, - new Item[] { Items.TIPPED_ARROW, Items.POTION, Items.SPLASH_POTION }, - 5, 5, 2, 12, 30)); }); } @@ -105,17 +98,4 @@ public interface UTradeOffers { return new TradeOffer(offer.getOriginalFirstBuyItem(), offer.getSecondBuyItem(), UItems.FILLED_JAR.withContents(offer.getSellItem()), offer.getUses(), offer.getMaxUses(), offer.getMerchantExperience(), offer.getPriceMultiplier(), offer.getDemandBonus()); } } - - record SellPotionHoldingItemFactory (Item[] secondBuy, Item[] tippedArrow, int secondCount, int sellCount, int price, int maxUses, int experience) implements Factory { - @Override - public TradeOffer create(Entity entity, Random random) { - int index = random.nextInt(tippedArrow.length); - return new TradeOffer( - new ItemStack(Items.EMERALD, price), - new ItemStack(secondBuy[index], secondCount), - PotionUtil.setPotion(new ItemStack(tippedArrow[index], sellCount), UPotions.REGISTRY.get(random.nextInt(UPotions.REGISTRY.size()))), - maxUses, experience, 0.05f - ); - } - } } diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 7b1f6ccf..fab87347 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -21,6 +21,7 @@ import com.minelittlepony.unicopia.advancement.UCriteria; import com.minelittlepony.unicopia.entity.*; import com.minelittlepony.unicopia.entity.behaviour.EntityAppearance; import com.minelittlepony.unicopia.entity.duck.LivingEntityDuck; +import com.minelittlepony.unicopia.entity.effect.MetamorphosisStatusEffect; import com.minelittlepony.unicopia.entity.effect.SunBlindnessStatusEffect; import com.minelittlepony.unicopia.entity.effect.UEffects; import com.minelittlepony.unicopia.entity.mob.UEntityAttributes; @@ -476,13 +477,13 @@ public class Pony extends Living implements Copyable, Update private void recalculateCompositeRace() { Race intrinsicRace = getSpecies(); Race suppressedRace = getSuppressedRace(); - compositeRace = getSpellSlot() + compositeRace = MetamorphosisStatusEffect.getEffectiveRace(entity, getSpellSlot() .get(SpellPredicate.IS_MIMIC, true) .map(AbstractDisguiseSpell::getDisguise) .map(EntityAppearance::getAppearance) .flatMap(Pony::of) .map(Pony::getSpecies) - .orElse(intrinsicRace).composite( + .orElse(intrinsicRace)).composite( AmuletSelectors.UNICORN_AMULET.test(entity) ? Race.UNICORN : AmuletSelectors.ALICORN_AMULET.test(entity) ? Race.ALICORN : null, diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index d516f4d9..39d28398 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -352,6 +352,19 @@ "effect.unicopia.butter_fingers": "Butterfingers", "effect.unicopia.change_race_earth": "Earth Pony Metamorphosis", + "effect.unicopia.change_race_pegasus": "Pegasus Metamorphosis", + "effect.unicopia.change_race_changeling": "Changeling Metamorphosis", + "effect.unicopia.change_race_bat": "Bat Pony Metamorphosis", + "effect.unicopia.change_race_kirin": "Kirin Metamorphosis", + "effect.unicopia.change_race_hippogriff": "Hippogriff Metamorphosis", + + "effect.unicopia.morph_race_earth": "Earth Pony Transformation", + "effect.unicopia.morph_race_pegasus": "Pegasus Transformation", + "effect.unicopia.morph_race_changeling": "Changeling Transformation", + "effect.unicopia.morph_race_bat": "Bat Pony Transformation", + "effect.unicopia.morph_race_kirin": "Kirin Transformation", + "effect.unicopia.morph_race_hippogriff": "Hippogriff Transformation", + "item.minecraft.potion.effect.unicopia.tribe_swap_earth": "Potion of Earth Pony Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_earth": "Splash Potion of Earth Pony Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_earth": "Lingering Potion of Earth Pony Metamorphosis", @@ -363,36 +376,101 @@ "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_unicorn": "Lingering Potion of Unicorn Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_unicorn": "Arrow of Unicorn Metamorphosis", - "effect.unicopia.change_race_pegasus": "Pegasus Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_pegasus": "Potion of Pegasus Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_pegasus": "Splash Potion of Pegasus Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_pegasus": "Lingering Potion of Pegasus Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_pegasus": "Arrow of Pegasus Metamorphosis", - "effect.unicopia.change_race_changeling": "Changeling Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_changeling": "Potion of Changeling Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_changeling": "Splash Potion of Changeling Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_changeling": "Lingering Potion of Changeling Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_changeling": "Arrow of Changeling Metamorphosis", - "effect.unicopia.change_race_bat": "Bat Pony Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_bat": "Potion of Bat Pony Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_bat": "Splash Potion of Bat Pony Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_bat": "Lingering Potion of Bat Pony Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_bat": "Arrow of Bat Pony Metamorphosis", - "effect.unicopia.change_race_kirin": "Kirin Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_kirin": "Potion of Kirin Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_kirin": "Splash Potion of Kirin Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_kirin": "Lingering Potion of Kirin Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_kirin": "Arrow of Kirin Metamorphosis", - "effect.unicopia.change_race_hippogriff": "Hippogriff Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_hippogriff": "Potion of Hippogriff Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_hippogriff": "Splash Potion of Hippogriff Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_hippogriff": "Lingering Potion of Hippogriff Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_hippogriff": "Arrow of Hippogriff Metamorphosis", + "item.minecraft.potion.effect.unicopia.short_morph_earth": "Potion of Earth Pony Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_earth": "Splash Potion of Earth Pony Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_earth": "Lingering Potion of Earth Pony Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_earth": "Arrow of Earth Pony Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_unicorn": "Potion of Unicorn Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_unicorn": "Splash Potion of Unicorn Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_unicorn": "Lingering Potion of Unicorn Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_unicorn": "Arrow of Unicorn Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_pegasus": "Potion of Pegasus Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_pegasus": "Splash Potion of Pegasus Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_pegasus": "Lingering Potion of Pegasus Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_pegasus": "Arrow of Pegasus Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_changeling": "Potion of Changeling Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_changeling": "Splash Potion of Changeling Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_changeling": "Lingering Potion of Changeling Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_changeling": "Arrow of Changeling Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_bat": "Potion of Bat Pony Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_bat": "Splash Potion of Bat Pony Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_bat": "Lingering Potion of Bat Pony Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_bat": "Arrow of Bat Pony Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_kirin": "Potion of Kirin Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_kirin": "Splash Potion of Kirin Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_kirin": "Lingering Potion of Kirin Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_kirin": "Arrow of Kirin Short Transformation", + + "item.minecraft.potion.effect.unicopia.short_morph_hippogriff": "Potion of Hippogriff Short Transformation", + "item.minecraft.splash_potion.effect.unicopia.short_morph_hippogriff": "Splash Potion of Hippogriff Short Transformation", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_hippogriff": "Lingering Potion of Hippogriff Short Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_hippogriff": "Arrow of Hippogriff Short Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_earth": "Potion of Earth Pony Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_earth": "Splash Potion of Earth Pony Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_earth": "Lingering Potion of Earth Pony Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_earth": "Arrow of Earth Pony Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_unicorn": "Potion of Unicorn Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_unicorn": "Splash Potion of Unicorn Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_unicorn": "Lingering Potion of Unicorn Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_unicorn": "Arrow of Unicorn Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_pegasus": "Potion of Pegasus Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_pegasus": "Splash Potion of Pegasus Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_pegasus": "Lingering Potion of Pegasus Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_pegasus": "Arrow of Pegasus Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_changeling": "Potion of Changeling Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_changeling": "Splash Potion of Changeling Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_changeling": "Lingering Potion of Changeling Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_changeling": "Arrow of Changeling Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_bat": "Potion of Bat Pony Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_bat": "Splash Potion of Bat Pony Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_bat": "Lingering Potion of Bat Pony Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_bat": "Arrow of Bat Pony Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_kirin": "Potion of Kirin Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_kirin": "Splash Potion of Kirin Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_kirin": "Lingering Potion of Kirin Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_kirin": "Arrow of Kirin Long Transformation", + + "item.minecraft.potion.effect.unicopia.long_morph_hippogriff": "Potion of Hippogriff Long Transformation", + "item.minecraft.splash_potion.effect.unicopia.long_morph_hippogriff": "Splash Potion of Hippogriff Long Transformation", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_hippogriff": "Lingering Potion of Hippogriff Long Transformation", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_hippogriff": "Arrow of Hippogriff Long Transformation", + "potion.withChance": "1 in %s chance of %s", "potion.potency.6": "VII", diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/change_race_hippogriff.png b/src/main/resources/assets/unicopia/textures/mob_effect/change_race_hippogriff.png new file mode 100644 index 0000000000000000000000000000000000000000..057c22409e21fdc91613ef0bc6383267b36b0e52 GIT binary patch literal 6551 zcmeHLd010d7JpeFVH*~s1w{!_^r43A2}udEMF6v`W=#t5T~}5%;CF)TP#~16Xa{Md?)L+$@Nle&3AqP5(1|_rCkiJ?D4N?|09A z$>W3JLsJ8MyZd4o7NAZ`$%JbVYD{nFBObOB7{?0qMT?H4n_^8(1I!L zhp`CA(~IK#xTqkaG`g2JgX!bz2M)V~kWw@%o#y35r^D>=7g1 z&KZ@f)sg!A0>gNVwRB>cZPMiT|6V?8_M8vwOO`HMzT(4`t5!QIt2S)hRK0o2&d+x3 z{``wQd-r{P=y3g!hNH)hfAj76?;5|qaPiXh8#jOYM^kglt)K5dc=+h?lh&ut+7K_q z)AMmL`vb3F;62;_FfO5j7{X|Bl$q|A|=#u@}59Vg57E%A()5b0Yjb+ zUHnAP`W|?6Z94+-zE+J2o4lN*NeF^)%Dqw;^_r_z`3v{hRCA@QA275*0z9k17t=&4{K>a7Fu(6+_C30f!q(MSlM&hrh|ev zt1FR{C!x{E@md?8^Z+vjF}skhQB6tRIo4tC?^f z_Jl1NlX!hyKX5!^L5h3r!yQ$s@wlT}3*ZTFsaRRTPTa6Z>(TTj+_C7)JREWw=ARBZ zck|TA-U7(w42X4JS=j_^zMA^%8wDg$kILhbMiuGrut%dnXBon}X@Ohe?v4!U7w?C> zJd^19o39=JwBU)lz+u24T#<<6)a&bq+*;#gcn_7w-hJ`-pk2}76I1ji~{|%1Qr<>vzU8{E3 zpS|Dg4SPPLbsz4iJ-r>$qs;|!mzC?!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IE zquGz?A12w66x60>7Z>|c5!{ZK+^`NF8(dG*~6FJBn7=fMXLu;N^L-3(;Za=UN7OcV9kQCo~i{l+T&9u_);N)wK%`$-=##p7>};U;jgkN=J=aVGWBY<_;ja0PG23qakiK~f1q*GRMwdNn zT+;f^PU{m*wC&5FJ9qRsdY|bv_ohA@8GSxir0!BR$^L9yBF4umF3S_{ZvEn+WJB|$ zAsjoB1!l<=~zG literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/change_race_kirin.png b/src/main/resources/assets/unicopia/textures/mob_effect/change_race_kirin.png new file mode 100644 index 0000000000000000000000000000000000000000..33be07ce36037ad660129e341a1d821a5991f4fc GIT binary patch literal 6550 zcmeHLdt6g>8$V;f#)P;HM4}i2awubG7hv1VNQ5aP5r!n{YvtK?fXQWZ8#2vOki1M^ z#amvolx0TcB{f4u3>05AH8V8xmL%TGkW5i5d7s}I!%==d@9X=i|D2y^=h^S~Jm25* z{XV~QI6voRj~wp93T0s!=A%ka%YmyOGNvbdhu`idFpPPE9HYutsRm(87=uWfJ4Wk? zqq+EQG&)9y@mXL2;G-C1p)?QbIv@OJd;F!~^Lk?3z!%coFdw+C1`~nLhU>>*`q_@P z_JIF27?b*!4jw{wUWcnPvpJ$TAs#1|Kt3)K%Z0ccmvO)m;c~GUqG@X%RRpP+7xoZy zU?U_aCj{%{gnTEbq2SYd>P5U+#Y{E11;dJz5BcFR?IJBm}(d- zglNE5_gO3zV|scrJUy5U2E)sX$?|6Vc=zk)Js=>^m;GF5`18+&hJ|sW;s$cKv5{e6 zyu_GTTqu!9!UxI}Qc)7{79kLtmzS4!KkpD9pAb<*ScK?_Ki!R(KNHnNr*Sbie;VDN z*4>PSL!BNp>f@k-h|=9XJQ++cRzC>X?uV43ySdXnJlx%3_6?ZF-2FWQB7`ZPfog)m zox~PZEUIBf4&Blelym%6lvrb`^kN0~4;c^|{lY+A%pgg8LZVbAPfb$}8=kJp7?u0- z=)5sw$7ywBenFvrqS;b5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bF?;L4nt70`?0cpJ2n)$5a z=E9SzE!FFPubMr5-R0#6KdAo1d)NYx+?tfq`%T@g<#nTpiQi(SAGDxa|9myk{GK8hHKAf?$Q4=jRpkeq6BrC))CVG~QYg@s8=GUs~8K zkJjJk?}=e}fA7{5UsrcGd1Uwu@3LjPXwN)T(ZMA*zrMSEbA8?PW1l^EK#Tj)G;jUl ztSj&yYSrhCv5d(aA=es8;s~8VL&jN4jMU%fq!+D5LR&;yI2y7*U#j4?*MGs~=yeKi zUVJ8=X-p*x_32Yhqxl@d!Acr&?%1l~PIhicA zM7l!gw7vPpGE*@{N2e8##bgPDnqgI8pC!>-cW(xgpg><@q_RNlK9LrE{v)ya)P`m# zIHgu_jRzuhHRrp)MciOP~_IED_J=<03qPh{uKS z_A8>GbXxf^gQgfs0krolmg_u=4aS9X+)+M)%QWcp`BVN|G`e{> zNe~Y$PuH7a{VCLt{>!4sJCX+gFkVwSyg$Y6tA5JS;zBE2x#uw%5G-3^|lg3LE`l6c+`Id6RM5Yvg zj-VB6PwJG);Zco>=^I^MNTM!)V08nxV(e-}ve2#oxFBKtEmNiS&Ic*HgKkNP#B`e!9D!%JoDFJW=q|-SwBr z#d>s{B1_>ds2mPUH?|cFhohFK=B43jSP<493*DaHj{b|@%a}gajA8u(kkls3P!c1W qyK`~H>-@DWdr|UKt7iJc*$=T2r72oC`{4p~zEvqlrfnKJq4GcFl=kxg literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_bat.png b/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_bat.png new file mode 100644 index 0000000000000000000000000000000000000000..77ef99b8aef63890e68f52aef831982b45c99e55 GIT binary patch literal 4462 zcmeHKYj6|S6<*2pOJF8rZ1NyeFG~_*6KNloEbZE|4U&vy5U57uxb8r`k1Mf7(hBX` zl3@~Fv13XCG%=3`ho%h)4NgKS0j4;FSDTPD)I6pn>A1!5v;jgO5J;SqhV<@AmQ9kG zj%S*GUd`1#d+#~lJ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main/resources/assets/unicopia/textures/mob_effect/morph_race_changeling.png new file mode 100644 index 0000000000000000000000000000000000000000..c29bf471b8754cd9c52b60e38fd92cb2bca9b448 GIT binary patch literal 4377 zcmeHKYj6|S6<(R(Hy!E#F_0hcJsX=8?rF)c}3I*kc5p)pfJ6HJoH%QVeohW1A$I83KN2#?ln0!cwVyOL$Q z%}mEL%|EZ_`kp=aobR6V-E)t_zWsr@h)co;-WFU{us{_Fh&RA`<)$Rg+nsM;7jc44rjpJ!I z?{tH;<-k}(2GZL@9u82xFW1+H0`>KHN>!qA9AQ|d?|VP?`db`I7i^S}0oijV$ z4DJ8q8DjT?-9)(b#Z~=ZTTI>Dx_Cxl=i@&gelT?{_WZ}g=MMF6?Z-=RZDwoPWyk$H zKKoYp9NW6gi64zz;ZCF%;EtN6qsOC`;IY#>voNalM=s2^R4yvAc$uTSxWGMw$6mhj z>wOgUe>^Y-@-KN(pVJYTjT`^2TaZ~pR${>sMP)5A}%?7TU=>DnU$ErNRL z-tr}zuiWv*jq2&EUb_3}753~KyWjU%w!C|C&xfBrF#qJxl8gTwm{VI+Jn-1#mj(`g zV%b}Ja`?%G`(C(fx?I*>bnVf`vpv&@V|SnJbssy!H80p)dAg=!+MRb6i4AYB`>ZRi zod4j~W%=~gk|mqf?H4|OUWFRW$l+GKHQ2<9O2R5gN(5OmiIj0*n5Qn262$dL$0H~v zC%wegmtG-oS@IGOID>RBRgcUQrS5usW?hk!RP(XQ($o}$v} zv^8zFDr$_faU4g{48<@cSddy*QWr90Qd?v|AmCoW zonSqhyJ-wo!65Hb#1138fX_=9`}2|_$`Wsih~XrsB|QqzT`hzuwIx5|LypxvxpM2M7}HkNdtC_}P##zjhYiE*$Ihsd~`;~?%+ zWvEIaK0Yb~N&=`T676nUbdfI6Es_o{!jXbx6G)MkoJe3@4!gveP?E?uDr!Q2-C=U0XTUV^dGW13K0(4*ksC7R@9M`mmxEGN)fT`<_RxoMZ3WgKouhoNcL zm{AK-HK;@b)9jt*ig7GFB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4-r;9I@OPyb+k5mDiq=as?=a^FBtF>=K8#>N{Y-|riWo!x6|n%JwDM%x?~q31(}sd7xH>U(Je5X z8jpa)SrqA3uS zLjB-fnN%`R$*hxMe2j}^M7Ni8F>aak`D8cgj(RvwVqL5#c`Pbf;wx1xF2HdraUq7N zWFlq_n1b_j!$Cj6Ix?$TJ>h!6h{6OvQLQ8z(gVyE)qy!Dkje(A!6@;ht3xz*m9n_4W=+rV~o&pF)(hSLZ|64Gs&tb~U8T}rY zQU9Y!nFSb>WME#V50V$;LModK`!qAt&UaY)&f+^<0jNh78J4~ya*fC}ECq%I9*M3I zxrU{{u)rhH^{vTOFz`Bs67Vl51usjLi9h@uUbOPXhvx^dFR`82;dj2i+kE*NoviwS zj$vcQnbn4E-!Tz7M;XCT#i+}+N#pFr^ACikLD%1cfw>Xi8L4h({%=0teXBQqY)|jy ze{P-A+q3l6jqANfUfbTgq7#XAb#>>*B~Ep`@p*CnGk1Ix`pZdr!}^vMTieI}i;ab5 zsc{~-xc%88;)A@_mZCzlE`6)#awl28%lpQUNO`BOLiytt@ zTk~ET(=|ou`Rukccha`v)%f@CYTDO+?DUy-DBV40yuRtBg?8KK;~l3rFG%CZb2jfB zbN+WvPBiP1*RMo7K8}|7?>oBmLVNeB$8&$^Jl%=qZ~DiJSB>VYsa-a#blZD>-Sqpl Rr@&1tSg|m$XI@?Fe*k%C_~QTo literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_hippogriff.png b/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_hippogriff.png new file mode 100644 index 0000000000000000000000000000000000000000..f52bfd19031f5c4ad992f80a4f6164d04697972b GIT binary patch literal 4654 zcmeHKeNYtV8Q%jzL~$5`_}Q?oMg-m4kK4Q3T{#pvkTV{+fg3{1#Bpyw&MkMh$L+!$ zbZRt~28*#a;@BugV~lCQ_=V9Kw5ir~OrykP(mLtXRBPK2KZ>@d(bfk0?%wg0W~M`@ z>0jK<%lq#0{@&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h1)GOX~(S$P1~%)tXGL@ z7-XW3Y1B@`Tt5~T1OtfW^gIOs#yp6H%~eHCQ&f+l_#Mb#)g4@Rf$Jo28kfguA^;t% z!=8aUych@7IOc#3=TZb&s{U`<`sIPMfIc|#LOBffuQsM)H>y;uh>c=HzieD37&a~i z%ki-g!d#Uo7=8k**b={<3;IM*J^IsiU|#;7RNy#~v{Rf7CF}%=T5Wb7rEL;}l9J%H zcyWQY(e{z(VMWp+oGRw{0FQtxke7@8v?33>2knD8KI)yN zKVMD^6_$q~Xwo#jnV?5YFi3Xh<#^~n9Dao;(%%uB z%GzFdzGMe|wl5*)Kyq<;hg6~6Sh&3NgW|1?jSsWG=wP=C*AD%nBjTR;#&aw7qsj9= zTQqA|%`+djuKD4m$c4!5y1>C@sUO_vEAPJf-a>J8Q^_}vbB`UK5O}k<_D6xK2`A5P z!Q^*$R8EWUc{%+=^ImI4=jLx;QvFSQ>7|p$HdXoy_O-6jUMor|cy+;~Ps)P@cQ)Nk z%D(z_{e^}fpQ08VENR4_eoN8no*uvFZz&0z&t#hpKj@48arV863aPF3Px!&zU+g{i zS?>Ynv_JK?Czkq-*giZ)AdtJEYt05IIql6Q{MN61@tteii*BYooPSUY-CsBBXQ#ia i{+;9K+n;yzLDToo{p)L~na2THkTbtH@5u6XTmJ=3T1lAz literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_pegasus.png b/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_pegasus.png new file mode 100644 index 0000000000000000000000000000000000000000..56b4c3e04c5c54c19995129b55e4ba2e4ed44f22 GIT binary patch literal 4428 zcmeHLeNa@_72m}mNTB0j6eCG^J{nQt+xM{_Z}-W9$bxLbDp7`zOq%ZdxVyZO-M7Ad zz(U#tLJ8Us^P!HJ1QV)_nTTUziO`T#QQO8^iET4u(;26t(`hgte#ACPY@p}8<+II9 zhneO--p<{7-nr-e?zz8v?t!~o%h#<T=>qqKFUM)2UO(^ zc)hu%WOxBf^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(JBx&yWLI*f@Ft~SO;QxXTUDTp(K$jQPdC*+bM_mAR;5- zpfQI|I9FKib>obMn$(on@LB*I+<2KBu8mC&RLCK;QR8(sX_j(Wos6BP7$<9U*e8uD zks5_e)G>|PX^iOG!ogyISYFRl05J5h7OqG|yr!rXic;goC#vqmun&%t#B02V*AReC z)ZvQpI(#2Raa25f9nPmna-iXVS?h-f%L9AZ@=`ep^EVi(_=(zxHpk!MuQjr9lrYRV z6dW(cmk{OakYvOOSn(mTnhysNRFAQA9oNg>k_wEAv0803OGs>hC2WGk5(3L30?{_s zDmWN{W!UNHQ6-?&^C~I~0*}BIq^I#03R`Y$)QaiW_0>q<1t5%|Xo6w?lQ42@!K7X@ z##fw2{ud{ChQX8~1AcKG6fdZS@pOkSr@82$^YhszSbuXPwMT62X5)_P1|nL15X6rEEpa6;qdh<1^K@!ONHn0<6kU(wDO+go!6TGJUTj>b1HFY$@-%=uVp=K{hj6G z8((IeXxUY8;h>-Q`}_AdtpDZRC)_K0_I7*KV@Gx!9en4_+miM!&(6+Xke|`N`cJ1a zM_)+WoE~gxODxRjxAnf-aO<_^=H_GGj%T53E-dWW-CUi~-?ZJCc`kELdwaX*-6qgq zxb}5oYEon0g%8_))1;$4cnHgUslW5U$`p3~-+#16yl|%Xxzv**ZSu0*dw)AnF#MW7 maD3liPIW)+FWCdXf!uw5B=^PB%ZFgmCU5aN&%rhRr~VBw(g2qL literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_unicorn.png b/src/main/resources/assets/unicopia/textures/mob_effect/morph_race_unicorn.png new file mode 100644 index 0000000000000000000000000000000000000000..b8151af32737bb777e9a57cb47d1473a6b430d79 GIT binary patch literal 4397 zcmeHKe{2)i9Y2SWgpf=q1qP*qH{vT6JyCckj%J*k|r8 zu|qXVnq>`b2W%vzYtxBsU8^+++R+k~c9b8JsJdp|R4J-9G=5A|`B9Q=Y%Pot?|WzG z*H&qYwEmZ8J-_dL-}n1@-}ian_qA_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=FX{(rsA*dd?bRE^JUy=&Q>v1Uzf-GP}FX@glJjwBJ#d#4i zUYE06u!bfsFjngQ(KXB3P2c1GbHQ%Pr|6&hAFFN zjPAIC`Y%o@Y=a3!2K=%*C|*ztsj*_1(^{~KLJ Date: Sat, 27 Jan 2024 21:18:42 +0000 Subject: [PATCH 082/104] Add a trap to the changling hive using the new potion --- .../chests/changeling_hive_trap.json | 204 ++++++++++++++++++ .../changeling_hive/trapped/offshoot2.nbt | Bin 0 -> 1204 bytes .../changeling_hive/side_passages.json | 9 + 3 files changed, 213 insertions(+) create mode 100644 src/main/resources/data/unicopia/loot_tables/chests/changeling_hive_trap.json create mode 100644 src/main/resources/data/unicopia/structures/changeling_hive/trapped/offshoot2.nbt diff --git a/src/main/resources/data/unicopia/loot_tables/chests/changeling_hive_trap.json b/src/main/resources/data/unicopia/loot_tables/chests/changeling_hive_trap.json new file mode 100644 index 00000000..2dac1a86 --- /dev/null +++ b/src/main/resources/data/unicopia/loot_tables/chests/changeling_hive_trap.json @@ -0,0 +1,204 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_earth" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 3 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_unicorn" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_pegasus" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_bat" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_kirin" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 1 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:short_morph_hippogriff" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 1 + }, + + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_earth" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 5 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_unicorn" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_pegasus" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_bat" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_kirin" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 2 + }, + { + "type": "minecraft:item", + "name": "minecraft:tipped_arrow", + "functions": [ + { "function": "minecraft:set_potion", "id": "unicopia:long_morph_hippogriff" }, + { + "function": "minecraft:set_count", + "count": { + "min": 3.0, + "max": 9.0, + "type": "minecraft:uniform" + } + } + ], + "weight": 2 + } + ], + "rolls": 6.0 + } + ] +} diff --git a/src/main/resources/data/unicopia/structures/changeling_hive/trapped/offshoot2.nbt b/src/main/resources/data/unicopia/structures/changeling_hive/trapped/offshoot2.nbt new file mode 100644 index 0000000000000000000000000000000000000000..497a7b7d9fa58ceb76e5d94d6d61d6f653796a2b GIT binary patch literal 1204 zcmV;l1WWrLiwFP!00000|K*xZkK;4|hMmOu{#XPO`~l#)_dRn&hy&tUd0I~=yPc#; zTt@H@_{*F~cIvjWPmT0WvOD{03G8 zGSZPrfV0iGoNdPCY%?xrn{hd(z}aS8&Nkz6wi%bR&A6ODyIl1I3mFMAv4a&HU!kKX z06qcm34l)sd_v$8-tk#txqMFEAmeh5fO7<#z&QoZDR54Kb9%>liRE(6fKLW|GT@T~Rt{J>U=@H>09FB5C190+ zRRUH8SQTJZfK`L}TmzpP_|(9s0X_}zX@E}yeC92@Vl8D{_arvsy9e;G0?-qJ9-DDF z+l=qK+vj6*u5)_24*(h8_p*;=Gp_S40V@V9oAEt6_zH$$(D= zSUKp)K~DjC3eZ!69-DEk2_;}vfK`E>8uZwVYi`tl)c{rlSPfv!oAexKn;|`}`5XXN z09XNFg@6?TRtQ*jZS}45KA#BqNWhYSB>^i2tQfFjz)Aos0jvbDQou?9D+4_l=*dA( z4tfgEQ-Gcl^pv2d0zDPzsXti*5)d1GKT|c9R3x9J6K_&tj7b^rk5%7sX zkA21uK*q(2K_cjd;bz8k_yY1?!{X@SW+l^lB)i|o{oZk2SPW*_{VLnA2QNvansI+jWa5-Dk)86Ml_r3XT-f!{!MY|r&`2GsA zGK1Q`I(~C@+_d9fccUH_zVO5aHv8Wkbi3?dPVapBN%v}}jnVUER1~84b?EncnE$(K zIwoV+zx*lUN3|REbgbkr^AUM>fp1OQ2{h`v)2Q(1mj~gxG~M?vdeEC= zZ6-2hjGCs!Mo2RprVo;-bUF|dzCW0!GxuC;hIaqb4tn*}_n)o-*)(m`@O(j#T8-xP z?ndCqInv{6@dZP^d4?xxAr_MJ%QU0xl|B{wtrdU!sWZnt09ES%K4SG!YYK9_EpNR&S*qkh-J SIFAtZ-{N1WM??XJC;$L+YD;7Q literal 0 HcmV?d00001 diff --git a/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/side_passages.json b/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/side_passages.json index 2c4bb501..0a5bd470 100644 --- a/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/side_passages.json +++ b/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/side_passages.json @@ -117,6 +117,15 @@ }, "weight": 3 }, + { + "element": { + "element_type": "minecraft:single_pool_element", + "location": "unicopia:changeling_hive/trapped/offshoot2", + "processors": "unicopia:changeling_hive_decay", + "projection": "rigid" + }, + "weight": 3 + }, { "element": { "element_type": "minecraft:single_pool_element", From fcad058e3af0ee686ae0d13adf9055e7cf6f5c31 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 27 Jan 2024 21:19:01 +0000 Subject: [PATCH 083/104] Add the bulb as a possible generation in the pit --- .../changeling_hive/pit_decoration/bulb.nbt | Bin 0 -> 1549 bytes .../changeling_hive/pit_decors.json | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/main/resources/data/unicopia/structures/changeling_hive/pit_decoration/bulb.nbt diff --git a/src/main/resources/data/unicopia/structures/changeling_hive/pit_decoration/bulb.nbt b/src/main/resources/data/unicopia/structures/changeling_hive/pit_decoration/bulb.nbt new file mode 100644 index 0000000000000000000000000000000000000000..daf0e3140b9123614c9455c86d68ffe22991251c GIT binary patch literal 1549 zcmV+o2J-nIiwFP!00000|E*YEY!p=#zVoxo?3Se!i?pIxjaXuc8Z|M&kp4q!id`yI zG{|yy_wM%6*}2QiovjO)C=yhHi3(_ zkE2MpiK!7sT7eXp38P|OW4~?k?(#-jAQs1kB1{0o@h;9ynzp%XLXIM}8(XCFF@#(| zY(2};93`f^go0v2MPg!3nIWzlkUBCl&D7kc^3Qe081}#H5)=a!l9R zc*?{^o*<83$FI5ER#?=Z)^_8x0xOXMxF=;53CSV}EgUdPwhn_htrNJ8uf@8)RxeW{ z5AIo%WG2UY4`X_kjSFqy=ccZ-#mu4*>q>ENFBCI-DY((d5adK7)=MxS70wk-YwQPw zy(TO6j0%Y5L~PAu^Gb@fZ!l0rnQf)g zww|u?^zMg-e)@BN-~GoNQ5G@6eMk$o}NAf=NI8_51e0` zp8oGDilZpUW}a{fY1B&UxJ*oNftJxJm>I|-v|?GzF%cChH9iJc|Y}+6S2w&XSJ~_Fgzj@z-g|S`dcK#Sg@eDIf+wtri z(4vD^Jh5di2~~t!KklSI>r9)$_#mD<7@7HW>MG_jgy1UR-=?UV6Ov zNS&UZKSJnf|D;xYxaR8F-cqNYwfgbaEn|I8zJKlta$UZ8db~K*uZMlSI=aQ~+yCjVACBH} z#Av!5?}N(ob1BU8bGX*~pz{2ztW!^EZ{k|hrvA_N{JW?}`99KqTb`eTb-WK&G}n55 z((m5l`{3!RGxsdKuRD4oVIS#x=ehUl)e}R}^-N$LKFIq`HEw?R>Nm%i`PUH??I&30 zqg@kXdVG-NxG0=Z3}vKrQBzt4f`^QCCX`-L!6VQDm}Ri84KwbvAbu<4{Gbeq=>wb; z+-64HYU(nf2bxujRlgSd2Y4@8$p+H0VCki;ooWARy_o++e|4`6uSqD>Zqp=eR@PBn z`H3EEBxz=Bq&UbJht)OFak(u4_zdTX8-zx`#HTVCdH~bu;xa&vTb^4Mu9u4z?-&6&y3bAeN;T#7Q_%(A3g8%Zw#OV!2U}9iDKmN|sJ# z^Yp#)M%3|_Yq?V$Obnb` zBZuHDhu|!S;4FvWEZ5*%D_3up8%hn%vvnyUI4dDID>XRJUP}$ZS*^i&E{q&vt)P5X zYjBp3yM3ae$TmjdQ(rTgu8X|_4XK9MWO$(RZ7!;Hp6Jxbr$%XsJX)kYl_gMm0a|2C zM~yT45u{M$WeqjtsDbsAyV{bf?FtiH@PRKXt-AxzG&8o1<}Ey~`Q6_QR_CY$)!tD6 zv!IA|!Z~qz6=>y>&>7bq%V6VW6v<)TB9-lw+WacRiJ4(c&C2cO8UNU(@XaHBKyEF>-@^kkHVJIeuR3nTSoN#M|h9axMQ`6cYdd18fB; literal 0 HcmV?d00001 diff --git a/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/pit_decors.json b/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/pit_decors.json index c2d1801b..f5380f91 100644 --- a/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/pit_decors.json +++ b/src/main/resources/data/unicopia/worldgen/template_pool/changeling_hive/pit_decors.json @@ -52,6 +52,17 @@ "projection": "rigid" }, "weight": 1 + }, + { + "element": { + "element_type": "minecraft:single_pool_element", + "location": "unicopia:changeling_hive/pit_decoration/bulb", + "processors": { + "processors": [] + }, + "projection": "rigid" + }, + "weight": 1 } ], "fallback": "minecraft:empty" From 7c1eaf87363bf4816519554cdb3fec15f34b07eb Mon Sep 17 00:00:00 2001 From: Cryghast Date: Sun, 28 Jan 2024 22:44:28 +0800 Subject: [PATCH 084/104] update zh_cn and en_us --- .../resources/assets/unicopia/lang/en_us.json | 3 +- .../resources/assets/unicopia/lang/zh_cn.json | 106 ++++++++++++++++-- 2 files changed, 100 insertions(+), 9 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 39d28398..f409a35f 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -352,6 +352,7 @@ "effect.unicopia.butter_fingers": "Butterfingers", "effect.unicopia.change_race_earth": "Earth Pony Metamorphosis", + "effect.unicopia.change_race_unicorn": "Unicorn Metamorphosis", "effect.unicopia.change_race_pegasus": "Pegasus Metamorphosis", "effect.unicopia.change_race_changeling": "Changeling Metamorphosis", "effect.unicopia.change_race_bat": "Bat Pony Metamorphosis", @@ -359,6 +360,7 @@ "effect.unicopia.change_race_hippogriff": "Hippogriff Metamorphosis", "effect.unicopia.morph_race_earth": "Earth Pony Transformation", + "effect.unicopia.morph_race_unicorn": "Unicorn Transformation", "effect.unicopia.morph_race_pegasus": "Pegasus Transformation", "effect.unicopia.morph_race_changeling": "Changeling Transformation", "effect.unicopia.morph_race_bat": "Bat Pony Transformation", @@ -370,7 +372,6 @@ "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_earth": "Lingering Potion of Earth Pony Metamorphosis", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_earth": "Arrow of Earth Pony Metamorphosis", - "effect.unicopia.change_race_unicorn": "Unicorn Metamorphosis", "item.minecraft.potion.effect.unicopia.tribe_swap_unicorn": "Potion of Unicorn Metamorphosis", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_unicorn": "Splash Potion of Unicorn Metamorphosis", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_unicorn": "Lingering Potion of Unicorn Metamorphosis", diff --git a/src/main/resources/assets/unicopia/lang/zh_cn.json b/src/main/resources/assets/unicopia/lang/zh_cn.json index b8525bd7..9eb2718d 100644 --- a/src/main/resources/assets/unicopia/lang/zh_cn.json +++ b/src/main/resources/assets/unicopia/lang/zh_cn.json @@ -123,6 +123,7 @@ "item.unicopia.green_apple_seeds": "史密斯婆婆苹果的种子", "item.unicopia.sweet_apple_seeds": "甜苹果的种子", "item.unicopia.sour_apple_seeds": "酸苹果的种子", + "item.unicopia.golden_oak_seeds": "金橡树种子", "item.unicopia.apple_pie_hoof": "蹄印苹果派", "item.unicopia.apple_pie_slice": "一片苹果派", "item.unicopia.candied_apple": "苹果蜜饯", @@ -248,6 +249,10 @@ "block.unicopia.weather_vane": "风向标", "block.unicopia.curing_joke": "疗玩笑", "block.unicopia.gold_root": "黄金根", + "block.unicopia.golden_oak_sprout": "金橡树嫩芽", + "block.unicopia.golden_oak_sapling": "金橡树树苗", + "block.unicopia.golden_oak_leaves": "金橡树树叶", + "block.unicopia.golden_oak_log": "金橡树原木", "block.unicopia.mango": "芒果", "block.unicopia.mango_leaves": "芒果树叶", "block.unicopia.mango_sapling": "芒果树苗", @@ -347,47 +352,126 @@ "effect.unicopia.butter_fingers": "手滑", "effect.unicopia.change_race_earth": "转生陆马", + "effect.unicopia.change_race_unicorn": "转生独角兽", + "effect.unicopia.change_race_pegasus": "转生天马", + "effect.unicopia.change_race_changeling": "转生幻形灵", + "effect.unicopia.change_race_bat": "转生夜骐", + "effect.unicopia.change_race_kirin": "转生麒麟", + "effect.unicopia.change_race_hippogriff": "转生骏鹰", + + "effect.unicopia.morph_race_earth": "变成陆马", + "effect.unicopia.morph_race_unicopia": "变成独角兽", + "effect.unicopia.morph_race_pegasus": "变成天马", + "effect.unicopia.morph_race_changeling": "变成幻形灵", + "effect.unicopia.morph_race_bat": "变成夜骐", + "effect.unicopia.morph_race_kirin": "变成麒麟", + "effect.unicopia.morph_race_hippogriff": "变成骏鹰", + "item.minecraft.potion.effect.unicopia.tribe_swap_earth": "转生陆马药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_earth": "喷溅型转生陆马药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_earth": "滞留型转生陆马药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_earth": "转生陆马之箭", - "effect.unicopia.change_race_unicorn": "转生独角兽", "item.minecraft.potion.effect.unicopia.tribe_swap_unicorn": "转生独角兽药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_unicorn": "喷溅型转生独角兽药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_unicorn": "滞留型转生独角兽药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_unicorn": "转生独角兽之箭", - "effect.unicopia.change_race_pegasus": "转生天马", "item.minecraft.potion.effect.unicopia.tribe_swap_pegasus": "转生天马药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_pegasus": "喷溅型转生天马药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_pegasus": "滞留型转生天马药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_pegasus": "转生天马之箭", - "effect.unicopia.change_race_changeling": "转生幻形灵", "item.minecraft.potion.effect.unicopia.tribe_swap_changeling": "转生幻形灵药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_changeling": "喷溅型转生幻形灵药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_changeling": "滞留型转生幻形灵药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_changeling": "转生幻形灵之箭", - "effect.unicopia.change_race_bat": "转生夜骐", "item.minecraft.potion.effect.unicopia.tribe_swap_bat": "转生夜骐药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_bat": "喷溅型转生夜骐药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_bat": "滞留型转生夜骐药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_bat": "转生夜骐之箭", - "effect.unicopia.change_race_kirin": "转生麒麟", "item.minecraft.potion.effect.unicopia.tribe_swap_kirin": "转生麒麟药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_kirin": "喷溅型转生麒麟药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_kirin": "滞留型转生麒麟药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_kirin": "转生麒麟之箭", - "effect.unicopia.change_race_hippogriff": "转生骏鹰", "item.minecraft.potion.effect.unicopia.tribe_swap_hippogriff": "转生骏鹰药水", "item.minecraft.splash_potion.effect.unicopia.tribe_swap_hippogriff": "喷溅型转生骏鹰药水", "item.minecraft.lingering_potion.effect.unicopia.tribe_swap_hippogriff": "滞留型转生骏鹰药水", "item.minecraft.tipped_arrow.effect.unicopia.tribe_swap_hippogriff": "转生骏鹰之箭", - + + "item.minecraft.potion.effect.unicopia.short_morph_earth": "短效变成陆马药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_earth": "喷溅型短效变成陆马药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_earth": "滞留型短效变成陆马药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_earth": "短效变成陆马之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_unicorn": "短效变成独角兽药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_unicorn": "喷溅型短效变成独角兽药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_unicorn": "滞留型短效变成独角兽药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_unicorn": "短效变成独角兽之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_pegasus": "短效变成天马药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_pegasus": "喷溅型短效变成天马药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_pegasus": "滞留型短效变成天马药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_pegasus": "短效变成天马之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_changeling": "短效变成幻形灵药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_changeling": "喷溅型短效变成幻形灵药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_changeling": "滞留型短效变成幻形灵药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_changeling": "短效变成幻形灵之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_bat": "短效变成夜骐药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_bat": "喷溅型短效变成夜骐药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_bat": "滞留型短效变成夜骐药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_bat": "短效变成夜骐之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_kirin": "短效变成麒麟药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_kirin": "喷溅型短效变成麒麟药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_kirin": "滞留型短效变成麒麟药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_kirin": "短效变成麒麟之箭", + + "item.minecraft.potion.effect.unicopia.short_morph_hippogriff": "短效变成骏鹰药水", + "item.minecraft.splash_potion.effect.unicopia.short_morph_hippogriff": "喷溅型短效变成骏鹰药水", + "item.minecraft.lingering_potion.effect.unicopia.short_morph_hippogriff": "滞留型短效变成骏鹰药水", + "item.minecraft.tipped_arrow.effect.unicopia.short_morph_hippogriff": "短效变成骏鹰之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_earth": "长效变成陆马药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_earth": "喷溅型长效变成陆马药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_earth": "滞留型长效变成陆马药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_earth": "长效变成陆马之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_unicorn": "长效变成独角兽药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_unicorn": "喷溅型长效变成独角兽药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_unicorn": "滞留型长效变成独角兽药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_unicorn": "长效变成独角兽之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_pegasus": "长效变成天马药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_pegasus": "喷溅型长效变成天马药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_pegasus": "滞留型长效变成天马药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_pegasus": "长效变成天马之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_changeling": "长效变成幻形灵药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_changeling": "喷溅型长效变成幻形灵药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_changeling": "滞留型长效变成幻形灵药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_changeling": "长效变成幻形灵之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_bat": "长效变成夜骐药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_bat": "喷溅型长效变成夜骐药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_bat": "滞留型长效变成夜骐药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_bat": "长效变成夜骐之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_kirin": "长效变成麒麟药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_kirin": "喷溅型长效变成麒麟药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_kirin": "滞留型长效变成麒麟药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_kirin": "长效变成麒麟之箭", + + "item.minecraft.potion.effect.unicopia.long_morph_hippogriff": "长效变成骏鹰药水", + "item.minecraft.splash_potion.effect.unicopia.long_morph_hippogriff": "喷溅型长效变成骏鹰药水", + "item.minecraft.lingering_potion.effect.unicopia.long_morph_hippogriff": "滞留型长效变成骏鹰药水", + "item.minecraft.tipped_arrow.effect.unicopia.long_morph_hippogriff": "长效变成骏鹰之箭", + "potion.withChance": "%s 分之 1 的概率为 %s", "potion.potency.6": "VII", @@ -993,6 +1077,10 @@ "death.attack.unicopia.rock.self": "%1$s 被击中了", "death.attack.unicopia.rock.item": "%1$s 被 %2$s 用 %3$s 击中了", "death.attack.unicopia.rock.player": "%1$s 被 %2$s 击中了", + "death.attack.unicopia.horseshoe": "%1$s 被咣了", + "death.attack.unicopia.horseshoe.self": "%1$s 咣了自己", + "death.attack.unicopia.horseshoe.item": "%1$s 被 %2$s 用 %3$s 咣了", + "death.attack.unicopia.horseshoe.player": "%1$s 被 %2$s 咣了", "death.fell.accident.ladder.pegasus": "%1$s 从梯子上掉下来时忘了自己会飞", "death.fell.accident.vines.pegasus": "%1$s 从藤蔓上掉下来时忘了自己会飞", @@ -1110,7 +1198,7 @@ "advancements.unicopia.eat_pinecone.title": "豁出去了", "advancements.unicopia.eat_pinecone.description": "吃下一颗松果", "advancements.unicopia.imported_oats.title": "昂贵的味道", - "advancements.unicopia.imported_oats.description": "用魔法邮寄高档进口燕麦", + "advancements.unicopia.imported_oats.description": "寄出或收到高档进口燕麦", "advancements.unicopia.experimental.title": "你不能带走它", "advancements.unicopia.experimental.description": "给一件工具附上经验提取的魔力", @@ -1159,6 +1247,8 @@ "advancements.unicopia.earth_route.description": "入伙苹果帮", "advancements.unicopia.sticks_and_stones.title": "岩与攻击", "advancements.unicopia.sticks_and_stones.description": "扔出石块砸死一位生灵", + "advancements.unicopia.dead_ringer.title": "死亡回旋", + "advancements.unicopia.dead_ringer.description": "用蹄铁砸死一位生灵", "advancements.unicopia.born_on_a_rock_farm.title": "种石得石", "advancements.unicopia.born_on_a_rock_farm.description": "播种石籽", "advancements.unicopia.thats_unusual.title": "不对劲", From 78dbc800aef9c08b0413cc1b876e6190a2887bab Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 29 Jan 2024 16:35:08 +0000 Subject: [PATCH 085/104] Assign traits to a lot of items that needed it --- .../com/minelittlepony/unicopia/Debug.java | 50 ++++++-- .../com/minelittlepony/unicopia/UTags.java | 1 + .../magic/spell/trait/ItemWithTraits.java | 5 + .../magic/spell/trait/SpellTraits.java | 8 ++ .../unicopia/item/TraitItem.java | 21 ++++ .../resources/data/c/tags/items/boats.json | 15 +++ .../resources/data/c/tags/items/concrete.json | 21 ++++ .../data/c/tags/items/concrete_powders.json | 21 ++++ .../data/c/tags/items/glazed_terracotta.json | 21 ++++ .../resources/data/c/tags/items/seeds.json | 2 + .../overworld/organic_plant_derived.json | 30 +++++ .../organic_plant_derived_artificial.json | 8 ++ .../minecraft/tags/items/chest_boats.json | 6 + ...oden_fence_gates.json => fence_gates.json} | 0 .../minecraft/tags/items/hanging_signs.json | 6 + .../minecraft/tags/items/logs_that_burn.json | 13 ++ .../data/minecraft/tags/items/saplings.json | 7 +- .../data/minecraft/tags/items/slabs.json | 6 + .../data/minecraft/tags/items/stairs.json | 6 + .../data/minecraft/tags/items/tools.json | 7 ++ .../minecraft/tags/items/wooden_doors.json | 4 +- ...rate_artificial_materials_from_ground.json | 23 +--- .../conglomerate_materials_from_ground.json | 54 +-------- ...d_rock_derived.json => cracked_stone.json} | 0 .../traits/blocks/overworld/dirt.json | 7 ++ .../traits/blocks/overworld/dirt_worked.json | 11 ++ .../traits/blocks/overworld/energised.json | 7 ++ .../blocks/overworld/infested_stone.json | 13 ++ .../intellectual_objects_studicious.json | 10 ++ .../blocks/overworld/intellectual_worked.json | 7 ++ .../blocks/overworld/living_matter.json | 45 +------ .../loose_materials_from_ground.json | 21 +--- .../overworld/materials_from_the_ground.json | 2 +- .../mechanical_with_organic_components.json | 59 ++------- .../blocks/overworld/organic_dead_matter.json | 4 +- .../overworld/organic_plant_derived.json | 112 ++---------------- .../overworld/organic_plant_derived_dark.json | 2 +- .../traits/blocks/overworld/refined_ores.json | 2 +- .../overworld/rocks_and_rock_derived.json | 5 + .../traits/blocks/overworld/skulk.json | 11 ++ .../traits/blocks/overworld/skulk_worked.json | 7 ++ .../blocks/overworld/soft_and_kind.json | 9 ++ .../traits/items/overworld/animal_horns.json | 7 ++ .../traits/items/overworld/chaotic.json | 6 +- .../items/overworld/chaotic_worked.json | 9 ++ .../items/overworld/clothing_bloody.json | 3 +- .../items/overworld/edible_cooked_meat.json | 12 +- .../traits/items/overworld/edible_fruits.json | 7 ++ .../items/overworld/edible_plant_based.json | 4 +- .../edible_plant_based_and_modified.json | 4 +- .../items/overworld/edible_raw_meat.json | 6 +- .../overworld/edible_raw_meat_from_sea.json | 5 +- .../overworld/edible_raw_meat_poisoned.json | 3 +- .../traits/items/overworld/full_o_life.json | 9 +- .../items/overworld/full_o_life_wet.json | 6 +- .../traits/items/overworld/full_o_water.json | 2 +- .../items/overworld/intellectual_objects.json | 19 +-- .../intellectual_objects_enchanted.json | 3 +- .../intellectual_objects_focused.json | 4 +- .../intellectual_objects_studicious.json | 4 + .../overworld/organic_plant_derived.json | 30 +++++ .../organic_plant_derived_artificial.json | 19 +-- .../traits/items/overworld/special.json | 3 +- .../traits/items/overworld/tools.json | 27 +---- .../items/overworld/uplifting_trinkets.json | 14 +-- .../traits/items/underworld/weapons.json | 3 +- .../data/unicopia/tags/items/badges.json | 13 ++ .../data/unicopia/tags/items/chitin.json | 12 ++ .../data/unicopia/tags/items/cloud_slabs.json | 1 + .../unicopia/tags/items/cloud_stairs.json | 4 +- .../unicopia/tags/items/floats_on_clouds.json | 4 +- .../unicopia/tags/items/has_no_traits.json | 20 ++++ .../data/unicopia/traits/chitin.json | 9 ++ .../unicopia/traits/edible_plant_based.json | 18 --- .../resources/data/unicopia/traits/food.json | 33 ++++++ .../data/unicopia/traits/from_the_ground.json | 6 +- .../data/unicopia/traits/gilded.json | 11 ++ .../traits/intellectual_objects_ordered.json | 8 ++ .../resources/data/unicopia/traits/love.json | 8 ++ .../data/unicopia/traits/magical.json | 8 ++ .../data/unicopia/traits/organic_living.json | 8 ++ .../traits/organic_plant_derived.json | 10 -- .../organic_plant_derived_artificial.json | 7 ++ .../traits/organic_plant_derived_zap.json | 3 +- .../data/unicopia/traits/shells.json | 8 ++ .../data/unicopia/traits/soft_and_kind.json | 9 ++ .../data/unicopia/traits/special.json | 7 +- .../unicopia/traits/uplifting_trinkets.json | 4 +- 88 files changed, 648 insertions(+), 441 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/ItemWithTraits.java create mode 100644 src/main/java/com/minelittlepony/unicopia/item/TraitItem.java create mode 100644 src/main/resources/data/c/tags/items/boats.json create mode 100644 src/main/resources/data/c/tags/items/concrete.json create mode 100644 src/main/resources/data/c/tags/items/concrete_powders.json create mode 100644 src/main/resources/data/c/tags/items/glazed_terracotta.json create mode 100644 src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived.json create mode 100644 src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived_artificial.json create mode 100644 src/main/resources/data/minecraft/tags/items/chest_boats.json rename src/main/resources/data/minecraft/tags/items/{wooden_fence_gates.json => fence_gates.json} (100%) create mode 100644 src/main/resources/data/minecraft/tags/items/hanging_signs.json create mode 100644 src/main/resources/data/minecraft/tags/items/logs_that_burn.json create mode 100644 src/main/resources/data/minecraft/tags/items/slabs.json create mode 100644 src/main/resources/data/minecraft/tags/items/stairs.json create mode 100644 src/main/resources/data/minecraft/tags/items/tools.json rename src/main/resources/data/minecraft/traits/blocks/overworld/{degraded_rocks_and_rock_derived.json => cracked_stone.json} (100%) create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/dirt.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/dirt_worked.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/energised.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/infested_stone.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_objects_studicious.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_worked.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/skulk.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/skulk_worked.json create mode 100644 src/main/resources/data/minecraft/traits/blocks/overworld/soft_and_kind.json create mode 100644 src/main/resources/data/minecraft/traits/items/overworld/animal_horns.json create mode 100644 src/main/resources/data/minecraft/traits/items/overworld/chaotic_worked.json create mode 100644 src/main/resources/data/minecraft/traits/items/overworld/edible_fruits.json create mode 100644 src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived.json create mode 100644 src/main/resources/data/unicopia/tags/items/badges.json create mode 100644 src/main/resources/data/unicopia/tags/items/chitin.json create mode 100644 src/main/resources/data/unicopia/tags/items/has_no_traits.json create mode 100644 src/main/resources/data/unicopia/traits/chitin.json delete mode 100644 src/main/resources/data/unicopia/traits/edible_plant_based.json create mode 100644 src/main/resources/data/unicopia/traits/food.json create mode 100644 src/main/resources/data/unicopia/traits/gilded.json create mode 100644 src/main/resources/data/unicopia/traits/intellectual_objects_ordered.json create mode 100644 src/main/resources/data/unicopia/traits/love.json create mode 100644 src/main/resources/data/unicopia/traits/magical.json create mode 100644 src/main/resources/data/unicopia/traits/organic_living.json delete mode 100644 src/main/resources/data/unicopia/traits/organic_plant_derived.json create mode 100644 src/main/resources/data/unicopia/traits/organic_plant_derived_artificial.json create mode 100644 src/main/resources/data/unicopia/traits/shells.json create mode 100644 src/main/resources/data/unicopia/traits/soft_and_kind.json diff --git a/src/main/java/com/minelittlepony/unicopia/Debug.java b/src/main/java/com/minelittlepony/unicopia/Debug.java index 2e5a9982..8cc8847e 100644 --- a/src/main/java/com/minelittlepony/unicopia/Debug.java +++ b/src/main/java/com/minelittlepony/unicopia/Debug.java @@ -1,33 +1,35 @@ package com.minelittlepony.unicopia; +import java.util.Set; +import java.util.concurrent.atomic.AtomicReference; +import java.util.stream.Collectors; + +import com.google.common.collect.Sets; import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.entity.mob.AirBalloonEntity; import com.minelittlepony.unicopia.entity.mob.UEntities; import net.minecraft.entity.vehicle.BoatEntity; import net.minecraft.registry.Registries; +import net.minecraft.registry.tag.TagKey; +import net.minecraft.util.Identifier; import net.minecraft.world.World; +import net.minecraft.world.dimension.DimensionTypes; public interface Debug { boolean SPELLBOOK_CHAPTERS = Boolean.getBoolean("unicopia.debug.spellbookChapters"); boolean CHECK_GAME_VALUES = Boolean.getBoolean("unicopia.debug.checkGameValues"); + boolean CHECK_TRAIT_COVERAGE = Boolean.getBoolean("unicopia.debug.checkTraitCoverage"); - boolean[] TESTS_COMPLETE = {false}; + AtomicReference LAST_TESTED_WORLD = new AtomicReference<>(null); static void runTests(World world) { - if (!CHECK_GAME_VALUES || TESTS_COMPLETE[0]) { + if (!CHECK_GAME_VALUES || !world.getDimensionKey().getValue().equals(DimensionTypes.OVERWORLD_ID) || (LAST_TESTED_WORLD.getAndSet(world) == world)) { return; } - TESTS_COMPLETE[0] = true; - try { - Registries.ITEM.getEntrySet().forEach(entry -> { - if (SpellTraits.of(entry.getValue()).isEmpty()) { - // Unicopia.LOGGER.warn("No traits registered for item {}", entry.getKey()); - } - }); - } catch (Throwable t) { - throw new IllegalStateException("Tests failed", t); + if (CHECK_TRAIT_COVERAGE) { + testTraitCoverage(); } try { @@ -40,4 +42,30 @@ public interface Debug { throw new IllegalStateException("Tests failed", t); } } + + private static void testTraitCoverage() { + Registries.ITEM.getEntrySet().stream().collect(Collectors.toMap( + entry -> entry.getKey().getValue().getNamespace(), + Set::of, + Sets::union + )).forEach((namespace, entries) -> { + @SuppressWarnings("deprecation") + var unregistered = entries.stream() + .filter(entry -> !entry.getValue().getRegistryEntry().isIn(UTags.HAS_NO_TRAITS) && SpellTraits.of(entry.getValue()).isEmpty()) + .map(entry -> { + String id = entry.getKey().getValue().toString(); + + return id + "(" + Registries.ITEM.streamTags() + .filter(entry.getValue().getRegistryEntry()::isIn) + .map(TagKey::id) + .map(Identifier::toString) + .collect(Collectors.joining(", ")) + ")"; + }) + .toList(); + + if (!unregistered.isEmpty()) { + Unicopia.LOGGER.warn("No traits registered for {} items in namepsace {} {}", unregistered.size(), namespace, String.join(",\r\n", unregistered)); + } + }); + } } diff --git a/src/main/java/com/minelittlepony/unicopia/UTags.java b/src/main/java/com/minelittlepony/unicopia/UTags.java index 9d4a460b..e8d0b5d7 100644 --- a/src/main/java/com/minelittlepony/unicopia/UTags.java +++ b/src/main/java/com/minelittlepony/unicopia/UTags.java @@ -23,6 +23,7 @@ public interface UTags { TagKey SHADES = item("shades"); TagKey CHANGELING_EDIBLE = item("food_types/changeling_edible"); TagKey SPOOKED_MOB_DROPS = item("spooked_mob_drops"); + TagKey HAS_NO_TRAITS = item("has_no_traits"); TagKey IS_DELIVERED_AGGRESSIVELY = item("is_delivered_aggressively"); TagKey FLOATS_ON_CLOUDS = item("floats_on_clouds"); TagKey COOLS_OFF_KIRINS = item("cools_off_kirins"); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/ItemWithTraits.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/ItemWithTraits.java new file mode 100644 index 00000000..5b6cd107 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/ItemWithTraits.java @@ -0,0 +1,5 @@ +package com.minelittlepony.unicopia.ability.magic.spell.trait; + +public interface ItemWithTraits { + SpellTraits getDefaultTraits(); +} diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/SpellTraits.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/SpellTraits.java index ac082e3c..d6ca4d8c 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/SpellTraits.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/trait/SpellTraits.java @@ -27,6 +27,7 @@ import net.fabricmc.api.Environment; import net.minecraft.block.Block; import net.minecraft.inventory.Inventory; import net.minecraft.item.Item; +import net.minecraft.item.SpawnEggItem; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NbtCompound; import net.minecraft.nbt.NbtElement; @@ -38,6 +39,7 @@ import net.minecraft.registry.Registries; public final class SpellTraits implements Iterable> { public static final SpellTraits EMPTY = new SpellTraits(Map.of()); + private static final SpellTraits SPAWN_EGG_TRAITS = new SpellTraits(Map.of(Trait.LIFE, 20F)); private static Map REGISTRY = new HashMap<>(); static final Map> ITEMS = new HashMap<>(); @@ -212,6 +214,12 @@ public final class SpellTraits implements Iterable> { } public static SpellTraits of(Item item) { + if (item instanceof ItemWithTraits i) { + return i.getDefaultTraits(); + } + if (item instanceof SpawnEggItem) { + return SPAWN_EGG_TRAITS; + } return REGISTRY.getOrDefault(Registries.ITEM.getId(item), EMPTY); } diff --git a/src/main/java/com/minelittlepony/unicopia/item/TraitItem.java b/src/main/java/com/minelittlepony/unicopia/item/TraitItem.java new file mode 100644 index 00000000..c3b95049 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/item/TraitItem.java @@ -0,0 +1,21 @@ +package com.minelittlepony.unicopia.item; + +import com.minelittlepony.unicopia.ability.magic.spell.trait.ItemWithTraits; +import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; +import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; + +import net.minecraft.item.Item; + +public class TraitItem extends Item implements ItemWithTraits { + private final SpellTraits traits; + + public TraitItem(Trait trait, Settings settings) { + super(settings); + this.traits = new SpellTraits.Builder().with(trait, 1).build(); + } + + @Override + public SpellTraits getDefaultTraits() { + return traits; + } +} diff --git a/src/main/resources/data/c/tags/items/boats.json b/src/main/resources/data/c/tags/items/boats.json new file mode 100644 index 00000000..dde2408d --- /dev/null +++ b/src/main/resources/data/c/tags/items/boats.json @@ -0,0 +1,15 @@ +{ + "replace": false, + "values": [ + "minecraft:oak_boat", + "minecraft:bamboo_raft", + "minecraft:spruce_boat", + "minecraft:birch_boat", + "minecraft:jungle_boat", + "minecraft:acacia_boat", + "minecraft:dark_oak_boat", + "minecraft:mangrove_boat", + "minecraft:cherry_boat", + "unicopia:palm_boat" + ] +} diff --git a/src/main/resources/data/c/tags/items/concrete.json b/src/main/resources/data/c/tags/items/concrete.json new file mode 100644 index 00000000..c09d67ba --- /dev/null +++ b/src/main/resources/data/c/tags/items/concrete.json @@ -0,0 +1,21 @@ +{ + "replace": false, + "values": [ + "minecraft:white_concrete", + "minecraft:orange_concrete", + "minecraft:magenta_concrete", + "minecraft:light_blue_concrete", + "minecraft:yellow_concrete", + "minecraft:lime_concrete", + "minecraft:pink_concrete", + "minecraft:gray_concrete", + "minecraft:light_gray_concrete", + "minecraft:cyan_concrete", + "minecraft:purple_concrete", + "minecraft:blue_concrete", + "minecraft:brown_concrete", + "minecraft:green_concrete", + "minecraft:red_concrete", + "minecraft:black_concrete" + ] +} diff --git a/src/main/resources/data/c/tags/items/concrete_powders.json b/src/main/resources/data/c/tags/items/concrete_powders.json new file mode 100644 index 00000000..e3142856 --- /dev/null +++ b/src/main/resources/data/c/tags/items/concrete_powders.json @@ -0,0 +1,21 @@ +{ + "replace": false, + "values": [ + "minecraft:white_concrete_powder", + "minecraft:orange_concrete_powder", + "minecraft:magenta_concrete_powder", + "minecraft:light_blue_concrete_powder", + "minecraft:yellow_concrete_powder", + "minecraft:lime_concrete_powder", + "minecraft:pink_concrete_powder", + "minecraft:gray_concrete_powder", + "minecraft:light_gray_concrete_powder", + "minecraft:cyan_concrete_powder", + "minecraft:purple_concrete_powder", + "minecraft:blue_concrete_powder", + "minecraft:brown_concrete_powder", + "minecraft:green_concrete_powder", + "minecraft:red_concrete_powder", + "minecraft:black_concrete_powder" + ] +} diff --git a/src/main/resources/data/c/tags/items/glazed_terracotta.json b/src/main/resources/data/c/tags/items/glazed_terracotta.json new file mode 100644 index 00000000..02b98848 --- /dev/null +++ b/src/main/resources/data/c/tags/items/glazed_terracotta.json @@ -0,0 +1,21 @@ +{ + "replace": false, + "values": [ + "minecraft:white_glazed_terracotta", + "minecraft:orange_glazed_terracotta", + "minecraft:magenta_glazed_terracotta", + "minecraft:light_blue_glazed_terracotta", + "minecraft:yellow_glazed_terracotta", + "minecraft:lime_glazed_terracotta", + "minecraft:pink_glazed_terracotta", + "minecraft:gray_glazed_terracotta", + "minecraft:light_gray_glazed_terracotta", + "minecraft:cyan_glazed_terracotta", + "minecraft:purple_glazed_terracotta", + "minecraft:blue_glazed_terracotta", + "minecraft:brown_glazed_terracotta", + "minecraft:green_glazed_terracotta", + "minecraft:red_glazed_terracotta", + "minecraft:black_glazed_terracotta" + ] +} diff --git a/src/main/resources/data/c/tags/items/seeds.json b/src/main/resources/data/c/tags/items/seeds.json index d0c9c06a..d61f66fb 100644 --- a/src/main/resources/data/c/tags/items/seeds.json +++ b/src/main/resources/data/c/tags/items/seeds.json @@ -1,6 +1,8 @@ { "replace": false, "values": [ + "minecraft:pumpkin_seeds", + "minecraft:melon_seeds", "unicopia:oat_seeds", "unicopia:green_apple_seeds", "unicopia:sweet_apple_seeds", diff --git a/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived.json b/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived.json new file mode 100644 index 00000000..fc16efe7 --- /dev/null +++ b/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived.json @@ -0,0 +1,30 @@ +{ + "replace": false, + "traits": "earth:2 life:1", + "items": [ + "#minecraft:planks", + "#minecraft:logs_that_burn", + "#minecraft:wooden_stairs", + "#minecraft:wooden_slabs", + "#minecraft:wooden_fences", + + "minecraft:sponge", + "minecraft:cobweb", + + "minecraft:kelp", + "minecraft:cake", + "minecraft:chorus_plant", + "minecraft:moss_carpet", + "minecraft:mossy_cobblestone", + + "minecraft:brown_mushroom_block", + "minecraft:red_mushroom_block", + "minecraft:mushroom_stem", + + "minecraft:slime_block", + "minecraft:honey_block", + "minecraft:honeycomb_block", + "minecraft:bee_nest", + "minecraft:beehive" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived_artificial.json b/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived_artificial.json new file mode 100644 index 00000000..72b34d4b --- /dev/null +++ b/src/main/resources/data/farmersdelight/traits/items/overworld/organic_plant_derived_artificial.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "order:1 knowledge:3", + "items": [ + "#farmersdelight:canvas_signs", + "#farmersdelight:cabinets" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/chest_boats.json b/src/main/resources/data/minecraft/tags/items/chest_boats.json new file mode 100644 index 00000000..4ffee04d --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/chest_boats.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_chest_boat" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/wooden_fence_gates.json b/src/main/resources/data/minecraft/tags/items/fence_gates.json similarity index 100% rename from src/main/resources/data/minecraft/tags/items/wooden_fence_gates.json rename to src/main/resources/data/minecraft/tags/items/fence_gates.json diff --git a/src/main/resources/data/minecraft/tags/items/hanging_signs.json b/src/main/resources/data/minecraft/tags/items/hanging_signs.json new file mode 100644 index 00000000..2d324a64 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/hanging_signs.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_hanging_sign" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/logs_that_burn.json b/src/main/resources/data/minecraft/tags/items/logs_that_burn.json new file mode 100644 index 00000000..4e7dd5d0 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/logs_that_burn.json @@ -0,0 +1,13 @@ +{ + "replace": false, + "values": [ + "unicopia:palm_log", + "unicopia:palm_wood", + "unicopia:stripped_palm_log", + "unicopia:stripped_palm_wood", + "unicopia:zap_log", + "unicopia:zap_wood", + "unicopia:stripped_zap_log", + "unicopia:stripped_zap_wood" + ] +} diff --git a/src/main/resources/data/minecraft/tags/items/saplings.json b/src/main/resources/data/minecraft/tags/items/saplings.json index c504b996..1be3e7f1 100644 --- a/src/main/resources/data/minecraft/tags/items/saplings.json +++ b/src/main/resources/data/minecraft/tags/items/saplings.json @@ -1,6 +1,11 @@ { "replace": false, "values": [ - "unicopia:mango_sapling" + "unicopia:mango_sapling", + "unicopia:palm_sapling", + "unicopia:green_apple_sapling", + "unicopia:sour_apple_sapling", + "unicopia:sweet_apple_sapling", + "unicopia:zapling" ] } diff --git a/src/main/resources/data/minecraft/tags/items/slabs.json b/src/main/resources/data/minecraft/tags/items/slabs.json new file mode 100644 index 00000000..56e1871c --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/slabs.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "unicopia:chiselled_chitin_slab" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/stairs.json b/src/main/resources/data/minecraft/tags/items/stairs.json new file mode 100644 index 00000000..ddd6b7e3 --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/stairs.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "unicopia:chiselled_chitin_stairs" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/tools.json b/src/main/resources/data/minecraft/tags/items/tools.json new file mode 100644 index 00000000..1a41feac --- /dev/null +++ b/src/main/resources/data/minecraft/tags/items/tools.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "#unicopia:horse_shoes", + "#unicopia:polearms" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/tags/items/wooden_doors.json b/src/main/resources/data/minecraft/tags/items/wooden_doors.json index e7071e6f..b00445b2 100644 --- a/src/main/resources/data/minecraft/tags/items/wooden_doors.json +++ b/src/main/resources/data/minecraft/tags/items/wooden_doors.json @@ -1,6 +1,8 @@ { "replace": false, "values": [ - "unicopia:palm_door" + "unicopia:palm_door", + "unicopia:dark_oak_stable_door", + "unicopia:stable_door" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_artificial_materials_from_ground.json b/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_artificial_materials_from_ground.json index fb4ea397..401bed91 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_artificial_materials_from_ground.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_artificial_materials_from_ground.json @@ -2,23 +2,12 @@ "replace": false, "traits": "earth:1 chaos:1", "items": [ + "#minecraft:walls", + "#minecraft:slabs", + "#minecraft:stairs", "minecraft:cobblestone", - "minecraft:cobblestone_stairs", - "minecraft:cobblestone_slab", - "minecraft:cobblestone_wall", - "minecraft:mossy_cobblestone_wall", - "minecraft:mossy_cobblestone_stairs", - "minecraft:mossy_cobblestone_slab", - "minecraft:cobbled_deepslate_wall", - "minecraft:cobbled_deepslate_stairs", - "minecraft:cobbled_deepslate_slab", - "minecraft:sandstone_stairs", - "minecraft:sandstone", - "minecraft:chiseled_sandstone", - "minecraft:cut_sandstone", - "minecraft:sandstone_slab", - "minecraft:cut_sandstone_slab", - "minecraft:sandstone_wall", - "minecraft:smooth_sandstone_slab" + "#c:uncolored_sandstone_blocks", + "#c:uncolored_sandstone_stairs", + "#c:uncolored_sandstone_slabs" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_materials_from_ground.json b/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_materials_from_ground.json index aa98dbe1..a19e4901 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_materials_from_ground.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/conglomerate_materials_from_ground.json @@ -2,56 +2,8 @@ "replace": false, "traits": "earth:1 order:1 knowledge:4", "items": [ - "minecraft:white_concrete", - "minecraft:orange_concrete", - "minecraft:magenta_concrete", - "minecraft:light_blue_concrete", - "minecraft:yellow_concrete", - "minecraft:lime_concrete", - "minecraft:pink_concrete", - "minecraft:gray_concrete", - "minecraft:light_gray_concrete", - "minecraft:cyan_concrete", - "minecraft:purple_concrete", - "minecraft:blue_concrete", - "minecraft:brown_concrete", - "minecraft:green_concrete", - "minecraft:red_concrete", - "minecraft:black_concrete", - - "minecraft:white_terracotta", - "minecraft:orange_terracotta", - "minecraft:magenta_terracotta", - "minecraft:light_blue_terracotta", - "minecraft:yellow_terracotta", - "minecraft:lime_terracotta", - "minecraft:pink_terracotta", - "minecraft:gray_terracotta", - "minecraft:light_gray_terracotta", - "minecraft:cyan_terracotta", - "minecraft:purple_terracotta", - "minecraft:blue_terracotta", - "minecraft:brown_terracotta", - "minecraft:green_terracotta", - "minecraft:red_terracotta", - "minecraft:black_terracotta", - "minecraft:terracotta", - - "minecraft:white_glazed_terracotta", - "minecraft:orange_glazed_terracotta", - "minecraft:magenta_glazed_terracotta", - "minecraft:light_blue_glazed_terracotta", - "minecraft:yellow_glazed_terracotta", - "minecraft:lime_glazed_terracotta", - "minecraft:pink_glazed_terracotta", - "minecraft:gray_glazed_terracotta", - "minecraft:light_gray_glazed_terracotta", - "minecraft:cyan_glazed_terracotta", - "minecraft:purple_glazed_terracotta", - "minecraft:blue_glazed_terracotta", - "minecraft:brown_glazed_terracotta", - "minecraft:green_glazed_terracotta", - "minecraft:red_glazed_terracotta", - "minecraft:black_glazed_terracotta" + "#minecraft:terracotta", + "#c:concrete", + "#c:glazed_terracotta" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/degraded_rocks_and_rock_derived.json b/src/main/resources/data/minecraft/traits/blocks/overworld/cracked_stone.json similarity index 100% rename from src/main/resources/data/minecraft/traits/blocks/overworld/degraded_rocks_and_rock_derived.json rename to src/main/resources/data/minecraft/traits/blocks/overworld/cracked_stone.json diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/dirt.json b/src/main/resources/data/minecraft/traits/blocks/overworld/dirt.json new file mode 100644 index 00000000..a77f37dd --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/dirt.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "earth:6", + "items": [ + "#minecraft:dirt" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/dirt_worked.json b/src/main/resources/data/minecraft/traits/blocks/overworld/dirt_worked.json new file mode 100644 index 00000000..118714f4 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/dirt_worked.json @@ -0,0 +1,11 @@ +{ + "replace": false, + "traits": "earth:5 strength:3", + "items": [ + "minecraft:packed_mud", + "minecraft:decorated_pot", + "minecraft:reinforced_deepslate", + "minecraft:mud_bricks", + "minecraft:farmland" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/energised.json b/src/main/resources/data/minecraft/traits/blocks/overworld/energised.json new file mode 100644 index 00000000..9e26b500 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/energised.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "power:4", + "items": [ + "minecraft:coal_block" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/infested_stone.json b/src/main/resources/data/minecraft/traits/blocks/overworld/infested_stone.json new file mode 100644 index 00000000..4fd0a29b --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/infested_stone.json @@ -0,0 +1,13 @@ +{ + "replace": false, + "traits": "life:2 blood:1 earth:6", + "items": [ + "minecraft:infested_cracked_stone_bricks", + "minecraft:infested_stone", + "minecraft:infested_stone_bricks", + "minecraft:infested_chiseled_stone_bricks", + "minecraft:infested_deepslate", + "minecraft:infested_cobblestone", + "minecraft:infested_mossy_stone_bricks" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_objects_studicious.json b/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_objects_studicious.json new file mode 100644 index 00000000..d37f0009 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_objects_studicious.json @@ -0,0 +1,10 @@ +{ + "replace": false, + "traits": "knowledge:9 life:3 water:9", + "items": [ + "minecraft:ochre_froglight", + "minecraft:verdant_froglight", + "minecraft:pearlescent_froglight", + "minecraft:frogspawn" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_worked.json b/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_worked.json new file mode 100644 index 00000000..7b9e89ae --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/intellectual_worked.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "knowledge:9 order:3 strength:3", + "items": [ + "minecraft:chiseled_bookshelf" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/living_matter.json b/src/main/resources/data/minecraft/traits/blocks/overworld/living_matter.json index 93ab077f..5f51c2ae 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/living_matter.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/living_matter.json @@ -2,37 +2,16 @@ "replace": false, "traits": "earth:1 life:3", "items": [ - "minecraft:oak_sapling", - "minecraft:spruce_sapling", - "minecraft:birch_sapling", - "minecraft:acacia_sapling", - "minecraft:dark_oak_sapling", - "minecraft:oak_leaves", - "minecraft:spruce_leaves", - "minecraft:birch_leaves", - "minecraft:jungle_leaves", - "minecraft:acacia_leaves", - "minecraft:dark_oak_leaves", + "#minecraft:saplings", + "#minecraft:leaves", "minecraft:azalea_leaves", - "minecraft:flowering_azalea_leaves", + "#minecraft:flowers", "minecraft:grass", "minecraft:fern", "minecraft:azalea", "minecraft:flowering_azalea", "minecraft:seagrass", "minecraft:sea_pickle", - "minecraft:dandelion", - "minecraft:poppy", - "minecraft:blue_orchid", - "minecraft:allium", - "minecraft:azure_bluet", - "minecraft:red_tulip", - "minecraft:orange_tulip", - "minecraft:white_tulip", - "minecraft:pink_tulip", - "minecraft:oxeye_daisy", - "minecraft:cornflower", - "minecraft:lily_of_the_valley", "minecraft:wither_rose", "minecraft:spore_blossom", "minecraft:brown_mushroom", @@ -53,21 +32,9 @@ "minecraft:glow_berries", "minecraft:carrot", "minecraft:potato", - "minecraft:tube_coral_block", - "minecraft:brain_coral_block", - "minecraft:bubble_coral_block", - "minecraft:fire_coral_block", - "minecraft:horn_coral_block", - "minecraft:tube_coral", - "minecraft:brain_coral", - "minecraft:bubble_coral", - "minecraft:fire_coral", - "minecraft:horn_coral", - "minecraft:tube_coral_fan", - "minecraft:brain_coral_fan", - "minecraft:bubble_coral_fan", - "minecraft:fire_coral_fan", - "minecraft:horn_coral_fan", + "#c:corals", + "#c:coral_fans", + "#c:coral_blocks", "minecraft:dragon_egg", "minecraft:turtle_egg", "minecraft:glow_lichen", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/loose_materials_from_ground.json b/src/main/resources/data/minecraft/traits/blocks/overworld/loose_materials_from_ground.json index c77ab962..1e185154 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/loose_materials_from_ground.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/loose_materials_from_ground.json @@ -2,24 +2,9 @@ "replace": false, "traits": "earth:1 chaos:2 order:-1", "items": [ - "minecraft:sand", + "#minecraft:sand", "minecraft:gravel", - - "minecraft:white_concrete_powder", - "minecraft:orange_concrete_powder", - "minecraft:magenta_concrete_powder", - "minecraft:light_blue_concrete_powder", - "minecraft:yellow_concrete_powder", - "minecraft:lime_concrete_powder", - "minecraft:pink_concrete_powder", - "minecraft:gray_concrete_powder", - "minecraft:light_gray_concrete_powder", - "minecraft:cyan_concrete_powder", - "minecraft:purple_concrete_powder", - "minecraft:blue_concrete_powder", - "minecraft:brown_concrete_powder", - "minecraft:green_concrete_powder", - "minecraft:red_concrete_powder", - "minecraft:black_concrete_powder" + "minecraft:suspicious_gravel", + "#c:concrete_powders" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/materials_from_the_ground.json b/src/main/resources/data/minecraft/traits/blocks/overworld/materials_from_the_ground.json index 45d1f540..727e1b52 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/materials_from_the_ground.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/materials_from_the_ground.json @@ -12,7 +12,7 @@ "minecraft:clay", - "minecraft:coal_ore", + "minecraft:coal_ore", "minecraft:deepslate_coal_ore", "minecraft:iron_ore", "minecraft:deepslate_iron_ore", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/mechanical_with_organic_components.json b/src/main/resources/data/minecraft/traits/blocks/overworld/mechanical_with_organic_components.json index a7cabb62..f84cbc4a 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/mechanical_with_organic_components.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/mechanical_with_organic_components.json @@ -4,68 +4,23 @@ "items": [ "minecraft:tnt", "minecraft:trapped_chest", - "minecraft:shulker_box", - "minecraft:white_shulker_box", - "minecraft:orange_shulker_box", - "minecraft:magenta_shulker_box", - "minecraft:light_blue_shulker_box", - "minecraft:yellow_shulker_box", - "minecraft:lime_shulker_box", - "minecraft:pink_shulker_box", - "minecraft:gray_shulker_box", - "minecraft:light_gray_shulker_box", - "minecraft:cyan_shulker_box", - "minecraft:purple_shulker_box", - "minecraft:blue_shulker_box", - "minecraft:brown_shulker_box", - "minecraft:green_shulker_box", - "minecraft:red_shulker_box", - "minecraft:black_shulker_box", + "#c:shulker_boxes", "minecraft:ladder", "minecraft:bookshelf", "minecraft:sculk_sensor", - "minecraft:chest", + "#c:chests", "minecraft:crafting_table", "minecraft:hay_block", "minecraft:carved_pumpkin", "minecraft:jack_o_lantern", - - "minecraft:oak_button", - "minecraft:spruce_button", - "minecraft:birch_button", - "minecraft:jungle_button", - "minecraft:acacia_button", - "minecraft:dark_oak_button", - "minecraft:oak_pressure_plate", - "minecraft:spruce_pressure_plate", - "minecraft:birch_pressure_plate", - "minecraft:jungle_pressure_plate", - "minecraft:acacia_pressure_plate", - "minecraft:dark_oak_pressure_plate", + "#minecraft:wooden_buttons", + "#minecraft:wooden_pressure_plates", + "#minecraft:wooden_doors", + "#minecraft:wooden_trapdoors", + "#minecraft:fence_gates", - "minecraft:oak_door", - "minecraft:spruce_door", - "minecraft:birch_door", - "minecraft:jungle_door", - "minecraft:acacia_door", - "minecraft:dark_oak_door", - - "minecraft:oak_trapdoor", - "minecraft:spruce_trapdoor", - "minecraft:birch_trapdoor", - "minecraft:jungle_trapdoor", - "minecraft:acacia_trapdoor", - "minecraft:dark_oak_trapdoor", - - "minecraft:oak_fence_gate", - "minecraft:spruce_fence_gate", - "minecraft:birch_fence_gate", - "minecraft:jungle_fence_gate", - "minecraft:acacia_fence_gate", - "minecraft:dark_oak_fence_gate", - "minecraft:composter", "minecraft:barrel" ] diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_dead_matter.json b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_dead_matter.json index 8ed34693..dfe96c94 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_dead_matter.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_dead_matter.json @@ -19,12 +19,14 @@ "minecraft:dead_fire_coral_fan", "minecraft:dead_horn_coral_fan", "minecraft:dried_kelp_block", + "minecraft:bundle", "minecraft:skeleton_skull", "minecraft:wither_skeleton_skull", "minecraft:player_head", "minecraft:zombie_head", "minecraft:creeper_head", - "minecraft:dragon_head" + "minecraft:dragon_head", + "minecraft:piglin_head" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived.json b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived.json index fe8c9136..d59ad4e6 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived.json @@ -2,78 +2,20 @@ "replace": false, "traits": "earth:2 life:1", "items": [ - "minecraft:oak_leaves", - "minecraft:oak_planks", - "minecraft:oak_log", - "minecraft:oak_wood", - "minecraft:oak_slab", - "minecraft:oak_fence", - "minecraft:oak_stairs", - - "minecraft:spruce_leaves", - "minecraft:spruce_planks", - "minecraft:spruce_log", - "minecraft:spruce_wood", - "minecraft:spruce_slab", - "minecraft:spruce_fence", - "minecraft:spruce_stairs", - - "minecraft:birch_leaves", - "minecraft:birch_planks", - "minecraft:birch_log", - "minecraft:birch_wood", - "minecraft:birch_slab", - "minecraft:birch_fence", - "minecraft:birch_stairs", - - "minecraft:jungle_leaves", - "minecraft:jungle_planks", - "minecraft:jungle_log", - "minecraft:jungle_wood", - "minecraft:jungle_slab", - "minecraft:jungle_fence", - "minecraft:jungle_stairs", - - "minecraft:acacia_leaves", - "minecraft:acacia_planks", - "minecraft:acacia_log", - "minecraft:acacia_wood", - "minecraft:acacia_slab", - "minecraft:acacia_fence", - "minecraft:acacia_stairs", - - "minecraft:stripped_oak_log", - "minecraft:stripped_spruce_log", - "minecraft:stripped_birch_log", - "minecraft:stripped_jungle_log", - "minecraft:stripped_acacia_log", - - "minecraft:stripped_oak_wood", - "minecraft:stripped_spruce_wood", - "minecraft:stripped_birch_wood", - "minecraft:stripped_jungle_wood", - "minecraft:stripped_acacia_wood", + "#minecraft:planks", + "#minecraft:bamboo_blocks", + "#minecraft:logs_that_burn", + "#minecraft:wooden_stairs", + "#minecraft:wooden_slabs", + "#minecraft:wooden_fences", + "minecraft:bamboo_mosaic", + "minecraft:mangrove_roots", + "minecraft:bowl", + "minecraft:paper", "minecraft:sponge", "minecraft:cobweb", - "minecraft:white_wool", - "minecraft:orange_wool", - "minecraft:magenta_wool", - "minecraft:light_blue_wool", - "minecraft:yellow_wool", - "minecraft:lime_wool", - "minecraft:pink_wool", - "minecraft:gray_wool", - "minecraft:light_gray_wool", - "minecraft:cyan_wool", - "minecraft:purple_wool", - "minecraft:blue_wool", - "minecraft:brown_wool", - "minecraft:green_wool", - "minecraft:red_wool", - "minecraft:black_wool", - "minecraft:kelp", "minecraft:cake", "minecraft:chorus_plant", @@ -84,40 +26,6 @@ "minecraft:red_mushroom_block", "minecraft:mushroom_stem", - "minecraft:white_carpet", - "minecraft:orange_carpet", - "minecraft:magenta_carpet", - "minecraft:light_blue_carpet", - "minecraft:yellow_carpet", - "minecraft:lime_carpet", - "minecraft:pink_carpet", - "minecraft:gray_carpet", - "minecraft:light_gray_carpet", - "minecraft:cyan_carpet", - "minecraft:purple_carpet", - "minecraft:blue_carpet", - "minecraft:brown_carpet", - "minecraft:green_carpet", - "minecraft:red_carpet", - "minecraft:black_carpet", - - "minecraft:white_bed", - "minecraft:orange_bed", - "minecraft:magenta_bed", - "minecraft:light_blue_bed", - "minecraft:yellow_bed", - "minecraft:lime_bed", - "minecraft:pink_bed", - "minecraft:gray_bed", - "minecraft:light_gray_bed", - "minecraft:cyan_bed", - "minecraft:purple_bed", - "minecraft:blue_bed", - "minecraft:brown_bed", - "minecraft:green_bed", - "minecraft:red_bed", - "minecraft:black_bed", - "minecraft:slime_block", "minecraft:honey_block", "minecraft:honeycomb_block", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived_dark.json b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived_dark.json index f0020cac..97dac6f0 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived_dark.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/organic_plant_derived_dark.json @@ -4,7 +4,7 @@ "items": [ "minecraft:dark_oak_leaves", "minecraft:dark_oak_planks", - "minecraft:dark_oak_log", + "#minecraft:dark_oak_logs", "minecraft:dark_oak_stairs", "minecraft:stripped_dark_oak_log", "minecraft:stripped_dark_oak_wood", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/refined_ores.json b/src/main/resources/data/minecraft/traits/blocks/overworld/refined_ores.json index 12e85369..eeaaab67 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/refined_ores.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/refined_ores.json @@ -2,7 +2,7 @@ "replace": false, "traits": "strength:1 earth:1 knowledge:2", "items": [ - "minecraft:coal_block", + "#c:ores", "minecraft:emerald_block", "minecraft:iron_block", "minecraft:copper_block", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/rocks_and_rock_derived.json b/src/main/resources/data/minecraft/traits/blocks/overworld/rocks_and_rock_derived.json index 3c6a3758..0ba39e40 100644 --- a/src/main/resources/data/minecraft/traits/blocks/overworld/rocks_and_rock_derived.json +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/rocks_and_rock_derived.json @@ -27,6 +27,11 @@ "minecraft:smooth_sandstone", "minecraft:smooth_stone", + "#minecraft:stone_bricks", + "#minecraft:stone_tool_materials", + "#minecraft:stone_crafting_materials", + "#minecraft:walls", + "minecraft:brick_stairs", "minecraft:stone_brick_stairs", "minecraft:brick_wall", diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/skulk.json b/src/main/resources/data/minecraft/traits/blocks/overworld/skulk.json new file mode 100644 index 00000000..0ba1791c --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/skulk.json @@ -0,0 +1,11 @@ +{ + "replace": false, + "traits": "darkness:11 blood:1 earth:2", + "items": [ + "minecraft:sculk", + "minecraft:sculk_shrieker", + "minecraft:sculk_catalyst", + "minecraft:echo_shard", + "minecraft:sculk_vein" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/skulk_worked.json b/src/main/resources/data/minecraft/traits/blocks/overworld/skulk_worked.json new file mode 100644 index 00000000..01f152a9 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/skulk_worked.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "darkness:11 blood:1 earth:2 focus:18", + "items": [ + "minecraft:calibrated_sculk_sensor" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/blocks/overworld/soft_and_kind.json b/src/main/resources/data/minecraft/traits/blocks/overworld/soft_and_kind.json new file mode 100644 index 00000000..e4848f3e --- /dev/null +++ b/src/main/resources/data/minecraft/traits/blocks/overworld/soft_and_kind.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "traits": "kindness:3", + "items": [ + "#minecraft:beds", + "#minecraft:wool", + "#minecraft:wool_carpets" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/animal_horns.json b/src/main/resources/data/minecraft/traits/items/overworld/animal_horns.json new file mode 100644 index 00000000..bf492b8f --- /dev/null +++ b/src/main/resources/data/minecraft/traits/items/overworld/animal_horns.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "strength:3 life:1 kindness:-1", + "items": [ + "minecraft:goat_horn" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/chaotic.json b/src/main/resources/data/minecraft/traits/items/overworld/chaotic.json index 0e1627c7..d6718786 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/chaotic.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/chaotic.json @@ -1,9 +1,7 @@ { "replace": false, - "traits": "chaos:5", + "traits": "chaos:15", "items": [ - "minecraft:gunpowder", - "minecraft:bow", - "minecraft:tnt_minecart" + "minecraft:string" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/chaotic_worked.json b/src/main/resources/data/minecraft/traits/items/overworld/chaotic_worked.json new file mode 100644 index 00000000..0e1627c7 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/items/overworld/chaotic_worked.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "traits": "chaos:5", + "items": [ + "minecraft:gunpowder", + "minecraft:bow", + "minecraft:tnt_minecart" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/clothing_bloody.json b/src/main/resources/data/minecraft/traits/items/overworld/clothing_bloody.json index 251f4f9c..28e5b60c 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/clothing_bloody.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/clothing_bloody.json @@ -7,6 +7,7 @@ "minecraft:leather_chestplate", "minecraft:leather_leggings", "minecraft:leather_boots", - "minecraft:leather_horse_armor" + "minecraft:leather_horse_armor", + "minecraft:rabbit_hide" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_cooked_meat.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_cooked_meat.json index dda3eda8..e65442d1 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_cooked_meat.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_cooked_meat.json @@ -2,14 +2,10 @@ "replace": false, "traits": "famine:-0.5 life:-1 knowledge:2", "items": [ - "minecraft:cooked_chicken", - "minecraft:cooked_beef", + "#c:cooked_meats", + "#c:cooked_fish", "minecraft:fermented_spider_eye", - "minecraft:cooked_mutton", - "minecraft:cooked_cod", - "minecraft:cooked_salmon", - "minecraft:cooked_porkchop", - "minecraft:cooked_rabbit", - "minecraft:rabbit_stew" + "#unicopia:food_types/cooked_fish", + "#unicopia:food_types/cooked_meat" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_fruits.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_fruits.json new file mode 100644 index 00000000..f5ec8152 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_fruits.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "kindness:3 happiness:9 water:2", + "items": [ + "c:fruits" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based.json index 8f31615b..a04d3f7e 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based.json @@ -15,6 +15,8 @@ "minecraft:baked_potato": "earth:2", "minecraft:poisonous_potato": "earth:2 poison:1", "minecraft:melon_slice": "life:1", - "minecraft:cookie": "happiness:6" + "minecraft:cookie": "happiness:6", + "#c:grain": "life:3 earth:3", + "#unicopia:food_types/raw_sea_vegitable": "life:2 water:10" } } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based_and_modified.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based_and_modified.json index 7b4d7df1..fbabbc6e 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based_and_modified.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_plant_based_and_modified.json @@ -5,6 +5,8 @@ "minecraft:golden_apple", "minecraft:enchanted_golden_apple", "minecraft:golden_carrot", - "minecraft:honey_bottle" + "minecraft:honey_bottle", + "#c:crops", + "#unicopia:food_types/forage_edible_filling" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat.json index 79609dc2..07371361 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat.json @@ -2,10 +2,6 @@ "replace": false, "traits": "blood:1 famine:-2", "items": [ - "minecraft:beef", - "minecraft:rabbit", - "minecraft:porkchop", - "minecraft:chicken", - "minecraft:mutton" + "#c:raw_meats" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_from_sea.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_from_sea.json index 4c4b41e4..a5a72f4e 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_from_sea.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_from_sea.json @@ -2,8 +2,7 @@ "replace": false, "traits": "life:1 famine:-2 water:5", "items": [ - "minecraft:cod", - "minecraft:salmon", - "minecraft:tropical_fish" + "#c:raw_fish", + "#unicopia:food_types/raw_fish" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_poisoned.json b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_poisoned.json index fb4e1c40..37031631 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_poisoned.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/edible_raw_meat_poisoned.json @@ -3,6 +3,7 @@ "traits": "blood:1 famine:2 poison:4", "items": [ "minecraft:spider_eye", - "minecraft:rotten_flesh" + "minecraft:rotten_flesh", + "#unicopia:food_types/forage_nauseating" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/full_o_life.json b/src/main/resources/data/minecraft/traits/items/overworld/full_o_life.json index 86a1c75c..9f1ba84a 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/full_o_life.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/full_o_life.json @@ -2,14 +2,13 @@ "replace": false, "traits": "life:10 earth:2", "items": [ - "minecraft:pumpkin_seeds", - "minecraft:beetroot_seeds", - "minecraft:melon_seeds", + "#c:seeds", + "#minecraft:villager_plantable_seeds", "minecraft:cocoa_beans", "minecraft:egg", - "minecraft:wheat_seeds", "minecraft:wheat", "minecraft:bone_meal", - "minecraft:honeycomb" + "minecraft:honeycomb", + "minecraft:sniffer_egg" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/full_o_life_wet.json b/src/main/resources/data/minecraft/traits/items/overworld/full_o_life_wet.json index 95b180c3..95fc5874 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/full_o_life_wet.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/full_o_life_wet.json @@ -3,10 +3,6 @@ "traits": "water:5 life:5", "items": [ "minecraft:milk_bucket", - "minecraft:pufferfish_bucket", - "minecraft:salmon_bucket", - "minecraft:cod_bucket", - "minecraft:tropical_fish_bucket", - "minecraft:axolotl_bucket" + "#c:entity_water_buckets" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/full_o_water.json b/src/main/resources/data/minecraft/traits/items/overworld/full_o_water.json index 0b477073..c3e0b2ce 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/full_o_water.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/full_o_water.json @@ -2,6 +2,6 @@ "replace": false, "traits": "water:7", "items": [ - "minecraft:water_bucket" + "#c:water_buckets" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects.json b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects.json index 529835ec..4857a23d 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects.json @@ -4,22 +4,7 @@ "items": [ "minecraft:loom", "minecraft:lead", - "minecraft:writable_book", - "minecraft:white_dye", - "minecraft:orange_dye", - "minecraft:magenta_dye", - "minecraft:light_blue_dye", - "minecraft:yellow_dye", - "minecraft:lime_dye", - "minecraft:pink_dye", - "minecraft:gray_dye", - "minecraft:light_gray_dye", - "minecraft:cyan_dye", - "minecraft:purple_dye", - "minecraft:blue_dye", - "minecraft:brown_dye", - "minecraft:green_dye", - "minecraft:red_dye", - "minecraft:black_dye" + "#minecraft:bookshelf_books", + "#c:dyes" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_enchanted.json b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_enchanted.json index cb5498db..b54f4773 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_enchanted.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_enchanted.json @@ -5,6 +5,7 @@ "minecraft:experience_bottle", "minecraft:firework_rocket", "minecraft:firework_star", - "minecraft:enchanted_book" + "minecraft:enchanted_book", + "minecraft:recovery_compass" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_focused.json b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_focused.json index a99e32a6..032e7c35 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_focused.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_focused.json @@ -4,6 +4,8 @@ "items": [ "minecraft:potion", "minecraft:glass_bottle", - "minecraft:ender_eye" + "minecraft:ender_eye", + "#minecraft:trim_materials", + "minecraft:brush" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_studicious.json b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_studicious.json index 5b40675d..97e890e1 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_studicious.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/intellectual_objects_studicious.json @@ -2,6 +2,10 @@ "replace": false, "traits": "knowledge:9 order:3", "items": [ + "#minecraft:decorated_pot_sherds", + "#minecraft:trim_templates", + "#minecraft:signs", + "#minecraft:hanging_signs", "minecraft:flower_banner_pattern", "minecraft:creeper_banner_pattern", "minecraft:skull_banner_pattern", diff --git a/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived.json b/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived.json new file mode 100644 index 00000000..fc16efe7 --- /dev/null +++ b/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived.json @@ -0,0 +1,30 @@ +{ + "replace": false, + "traits": "earth:2 life:1", + "items": [ + "#minecraft:planks", + "#minecraft:logs_that_burn", + "#minecraft:wooden_stairs", + "#minecraft:wooden_slabs", + "#minecraft:wooden_fences", + + "minecraft:sponge", + "minecraft:cobweb", + + "minecraft:kelp", + "minecraft:cake", + "minecraft:chorus_plant", + "minecraft:moss_carpet", + "minecraft:mossy_cobblestone", + + "minecraft:brown_mushroom_block", + "minecraft:red_mushroom_block", + "minecraft:mushroom_stem", + + "minecraft:slime_block", + "minecraft:honey_block", + "minecraft:honeycomb_block", + "minecraft:bee_nest", + "minecraft:beehive" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived_artificial.json b/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived_artificial.json index e31599bf..3c81a2ee 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived_artificial.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/organic_plant_derived_artificial.json @@ -2,22 +2,7 @@ "replace": false, "traits": "order:1 knowledge:3", "items": [ - "minecraft:bowl", - "minecraft:string", - "minecraft:paper", - "minecraft:bundle", - "minecraft:oak_sign", - "minecraft:spruce_sign", - "minecraft:birch_sign", - "minecraft:jungle_sign", - "minecraft:acacia_sign", - "minecraft:dark_oak_sign", - "minecraft:oak_boat", - "minecraft:spruce_boat", - "minecraft:birch_boat", - "minecraft:jungle_boat", - "minecraft:acacia_boat", - "minecraft:dark_oak_boat", - "minecraft:rabbit_hide" + "#minecraft:chest_boats", + "#c:boats" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/special.json b/src/main/resources/data/minecraft/traits/items/overworld/special.json index e1ab5a93..b3a8525c 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/special.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/special.json @@ -15,6 +15,7 @@ "minecraft:slime_ball": "rot:2", "minecraft:ink_sac": "darkness:4", "minecraft:glow_ink_sac": "focus:1 chaos:3", - "minecraft:nautilus_shell": "water:6 life:3" + "minecraft:nautilus_shell": "water:6 life:3", + "minecraft:disc_fragment_5": "knowledge:1 darkness:1" } } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/tools.json b/src/main/resources/data/minecraft/traits/items/overworld/tools.json index 9799bed0..2c15bafb 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/tools.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/tools.json @@ -3,30 +3,7 @@ "traits": "order:-2 kindness:1 strength:3", "items": [ "minecraft:shears", - - "minecraft:wooden_shovel", - "minecraft:wooden_pickaxe", - "minecraft:wooden_axe", - "minecraft:wooden_hoe", - - "minecraft:stone_shovel", - "minecraft:stone_pickaxe", - "minecraft:stone_axe", - "minecraft:stone_hoe", - - "minecraft:golden_shovel", - "minecraft:golden_pickaxe", - "minecraft:golden_axe", - "minecraft:golden_hoe", - - "minecraft:iron_shovel", - "minecraft:iron_pickaxe", - "minecraft:iron_axe", - "minecraft:iron_hoe", - - "minecraft:diamond_shovel", - "minecraft:diamond_pickaxe", - "minecraft:diamond_axe", - "minecraft:diamond_hoe" + "#minecraft:tools", + "#c:tools" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/overworld/uplifting_trinkets.json b/src/main/resources/data/minecraft/traits/items/overworld/uplifting_trinkets.json index 7c7927a7..b0afe26c 100644 --- a/src/main/resources/data/minecraft/traits/items/overworld/uplifting_trinkets.json +++ b/src/main/resources/data/minecraft/traits/items/overworld/uplifting_trinkets.json @@ -2,18 +2,6 @@ "replace": false, "traits": "happiness:7 focus:2", "items": [ - "minecraft:music_disc_13", - "minecraft:music_disc_cat", - "minecraft:music_disc_blocks", - "minecraft:music_disc_chirp", - "minecraft:music_disc_far", - "minecraft:music_disc_mall", - "minecraft:music_disc_mellohi", - "minecraft:music_disc_stal", - "minecraft:music_disc_strad", - "minecraft:music_disc_ward", - "minecraft:music_disc_11", - "minecraft:music_disc_wait", - "minecraft:music_disc_pigstep" + "#minecraft:music_discs" ] } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/traits/items/underworld/weapons.json b/src/main/resources/data/minecraft/traits/items/underworld/weapons.json index 8b700489..b47c5e8d 100644 --- a/src/main/resources/data/minecraft/traits/items/underworld/weapons.json +++ b/src/main/resources/data/minecraft/traits/items/underworld/weapons.json @@ -2,6 +2,7 @@ "replace": false, "traits": "order:-2 kindness:-3 strength:13 darkness:9 blood:4", "items": [ - "minecraft:netherite_sword" + "minecraft:netherite_sword", + "minecraft:netherite_upgrade_smithing_template" ] } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/tags/items/badges.json b/src/main/resources/data/unicopia/tags/items/badges.json new file mode 100644 index 00000000..16481fc4 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/items/badges.json @@ -0,0 +1,13 @@ +{ + "replace": false, + "values": [ + "unicopia:earth_badge", + "unicopia:unicorn_badge", + "unicopia:pegasus_badge", + "unicopia:changeling_badge", + "unicopia:bat_badge", + "unicopia:kirin_badge", + "unicopia:alicorn_badge", + "unicopia:hippogriff_badge" + ] +} diff --git a/src/main/resources/data/unicopia/tags/items/chitin.json b/src/main/resources/data/unicopia/tags/items/chitin.json new file mode 100644 index 00000000..aff5bfad --- /dev/null +++ b/src/main/resources/data/unicopia/tags/items/chitin.json @@ -0,0 +1,12 @@ +{ + "replace": false, + "values": [ + "unicopia:chitin", + "unicopia:surface_chitin", + "unicopia:chiselled_chitin", + "unicopia:chiselled_chitin_slab", + "unicopia:chiselled_chitin_stairs", + "unicopia:chiselled_chitin_hull", + "unicopia:chitin_spikes" + ] +} diff --git a/src/main/resources/data/unicopia/tags/items/cloud_slabs.json b/src/main/resources/data/unicopia/tags/items/cloud_slabs.json index a7337a0e..d17c86ae 100644 --- a/src/main/resources/data/unicopia/tags/items/cloud_slabs.json +++ b/src/main/resources/data/unicopia/tags/items/cloud_slabs.json @@ -3,6 +3,7 @@ "values": [ "unicopia:cloud_slab", "unicopia:dense_cloud_slab", + "unicopia:cloud_brick_slab", "unicopia:etched_cloud_slab", "unicopia:cloud_plank_slab" ] diff --git a/src/main/resources/data/unicopia/tags/items/cloud_stairs.json b/src/main/resources/data/unicopia/tags/items/cloud_stairs.json index cbbba0dc..49b0d346 100644 --- a/src/main/resources/data/unicopia/tags/items/cloud_stairs.json +++ b/src/main/resources/data/unicopia/tags/items/cloud_stairs.json @@ -3,7 +3,9 @@ "values": [ "unicopia:cloud_stairs", "unicopia:dense_cloud_stairs", + "unicopia:cloud_brick_stairs", "unicopia:etched_cloud_stairs", - "unicopia:cloud_plank_stairs" + "unicopia:cloud_plank_stairs", + "unicopia:cloud_chest" ] } diff --git a/src/main/resources/data/unicopia/tags/items/floats_on_clouds.json b/src/main/resources/data/unicopia/tags/items/floats_on_clouds.json index 189ac69b..cc18beba 100644 --- a/src/main/resources/data/unicopia/tags/items/floats_on_clouds.json +++ b/src/main/resources/data/unicopia/tags/items/floats_on_clouds.json @@ -5,6 +5,8 @@ "#unicopia:cloud_slabs", "#unicopia:cloud_stairs", "#unicopia:cloud_beds", - "unicopia:cloud_pillar" + "unicopia:cloud_pillar", + "unicopia:carved_cloud", + "unicopia:shaping_bench" ] } diff --git a/src/main/resources/data/unicopia/tags/items/has_no_traits.json b/src/main/resources/data/unicopia/tags/items/has_no_traits.json new file mode 100644 index 00000000..c29a2af1 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/items/has_no_traits.json @@ -0,0 +1,20 @@ +{ + "replace": false, + "values": [ + "minecraft:air", + "minecraft:spawner", + "minecraft:structure_void", + "minecraft:structure_block", + "minecraft:command_block", + "minecraft:chain_command_block", + "minecraft:repeating_command_block", + "minecraft:light", + "minecraft:jigsaw", + "minecraft:barrier", + "minecraft:bedrock", + "minecraft:end_portal_frame", + "minecraft:debug_stick", + "minecraft:command_block_minecart", + "#unicopia:badges" + ] +} diff --git a/src/main/resources/data/unicopia/traits/chitin.json b/src/main/resources/data/unicopia/traits/chitin.json new file mode 100644 index 00000000..aeddbfd4 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/chitin.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "traits": "earth:9 darkness:8 kindness:-3", + "items": [ + "#unicopia:chitin", + "unicopia:slime_pustule", + "unicopia:carapace" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/edible_plant_based.json b/src/main/resources/data/unicopia/traits/edible_plant_based.json deleted file mode 100644 index ca6cee4d..00000000 --- a/src/main/resources/data/unicopia/traits/edible_plant_based.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "replace": false, - "items": { - "unicopia:green_apple": "life:3", - "unicopia:sweet_apple": "life:3", - "unicopia:sour_apple": "life:3", - "unicopia:zap_apple": "chaos:5", - "unicopia:rotten_apple": "rot:2", - "unicopia:cooked_zap_apple": "chaos:10", - "unicopia:daffodil_daisy_sandwich": "life:2 earth:1", - "unicopia:hay_burger": "life:2 earth:1", - "unicopia:hay_fries": "life:1 earth:2", - "unicopia:wheat_worms": "life:4 earth:6", - "unicopia:cider": "chaos:1 darkness:1", - "unicopia:juice": "chaos:-1 darkness:-9", - "unicopia:burned_juice": "chaos:-1 darkness:-19" - } -} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/food.json b/src/main/resources/data/unicopia/traits/food.json new file mode 100644 index 00000000..0b8e0830 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/food.json @@ -0,0 +1,33 @@ +{ + "replace": false, + "items": { + "unicopia:green_apple": "life:3", + "unicopia:sweet_apple": "life:3", + "unicopia:sour_apple": "life:3", + "unicopia:zap_apple": "chaos:5", + "unicopia:rotten_apple": "rot:2", + "unicopia:cooked_zap_apple": "chaos:10", + "unicopia:daffodil_daisy_sandwich": "life:2 earth:1", + "unicopia:hay_burger": "life:2 earth:1", + "unicopia:hay_fries": "life:1 earth:2", + "unicopia:crispy_hay_fries": "life:1 earth:2 happiness:2", + "unicopia:wheat_worms": "life:4 earth:6", + "unicopia:cider": "chaos:1 darkness:1", + "unicopia:juice": "chaos:-1 darkness:-9", + "unicopia:burned_juice": "chaos:-1 darkness:-19", + "unicopia:pineapple_crown": "life:6", + "unicopia:banana": "life:5 generosity:3", + "unicopia:mango": "earth:2 life:1", + "unicopia:pineapple": "life4 generosity:10", + "unicopia:pinecone": "life:1 happiness:-1", + "#unicopia:oats": "life:1 happiness:1", + "unicopia:apple_pie_slice": "life4 generosity:10", + "unicopia:oatmeal": "happiness:4", + "unicopia:imported_oats": "life:1 happiness:2", + "#unicopia:food_types/candy": "earth:7 strength:3", + "unicopia:zap_bulb": "life:6 power:10", + "unicopia:muffin": "happiness:11", + "unicopia:horse_shoe_fries": "earth:1 strength:11", + "#unicopia:acorns": "life:1 earth:4 strength:3" + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/from_the_ground.json b/src/main/resources/data/unicopia/traits/from_the_ground.json index a228169b..a5493530 100644 --- a/src/main/resources/data/unicopia/traits/from_the_ground.json +++ b/src/main/resources/data/unicopia/traits/from_the_ground.json @@ -6,7 +6,11 @@ "unicopia:gemstone": "order:1 power:-1", "unicopia:pebbles": "earth:3", "unicopia:rock": "earth:6", + "unicopia:tom": "earth:11", "unicopia:weird_rock": "earth:16 chaos:9", - "unicopia:rock_stew": "earth:9 chaos:16" + "unicopia:rock_stew": "earth:9 chaos:16", + "unicopia:toast": "earth:3", + "unicopia:burned_toast": "chaos:1 earth:3", + "unicopia:jam_toast": "earth:3 strength:1 power:11" } } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/gilded.json b/src/main/resources/data/unicopia/traits/gilded.json new file mode 100644 index 00000000..797b985b --- /dev/null +++ b/src/main/resources/data/unicopia/traits/gilded.json @@ -0,0 +1,11 @@ +{ + "replace": false, + "traits": "strength:10 generosity:-3", + "items": [ + "unicopia:golden_oak_sapling", + "unicopia:golden_oak_leaves", + "unicopia:golden_oak_log", + "unicopia:golden_wing", + "unicopia:golden_oak_seeds" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/intellectual_objects_ordered.json b/src/main/resources/data/unicopia/traits/intellectual_objects_ordered.json new file mode 100644 index 00000000..3d650d72 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/intellectual_objects_ordered.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "knowledge:9 order:9", + "items": [ + "unicopia:weather_vane", + "unicopia:giant_balloon" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/love.json b/src/main/resources/data/unicopia/traits/love.json new file mode 100644 index 00000000..534e5a40 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/love.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "happiness:10 kindness:10", + "items": [ + "#c:love", + "#unicopia:clouds" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/magical.json b/src/main/resources/data/unicopia/traits/magical.json new file mode 100644 index 00000000..3de09a57 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/magical.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "happiness:10 kindness:10", + "items": [ + "#unicopia:groups/unicorn", + "unicopia:curing_joke" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/organic_living.json b/src/main/resources/data/unicopia/traits/organic_living.json new file mode 100644 index 00000000..8cbca2c4 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/organic_living.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "life:10", + "items": [ + "unicopia:mysterious_egg", + "unicopia:tom" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/organic_plant_derived.json b/src/main/resources/data/unicopia/traits/organic_plant_derived.json deleted file mode 100644 index c2167d62..00000000 --- a/src/main/resources/data/unicopia/traits/organic_plant_derived.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "replace": false, - "traits": "earth:2 life:1", - "items": [ - "unicopia:green_apple_leaves", - "unicopia:sweet_apple_leaves", - "unicopia:sour_apple_leaves", - "unicopia:mango" - ] -} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/organic_plant_derived_artificial.json b/src/main/resources/data/unicopia/traits/organic_plant_derived_artificial.json new file mode 100644 index 00000000..5b8fcd5e --- /dev/null +++ b/src/main/resources/data/unicopia/traits/organic_plant_derived_artificial.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "traits": "order:1 knowledge:3", + "items": [ + "#unicopia:baskets" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/organic_plant_derived_zap.json b/src/main/resources/data/unicopia/traits/organic_plant_derived_zap.json index 172f955c..a5f068dc 100644 --- a/src/main/resources/data/unicopia/traits/organic_plant_derived_zap.json +++ b/src/main/resources/data/unicopia/traits/organic_plant_derived_zap.json @@ -6,6 +6,7 @@ "unicopia:zap_log", "unicopia:stripped_zap_log", "unicopia:zap_wood", - "unicopia:stripped_zap_wood" + "unicopia:stripped_zap_wood", + "unicopia:flowering_zap_leaves" ] } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/shells.json b/src/main/resources/data/unicopia/traits/shells.json new file mode 100644 index 00000000..94fb1693 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/shells.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "traits": "water:7 earth:1 life:1", + "items": [ + "#unicopia:food_types/shells", + "unicopia:shelly" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/soft_and_kind.json b/src/main/resources/data/unicopia/traits/soft_and_kind.json new file mode 100644 index 00000000..c7c44f84 --- /dev/null +++ b/src/main/resources/data/unicopia/traits/soft_and_kind.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "traits": "kindness:3", + "items": [ + "#unicopia:bed_sheets", + "#unicopia:floats_on_clouds", + "#unicopia:pies" + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/special.json b/src/main/resources/data/unicopia/traits/special.json index d8f7a165..961eb18e 100644 --- a/src/main/resources/data/unicopia/traits/special.json +++ b/src/main/resources/data/unicopia/traits/special.json @@ -11,6 +11,11 @@ "unicopia:butterfly": "darkness:4 blood:7", "unicopia:spellbook": "power:18 darkness:7", "unicopia:pegasus_amulet": "power:18 order:10 power:9", - "unicopia:alicorn_amulet": "strength:23 order:-10 power:11 darkness:22" + "unicopia:alicorn_amulet": "strength:23 order:-10 power:11 darkness:22", + "#unicopia:cools_off_kirins": "water:6", + "unicopia:hive": "earth:9 darkness:8 kindness:-3 life:10", + "#unicopia:shades": "darkness:3", + "unicopia:broken_sunglasses": "darkness:3 chaos:3", + "unicopia:salt_cube": "power:3" } } \ No newline at end of file diff --git a/src/main/resources/data/unicopia/traits/uplifting_trinkets.json b/src/main/resources/data/unicopia/traits/uplifting_trinkets.json index ec28da31..9360f22f 100644 --- a/src/main/resources/data/unicopia/traits/uplifting_trinkets.json +++ b/src/main/resources/data/unicopia/traits/uplifting_trinkets.json @@ -5,6 +5,8 @@ "unicopia:music_disc_pet": "order:10 kindness:8 focus:9", "unicopia:music_disc_popular": "order:10 generosity:8 focus:9", "unicopia:music_disc_funk": "chaos:-10", - "unicopia:friendship_bracelet": "generosity:1 order:2 happiness:1" + "unicopia:friendship_bracelet": "generosity:1 order:2 happiness:1", + "unicopia:pearl_necklace": "chaos:7 knowledge:2", + "unicopia:lightning_jar": "chaos:1 knowledge:2 power:8" } } \ No newline at end of file From d4e698fa56f410fba7cc7cdab9a78cf7a82de711 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 29 Jan 2024 19:05:20 +0000 Subject: [PATCH 086/104] Move earth ponies' transmutations to recipes --- .../ability/EarthPonyGrowAbility.java | 109 ++++------- .../unicopia/compat/emi/Main.java | 19 ++ .../unicopia/item/TransformCropsRecipe.java | 176 ++++++++++++++++++ .../minelittlepony/unicopia/item/UItems.java | 1 + .../unicopia/item/URecipes.java | 2 + .../resources/assets/unicopia/lang/en_us.json | 2 + .../unicopia/models/item/plunder_vine.json | 3 + .../unicopia/recipes/growing/curing_joke.json | 12 ++ .../unicopia/recipes/growing/gold_root.json | 12 ++ .../recipes/growing/golden_oak_sapling.json | 12 ++ .../recipes/growing/plunder_vine.json | 12 ++ .../unicopia/recipes/growing/zapling.json | 12 ++ .../unicopia/tags/items/has_no_traits.json | 1 + 13 files changed, 296 insertions(+), 77 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java create mode 100644 src/main/resources/assets/unicopia/models/item/plunder_vine.json create mode 100644 src/main/resources/data/unicopia/recipes/growing/curing_joke.json create mode 100644 src/main/resources/data/unicopia/recipes/growing/gold_root.json create mode 100644 src/main/resources/data/unicopia/recipes/growing/golden_oak_sapling.json create mode 100644 src/main/resources/data/unicopia/recipes/growing/plunder_vine.json create mode 100644 src/main/resources/data/unicopia/recipes/growing/zapling.json diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index b1dcf2a5..61ab54d5 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -1,9 +1,6 @@ package com.minelittlepony.unicopia.ability; -import java.util.HashSet; -import java.util.List; import java.util.Optional; -import java.util.Set; import java.util.function.DoubleSupplier; import java.util.function.Supplier; import com.minelittlepony.unicopia.Race; @@ -12,12 +9,12 @@ import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.ability.data.Pos; import com.minelittlepony.unicopia.block.UBlocks; -import com.minelittlepony.unicopia.block.state.StateUtil; import com.minelittlepony.unicopia.entity.player.Pony; +import com.minelittlepony.unicopia.item.TransformCropsRecipe; +import com.minelittlepony.unicopia.item.URecipes; import com.minelittlepony.unicopia.particle.MagicParticleEffect; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.server.world.BlockDestructionManager; -import com.minelittlepony.unicopia.server.world.UTreeGen; import com.minelittlepony.unicopia.util.TraceHelper; import com.minelittlepony.unicopia.util.VecHelper; @@ -33,7 +30,6 @@ import net.minecraft.particle.ParticleTypes; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; import net.minecraft.util.math.Vec3d; -import net.minecraft.util.math.random.Random; import net.minecraft.world.World; import net.minecraft.world.WorldEvents; @@ -139,40 +135,41 @@ public class EarthPonyGrowAbility implements Ability { } private boolean applyDirectly(Pony player, BlockPos pos) { - return TransmutationRecipe.RECIPES.stream() - .filter(recipe -> recipe.matches(player.asWorld(), pos)) - .map(recipe -> recipe.checkPattern(player.asWorld(), pos)) - .filter(result -> result.matchedLocations().size() + 1 >= TransmutationRecipe.MINIMUM_INPUT) - .filter(result -> { - boolean transform = result.shoudTransform(player.asWorld().random); + return player.asWorld().getRecipeManager() + .getAllMatches(URecipes.GROWING, new TransformCropsRecipe.PlacementArea(player, pos), player.asWorld()) + .stream() + .map(recipe -> recipe.checkPattern(player.asWorld(), pos)) + .filter(result -> result.matchedLocations().size() + 1 >= TransformCropsRecipe.MINIMUM_INPUT) + .filter(result -> { + boolean transform = result.shoudTransform(player.asWorld().random); - player.playSound(USounds.ENTITY_CRYSTAL_SHARDS_AMBIENT, 1); + player.playSound(USounds.ENTITY_CRYSTAL_SHARDS_AMBIENT, 1); - result.matchedLocations().forEach(cell -> { - spawnConversionParticles(player.asWorld(), cell.up(), false); - BlockDestructionManager manager = BlockDestructionManager.of(player.asWorld()); - if (transform) { - if (manager.damageBlock(cell, 8) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { - player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); - player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); - } - } else { - if (manager.damageBlock(cell, 4) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { - player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); - player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); - } - } - }); - - spawnConversionParticles(player.asWorld(), pos, transform); + result.matchedLocations().forEach(cell -> { + spawnConversionParticles(player.asWorld(), cell.up(), false); + BlockDestructionManager manager = BlockDestructionManager.of(player.asWorld()); if (transform) { - player.asWorld().setBlockState(pos, result.recipe().getResult(player.asWorld(), pos)); + if (manager.damageBlock(cell, 8) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { + player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); + player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); + } + } else { + if (manager.damageBlock(cell, 4) >= BlockDestructionManager.MAX_DAMAGE || player.asWorld().random.nextInt(20) == 0) { + player.asWorld().setBlockState(cell, Blocks.DIRT.getDefaultState()); + player.asWorld().syncWorldEvent(WorldEvents.BLOCK_BROKEN, cell, Block.getRawIdFromState(player.asWorld().getBlockState(cell))); + } } + }); - return true; - }) - .findFirst() - .isPresent(); + spawnConversionParticles(player.asWorld(), pos, transform); + if (transform) { + player.asWorld().setBlockState(pos, result.recipe().getResult(player.asWorld(), pos)); + } + + return true; + }) + .findFirst() + .isPresent(); } private static void spawnConversionParticles(World w, BlockPos pos, boolean success) { @@ -201,48 +198,6 @@ public class EarthPonyGrowAbility implements Ability { } - private static record TransmutationRecipe(Block input, BlockState output, BlockState material) { - static final List RECIPES = List.of( - new TransmutationRecipe(Blocks.OAK_SAPLING, UTreeGen.GOLDEN_APPLE_TREE.sapling().get().getDefaultState(), Blocks.RAW_GOLD_BLOCK.getDefaultState()), - new TransmutationRecipe(Blocks.CARROTS, UBlocks.GOLD_ROOT.getDefaultState(), Blocks.RAW_GOLD_BLOCK.getDefaultState()), - new TransmutationRecipe(Blocks.CORNFLOWER, UBlocks.CURING_JOKE.getDefaultState(), Blocks.LAPIS_BLOCK.getDefaultState()), - new TransmutationRecipe(Blocks.WITHER_ROSE, UBlocks.PLUNDER_VINE_BUD.getDefaultState(), Blocks.NETHERRACK.getDefaultState()) - ); - static final int RADIUS = 3; - static final int SIDE_LENGTH = (2 * RADIUS) + 1; - static final int AREA = (SIDE_LENGTH * SIDE_LENGTH) - 1; - static final int MINIMUM_INPUT = 9; - - public boolean matches(World world, BlockPos pos) { - return world.getBlockState(pos).isOf(input); - } - - public Result checkPattern(World world, BlockPos pos) { - BlockPos center = pos.down(); - Set matches = new HashSet<>(); - for (BlockPos cell : BlockPos.iterateInSquare(center, RADIUS, Direction.EAST, Direction.NORTH)) { - if (cell.equals(center)) { - continue; - } - if (!world.getBlockState(cell).equals(material)) { - break; - } - matches.add(cell.toImmutable()); - } - return new Result(this, matches); - } - - public BlockState getResult(World world, BlockPos pos) { - return StateUtil.copyState(world.getBlockState(pos), output); - } - - record Result (TransmutationRecipe recipe, Set matchedLocations) { - public boolean shoudTransform(Random random) { - return random.nextInt(TransmutationRecipe.AREA) < matchedLocations().size(); - } - } - } - public interface Growable { boolean grow(World world, BlockState state, BlockPos pos); } diff --git a/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java b/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java index 01adac1f..4159d296 100644 --- a/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java +++ b/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java @@ -13,6 +13,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.trait.SpellTraits; import com.minelittlepony.unicopia.ability.magic.spell.trait.Trait; import com.minelittlepony.unicopia.block.UBlocks; import com.minelittlepony.unicopia.item.EnchantableItem; +import com.minelittlepony.unicopia.item.TransformCropsRecipe; import com.minelittlepony.unicopia.item.UItems; import com.minelittlepony.unicopia.item.URecipes; import com.minelittlepony.unicopia.item.group.MultiItem; @@ -20,6 +21,7 @@ import com.minelittlepony.unicopia.item.group.MultiItem; import dev.emi.emi.api.EmiPlugin; import dev.emi.emi.api.EmiRegistry; import dev.emi.emi.api.recipe.EmiRecipeCategory; +import dev.emi.emi.api.recipe.EmiWorldInteractionRecipe; import dev.emi.emi.api.render.EmiTexture; import dev.emi.emi.api.stack.Comparison; import dev.emi.emi.api.stack.EmiStack; @@ -33,8 +35,10 @@ import net.minecraft.util.Identifier; public class Main implements EmiPlugin { static final EmiStack SPELL_BOOK_STATION = EmiStack.of(UItems.SPELLBOOK); static final EmiStack CLOUD_SHAPING_STATION = EmiStack.of(UBlocks.SHAPING_BENCH); + static final EmiStack GROWING_STATION = EmiStack.of(UItems.EARTH_BADGE); static final EmiRecipeCategory SPELL_BOOK_CATEGORY = new EmiRecipeCategory(Unicopia.id("spellbook"), SPELL_BOOK_STATION, SPELL_BOOK_STATION); static final EmiRecipeCategory CLOUD_SHAPING_CATEGORY = new EmiRecipeCategory(Unicopia.id("cloud_shaping"), CLOUD_SHAPING_STATION, CLOUD_SHAPING_STATION); + static final EmiRecipeCategory GROWING_CATEGORY = new EmiRecipeCategory(Unicopia.id("growing"), GROWING_STATION, GROWING_STATION); static final Identifier WIDGETS = Unicopia.id("textures/gui/widgets.png"); static final EmiTexture EMPTY_ARROW = new EmiTexture(WIDGETS, 44, 0, 24, 17); @@ -103,5 +107,20 @@ public class Main implements EmiPlugin { }); } }); + + registry.addCategory(GROWING_CATEGORY); + registry.addWorkstation(GROWING_CATEGORY, GROWING_STATION); + registry.getRecipeManager().listAllOfType(URecipes.GROWING).forEach(recipe -> { + registry.addRecipe(new EmiWorldInteractionRecipe(EmiWorldInteractionRecipe.builder() + .id(recipe.getId()) + .leftInput(EmiStack.of(recipe.getTargetAsItem())) + .rightInput(EmiStack.of(recipe.getCatalyst(), TransformCropsRecipe.MINIMUM_INPUT), true) + .output(EmiStack.of(recipe.getOutput()))) { + @Override + public EmiRecipeCategory getCategory() { + return GROWING_CATEGORY; + } + }); + }); } } diff --git a/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java b/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java new file mode 100644 index 00000000..284665ce --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java @@ -0,0 +1,176 @@ +package com.minelittlepony.unicopia.item; + +import java.util.HashSet; +import java.util.Set; + +import com.google.gson.JsonObject; +import com.minelittlepony.unicopia.block.state.StateUtil; +import com.minelittlepony.unicopia.entity.player.Pony; +import com.mojang.datafixers.util.Pair; +import com.mojang.serialization.Codec; +import com.mojang.serialization.JsonOps; +import com.mojang.serialization.codecs.RecordCodecBuilder; + +import net.minecraft.block.Block; +import net.minecraft.block.BlockState; +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.inventory.SingleStackInventory; +import net.minecraft.item.ItemStack; +import net.minecraft.network.PacketByteBuf; +import net.minecraft.recipe.Recipe; +import net.minecraft.recipe.RecipeSerializer; +import net.minecraft.recipe.RecipeType; +import net.minecraft.registry.DynamicRegistryManager; +import net.minecraft.registry.Registries; +import net.minecraft.util.Identifier; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Direction; +import net.minecraft.util.math.random.Random; +import net.minecraft.world.EmptyBlockView; +import net.minecraft.world.World; + +public class TransformCropsRecipe implements Recipe { + public static final int RADIUS = 3; + public static final int SIDE_LENGTH = (2 * RADIUS) + 1; + public static final int AREA = (SIDE_LENGTH * SIDE_LENGTH) - 1; + public static final int MINIMUM_INPUT = 9; + + private final Identifier id; + + private final Block target; + private final BlockState catalyst; + private final BlockState output; + + public TransformCropsRecipe(Identifier id, Block target, BlockState catalyst, BlockState output) { + this.id = id; + this.output = output; + this.target = target; + this.catalyst = catalyst; + } + + public ItemStack getTargetAsItem() { + return target.asItem().getDefaultStack(); + } + + public ItemStack getCatalyst() { + return catalyst.getBlock().getPickStack(EmptyBlockView.INSTANCE, BlockPos.ORIGIN, catalyst); + } + + public ItemStack getOutput() { + return output.getBlock().getPickStack(EmptyBlockView.INSTANCE, BlockPos.ORIGIN, output); + } + + @Override + public Identifier getId() { + return id; + } + + @Override + public RecipeSerializer getSerializer() { + return URecipes.TRANSFORM_CROP_SERIALIZER; + } + + @Override + public RecipeType getType() { + return URecipes.GROWING; + } + + @Override + public boolean matches(PlacementArea inventory, World world) { + return world.getBlockState(inventory.position()).isOf(target); + } + + @Override + public ItemStack craft(PlacementArea inventory, DynamicRegistryManager manager) { + return getOutput(manager); + } + + @Override + public ItemStack getOutput(DynamicRegistryManager manager) { + return output.getBlock().asItem().getDefaultStack(); + } + + public Result checkPattern(World world, BlockPos pos) { + BlockPos center = pos.down(); + Set matches = new HashSet<>(); + for (BlockPos cell : BlockPos.iterateInSquare(center, RADIUS, Direction.EAST, Direction.NORTH)) { + if (cell.equals(center)) { + continue; + } + if (!world.getBlockState(cell).equals(catalyst)) { + break; + } + matches.add(cell.toImmutable()); + } + return new Result(this, matches); + } + + public BlockState getResult(World world, BlockPos pos) { + return StateUtil.copyState(world.getBlockState(pos), output); + } + + @Override + public boolean fits(int width, int height) { + return width >= SIDE_LENGTH && height >= SIDE_LENGTH; + } + + public static class Serializer implements RecipeSerializer { + record Intermediate(Block target, BlockState fuel, BlockState output) {} + private static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( + Registries.BLOCK.getCodec().fieldOf("target").forGetter(Intermediate::target), + BlockState.CODEC.fieldOf("consume").forGetter(Intermediate::fuel), + BlockState.CODEC.fieldOf("output").forGetter(Intermediate::output) + ).apply(instance, Intermediate::new)); + + @Override + public TransformCropsRecipe read(Identifier id, JsonObject json) { + Intermediate content = CODEC.decode(JsonOps.INSTANCE, json).result().map(Pair::getFirst).get(); + return new TransformCropsRecipe(id, content.target(), content.fuel(), content.output()); + } + + @Override + public TransformCropsRecipe read(Identifier id, PacketByteBuf buffer) { + return new TransformCropsRecipe(id, + buffer.readRegistryValue(Registries.BLOCK), + Block.getStateFromRawId(buffer.readInt()), + Block.getStateFromRawId(buffer.readInt()) + ); + } + + @Override + public void write(PacketByteBuf buffer, TransformCropsRecipe recipe) { + buffer.writeRegistryValue(Registries.BLOCK, recipe.target); + buffer.writeInt(Block.getRawIdFromState(recipe.catalyst)); + buffer.writeInt(Block.getRawIdFromState(recipe.output)); + } + } + + public static record PlacementArea (Pony pony, BlockPos position) implements SingleStackInventory { + @Override + public ItemStack getStack(int var1) { + return ItemStack.EMPTY; + } + + @Override + public ItemStack removeStack(int slot, int count) { + return ItemStack.EMPTY; + } + + @Override + public void setStack(int slot, ItemStack stack) { } + + @Override + public void markDirty() { } + + @Override + public boolean canPlayerUse(PlayerEntity player) { + return true; + } + } + + public record Result (TransformCropsRecipe recipe, Set matchedLocations) { + public boolean shoudTransform(Random random) { + return random.nextInt(AREA) < matchedLocations().size(); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/item/UItems.java b/src/main/java/com/minelittlepony/unicopia/item/UItems.java index a5ede2a8..3aa1e5ea 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/UItems.java +++ b/src/main/java/com/minelittlepony/unicopia/item/UItems.java @@ -48,6 +48,7 @@ public interface UItems { FriendshipBraceletItem FRIENDSHIP_BRACELET = register("friendship_bracelet", new FriendshipBraceletItem(new FabricItemSettings().rarity(Rarity.UNCOMMON)), ItemGroups.TOOLS); + Item PLUNDER_VINE = register("plunder_vine", new BlockItem(UBlocks.PLUNDER_VINE_BUD, new Item.Settings())); Item EMPTY_JAR = register("empty_jar", new JarItem(new Item.Settings().maxCount(16).fireproof(), false, false, false), ItemGroups.FUNCTIONAL); FilledJarItem FILLED_JAR = register("filled_jar", new FilledJarItem(new Item.Settings().maxCount(1).recipeRemainder(EMPTY_JAR))); Item RAIN_CLOUD_JAR = register("rain_cloud_jar", new JarItem(new Item.Settings().maxCount(1).fireproof().recipeRemainder(EMPTY_JAR), true, false, false), ItemGroups.FUNCTIONAL); diff --git a/src/main/java/com/minelittlepony/unicopia/item/URecipes.java b/src/main/java/com/minelittlepony/unicopia/item/URecipes.java index 2c0a8573..497e6d6c 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/URecipes.java +++ b/src/main/java/com/minelittlepony/unicopia/item/URecipes.java @@ -23,6 +23,7 @@ import net.minecraft.util.collection.DefaultedList; public interface URecipes { RecipeType SPELLBOOK = RecipeType.register("unicopia:spellbook"); RecipeType CLOUD_SHAPING = RecipeType.register("unicopia:cloud_shaping"); + RecipeType GROWING = RecipeType.register("unicopia:growing"); RecipeSerializer ZAP_APPLE_SERIALIZER = RecipeSerializer.register("unicopia:crafting_zap_apple", new ZapAppleRecipe.Serializer()); RecipeSerializer GLOWING_SERIALIZER = RecipeSerializer.register("unicopia:crafting_glowing", new SpecialRecipeSerializer<>(GlowingRecipe::new)); @@ -33,6 +34,7 @@ public interface URecipes { RecipeSerializer TRAIT_COMBINING = RecipeSerializer.register("unicopia:spellbook/combining", new SpellEnhancingRecipe.Serializer()); RecipeSerializer SPELL_DUPLICATING = RecipeSerializer.register("unicopia:spellbook/duplicating", new SpellDuplicatingRecipe.Serializer()); RecipeSerializer CLOUD_SHAPING_SERIALIZER = RecipeSerializer.register("unicopia:cloud_shaping", new CuttingRecipe.Serializer<>(CloudShapingRecipe::new) {}); + RecipeSerializer TRANSFORM_CROP_SERIALIZER = RecipeSerializer.register("unicopia:transform_crop", new TransformCropsRecipe.Serializer()); static DefaultedList getIngredients(JsonArray json) { DefaultedList defaultedList = DefaultedList.of(); diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index f409a35f..fe83a05b 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -46,6 +46,7 @@ "item.unicopia.spellbook": "Spellbook", "emi.category.unicopia.spellbook": "Spellbook", "emi.category.unicopia.cloud_shaping": "Shaping", + "emi.category.unicopia.growing": "Growing", "item.unicopia.alicorn_badge": "Alicorn Emblem", "item.unicopia.unicorn_badge": "Unicorn Emblem", @@ -73,6 +74,7 @@ "item.unicopia.love_bucket": "Love Bucket", "item.unicopia.love_mug": "Mug o' Love", + "item.unicopia.plunder_vine": "Plunder Vine", "item.unicopia.empty_jar": "Glass Jar", "item.unicopia.filled_jar": "%s in a Jar", "item.unicopia.rain_cloud_jar": "Rain in a Jar", diff --git a/src/main/resources/assets/unicopia/models/item/plunder_vine.json b/src/main/resources/assets/unicopia/models/item/plunder_vine.json new file mode 100644 index 00000000..32b343c6 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/plunder_vine.json @@ -0,0 +1,3 @@ +{ + "parent": "unicopia:block/plunder_vine_bud" +} diff --git a/src/main/resources/data/unicopia/recipes/growing/curing_joke.json b/src/main/resources/data/unicopia/recipes/growing/curing_joke.json new file mode 100644 index 00000000..61625b41 --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/growing/curing_joke.json @@ -0,0 +1,12 @@ +{ + "type": "unicopia:transform_crop", + "target": "minecraft:cornflower", + "consume": { + "Name": "minecraft:lapis_block", + "Properties": {} + }, + "output": { + "Name": "unicopia:curing_joke", + "Properties": {} + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/recipes/growing/gold_root.json b/src/main/resources/data/unicopia/recipes/growing/gold_root.json new file mode 100644 index 00000000..a6d2d09b --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/growing/gold_root.json @@ -0,0 +1,12 @@ +{ + "type": "unicopia:transform_crop", + "target": "minecraft:carrots", + "consume": { + "Name": "minecraft:raw_gold_block", + "Properties": {} + }, + "output": { + "Name": "unicopia:gold_root", + "Properties": {} + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/recipes/growing/golden_oak_sapling.json b/src/main/resources/data/unicopia/recipes/growing/golden_oak_sapling.json new file mode 100644 index 00000000..b129e3ae --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/growing/golden_oak_sapling.json @@ -0,0 +1,12 @@ +{ + "type": "unicopia:transform_crop", + "target": "minecraft:oak_sapling", + "consume": { + "Name": "minecraft:raw_gold_block", + "Properties": {} + }, + "output": { + "Name": "unicopia:golden_oak_sapling", + "Properties": {} + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/recipes/growing/plunder_vine.json b/src/main/resources/data/unicopia/recipes/growing/plunder_vine.json new file mode 100644 index 00000000..df6a6eac --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/growing/plunder_vine.json @@ -0,0 +1,12 @@ +{ + "type": "unicopia:transform_crop", + "target": "minecraft:wither_rose", + "consume": { + "Name": "minecraft:netherrack", + "Properties": {} + }, + "output": { + "Name": "unicopia:plunder_vine_bud", + "Properties": {} + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/recipes/growing/zapling.json b/src/main/resources/data/unicopia/recipes/growing/zapling.json new file mode 100644 index 00000000..971c2099 --- /dev/null +++ b/src/main/resources/data/unicopia/recipes/growing/zapling.json @@ -0,0 +1,12 @@ +{ + "type": "unicopia:transform_crop", + "target": "minecraft:dark_oak_sapling", + "consume": { + "Name": "unicopia:chitin", + "Properties": {} + }, + "output": { + "Name": "unicopia:zapling", + "Properties": {} + } +} \ No newline at end of file diff --git a/src/main/resources/data/unicopia/tags/items/has_no_traits.json b/src/main/resources/data/unicopia/tags/items/has_no_traits.json index c29a2af1..1a300515 100644 --- a/src/main/resources/data/unicopia/tags/items/has_no_traits.json +++ b/src/main/resources/data/unicopia/tags/items/has_no_traits.json @@ -15,6 +15,7 @@ "minecraft:end_portal_frame", "minecraft:debug_stick", "minecraft:command_block_minecart", + "unicopia:plunder_vine", "#unicopia:badges" ] } From e15d64ff3dc7509fb6d8ab75c1547f82123b16cf Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 29 Jan 2024 20:30:58 +0000 Subject: [PATCH 087/104] Implement support for displaying chapters with varying content height --- .../client/gui/spellbook/SpellbookScreen.java | 1 - .../gui/spellbook/element/DynamicContent.java | 43 +++++++----- .../client/gui/spellbook/element/Panel.java | 66 +++++++++++++++++++ 3 files changed, 91 insertions(+), 19 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookScreen.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookScreen.java index 490d835f..0dc0a71e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookScreen.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookScreen.java @@ -160,7 +160,6 @@ public class SpellbookScreen extends HandledScreen imple tabs.getAllTabs().forEach(tab -> { Bounds bounds = tab.bounds(); - chapters.getCurrentChapter(); boolean hover = bounds.contains(mouseX, mouseY); int color = tab.chapter().color() & 0xFFFFFF; diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java index 80812afb..c8a64c74 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java @@ -21,13 +21,17 @@ import net.minecraft.util.*; public class DynamicContent implements Content { private static final Text UNKNOWN = Text.of("???"); - private static final Text UNKNOWN_LEVEL = Text.literal("Level: ???").formatted(Formatting.DARK_GREEN); private SpellbookState.PageState state = new SpellbookState.PageState(); private final List pages; private Bounds bounds = Bounds.empty(); + private final Panel leftPanel = new Panel(this); + private final Panel rightPanel = new Panel(this); + + private int headerColor; + public DynamicContent(PacketByteBuf buffer) { pages = buffer.readList(Page::new); } @@ -35,32 +39,26 @@ public class DynamicContent implements Content { @Override public void draw(DrawContext context, int mouseX, int mouseY, IViewRoot container) { int pageIndex = state.getOffset() * 2; - - getPage(pageIndex).ifPresent(page -> page.draw(context, mouseX, mouseY, container)); - - context.getMatrices().push(); - getPage(pageIndex + 1).ifPresent(page -> { - page.bounds.left = bounds.left + bounds.width / 2 + 20; - page.draw(context, mouseX, mouseY, container); - }); - context.getMatrices().pop(); - TextRenderer font = MinecraftClient.getInstance().textRenderer; - int headerColor = mouseY % 255; + headerColor = mouseY % 255; - Text pageText = Text.translatable("%s/%s", (pageIndex / 2) + 1, pages.size() / 2); + Text pageText = Text.translatable("%s/%s", (pageIndex / 2) + 1, (int)Math.ceil(pages.size() / 2F)); context.drawText(font, pageText, (int)(337 - font.getWidth(pageText) / 2F), 190, headerColor, false); } @Override public void copyStateFrom(Content old) { if (old instanceof DynamicContent o) { + if (state.getOffset() == o.state.getOffset()) { + leftPanel.verticalScrollbar.getScrubber().scrollTo(o.leftPanel.verticalScrollbar.getScrubber().getPosition(), false); + rightPanel.verticalScrollbar.getScrubber().scrollTo(o.rightPanel.verticalScrollbar.getScrubber().getPosition(), false); + } state = o.state; setBounds(o.bounds); } } - private Optional getPage(int index) { + Optional getPage(int index) { if (index < 0 || index >= pages.size()) { return Optional.empty(); } @@ -71,9 +69,15 @@ public class DynamicContent implements Content { this.bounds = bounds; pages.forEach(page -> { page.reset(); + int oldHeight = page.bounds.height; page.bounds.copy(bounds); + page.bounds.left = 0; + page.bounds.top = 0; page.bounds.width /= 2; + page.bounds.height = oldHeight; }); + + leftPanel.setBounds(bounds); } @Override @@ -83,6 +87,10 @@ public class DynamicContent implements Content { screen.addPageButtons(187, 30, 350, incr -> { state.swap(incr, (int)Math.ceil(pages.size() / 2F)); }); + + int pageIndex = state.getOffset() * 2; + leftPanel.init(screen, pageIndex); + rightPanel.init(screen, pageIndex + 1); } class Page implements Drawable { @@ -145,18 +153,17 @@ public class DynamicContent implements Content { element.compile(relativeY, container); relativeY += element.bounds().height; } + bounds.height = relativeY; } boolean needsMoreXp = level < 0 || Pony.of(MinecraftClient.getInstance().player).getLevel().get() < level; - int headerColor = mouseY % 255; - MatrixStack matrices = context.getMatrices(); DrawableUtil.drawScaledText(context, needsMoreXp ? UNKNOWN : title, bounds.left, bounds.top - 10, 1.3F, headerColor); - DrawableUtil.drawScaledText(context, level < 0 ? UNKNOWN_LEVEL : Text.literal("Level: " + (level + 1)).formatted(Formatting.DARK_GREEN), bounds.left, bounds.top - 10 + 12, 0.8F, headerColor); + DrawableUtil.drawScaledText(context, Text.translatable("gui.unicopia.spellbook.page.level_requirement", level < 0 ? "???" : "" + (level + 1)).formatted(Formatting.DARK_GREEN), bounds.left, bounds.top - 10 + 12, 0.8F, headerColor); matrices.push(); - matrices.translate(bounds.left, bounds.top + 16, 0); + matrices.translate(0, 16, 0); elements.stream().filter(PageElement::isFloating).forEach(element -> { Bounds bounds = element.bounds(); matrices.push(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java new file mode 100644 index 00000000..fc84e687 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java @@ -0,0 +1,66 @@ +package com.minelittlepony.unicopia.client.gui.spellbook.element; + +import java.util.Optional; + +import com.minelittlepony.common.client.gui.IViewRoot; +import com.minelittlepony.common.client.gui.ScrollContainer; +import com.minelittlepony.common.client.gui.dimension.Bounds; +import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookScreen; +import com.minelittlepony.unicopia.client.gui.spellbook.element.DynamicContent.Page; + +import net.minecraft.client.gui.DrawContext; + +class Panel extends ScrollContainer { + private final DynamicContent content; + + Panel(DynamicContent content) { + this.content = content; + } + + private Optional page = Optional.empty(); + + public void init(SpellbookScreen screen, int pageIndex) { + verticalScrollbar.layoutToEnd = true; + getContentPadding().top = 15; + page = content.getPage(pageIndex); + + margin.left = screen.getX() + 30; + margin.top = screen.getY() + 15; + margin.right = screen.width - screen.getBackgroundWidth() - screen.getX() + 20; + margin.bottom = screen.height - screen.getBackgroundHeight() - screen.getY() + 40; + + if (pageIndex % 2 == 1) { + margin.left += screen.getBackgroundWidth() / 2 - 10; + } else { + margin.right += screen.getBackgroundWidth() / 2; + } + init(() -> {}); + screen.addDrawable(this); + ((IViewRoot)screen).getChildElements().add(this); + } + + @Override + protected void renderContents(DrawContext context, int mouseX, int mouseY, float partialTicks) { + page.ifPresent(p -> { + int oldHeight = p.getBounds().height; + p.draw(context, mouseX, mouseY, this); + if (p.getBounds().height != oldHeight) { + verticalScrollbar.reposition(); + } + }); + super.renderContents(context, mouseX, mouseY, partialTicks); + } + + @Override + public Bounds getContentBounds() { + return page == null ? Bounds.empty() : page.map(page -> { + return new Bounds(0, 0, 1, page.getBounds().height); + }).orElse(Bounds.empty()); + } + + @Override + protected void drawBackground(DrawContext context, int mouseX, int mouseY, float partialTicks) { } + + @Override + protected void drawDecorations(DrawContext context, int mouseX, int mouseY, float partialTicks) { } +} \ No newline at end of file From d08de6fae8482cb110862bf7a15b4e55b692206f Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 29 Jan 2024 21:20:04 +0000 Subject: [PATCH 088/104] Make chapter contents translatable --- .../container/SpellbookChapterLoader.java | 31 +- .../resources/assets/unicopia/lang/en_us.json | 353 +++++++++++++++++- .../core/rendertype_portal_surface.fsh | 3 - .../core/rendertype_portal_surface.json | 7 +- .../spellbook/chapters/air_magic.json | 147 ++++---- .../spellbook/chapters/crystal_heart.json | 126 +++---- .../spellbook/chapters/dark_magic.json | 275 ++++++-------- .../spellbook/chapters/fire_magic.json | 194 ++++------ .../spellbook/chapters/ice_magic.json | 191 +++++----- .../spellbook/chapters/introduction.json | 96 ++--- .../spellbook/chapters/the_otherworldly.json | 55 ++- 11 files changed, 846 insertions(+), 632 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java b/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java index b7911f05..15e0dd3a 100644 --- a/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java +++ b/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java @@ -83,6 +83,14 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab } } + private static Text readText(JsonElement json) { + return json.isJsonPrimitive() ? Text.translatable(json.getAsString()) : Text.Serializer.fromJson(json); + } + + public enum Flow { + NONE, LEFT, RIGHT + } + public record Chapter ( Identifier id, TabSide side, @@ -103,7 +111,7 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab .filter(pages -> pages.size() > 0) .stream() .flatMap(pages -> StreamSupport.stream(pages.spliterator(), false)) - .map(Page::new) + .map(Page::of) .toList(); } @@ -122,13 +130,19 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab int level, List elements ) { - public Page(JsonElement json) { + private static final Page EMPTY = new Page(Text.empty(), 0, List.of()); + + public static Page of(JsonElement json) { + return json.isJsonObject() && json.getAsJsonObject().keySet().isEmpty() ? EMPTY : new Page(json); + } + + Page(JsonElement json) { this(json.getAsJsonObject()); } - public Page(JsonObject json) { + Page(JsonObject json) { this( - Text.Serializer.fromJson(json.get("title")), + readText(json.get("title")), JsonHelper.getInt(json, "level", 0), new ArrayList<>() ); @@ -148,10 +162,6 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab } } - public enum Flow { - NONE, LEFT, RIGHT - } - private interface Element { void toBuffer(PacketByteBuf buffer); @@ -213,7 +223,7 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab return new Multi(count, new Id((byte)4, Identifier.tryParse(json.get("spell").getAsString()))); } - return new Multi(count, new TextBlock(Text.Serializer.fromJson(json.get("text")))); + return new Multi(count, new TextBlock(readText(json.get("text")))); } @Override @@ -229,7 +239,6 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab static Element read(JsonElement json) { if (!json.isJsonPrimitive()) { - JsonObject el = JsonHelper.asObject(json, "element"); if (el.has("texture")) { return new Image( @@ -256,7 +265,7 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab } } - return new TextBlock(Text.Serializer.fromJson(json)); + return new TextBlock(readText(json)); } private static Bounds boundsFromJson(JsonObject el) { diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index fe83a05b..348b9423 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -515,7 +515,7 @@ "spell.unicopia.siphoning.lore": "Channels other creature's life force into the caster", "spell.unicopia.reveal": "Dispell Illusion", "spell.unicopia.reveal.lore": "Negates shapeshifting magic", - "spell.unicopia.light": "Dancing Light", + "spell.unicopia.light": "Dancing Lights", "spell.unicopia.light.lore": "Summons multiple small lights to follow the caster", "spell.unicopia.awkward": "Botched", "spell.unicopia.awkward.lore": "Unstable magics", @@ -793,10 +793,361 @@ "gui.unicopia.spellbook.page.recipes": "Recipes", "gui.unicopia.spellbook.page.recipes.empty": "0 Recipes Unlocked", "gui.unicopia.spellbook.page.mana": "Mana", + "gui.unicopia.spellbook.page.level_requirement": "Level: %s", "gui.unicopia.spellbook.page.requirements.entry.item": "- %1$sx %2$s", "gui.unicopia.spellbook.page.requirements.entry.trait": "- At least %1$sx %2$s trait", "gui.unicopia.spellbook.page.requirements.entry.spell": "- %1$sx %2$s gem", + "gui.unicopia.spellbook.recipe.requires": "Requires:", + "gui.unicopia.spellbook.author1.sign_off": "At the princess' behest", + "gui.unicopia.spellbook.author1.sign_off.b": "At the princess' behest, so dreadfully sorry", + "gui.unicopia.spellbook.author1.name": "- Starswirl the Bearded", + "gui.unicopia.spellbook.author2.name": "- Lord Sombra", + "gui.unicopia.spellbook.author3.name": "- XOXOX Lulu", + "gui.unicopia.spellbook.chapter.artefacts.status.unconfirmed": "Status: Unconfirmed", + "gui.unicopia.spellbook.chapter.artefacts.status.confirmed": "Status: Confirmed", + "gui.unicopia.spellbook.chapter.artefacts.status.lost": "Status: Lost", + "gui.unicopia.spellbook.chapter.introduction.p1.title": "Preface", + "gui.unicopia.spellbook.chapter.introduction.p1.body": "To whomever holds this tome, beware what you seek for you might not like what you find. §kHither yonder equs§r.", + "gui.unicopia.spellbook.chapter.introduction.p2.title": "Ch.1 Magic in Equestria", + "gui.unicopia.spellbook.chapter.introduction.p2.body": "Equestria is filled with magic of all different shapes and forms. Following recent events, however, it's has become plainly obvious that we do not fully understand all that there is about the world of Equestria. That is why the crown has tasked me with researching Magic in all of its forms, so we might utilise it and, I hope, save ourselves from the §kdiscordic assault§r.", + "gui.unicopia.spellbook.chapter.introduction.p3.title": "1st Mare '12", + "gui.unicopia.spellbook.chapter.introduction.p3.1.body": "Unusual Rocks", + "gui.unicopia.spellbook.chapter.introduction.p3.2.body": "These 'Gemstones' as the locals call them are a common material found around the world. Farm-Ponies dig them up all the time and consider it a local delicacy, but I believe these stones are capable of a lot more than they let on.", + "gui.unicopia.spellbook.chapter.introduction.p4.title": "Gemstones", + "gui.unicopia.spellbook.chapter.introduction.p4.1.body": "My research is still incomplete but I may have stumbled upon something. These stones have high magical potentia! More than I've ever seen before!", + "gui.unicopia.spellbook.chapter.introduction.p4.2.body": "§mLuna wants-§r I'm going to keep experimenting. Hooves-crossed, I'll update you tomorrow if I find anything.", + "gui.unicopia.spellbook.chapter.introduction.p5.title": "2nd Mare '12", + "gui.unicopia.spellbook.chapter.introduction.p5.1.body": "It worked! Holy §kCelestia's ass-cheeks'§r it actually worked!", + "gui.unicopia.spellbook.chapter.introduction.p5.2.body": "This is amazing! These can do so much more than I could have ever imagined. Think of the advances I could bring to Equestria. Gem-powered lighting, heating, cooling, I'd no longer have to spend summer sitting on this-", + "gui.unicopia.spellbook.chapter.introduction.p5.3.body": "I'm getting ahead of myself. Let me explain...", + "gui.unicopia.spellbook.chapter.introduction.p6.title": "Spellcrafting", + "gui.unicopia.spellbook.chapter.introduction.p6.1.body": "I drew a guide at the start of this book to help with the placement.", + "gui.unicopia.spellbook.chapter.introduction.p6.2.body": "Put a raw gem-it mustn't have any spells already-in the middle and place materials around it in the slots I marked.", + "gui.unicopia.spellbook.chapter.introduction.p6.3.body": "Each material gives different effects and putting them closer enhances their influence on the gem.", + "gui.unicopia.spellbook.chapter.introduction.p7.title": "3rd Mare '12", + "gui.unicopia.spellbook.chapter.introduction.p7.1.body": "I'm going to start documenting spell combinations as I find them. Some of them are pretty obvious, like gem + fire = fire gem", + "gui.unicopia.spellbook.chapter.introduction.p7.2.body": "But some are less clear. For instance, what traits would an egg add? Much experimenting is needed. Oh, I'm giddy with excitement!", + "gui.unicopia.spellbook.chapter.introduction.p8.title": "Botched Gems", + "gui.unicopia.spellbook.chapter.introduction.p8.1.body": "Not every combination works. What's dissapointing is now I have all these useless stones piling up in my chambers.", + "gui.unicopia.spellbook.chapter.introduction.p8.2.body": "I don't know what to do with them. They're not edible. At least the locals don't think so.", + "gui.unicopia.spellbook.chapter.introduction.p8.3.body": "They do still have the traits I gave them, so maybe I can find a use other than building a rock-fort with little Luna...", + "gui.unicopia.spellbook.chapter.introduction.p9.title": "13th Mare '12", + "gui.unicopia.spellbook.chapter.introduction.p9.1.body": "Sorry for the long delay in updates. I've been hard at work researching different spells and desciding my approach.", + "gui.unicopia.spellbook.chapter.introduction.p9.2.body": "Fire is becomg a very interesting aspect, what with traits for it being readily available.", + + "gui.unicopia.spellbook.chapter.fire.p1.title": "Ch.2 Fire Magic", + "gui.unicopia.spellbook.chapter.fire.p2.title": "9th Jum '12", + "gui.unicopia.spellbook.chapter.fire.p2.1.body": "It took me longer than I anticipated, nearly a month! Hah! But I present to you, dear reader, my findings for the first elementary form of magic: FIRE.", + "gui.unicopia.spellbook.chapter.fire.p2.2.body": "It's a working title, okay?", + "gui.unicopia.spellbook.chapter.fire.scorch.1.body": "Simple and to the point, Scorch does exactly what you'd think. By embuing a gem with the fire trait, one can indute it to glow and become hot to the touch.", + "gui.unicopia.spellbook.chapter.fire.scorch.2.body": "The effect becomes stronger the more fire you load it with, but take care not to overload it, as it may become volatile.", + "gui.unicopia.spellbook.chapter.fire.flame.1.body": "Creates a heating affect up to a radius of 3 hooves from any surfaces it touches.", + "gui.unicopia.spellbook.chapter.fire.flame.2.body": "Useful when one needs a flame in a hurry or to fend off a wild wendigo.", + "gui.unicopia.spellbook.chapter.fire.p5.title": "10th Jum '12", + "gui.unicopia.spellbook.chapter.fire.p5.1.body": "Progress?", + "gui.unicopia.spellbook.chapter.fire.p5.2.body": "I've managed to improve the previous spell somewhat, but there is still something lacking. It's all very orderly. Predicatable.", + "gui.unicopia.spellbook.chapter.fire.p5.3.body": "Luna has suggested adding more fire, but I'm weary to create more scorch marks on the tower. Faust save me if anypony were to find out what I've been doing...", + "gui.unicopia.spellbook.chapter.fire.p6.title": "Fire Magic III", + "gui.unicopia.spellbook.chapter.fire.p6.1.body": "Focusing Magic", + "gui.unicopia.spellbook.chapter.fire.p6.2.body": "Some spells normally take a great amount of focus to cast, and a steady wit to control, However I've found objects embued with the focusing trait work wonderfully as a substitute for when the caster is lacking.", + "gui.unicopia.spellbook.chapter.fire.p7.title": "Fire Magic III-II", + "gui.unicopia.spellbook.chapter.fire.p7.1.body": "Any glass objects you can find, eyes, bottles, whatever incorporates a lense can be used to embue focus on a spell.", + "gui.unicopia.spellbook.chapter.fire.p8.title": "Scrap 2", + "gui.unicopia.spellbook.chapter.fire.p8.1.body": "We went to the market today. Had to get out of that tower, do something, be somewhere. Luna suggested we go in to see what they were selling for the fair so I decided to indulge her.", + "gui.unicopia.spellbook.chapter.fire.p8.2.body": "The townsfolk are still rather skeptical of us, though who's to blame them. Luna was getting along well with the other foals, at least.", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.1.body": "Creates a series of heated projectiles to fling at a target. Upon impact the target will be set alight.", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.2.body": "- Increase focus will allow finer grained control of the projectile's trajectory.", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.3.body": "- With over 50 focus it's almost like they know where the target is (homing?).", + "gui.unicopia.spellbook.chapter.fire.p10.title": "Fire Magic IV", + "gui.unicopia.spellbook.chapter.fire.p10.1.body": "Powerful Magic", + "gui.unicopia.spellbook.chapter.fire.p10.2.body": "Where some spells take focus, others require power. Either to exert a force, or to generate energy in some form.", + "gui.unicopia.spellbook.chapter.fire.p10.3.body": "There are few unicorns that have the inherent strength and power to cast spells of these kinds, but luckily such a trait is not in short supply around us.", + "gui.unicopia.spellbook.chapter.fire.p11.title": "Fire Magic IV-II", + "gui.unicopia.spellbook.chapter.fire.p11.1.body": "Earthly elements, stone, many metals and minerals, that are strong under compression will exhibit the strength trait.", + "gui.unicopia.spellbook.chapter.fire.p11.2.body": "Electrical/Conductive elements that can be used to power things, or that glow can also be used to obtain the power trait.", + "gui.unicopia.spellbook.chapter.fire.p12.title": "11th Jum '12", + "gui.unicopia.spellbook.chapter.fire.p12.1.body": "Got a knock at the door today. Luna was very eager to answer it but I had to send her away as it was a messenger from the crown.", + "gui.unicopia.spellbook.chapter.fire.p12.2.body": "My research has garnered a certain bit of notoriety, it appears. The royals are very eager to see what I have concocted.", + "gui.unicopia.spellbook.chapter.fire.p12.3.body": "They've gotten it in their heads that they can use it against the West.", + "gui.unicopia.spellbook.chapter.fire.p12.4.body": "Gods forbid they succeed. I shudder to think what the council might do if they got their hooves on my work.", + "gui.unicopia.spellbook.chapter.fire.p12.5.body": "Addendum", + "gui.unicopia.spellbook.chapter.fire.p12.6.body": "§mI am told the crown has started giving directions to find other uses. Ways to...", + "gui.unicopia.spellbook.chapter.fire.p13.title": "20th Jum '12", + "gui.unicopia.spellbook.chapter.fire.p13.1.body": "I have word from the crown. They appear satisfied, for now, and have agreed to let my continue my research as I have into the winter.", + "gui.unicopia.spellbook.chapter.fire.p13.2.body": "I am under duress to destroy the last several entries, I'm afraid.", + "gui.unicopia.spellbook.chapter.fire.p14.title": "21st Jum '12", + "gui.unicopia.spellbook.chapter.fire.p14.1.body": "I shall visit §kCommander Hurricane§r tomorrow. Perhaps she may shed light onto my predicament.", + "gui.unicopia.spellbook.chapter.fire.shield.1.body": "Casting shields are one of the first things every unicorn learns in self-defense. It's simple and easy to cast, and is an excellent introduction to incanting.", + "gui.unicopia.spellbook.chapter.fire.shield.2.body": "Its disadvantage is the energy and mental cost, however we can negate both by attaching it to a gem as per follows...", + "gui.unicopia.spellbook.chapter.fire.shield.modifier.1": "+ add power trait to increase effect range", + "gui.unicopia.spellbook.chapter.fire.p16.title": "Protection II", + "gui.unicopia.spellbook.chapter.fire.p16.1.body": "By adding extra traits, I was able to slightly modify the shield to allow or deny certain parties into the effect range.", + "gui.unicopia.spellbook.chapter.fire.p16.2.body": "+ add life trait --> all animals may enter\n+ add blood trait --> all monsters may enter\n+ add ice trait --> all ponies may enter", + "gui.unicopia.spellbook.chapter.fire.p17.title": "Protection III", + "gui.unicopia.spellbook.chapter.fire.p17.1.body": "+ add genorosity trait to attach the spell to a location rather than yourself", + "gui.unicopia.spellbook.chapter.fire.p18.title": "Scrap: 9th Jum '12", + "gui.unicopia.spellbook.chapter.fire.p18.1.body": "Fire magic has proven to a be a little more... unpredictable than anticipated. Every time I feel like I'm making progress it finds a way to set me back.", + "gui.unicopia.spellbook.chapter.fire.p18.2.body": "I can't stop now, though...I'm told the situation in the west is growing dire. They have asked me to pick up the pace and produce something we can use to get the upper hoof against the §kChangeling Storm§r.", + + "gui.unicopia.spellbook.chapter.ice.p1.title": "Ch.3 Ice Magic", + "gui.unicopia.spellbook.chapter.ice.p2.title": "4th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p2.1.body": "This is an interesting one. Rather simple, I admit, but Luna insisted I make something cold to help us deal with this darn heat.", + "gui.unicopia.spellbook.chapter.ice.p2.2.body": "All you need is a gem and something cold. Like a snowball.", + "gui.unicopia.spellbook.chapter.ice.frost.1.body": "Creates a chilling affect up to a radius of 3 hooves from any surfaces it touches.", + "gui.unicopia.spellbook.chapter.ice.frost.2.body": "Will sap energy out of the immediate environment causing a phase change.", + "gui.unicopia.spellbook.chapter.ice.p4.title": "Chilling Breath", + "gui.unicopia.spellbook.chapter.ice.p4.1.body": "Alters the ability of certain objects to distenguish between hot and cold.", + "gui.unicopia.spellbook.chapter.ice.p4.2.body": "This is a very weak spell, but when used with a boat can be exceedingly useful to get out of a sticky stituation.", + "gui.unicopia.spellbook.chapter.ice.p5.title": "5th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p5.1.body": "The village-ponies had a bonfire last night. I could tell by the strong smell of burning wood and the sound of music.", + "gui.unicopia.spellbook.chapter.ice.p5.2.body": "Luna, bless her heart, insisted that we take a break to join them. She had to practically drag me away from my desk to do it.", + "gui.unicopia.spellbook.chapter.ice.p5.3.body": "What can I say? She's a light in my heart.", + "gui.unicopia.spellbook.chapter.ice.p6.title": "Bonfire", + "gui.unicopia.spellbook.chapter.ice.p6.1.body": "We arrived at the bonfire, and of course the first thing they had was a mug of ale in my hoof. I didn't drink it, of course-alcohol is a poison to me. I'd be sick as a mule.", + "gui.unicopia.spellbook.chapter.ice.p6.2.body": "Luna enjoyed it-the bonfire, not the ale!-though. She made immediate friends with one of the town's fillies, Celly or something. They played the whole night.", + "gui.unicopia.spellbook.chapter.ice.p7.title": "Bonfire II", + "gui.unicopia.spellbook.chapter.ice.p7.1.body": "On the way back Luna was telling me of the stories her friend told her. The town has a lot of legends, as to be expected.", + "gui.unicopia.spellbook.chapter.ice.p7.2.body": "One of them was about a scary old warlock who lived in a haunted tower at the edge of town. There's no mystery who that was about.", + "gui.unicopia.spellbook.chapter.ice.p7.3.body": "Ice Spell II", + "gui.unicopia.spellbook.chapter.ice.p7.4.body": "Creates a cooling affect up to a radius of 3 hooves from any surfaces it touches.", + "gui.unicopia.spellbook.chapter.ice.p8.title": "6th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p8.1.body": "There was a strange noise in the village last night. Very strange. I heard a lot ponies shouting and there may have been a fire.", + "gui.unicopia.spellbook.chapter.ice.p8.2.body": "I hope everything is okay.", + "gui.unicopia.spellbook.chapter.ice.light.1.body": "By combining a fire bolt gem with a splash of life and the chilling effect of ice I've created a spell to help with seeing in the night.", + "gui.unicopia.spellbook.chapter.ice.light.2.body": "Dancing Lights will summon a cluster of glowing orbs to illuminate your path.", + "gui.unicopia.spellbook.chapter.ice.light.modifier.1": "* By adding more focus you can extend the duration of the spell", + "gui.unicopia.spellbook.chapter.ice.p10.title": "12th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p10.1.body": "There were more noises last night, this time a lot closer. The town's dimeaner has also changed. A lot of the ponies I see that are normally very cheerful have become sullen.", + "gui.unicopia.spellbook.chapter.ice.p10.2.body": "Something has happened, that much is obvious, though few will tell me what.", + "gui.unicopia.spellbook.chapter.ice.p11.title": "15th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p11.1.body": "Winter is nearly upon us now. I just saw the earliest flakes of snow outside this window as I write.", + "gui.unicopia.spellbook.chapter.ice.p11.2.body": "The locals have begun their winter unwrapping and though the usual grumblings about frozen fields abound, I can tell there is still §ka sense of uneasyness§r.", + "gui.unicopia.spellbook.chapter.ice.p12.title": "17th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p12.1.body": "It's rather surprising how quickly the weather starts to change around here. Everything in Catermoore is so very well controlled, with the spells we use to manage temperature and the pegasi assisting with the weather, we sometimes forget what wild seasons can be like.", + "gui.unicopia.spellbook.chapter.ice.p12.2.body": "But these Earth Ponies don't ave any of those luxuries. They have to deal with the weather as it comes.", + "gui.unicopia.spellbook.chapter.ice.p13.title": "Frozen Lake", + "gui.unicopia.spellbook.chapter.ice.p13.1.body": "Just this morning I was on the way to the stall when I passed the lake at the foot of this tower's hill and saw it was nearly completely frozen over. A few colts had taken to scating across it.", + "gui.unicopia.spellbook.chapter.ice.p13.2.body": "Luna asked if she could join them, but I didn't allow it. I couldn't say why at the time, but I had a bad feeling, like something was going to happen...", + "gui.unicopia.spellbook.chapter.ice.p14.title": "17th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p14.1.body": "Oh gods, of princesses. I. I don't know how to describe this. My hooves are shaking, I can barely breeze. I'm freezing cold and I can't stop thinking about what happened.", + "gui.unicopia.spellbook.chapter.ice.p14.2.body": "I knew there was something wrong. I b---knew it. I didn't know what it was at the time, but I'm extremely glad I didn't let Luna scate on that lake.", + "gui.unicopia.spellbook.chapter.ice.p15.title": "Frozen Lake II", + "gui.unicopia.spellbook.chapter.ice.p15.1.body": "Let me take a step back a bit to describe what happened. Do you remember the frozen lake and those colts that were skating on it?", + "gui.unicopia.spellbook.chapter.ice.p15.2.body": "Well, after that I went on to the market and I was looking at the strawberries in one of the stalls--Didn't get any, sadly they were forgotten in the confusion.", + "gui.unicopia.spellbook.chapter.ice.p16.title": "Frozen Lake III", + "gui.unicopia.spellbook.chapter.ice.p16.1.body": "Whilst I was debating the vendor about the price, I felt Luna tugging on my tunic and she asked me what was going on. I heard galloping and I saw ponies running by us. None of them stopped to explain, but I heard some very gruff words in old ponish.", + "gui.unicopia.spellbook.chapter.ice.p16.2.body": "They were heading in the direction of our tower so I set off after them.", + "gui.unicopia.spellbook.chapter.ice.p16.3.body": "My immediate thoughts were 'was it a fire'? Was my lab in danger?", + "gui.unicopia.spellbook.chapter.ice.p16.4.body": "I tell you what, I wish that were the case. What I actually found was much, much, worse, and even thinking of it makes my blood run cold anew.", + "gui.unicopia.spellbook.chapter.ice.p17.title": "Frozen Lake IV", + "gui.unicopia.spellbook.chapter.ice.p17.1.body": "When we were getting near the lake from earlier, I saw a large crowd growing along its banks. Ladders and emergency equipment were out and scattered on the shoreline and a loud uproar had erupted about what to do.", + "gui.unicopia.spellbook.chapter.ice.p17.2.body": "Getting closer, though, I realised what had happened soon enough--and I made a beeline for for the water-- The ice was broken and the lake was freezing cold.", + "gui.unicopia.spellbook.chapter.ice.p17.3.body": "I jumped in anyway, pulling my saddlebags open with my magic, and grabbed the last of the gems i had with my and cast the unfinished spell it had inside.", + "gui.unicopia.spellbook.chapter.ice.p17.4.body": "The waters receded away from me as I galloped down the slop and across the drying lake bed and dove to catch the colts that had fallen in.", + "gui.unicopia.spellbook.chapter.ice.p18.title": "Frozen Lake V", + "gui.unicopia.spellbook.chapter.ice.p18.1.body": "They were freezing and wet, even as the spell's effects worked to pull the water away from their coats, we carred them up to the shore and got them covered in blankets with hot drinks in their hooves.", + "gui.unicopia.spellbook.chapter.ice.p18.2.body": "The townponies insisted on giving me a blanket of my own, even though I hadn't - couldn't have- gotten wet.", + "gui.unicopia.spellbook.chapter.ice.p18.3.body": "It was only much later, when the shock began to wear of and I was feeling my head start to pound that I remembered to cancel the spell.", + "gui.unicopia.spellbook.chapter.ice.p18.4.body": "Thank the princesses we got there in time.", + "gui.unicopia.spellbook.chapter.ice.p19.title": "18th Trot '12", + "gui.unicopia.spellbook.chapter.ice.p19.1.body": "No sign of the colts this morning, I assume they won't be coming near this lake for a long while. The water had frozen again in the night and looked peaceful.", + "gui.unicopia.spellbook.chapter.ice.p19.2.body": "The unseasy feeling I had yesterday was gone today so I was able to relax on its banks with Luna. She didn't want to swim in this lake any more, and I don't blame her. I wouldn't either.", + "gui.unicopia.spellbook.chapter.ice.p20.title": "Sandcastle", + "gui.unicopia.spellbook.chapter.ice.p20.1.body": "Luna started a sand castle, and whilst she was busy with that I decided to sketch out the details of my new spell.", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.1.body": "By combining the abilities of a shield spell with that of the frost gem, the results are... Admittedly strange.", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.2.body": "I'm calling this water repulsion because it does just that: It pushes water away from the caster.", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.modifier.1": "* By adding more focus you can extend the duration of the spell", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.modifier.2": "* Add the generosity trait to tie this spell to a location rather than a user", + + "gui.unicopia.spellbook.chapter.air.p1.title": "Ch.4 Air Magic", + "gui.unicopia.spellbook.chapter.air.p2.title": "1st Hoof '12", + "gui.unicopia.spellbook.chapter.air.p1.1.body": "A new month, a new chapter. Little Luna was getting bored of sitting in the tower all day (and who's to blame her? We've been on this assignment for over two months at this point).", + "gui.unicopia.spellbook.chapter.air.p1.2.body": "So as a little treat, we've decided to go on a little trip to the Grand Marepid Falls to visit my friend, Commander Hurricane.", + "gui.unicopia.spellbook.chapter.air.p1.3.body": "The Commander has also very graciously allowed me access to her library to continue my studies. I'm excited to see what combining unicorn and pegasus magics might bring.", + "gui.unicopia.spellbook.chapter.air.p3.title": "2nd Hoof '12", + "gui.unicopia.spellbook.chapter.air.p3.1.body": "Apologies for the, um, unusual entry in the appendices for today. It appears some little gremlin managed to obscond with my journal.", + "gui.unicopia.spellbook.chapter.air.p4.title": "Air Magic I", + "gui.unicopia.spellbook.chapter.air.p4.1.body": "Pegasus Magic", + "gui.unicopia.spellbook.chapter.air.p4.2.body": "Air magic is to pegasi like fire is to unicorns. They're both equally hard to control but where fire is primarily focused around force, destruction, or protection, air is all about flexibility and free motion.", + "gui.unicopia.spellbook.chapter.air.p4.3.body": "Command Hurricane has very kindly given me some tips on how to identify this trait in everyday objects.", + "gui.unicopia.spellbook.chapter.air.p4.4.body": "Anything relating to flight, or that originated from creatures that fly, or that comes from up above can be considered a source of the air trait.", + "gui.unicopia.spellbook.chapter.air.p4.5.body": "Eg. Feathers.", + "gui.unicopia.spellbook.chapter.air.catapult.1.body": "This is a straightforward application of a unicorn's telekineses. The catapult gem allows a caster to grab any block or creature and fling them into the air.", + "gui.unicopia.spellbook.chapter.air.catapult.2.body": "Use it again on something already thrown to push it away from you.", + "gui.unicopia.spellbook.chapter.air.catapult.modifier.1": "* One can add apply more force by adding the strength trait", + "gui.unicopia.spellbook.chapter.air.bubble.1.body": "A defensive and utility spell. Bubble will trap the target in a giant soap bubble, rendering them defensless.", + "gui.unicopia.spellbook.chapter.air.bubble.2.body": "Use it again will pop the bubble.", + "gui.unicopia.spellbook.chapter.air.p7.title": "8th Hoof '12", + "gui.unicopia.spellbook.chapter.air.p7.1.body": "I thought I would take a short moment to write down an entry to record my findings whilst Luna and The Commander are out.", + "gui.unicopia.spellbook.chapter.air.p7.2.body": "Pegasi magic really is a fascinating beast. It's not like our magic, which is more of a study, with rigid rules and practices.", + "gui.unicopia.spellbook.chapter.air.p8.title": "Pegasi", + "gui.unicopia.spellbook.chapter.air.p8.1.body": "Pegasus magic is more about feeling. It's an art form. They don't think about what they want to do, it just happens, but it all still follows the same principle.", + "gui.unicopia.spellbook.chapter.air.p9.title": "Pegasi II", + "gui.unicopia.spellbook.chapter.air.p9.1.body": "Take for example their cloud homes. There are no spells I can read that would let me do this, but if you feel, not with your hooves or your horn, but properly, with your mind, your heart, you will find magic buzzing all throughout.", + "gui.unicopia.spellbook.chapter.air.p9.2.body": "Clouds are teeming with the air and water trait, but also others, like power, strength, life, earth. All traits of the material the clouds are mimicking.", + "gui.unicopia.spellbook.chapter.air.p10.title": "Pegasi III", + "gui.unicopia.spellbook.chapter.air.p10.1.body": "I wish I could study this further, but I'm afraid to interfere in this magic I don't yet fully understand.", + "gui.unicopia.spellbook.chapter.air.p10.2.body": "Commander Hurricane may never forgive me if I destroy her home the first time I'm here.", + "gui.unicopia.spellbook.chapter.air.feather_fall.1.body": "Expanding on the defensive capabilities of the protection gem, I've attempted to extend its advantages to party members.", + "gui.unicopia.spellbook.chapter.air.feather_fall.2.body": "This one is unusual because of its complexity, but in theory it should allow one to slow their own and friends' descent.", + "gui.unicopia.spellbook.chapter.air.p12.title": "10th Hoof '12", + "gui.unicopia.spellbook.chapter.air.p12.1.body": "Went to dinner with Commander Huricane and Luna. We got to talking about architecture and Hurricane mentioned the Taz Marehall.", + "gui.unicopia.spellbook.chapter.air.p12.2.body": "Luna thought it was a rather funny name of a castle. I had to remind her that not all cultures are the same.", + "gui.unicopia.spellbook.chapter.air.p13.title": "21st Hoof '12", + "gui.unicopia.spellbook.chapter.air.p13.1.body": "I'm writing this on the eve of my return to §kTrotholm§r. Though my time in Cloudopolis has been elightening, I look forward to a return to the familiar surroundings and a proper rest in my own solid bed.", + "gui.unicopia.spellbook.chapter.air.p13.2.body": "I cannot say the same for Luna, though. She is currently sitting on my bed beside me pouting over every little thing she sees me put into my saddlebag.", + "gui.unicopia.spellbook.chapter.air.p14.title": "Returning Home", + "gui.unicopia.spellbook.chapter.air.p14.1.body": "She keeps insisting that we stay a little longer §mto hang out with that pegasus colt I saw her with the other day, no doubt", + "gui.unicopia.spellbook.chapter.air.p15.title": "22nd Hoof '12", + "gui.unicopia.spellbook.chapter.air.p15.1.body": "As we're flying above the mountain tops, I can't help but feel in awe the beauty that §kMother Faust§r has given us.", + "gui.unicopia.spellbook.chapter.air.p15.2.body": "I had to spend the whole time keeping Luna from falling out, and of course answering questions about all the different kinds of clouds. Thankfully, the balloon operator was there to help with the subtleties.", + "gui.unicopia.spellbook.chapter.air.p15.3.body": "Being out here, above all of our troubles, really makes me forget the rest of the world for a moment. It takes me back to a simpler time, before the--", + "gui.unicopia.spellbook.chapter.air.p15.4.body": "Of course the flashes of explosions to the west has to ruin it all. There appears to be a storm on the horizon. I certainly hope it not to be a bad omen...", + + "gui.unicopia.spellbook.chapter.dark_magic.p1.title": "Ch.5 The Arcane", + "gui.unicopia.spellbook.chapter.dark_magic.p2.title": "30th Hoof '12", + "gui.unicopia.spellbook.chapter.dark_magic.p2.1.body": "A new communication from the crown today. The situation seems to be worsening in the west and though they've been satisfied with my work until now, they are putting pressure on me to produce something more destructive.", + "gui.unicopia.spellbook.chapter.dark_magic.p2.2.body": "I tried to tell the messenger that I couldn't-", + "gui.unicopia.spellbook.chapter.dark_magic.p3.title": "3rd Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p3.1.body": "Let it be known that it was never my intention that anypony use my work for nefarious purposes. I am a researcher, above and beyond all else. My intentions are pure, and my wants are nothing more than this world to be at peace.", + "gui.unicopia.spellbook.chapter.dark_magic.p4.title": "4th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p4.1.body": "No review of magic is ever complete without a glimpse into the other side.", + "gui.unicopia.spellbook.chapter.dark_magic.p4.2.body": "Dark magic, or as I'm going to refer to it as The Arcane are tip-toeing the line between the normal light magic we normally know and the more nefarious side of reality.", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.1.body": "If someone were to ask you 'what is the opposite of a repulsion spell, what would you say? An attraction spell, of course!", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.2.body": "By twisting the purpose of the protection spell, I've been able to reverse its function to create a spell that pulls objects and entities closer to the caster.", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.modifier.1": "+ 10x knowledge to narrow the effect's range to items", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.modifier.2": "+ add focus trait to increase duration\n+ add power trait to increase range", + "gui.unicopia.spellbook.chapter.dark_magic.p6.title": "8th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p6.1.body": "Additional Notes for the Attraction Spell", + "gui.unicopia.spellbook.chapter.dark_magic.p6.2.body": "I caught Luna playing with my spellcrafting grid today, even though I expressly forbid her from entering my study when I'm not there.", + "gui.unicopia.spellbook.chapter.dark_magic.p6.3.body": "Apparently it was over some dispute with Celly, I don't really remember, but it culminated in Luna sneaking into the study whilst I was out to get some bread.", + "gui.unicopia.spellbook.chapter.dark_magic.p7.title": "Arcane Attraction II", + "gui.unicopia.spellbook.chapter.dark_magic.p7.1.body": "This isn't really about that, though. She's been scolded and sent back to her room, however as I was cleaning up the mess she'd made I noticed something in the piles of gems.", + "gui.unicopia.spellbook.chapter.dark_magic.p7.2.body": "It's hard to describe, really. This is still distincly an attraction gem, but it's different.", + "gui.unicopia.spellbook.chapter.dark_magic.p7.3.body": "It has traits I hadn't considered before, and the way it behaves... ", + "gui.unicopia.spellbook.chapter.dark_magic.p8.title": "Arcane Attraction II Cont.", + "gui.unicopia.spellbook.chapter.dark_magic.p8.1.body": "Well I'll leave that up to tomorrow. I'm still tired from everything that's happened this week.", + "gui.unicopia.spellbook.chapter.dark_magic.p8.2.body": ">0 generosity --> ??", + "gui.unicopia.spellbook.chapter.dark_magic.p8.3.body": ">20 order trait --> ???", + "gui.unicopia.spellbook.chapter.dark_magic.p9.title": "20th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p9.1.body": "As per their agreement, the council have sent certain...supplimental materials to aid in the new direction my research is taking. I was a little shocked at first.", + "gui.unicopia.spellbook.chapter.dark_magic.p9.2.body": "This... thing... Whatever it is. Was, rather.", + "gui.unicopia.spellbook.chapter.dark_magic.p9.3.body": "Is this really what we're fighting in the west?", + "gui.unicopia.spellbook.chapter.dark_magic.p10.title": "21st Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p10.1.body": "I've put the... thing. In the basement. Locked the door.", + "gui.unicopia.spellbook.chapter.dark_magic.p10.2.body": "I just couldn't stand looking at it any longer. It's vaguely pony-shaped, but also...", + "gui.unicopia.spellbook.chapter.dark_magic.p10.3.body": "I couldn't well let Luna see it. I've sent her out to spend the next few nights with Celly whilst I sort out what to do with this.", + "gui.unicopia.spellbook.chapter.dark_magic.p11.title": "25th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p11.1.body": "I'm sorry for the long delays. Things have been... busy.", + "gui.unicopia.spellbook.chapter.dark_magic.p11.2.body": "I've learned a lot about these creatures. Attached are some illustrations, done best I could so I wouldn't have to look at the thing directly.", + "gui.unicopia.spellbook.chapter.dark_magic.p11.3.body": "Its body is black and vaguely §kinsect-like§r with ponish proportions. It has no fur.", + "gui.unicopia.spellbook.chapter.dark_magic.p11.4.body": "The magic they use is unusual. Not unusual, like what I've been studying. It's unnatural. Wild.", + "gui.unicopia.spellbook.chapter.dark_magic.p11.5.body": "There is definitely something I might be able to harness here, but I shudder... Should I?", + "gui.unicopia.spellbook.chapter.dark_magic.p11.6.body": "I fear that this may be a line that shouldn't be crossed.", + "gui.unicopia.spellbook.chapter.dark_magic.transformation.1.body": "I've begun by simply harnessing their ability. It's unfocused and hard to control. I can rarely predict what is going to happen, but this gem has very clear transmodrification properties.", + "gui.unicopia.spellbook.chapter.dark_magic.transformation.2.body": "Throwing this at any creature has the chance to transform it into any other creature.", + "gui.unicopia.spellbook.chapter.dark_magic.reveal.1.body": "Dispell Illusion is the first line of defense against transformation/illusion spells.", + "gui.unicopia.spellbook.chapter.dark_magic.reveal.2.body": "When cast it will force any nearby disguised changelings in its range to reveal their true form.", + "gui.unicopia.spellbook.chapter.dark_magic.reveal.modifier.1": "* Increase range by adding the power trait", + "gui.unicopia.spellbook.chapter.dark_magic.p14.title": "27th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p14.1.body": "Sleep the last few nights has become... elusive.", + "gui.unicopia.spellbook.chapter.dark_magic.p14.2.body": "I don't know how to describe it, really. Luna appears unaffected, but every night after the sun goes down I find myself lying awake at night unable to sleep. It doesn't help that that sounds in the village have resumed.", + "gui.unicopia.spellbook.chapter.dark_magic.p15.title": "Lost Sleep", + "gui.unicopia.spellbook.chapter.dark_magic.p15.1.body": "Last night, especially, I found myself pacing in the observatory. The air became chill, more than is normal for this time of year, and beyond anything that raging fire in corner of the room could combat.", + "gui.unicopia.spellbook.chapter.dark_magic.p15.2.body": "The room where I keep the--my patient opposite the wall behind me.", + "gui.unicopia.spellbook.chapter.dark_magic.p16.title": "Lost Sleep Cont.", + "gui.unicopia.spellbook.chapter.dark_magic.p16.1.body": "I've long since taken to keeping that door locked because every so often I could swear I heard something moving in there...", + "gui.unicopia.spellbook.chapter.dark_magic.p16.2.body": "Gods, am I going crazy?", + "gui.unicopia.spellbook.chapter.dark_magic.p17.title": "29th Slep '12", + "gui.unicopia.spellbook.chapter.dark_magic.p17.1.body": "Bits, there it is again!", + "gui.unicopia.spellbook.chapter.dark_magic.p17.2.body": "I thought last night was a fluke, but I just heard it again--I'm shaking. My hooves, I can barely hold this book as I struggle to pen these words.", + "gui.unicopia.spellbook.chapter.dark_magic.p17.3.body": "There's something--I heard something. Like a chittering--", + "gui.unicopia.spellbook.chapter.dark_magic.p18.title": "1st Croptober '12", + "gui.unicopia.spellbook.chapter.dark_magic.p18.1.body": "I made a call into town. One of the local blacksmiths have agreed to install a new lock, one of the heavy kind that not even earth ponies can bust.", + "gui.unicopia.spellbook.chapter.dark_magic.p18.2.body": "I fear it may not be enough, though, it--whatever it is, clearly has magic. I may be forced to research a magical solution to my insomnia.", + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.1.body": "This spell will create a magical shroud that can be used to protect from other spellcasters.", + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.2.body": "No one else will be able to use magic within its radius.", + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.modifier.1": "* Increase range by adding the power trait", + "gui.unicopia.spellbook.chapter.dark_magic.displacement.1.body": "By casting this spell, a unicorn is able to swap their location with any other creature.", + "gui.unicopia.spellbook.chapter.dark_magic.p21.title": "3rd Croptober '12", + "gui.unicopia.spellbook.chapter.dark_magic.p21.1.body": "The locks have been installed, and with the addition of some extra wardings, I'm feeling a little more at ease.", + "gui.unicopia.spellbook.chapter.dark_magic.p21.2.body": "The motions at night have all but stopped, though I feel like I can almost hear it at times...", + "gui.unicopia.spellbook.chapter.dark_magic.p22.title": "4th Cropt-", + "gui.unicopia.spellbook.chapter.dark_magic.mimic.1.body": "I've been able to tap into some of this strange creature's abilities. There's still a lot to figure out here, but for now I've merely distilled its essense into a gem.", + "gui.unicopia.spellbook.chapter.dark_magic.mimic.modifier.1": "* Add the focus trait to increase the effect's duration", + "gui.unicopia.spellbook.chapter.dark_magic.p24.1.body": "There's been a wave of darkness that has come over the town. Nothing's been the same since that gods-forsaken creature arrived.", + "gui.unicopia.spellbook.chapter.dark_magic.p24.2.body": "Ponies in town have begun remarking on lack of sleep, and it's showing. Just today I saw a poor stallion walking around in a daze. Bags under his eyes, barely any colour in his cheeks.", + "gui.unicopia.spellbook.chapter.dark_magic.p25.1.body": "He looked almost like a zombie the way he went through the motions, not really paying any attention even after he nearly ran into me.", + "gui.unicopia.spellbook.chapter.dark_magic.p26.title": "Scrap", + "gui.unicopia.spellbook.chapter.dark_magic.p26.1.body": "§kIt's not enough. Never enough. Crawling. I feel crawling. Oh gods the crawling won't stop.", + "gui.unicopia.spellbook.chapter.dark_magic.p27.1.body": "The insomnia. I can't take it. I lie in my bed every night waiting to go to sleep.", + "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body": "I thought I could stop it, keep it at bay, but I still hear it. That creature. Cold, unfeeling.", + "gui.unicopia.spellbook.chapter.dark_magic.p27.3.body": "I feel myself being drained any time I'm around it. Is it... feeding on me?", + "gui.unicopia.spellbook.chapter.dark_magic.p27.4.body": "No, it couldn't be.", + "gui.unicopia.spellbook.chapter.dark_magic.p28.1.body": "I found this incantation under some old notes whilst clearing out the lab. It's... simplistic and hard to manage, but it gets the job done.", + "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body": "* Add the power trait to increase the effect's range", + + "gui.unicopia.spellbook.chapter.otherworldly.p1.title": "Ch.6 The Beyond", + "gui.unicopia.spellbook.chapter.otherworldly.p2.title": "2nd Croptober '12", + "gui.unicopia.spellbook.chapter.otherworldly.p2.1.body": "This chapter serves as an exploration of the worlds beyond our own and a delving into what most unicorns would normally shy away from.", + "gui.unicopia.spellbook.chapter.otherworldly.p2.2.body": "In this section can be found the most powerful of the powerful spells, but also the most danger. Read further at your own peril, as this is not for the light of mind.", + "gui.unicopia.spellbook.chapter.otherworldly.siphoning.1.body": "A simple spell that siphons life force out of a living entity and uses it to revitalise the caster.", + "gui.unicopia.spellbook.chapter.otherworldly.necromancy.1.body": "This area effect spell taps into the great beyond to summon life to serve its master.", + "gui.unicopia.spellbook.chapter.otherworldly.necromancy.2.body": "This spell is not very useful when used on its own, but combined with other traits may become a powerful tool against the §kChangeling Swarms§r.", + "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.1.body": "Dipping below the fabric of reality, this spell taps into the deep arcane powers of the beyond to punch a hole in reality.", + "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.2.body": "The resulting hole is a hungry mass that consumes all who approach. It grants massive energy, but feed it at your peril.", + "gui.unicopia.spellbook.chapter.otherworldly.portal.1.body": "Combining the effects of the displacement spell created by my predecessor and the dark vortex gem, one is able to tame its chaotic nature.", + "gui.unicopia.spellbook.chapter.otherworldly.portal.2.body": "The arcane rift spell allows the caster to link two locations together to create a bridge across the ether. Anything that enters one end will appear at the other maintaining its velocity.", + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.1.body": "Continuing my predecessor's research into the abilities of the Changeling Spawn, I have enhanced his mimic spell by adding a chaotic twist.", + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.2.body": "Mind Swap extends the effects of mimic to cover two individuals, in effect swapping their bodies for a limited time.", + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.3.body": "* Add the focus trait to increase the effect's duration", + + "gui.unicopia.spellbook.chapter.artefacts.p1.title": "Ch.7 Artefacts", + "gui.unicopia.spellbook.chapter.artefacts.p2.title": "2nd Mare '12", + "gui.unicopia.spellbook.chapter.artefacts.p2.1.body": "What follows is a compendium of research into certain objects of interest identified through my research.", + "gui.unicopia.spellbook.chapter.artefacts.p2.2.body": "Not all of these have gotten anywhere, as they have been proven to either be pure legend, or perhaps a hoax, so I cannot put stock into their stories.", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.1.body": "Crafted by a group of unicorns long ago, its origin and current location is unknown.", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.2.body": "What few accounts exist claim it was a powerful tool of protection and support, as it would funnel life force from enemies towards the caster and their allies.", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.title": "5th Mare '12", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.3.body": "Other accounts say that this artefact only functions when mounted on a specific pedestal of diamond blocks, like a beacon.", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.title": "Torn Page", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.2.body": "Building Materials:", + "gui.unicopia.spellbook.chapter.artefacts.crystal_podium.title": "Crystal Podium", + "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.2.body": "It's, um a scroll that you write somepony's name on it and you hold it in one hoof and something in the other hoof and, like, um it goes whooosh and the item is sent to that pony.", + "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.title": "2nd Hoof '12", + "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.3.body": "P.S. Uncle Starswirly is a dunderhead.", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.1.body": "Used in the past by spellcasters to communicate over long distances, this band has long since lost its old use.", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.2.body": "Unicorns who sign and hand out this band can use it to share certain magic effects with their friends.", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.title": "13th Mare '12", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.3.body": "Anyone wearing a bangle you have signed will be able to benefit from the positive effects of your spells, or will be allowed through protection and shield spells.", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.4.body": "Mana costs are also shared equally between all nearby members.", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.1.body": "Commander Hurricane informed me of this, though I've found little texts to back up his claims.", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.2.body": "The Pegasus Amulet is claimed to grant the wearer temporary flight, like a pegasus.", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.title": "21st Trot '12", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.3.body": "It was intended as an aide for early unicorn ambassadors to Cloud Heights, but was lost after negotiations broke down.", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.1.body": "A precursor to magic staffs, the meadwobrook's staff is an upright support structure commonly used by warlocks during long incantation sessions.", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.2.body": "It features a twisting and mottled shape with a dense and sturdy core capable of supporting the weight of an average-sized, adult male.", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.title": "22nd Trot '12", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.3.body": "Due to its dense structure and flamability, this object also serves a secondary purpose as an offensive weapon and fuel source should the situation demand.", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.4.body": "To use correctly in combat, one must begin by gripping the staff by the narrow end in both hands, followed by a swift swing from above one's head whilst yelling 'Fus Roh DAH!'", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.1.body": "Magical aides for non-magical users. Magic staffs work in a similar way to a unicorns horn in that they can be used to channel and harness the innate magic stored within gems.", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.title": "22nd Trot '12", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.2.body": "Not all spells work in the same way, but for those that do, a good staff is an essential tool for any beginner magi.", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.3.body": "The simplest way to create these is to put a gem on the end of a stick. Yes, very revolutionary, I know.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.1.body": "A powerful artifact once thought to be the source of King Grogar's power.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.2.body": "In skilled hooves, the bell may be used to transfer magical energy from one being to another.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.title": "22nd Trot '12", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.3.body": "It's theorised this artifact was forged from the claws of an Ursa Major during the era of Discord's reign, possibly as a weapon against the tyrant.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.4.body": "By its nature, the bell a corrupting influence inherent to it that will destroy the minds of anyone who dares weird its power.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.2.title": "Grogar's Bell II", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.5.body": "Legend says that after its first bearer, King Grogar, was driven to madness, the bell was stowed far away.", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.6.body": "beyond most ponies' grasp, guarded inside an ancient city by an unbeatable beast.", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.1.body": "Like the crystal heart, little is known of this artefact and thus nothing, not even its existance can be confirmed.", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.title": "23nd Trot '12", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.2.body": "The alicorn amulet is a powerful force of dark magic created created by an unknown mage as their attempt to create the perfect being.", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.3.body": "It combines the traits of all races into one powerful form, but it hard to control and addictive in nature. Anyone who uses it quickly becomes reliant on it and few attempt to remove it survive the ordeal.", + "gui.unicopia.action.spells_cleared": "Removed all spells", "gui.unicopia.action.no_spells_cleared": "You have no active spells", diff --git a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh index 09b197aa..bdb8fec6 100644 --- a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh +++ b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.fsh @@ -3,11 +3,8 @@ #moj_import uniform sampler2D Sampler0; -uniform sampler2D Sampler1; uniform vec4 ColorModulator; -uniform float GameTime; -uniform int EndPortalLayers; in vec4 texProj0; in vec4 vertexColor; diff --git a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json index 4c978b4f..6744399f 100644 --- a/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json +++ b/src/main/resources/assets/unicopia/shaders/core/rendertype_portal_surface.json @@ -8,13 +8,10 @@ "fragment": "unicopia:rendertype_portal_surface", "attributes": [], "samplers": [ - { "name": "Sampler0" }, - { "name": "Sampler1" } + { "name": "Sampler0" } ], "uniforms": [ { "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, - { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] }, - { "name": "GameTime", "type": "float", "count": 1, "values": [ 0.0 ] }, - { "name": "EndPortalLayers", "type": "int", "count": 1, "values": [ 15 ] } + { "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] } ] } diff --git a/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json index 9c416f4b..bdf768bc 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json @@ -5,46 +5,46 @@ "content": { "pages": [ { - "title": "Ch.4 Air Magic", + "title": "gui.unicopia.spellbook.chapter.air.p1.title", "level": 1, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/air_magic.png" } ] }, { - "title": "1st Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p2.title", "level": 1, "elements": [ - "A new month, a new chapter. Little Luna was getting bored of sitting in the tower all day (and who's to blame her? We've been on this assignment for over two months at this point).", - "So as a little treat, we've decided to go on a little trip to the Grand Marepid Falls to visit my friend, Commander Hurricane." + "gui.unicopia.spellbook.chapter.air.p1.1.body", + "gui.unicopia.spellbook.chapter.air.p1.2.body" ] }, { "title": "", "level": 1, "elements": [ - "The Commander has also very graciously allowed me access to her library to continue my studies. I'm excited to see what combining unicorn and pegasus magics might bring.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p1.3.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "2nd Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p3.title", "level": 0, "elements": [ - "Apologies for the, um, unusual entry in the appendices for today. It appears some little gremlin managed to obscond with my journal.", - "At the princess' behest, so dreadfully sorry", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p3.1.body", + "gui.unicopia.spellbook.author1.sign_off.b", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Air Magic I", + "title": "gui.unicopia.spellbook.chapter.air.p4.title", "level": 3, "elements": [ - "Pegasus Magic", - "Air magic is to pegasi like fire is to unicorns. They're both equally hard to control but where fire is primarily focused around force, destruction, or protection, air is all about flexibility and free motion.", - "Command Hurricane has very kindly given me some tips on how to identify this trait in everyday objects.", + "gui.unicopia.spellbook.chapter.air.p4.1.body", + "gui.unicopia.spellbook.chapter.air.p4.2.body", + "gui.unicopia.spellbook.chapter.air.p4.3.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -53,18 +53,18 @@ "title": "", "level": 3, "elements": [ - "Anything relating to flight, or that originated from creatures that fly, or that comes from up above can be considered a source of the air trait.", - "Eg. Feathers.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p4.4.body", + "gui.unicopia.spellbook.chapter.air.p4.5.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Catapult", + "title": "spell.unicopia.catapult", "level": 4, "elements": [ - "This is a straightforward application of a unicorn's telekineses. The catapult gem allows a caster to grab any block or creature and fling them into the air.", - "Use it again on something already thrown to push it away from you.", + "gui.unicopia.spellbook.chapter.air.catapult.1.body", + "gui.unicopia.spellbook.chapter.air.catapult.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -74,7 +74,7 @@ "level": 4, "elements": [ { "recipe": "unicopia:spells/catapult" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:flame" }, @@ -82,15 +82,15 @@ { "count": 9, "trait": "unicopia:air" } ] }, - "* One can add apply more force by adding the strength trait" + "gui.unicopia.spellbook.chapter.air.catapult.modifier.1" ] }, { - "title": "Bubble", + "title": "spell.unicopia.bubble", "level": 2, "elements": [ - "A defensive and utility spell. Bubble will trap the target in a giant soap bubble, rendering them defensless.", - "Use it again will pop the bubble.", + "gui.unicopia.spellbook.chapter.air.bubble.1.body", + "gui.unicopia.spellbook.chapter.air.bubble.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/water.png" } ] @@ -100,7 +100,7 @@ "level": 2, "elements": [ { "recipe": "unicopia:spells/bubble" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:catapult" }, @@ -111,44 +111,44 @@ ] }, { - "title": "8th Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p7.title", "level": 4, "elements": [ - "I thought I would take a short moment to write down an entry to record my findings whilst Luna and The Commander are out.", - "Pegasi magic really is a fascinating beast. It's not like our magic, which is more of a study, with rigid rules and practices." + "gui.unicopia.spellbook.chapter.air.p7.1.body", + "gui.unicopia.spellbook.chapter.air.p7.2.body" ] }, { - "title": "Pegasi", + "title": "gui.unicopia.spellbook.chapter.air.p8.title", "level": 5, "elements": [ - "Pegasus magic is more about feeling. It's an art form. They don't think about what they want to do, it just happens, but it all still follows the same principle." + "gui.unicopia.spellbook.chapter.air.p8.1.body" ] }, { - "title": "Pegasi II", + "title": "gui.unicopia.spellbook.chapter.air.p9.title", "level": 6, "elements": [ - "Take for example their cloud homes. There are no spells I can read that would let me do this, but if you feel, not with your hooves or your horn, but properly, with your mind, your heart, you will find magic buzzing all throughout.", - "Clouds are teeming with the air and water trait, but also others, like power, strength, life, earth. All traits of the material the clouds are mimicking." + "gui.unicopia.spellbook.chapter.air.p9.1.body", + "gui.unicopia.spellbook.chapter.air.p9.2.body" ] }, { - "title": "Pegasi III", + "title": "gui.unicopia.spellbook.chapter.air.p10.title", "level": 7, "elements": [ - "I wish I could study this further, but I'm afraid to interfere in this magic I don't yet fully understand.", - "Commander Hurricane may never forgive me if I destroy her home the first time I'm here.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p10.1.body", + "gui.unicopia.spellbook.chapter.air.p10.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Feather Falling", + "title": "spell.unicopia.feather_fall", "level": 5, "elements": [ - "Expanding on the defensive capabilities of the protection gem, I've attempted to extend its advantages to party members.", - "This one is unusual because of its complexity, but in theory it should allow one to slow their own and friends' descent.", + "gui.unicopia.spellbook.chapter.air.feather_fall.1.body", + "gui.unicopia.spellbook.chapter.air.feather_fall.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -158,7 +158,7 @@ "level": 5, "elements": [ { "recipe": "unicopia:spells/feather_fall" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:shield" }, @@ -171,68 +171,47 @@ ] }, { - "title": "10th Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p12.title", "level": 6, "elements": [ - "Went to dinner with Commander Huricane and Luna. We got to talking about architecture and Hurricane mentioned the Taz Marehall.", - "Luna thought it was a rather funny name of a castle. I had to remind her that not all cultures are the same.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p12.1.body", + "gui.unicopia.spellbook.chapter.air.p12.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "21st Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p13.title", "level": 7, "elements": [ - { - "text": "I'm writing this on the eve of my return to", - "extra": [ - { "text": "Trotholm.", "obfuscated": true }, - "Though my time in Cloudopolis has been elightening, I look forward to a return to the familiar surroundings and a proper rest in my own solid bed." - ] - }, - "I cannot say the same for Luna, though. She is currently sitting on my bed beside me pouting over every little thing she sees me put into my saddlebag." + "gui.unicopia.spellbook.chapter.air.p13.1.body", + "gui.unicopia.spellbook.chapter.air.p13.2.body" ] }, { - "title": "Returning Home", + "title": "gui.unicopia.spellbook.chapter.air.p14.title", "level": 7, "elements": [ - { - "text": "She keeps insisting that we stay a little longer", - "extra": [ - { "text": "to hang out with that pegasus colt I saw her with the other day, no doubt", "strikethrough": true} - ] - }, - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.air.p14.1.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "22nd Hoof '12", + "title": "gui.unicopia.spellbook.chapter.air.p15.title", "level": 8, "elements": [ - { - "text": "As we're flying above the mountain tops, I can't help but feel in awe the beauty that", - "extra": [ - { "text": "Mother Faust", "obfuscated": true}, - "has given us." - ] - }, - "I had to spend the whole time keeping Luna from falling out, and of course answering questions about all the different kinds of clouds. Thankfully, the balloon operator was there to help with the subtleties." + "gui.unicopia.spellbook.chapter.air.p15.1.body", + "gui.unicopia.spellbook.chapter.air.p15.2.body" ] }, { "title": "", "level": 8, "elements": [ - "Being out here, above all of our troubles, really makes me forget the rest of the world for a moment. It takes me back to a simpler time, before the--", - "Of course the flashes of explosions to the west has to ruin it all. There appears to be a storm on the horizon. I certainly hope it not to be a bad omen..." + "gui.unicopia.spellbook.chapter.air.p15.3.body", + "gui.unicopia.spellbook.chapter.air.p15.4.body" ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json index 707f95b8..795e6f83 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json @@ -5,41 +5,41 @@ "content": { "pages": [ { - "title": "Ch.7 Artefacts", + "title": "gui.unicopia.spellbook.chapter.artefacts.p1.title", "level": 0, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/crystal_heart.png" } ] }, { - "title": "2nd Mare '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.p2.title", "level": 0, "elements": [ - "What follows is a compendium of research into certain objects of interest identified through my research.", - "Not all of these have gotten anywhere, as they have been proven to either be pure legend, or perhaps a hoax, so I cannot put stock into their stories.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.artefacts.p2.1.body", + "gui.unicopia.spellbook.chapter.artefacts.p2.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "The Crystal Heart", + "title": "item.unicopia.crystal_heart", "level": 0, "elements": [ { "item": { "item": "unicopia:crystal_heart" } }, - "Status: Lost", - "Crafted by a group of unicorns long ago, its origin and current location is unknown.", - "What few accounts exist claim it was a powerful tool of protection and support, as it would funnel life force from enemies towards the caster and their allies." + "gui.unicopia.spellbook.chapter.artefacts.status.lost", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.1.body", + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.2.body" ] }, { - "title": "5th Mare '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.title", "level": 0, "elements": [ - "Other accounts say that this artefact only functions when mounted on a specific pedestal of diamond blocks, like a beacon." + "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.3.body" ] }, { - "title": "Torn Page", + "title": "gui.unicopia.spellbook.chapter.artefacts.torn_page.title", "level": 0, "elements": [ { @@ -58,7 +58,7 @@ { "text": "Aasa sasa fwefsd q43rgfd wqklmsdfl as, klasn.", "obfuscated": "true" }, - "Building Materials:", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.2.body", { "ingredients": [ { "count": 2, "item": "minecraft:end_rod" }, @@ -69,7 +69,7 @@ ] }, { - "title": "Crystal Podium", + "title": "gui.unicopia.spellbook.chapter.artefacts.crystal_podium.title", "level": 0, "elements": [ { "x": 40, "item": { "item": "minecraft:diamond_block" } }, @@ -86,134 +86,134 @@ ] }, { - "title": "Dragon's Breath Scroll", + "title": "item.unicopia.dragon_breath_scroll", "level": 0, "elements": [ { "item": { "item": "unicopia:dragon_breath_scroll" } }, - "Status: Confirmed", - "It's, um a scroll that you write somepony's name on it and you hold it in one hoof and something in the other hoof and, like, um it goes whooosh and the item is sent to that pony.", - "- XOXOX Lulu" + "gui.unicopia.spellbook.chapter.artefacts.status.confirmed", + "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.2.body", + "gui.unicopia.spellbook.author3.name" ] }, { - "title": "2nd Hoof '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.title", "level": 0, "elements": [ - "P.S. Uncle Starswirly is a dunderhead.", + "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.3.body", { "recipe": "unicopia:dragon_breath_scroll" } ] }, { - "title": "Bangle of Comradery", + "title": "item.unicopia.friendship_bracelet", "level": 0, "elements": [ { "item": { "item": "unicopia:friendship_bracelet" } }, - "Status: Confirmed", - "Used in the past by spellcasters to communicate over long distances, this band has long since lost its old use.", - "Unicorns who sign and hand out this band can use it to share certain magic effects with their friends." + "gui.unicopia.spellbook.chapter.artefacts.status.confirmed", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.1.body", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.2.body" ] }, { - "title": "13th Mare '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.title", "level": 0, "elements": [ - "Anyone wearing a bangle you have signed will be able to benefit from the positive effects of your spells, or will be allowed through protection and shield spells.", - "Mana costs are also shared equally between all nearby members." + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.3.body", + "gui.unicopia.spellbook.chapter.artefacts.friendship_bracelet.4.body" ] }, { - "title": "Wings of Icarus", + "title": "item.unicopia.pegasus_amulet", "level": 0, "elements": [ { "item": { "item": "unicopia:pegasus_amulet" } }, - "Status: Lost", - "Commander Hurricane informed me of this, though I've found little texts to back up his claims.", - "The Pegasus Amulet is claimed to grant the wearer temporary flight, like a pegasus." + "gui.unicopia.spellbook.chapter.artefacts.status.lost", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.1.body", + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.2.body" ] }, { - "title": "21st Trot '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.title", "level": 0, "elements": [ - "It was intended as an aide for early unicorn ambassadors to Cloud Heights, but was lost after negotiations broke down." + "gui.unicopia.spellbook.chapter.artefacts.pegasus_amulet.3.body" ] }, { - "title": "Meadowbrook's Staff", + "title": "item.unicopia.meadowbrooks_staff", "level": 3, "elements": [ { "item": { "item": "unicopia:meadowbrooks_staff" } }, - "Status: Confirmed", - "A precursor to magic staffs, the meadwobrook's staff is an upright support structure commonly used by warlocks during long incantation sessions.", - "It features a twisting and mottled shape with a dense and sturdy core capable of supporting the weight of an average-sized, adult male." + "gui.unicopia.spellbook.chapter.artefacts.status.confirmed", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.1.body", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.2.body" ] }, { - "title": "22nd Trot '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.title", "level": 3, "elements": [ - "Due to its dense structure and flamability, this object also serves a secondary purpose as an offensive weapon and fuel source should the situation demand.", - "To use correctly in combat, one must begin by gripping the staff by the narrow end in both hands, followed by a swift swing from above one's head whilst yelling 'Fus Roh DAH!'" + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.3.body", + "gui.unicopia.spellbook.chapter.artefacts.meadowbrooks_staff.4.body" ] }, { - "title": "Magic Staffs", + "title": "item.unicopia.magic_staff", "level": 5, "elements": [ { "item": { "item": "unicopia:magic_staff" } }, - "Status: Unconfirmed", - "Magical aides for non-magical users. Magic staffs work in a similar way to a unicorns horn in that they can be used to channel and harness the innate magic stored within gems." + "gui.unicopia.spellbook.chapter.artefacts.status.unconfirmed", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.1.body" ] }, { - "title": "22nd Trot '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.magic_staff.title", "level": 5, "elements": [ - "Not all spells work in the same way, but for those that do, a good staff is an essential tool for any beginner magi.", - "The simplest way to create these is to put a gem on the end of a stick. Yes, very revolutionary, I know." + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.2.body", + "gui.unicopia.spellbook.chapter.artefacts.magic_staff.3.body" ] }, { - "title": "Grogar's Bell", + "title": "item.unicopia.grogars_bell", "level": 0, "elements": [ { "item": { "item": "unicopia:grogars_bell" } }, - "Status: Lost", - "A powerful artifact once thought to be the source of King Grogar's power.", - "In skilled hooves, the bell may be used to transfer magical energy from one being to another." + "gui.unicopia.spellbook.chapter.artefacts.status.lost", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.1.body", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.2.body" ] }, { - "title": "22nd Trot '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.title", "level": 80, "elements": [ - "It's theorised this artifact was forged from the claws of an Ursa Major during the era of Discord's reign, possibly as a weapon against the tyrant.", - "By its nature, the bell a corrupting influence inherent to it that will destroy the minds of anyone who dares weird its power." + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.3.body", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.4.body" ] }, { - "title": "Grogar's Bell II", + "title": "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.2.title", "level": 80, "elements": [ - "Legend says that after its first bearer, King Grogar, was driven to madness, the bell was stowed far away.", - "beyond most ponies' grasp, guarded inside an ancient city by an unbeatable beast." + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.5.body", + "gui.unicopia.spellbook.chapter.artefacts.grogars_bell.6.body" ] }, { - "title": "Alicorn Amulet", + "title": "item.unicopia.alicorn_amulet", "level": 0, "elements": [ { "item": { "item": "unicopia:alicorn_amulet" } }, - "Status: Unconfirmed", - "Like the crystal heart, little is known of this artefact and thus nothing, not even its existance can be confirmed." + "gui.unicopia.spellbook.chapter.artefacts.status.unconfirmed", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.1.body" ] }, { - "title": "23nd Trot '12", + "title": "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.title", "level": 999, "elements": [ - "The alicorn amulet is a powerful force of dark magic created created by an unknown mage as their attempt to create the perfect being.", - "It combines the traits of all races into one powerful form, but it hard to control and addictive in nature. Anyone who uses it quickly becomes reliant on it and few attempt to remove it survive the ordeal." + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.2.body", + "gui.unicopia.spellbook.chapter.artefacts.alicorn_amulet.3.body" ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json index 1d888807..ded71e87 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json @@ -5,52 +5,44 @@ "content": { "pages": [ { - "title": "Ch.5 The Arcane", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p1.title", "level": 10, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" } ] }, { - "title": "30th Hoof '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p2.title", "level": 8, "elements": [ - "A new communication from the crown today. The situation seems to be worsening in the west and though they've been satisfied with my work until now, they are putting pressure on me to produce something more destructive.", - "I tried to tell the messenger that I couldn't-" + "gui.unicopia.spellbook.chapter.dark_magic.p2.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p2.2.body" ] }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "3rd Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p3.title", "level": 9, "elements": [ - "Let it be known that it was never my intention that anypony use my work for nefarious purposes. I am a researcher, above and beyond all else. My intentions are pure, and my wants are nothing more than this world to be at peace." + "gui.unicopia.spellbook.chapter.dark_magic.p3.1.body" ] }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "4th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p4.title", "level": 10, "elements": [ - "No review of magic is ever complete without a glimpse into the other side.", - "Dark magic, or as I'm going to refer to it as The Arcane are tip-toeing the line between the normal light magic we normally know and the more nefarious side of reality.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p4.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p4.2.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Attraction", + "title": "spell.unicopia.vortex", "level": 5, "elements": [ - "If someone were to ask you 'what is the opposite of a repulsion spell, what would you say? An attraction spell, of course!", - "By twisting the purpose of the protection spell, I've been able to reverse its function to create a spell that pulls objects and entities closer to the caster.", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.vortex.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/knowledge.png" } ] @@ -60,7 +52,7 @@ "level": 5, "elements": [ { "recipe": "unicopia:spells/vortex" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:shield" }, @@ -71,107 +63,93 @@ }, { "ingredients": [ - { "text": "+ 10x knowledge to narrow the effect's range to items" }, - { "text": "+ add focus trait to increase duration\n+ add power trait to increase range" } + { "text": "gui.unicopia.spellbook.chapter.dark_magic.vortex.modifier.1" }, + { "text": "gui.unicopia.spellbook.chapter.dark_magic.vortex.modifier.2" } ] } ] }, { - "title": "8th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p6.title", "level": 6, "elements": [ - "Additional Notes for the Attraction Spell", - "I caught Luna playing with my spellcrafting grid today, even though I expressly forbid her from entering my study when I'm not there.", - "Apparently it was over some dispute with Celly, I don't really remember, but it culminated in Luna sneaking into the study whilst I was out to get some bread." + "gui.unicopia.spellbook.chapter.dark_magic.p6.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p6.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p6.3.body" ] }, { - "title": "Arcane Attraction II", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p7.title", "level": 6, "elements": [ - "This isn't really about that, though. She's been scolded and sent back to her room, however as I was cleaning up the mess she'd made I noticed something in the piles of gems.", - "It's hard to describe, really. This is still distincly an attraction gem, but it's different.", - "It has traits I hadn't considered before, and the way it behaves... " + "gui.unicopia.spellbook.chapter.dark_magic.p7.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p7.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p7.3.body" ] }, { - "title": "Arcane Attraction II Cont.", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p8.title", "level": 6, "elements": [ - "Well I'll leave that up to tomorrow. I'm still tired from everything that's happened this week.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p8.1.body", + "gui.unicopia.spellbook.author1.name" ] }, { "title": "", "level": 6, "elements": [ - ">0 generosity --> ??", - ">20 order trait --> ???" + "gui.unicopia.spellbook.chapter.dark_magic.p8.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p8.3.body" ] }, { - "title": "20th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p9.title", "level": 11, "elements": [ - "As per their agreement, the council have sent certain...supplimental materials to aid in the new direction my research is taking. I was a little shocked at first.", - "This... thing... Whatever it is. Was, rather.", - "Is this really what we're fighting in the west?", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p9.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p9.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p9.3.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "21st Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p10.title", "level": 11, "elements": [ - "I've put the... thing. In the basement. Locked the door.", - "I just couldn't stand looking at it any longer. It's vaguely pony-shaped, but also...", - "I couldn't well let Luna see it. I've sent her out to spend the next few nights with Celly whilst I sort out what to do with this.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p10.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p10.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p10.3.body", + "gui.unicopia.spellbook.author1.name" ] }, + { }, + { }, { - "title": "", - "level": -1, - "elements": [] - }, - { - "title": "", - "level": -1, - "elements": [] - }, - { - "title": "25th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p11.title", "level": 13, "elements": [ - "I'm sorry for the long delays. Things have been... busy.", - "I've learned a lot about these creatures. Attached are some illustrations, done best I could so I wouldn't have to look at the thing directly.", - { - "text": "Its body is black and vaguely", - "extra": [ - { "text": "insect-like", "obfuscated": true }, - "with ponish proportions. It has no fur." - ] - } + "gui.unicopia.spellbook.chapter.dark_magic.p11.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p11.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p11.3.body" ] }, { "title": "", "level": 14, "elements": [ - "The magic they use is unusual. Not unusual, like what I've been studying. It's unnatural. Wild.", - "There is definitely something I might be able to harness here, but I shudder... Should I?", - "I fear that this may be a line that shouldn't be crossed.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p11.4.body", + "gui.unicopia.spellbook.chapter.dark_magic.p11.5.body", + "gui.unicopia.spellbook.chapter.dark_magic.p11.6.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Transmutation", + "title": "spell.unicopia.transformation", "level": 13, "elements": [ - "I've begun by simply harnessing their ability. It's unfocused and hard to control. I can rarely predict what is going to happen, but this gem has very clear transmodrification properties.", - "Throwing this at any creature has the chance to transform it into any other creature.", + "gui.unicopia.spellbook.chapter.dark_magic.transformation.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.transformation.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/life.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -181,7 +159,7 @@ "level": 13, "elements": [ { "recipe": "unicopia:spells/transformation" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 18, "trait": "unicopia:knowledge" }, @@ -192,11 +170,11 @@ ] }, { - "title": "Dispell Illusion", + "title": "spell.unicopia.reveal", "level": 15, "elements": [ - "Dispell Illusion is the first line of defense against transformation/illusion spells.", - "When cast it will force any nearby disguised changelings in its range to reveal their true form.", + "gui.unicopia.spellbook.chapter.dark_magic.reveal.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.reveal.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -206,7 +184,7 @@ "level": 15, "elements": [ { "recipe": "unicopia:spells/reveal" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:shield" }, @@ -215,64 +193,60 @@ { "count": 4, "trait": "unicopia:order" } ] }, - "* Increase range by adding the power trait" + "gui.unicopia.spellbook.chapter.dark_magic.reveal.modifier.1" ] }, { - "title": "27th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p14.title", "level": 14, "elements": [ - "Sleep the last few nights has become... elusive.", - "I don't know how to describe it, really. Luna appears unaffected, but every night after the sun goes down I find myself lying awake at night unable to sleep. It doesn't help that that sounds in the village have resumed." + "gui.unicopia.spellbook.chapter.dark_magic.p14.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p14.2.body" ] }, { - "title": "Lost Sleep", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p15.title", "level": 15, "elements": [ - "Last night, especially, I found myself pacing in the observatory. The air became chill, more than is normal for this time of year, and beyond anything that raging fire in corner of the room could combat.", - "The room where I keep the--my patient opposite the wall behind me." + "gui.unicopia.spellbook.chapter.dark_magic.p15.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p15.2.body" ] }, { - "title": "Lost Sleep Cont.", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p16.title", "level": 15, "elements": [ - "I've long since taken to keeping that door locked because every so often I could swear I heard something moving in there...", - "Gods, am I going crazy?", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p16.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p16.2.body", + "gui.unicopia.spellbook.author1.name" ] }, + { }, { - "title": "", - "level": -1, - "elements": [] - }, - { - "title": "29th Slep '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p17.title", "level": 18, "elements": [ - "Bits, there it is again!", - "I thought last night was a fluke, but I just heard it again--I'm shaking. My hooves, I can barely hold this book as I struggle to pen these words.", - "There's something--I heard something. Like a chittering--", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p17.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p17.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p17.3.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "1st Croptober '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p18.title", "level": 14, "elements": [ - "I made a call into town. One of the local blacksmiths have agreed to install a new lock, one of the heavy kind that not even earth ponies can bust.", - "I fear it may not be enough, though, it--whatever it is, clearly has magic. I may be forced to research a magical solution to my insomnia.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p18.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p18.2.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Arcane Protection", + "title": "spell.unicopia.arcane_protection", "level": 16, "elements": [ - "This spell will create a magical shroud that can be used to protect from other spellcasters.", - "No one else will be able to use magic within its radius.", + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] @@ -282,7 +256,7 @@ "level": 16, "elements": [ { "recipe": "unicopia:spells/arcane_protection" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:shield" }, @@ -291,14 +265,14 @@ { "count": 1, "trait": "unicopia:darkness" } ] }, - "* Increase range by adding the power trait" + "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.modifier.1" ] }, { - "title": "Displacement", + "title": "spell.unicopia.displacement", "level": 17, "elements": [ - "By casting this spell, a unicorn is able to swap their location with any other creature.", + "gui.unicopia.spellbook.chapter.dark_magic.displacement.1.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -308,7 +282,7 @@ "level": 17, "elements": [ { "recipe": "unicopia:spells/displacement" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "item": "unicopia:gemstone" }, @@ -319,26 +293,24 @@ ] }, { - "title": "3rd Croptober '12", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p21.title", "level": 14, "elements": [ - "The locks have been installed, and with the addition of some extra wardings, I'm feeling a little more at ease.", - "The motions at night have all but stopped, though I feel like I can almost hear it at times...", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.dark_magic.p21.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p21.2.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "4th Cropt-", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p22.title", "level": 15, - "elements": [ - "" - ] + "elements": [] }, { - "title": "Mimic", + "title": "spell.unicopia.mimic", "level": 17, "elements": [ - "I've been able to tap into some of this strange creature's abilities. There's still a lot to figure out here, but for now I've merely distilled its essense into a gem.", + "gui.unicopia.spellbook.chapter.dark_magic.mimic.1.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] @@ -348,7 +320,7 @@ "level": 18, "elements": [ { "recipe": "unicopia:spells/mimic" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:transformation" }, @@ -357,65 +329,50 @@ { "count": 4, "trait": "unicopia:chaos" } ] }, - "* Add the focus trait to increase the effect's duration" + "gui.unicopia.spellbook.chapter.dark_magic.mimic.modifier.1" ] }, + { }, + { }, { - "title": "", - "level": 0, + "title": "??? ???? ??", + "level": 44, "elements": [ - "" - ] - }, - { - "title": "", - "level": 0, - "elements": [ - "" + "gui.unicopia.spellbook.chapter.dark_magic.p24.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p24.2.body" ] }, { "title": "??? ???? ??", "level": 44, "elements": [ - "There's been a wave of darkness that has come over the town. Nothing's been the same since that gods-forsaken creature arrived.", - "Ponies in town have begun remarking on lack of sleep, and it's showing. Just today I saw a poor stallion walking around in a daze. Bags under his eyes, barely any colour in his cheeks." + "gui.unicopia.spellbook.chapter.dark_magic.p25.1.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "??? ???? ??", - "level": 44, - "elements": [ - "He looked almost like a zombie the way he went through the motions, not really paying any attention even after he nearly ran into me.", - "- Starswirl the Bearded" - ] - }, - { - "title": "Scrap", + "title": "gui.unicopia.spellbook.chapter.dark_magic.p26.title", "level": 21, "elements": [ - { - "text": "It's not enough. Never enough. Crawling. I feel crawling. Oh gods the crawling won't stop.", - "obfuscated": true - } + "gui.unicopia.spellbook.chapter.dark_magic.p26.1.body" ] }, { "title": "??? ???? ??", "level": 33, "elements": [ - "The insomnia. I can't take it. I lie in my bed every night waiting to go to sleep.", - "I thought I could stop it, keep it at bay, but I still hear it. That creature. Cold, unfeeling.", - "I feel myself being drained any time I'm around it. Is it... feeding on me?", - "No, it couldn't be." + "gui.unicopia.spellbook.chapter.dark_magic.p27.1.body", + "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body", + "gui.unicopia.spellbook.chapter.dark_magic.p27.3.body", + "gui.unicopia.spellbook.chapter.dark_magic.p27.4.body" ] }, { "title": "????? ????", "level": 19, "elements": [ - "I found this incantation under some old notes whilst clearing out the lab. It's... simplistic and hard to manage, but it gets the job done.", - "- Starswirl the Bearded", + "gui.unicopia.spellbook.chapter.dark_magic.p28.1.body", + "gui.unicopia.spellbook.author1.name", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/kindness.png" } ] @@ -425,7 +382,7 @@ "level": 19, "elements": [ { "recipe": "unicopia:spells/dispel_evil" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:arcane_protection" }, @@ -434,7 +391,7 @@ { "count": 1, "trait": "unicopia:power" } ] }, - "* Add the power trait to increase the effect's range" + "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body" ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json index d7014015..9657c486 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json @@ -5,28 +5,28 @@ "content": { "pages": [ { - "title": "Ch.2 Fire Magic", + "title": "gui.unicopia.spellbook.chapter.fire.p1.title", "level": 0, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/fire_magic.png" } ] }, { - "title": "9th Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p2.title", "level": 0, "elements": [ - "It took me longer than I anticipated, nearly a month! Hah! But I present to you, dear reader, my findings for the first elementary form of magic: FIRE.", - "It's a working title, okay?", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p2.1.body", + "gui.unicopia.spellbook.chapter.fire.p2.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Scorch", + "title": "spell.unicopia.scorch", "level": 0, "elements": [ - "Simple and to the point, Scorch does exactly what you'd think. By embuing a gem with the fire trait, one can indute it to glow and become hot to the touch.", - "The effect becomes stronger the more fire you load it with, but take care not to overload it, as it may become volatile.", + "gui.unicopia.spellbook.chapter.fire.scorch.1.body", + "gui.unicopia.spellbook.chapter.fire.scorch.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } ] @@ -36,7 +36,7 @@ "level": 0, "elements": [ { "recipe": "unicopia:spells/scorch" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 10, "trait": "unicopia:fire" } @@ -45,11 +45,11 @@ ] }, { - "title": "Flame", + "title": "spell.unicopia.flame", "level": 1, "elements": [ - "Creates a heating affect up to a radius of 3 hooves from any surfaces it touches.", - "Useful when one needs a flame in a hurry or to fend off a wild wendigo.", + "gui.unicopia.spellbook.chapter.fire.flame.1.body", + "gui.unicopia.spellbook.chapter.fire.flame.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } ] @@ -59,7 +59,7 @@ "level": 1, "elements": [ { "recipe": "unicopia:spells/flame" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "item": "unicopia:gemstone" }, @@ -69,60 +69,51 @@ } ] }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "10th Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p5.title", "level": 0, "elements": [ - "Progress?", - "I've managed to improve the previous spell somewhat, but there is still something lacking. It's all very orderly. Predicatable.", - "Luna has suggested adding more fire, but I'm weary to create more scorch marks on the tower. Faust save me if anypony were to find out what I've been doing..." + "gui.unicopia.spellbook.chapter.fire.p5.1.body", + "gui.unicopia.spellbook.chapter.fire.p5.2.body", + "gui.unicopia.spellbook.chapter.fire.p5.3.body" ] }, { - "title": "Fire Magic III", + "title": "gui.unicopia.spellbook.chapter.fire.p6.title", "level": 2, "elements": [ - "Focusing Magic", - "Some spells normally take a great amount of focus to cast, and a steady wit to control, However I've found objects embued with the focusing trait work wonderfully as a substitute for when the caster is lacking.", + "gui.unicopia.spellbook.chapter.fire.p6.1.body", + "gui.unicopia.spellbook.chapter.fire.p6.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } ] }, { - "title": "Fire Magic III-II", + "title": "gui.unicopia.spellbook.chapter.fire.p7.title", "level": 2, "elements": [ - "Any glass objects you can find, eyes, bottles, whatever incorporates a lense can be used to embue focus on a spell.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p7.1.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Scrap 2", + "title": "gui.unicopia.spellbook.chapter.fire.p8.title", "level": 21, "elements": [ - "We went to the market today. Had to get out of that tower, do something, be somewhere. Luna suggested we go in to see what they were selling for the fair so I decided to indulge her.", - "The townsfolk are still rather skeptical of us, though who's to blame them. Luna was getting along well with the other foals, at least." + "gui.unicopia.spellbook.chapter.fire.p8.1.body", + "gui.unicopia.spellbook.chapter.fire.p8.2.body" ] }, + { }, { - "title": "", - "level": 21, - "elements": [ - ] - }, - { - "title": "Fire Bolt", + "title": "spell.unicopia.fire_bolt", "level": 2, "elements": [ - "Creates a series of heated projectiles to fling at a target. Upon impact the target will be set alight.", - "- Increase focus will allow finer grained control of the projectile's trajectory.", - "- With over 50 focus it's almost like they know where the target is (homing?).", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.1.body", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.2.body", + "gui.unicopia.spellbook.chapter.fire.fire_bolt.3.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } ] @@ -132,7 +123,7 @@ "level": 2, "elements": [ { "recipe": "unicopia:spells/fire_bolt" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:flame" }, @@ -143,104 +134,80 @@ ] }, { - "title": "Fire Magic IV", + "title": "gui.unicopia.spellbook.chapter.fire.p10.title", "level": 2, "elements": [ - "Powerful Magic", - "Where some spells take focus, others require power. Either to exert a force, or to generate energy in some form.", - "There are few unicorns that have the inherent strength and power to cast spells of these kinds, but luckily such a trait is not in short supply around us.", + "gui.unicopia.spellbook.chapter.fire.p10.1.body", + "gui.unicopia.spellbook.chapter.fire.p10.2.body", + "gui.unicopia.spellbook.chapter.fire.p10.3.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/strength.png" } ] }, { - "title": "Fire Magic IV-II", + "title": "gui.unicopia.spellbook.chapter.fire.p11.title", "level": 2, "elements": [ - "Earthly elements, stone, many metals and minerals, that are strong under compression will exhibit the strength trait.", - "Electrical/Conductive elements that can be used to power things, or that glow can also be used to obtain the power trait.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p11.1.body", + "gui.unicopia.spellbook.chapter.fire.p11.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "11th Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p12.title", "level": 2, "elements": [ - "Got a knock at the door today. Luna was very eager to answer it but I had to send her away as it was a messenger from the crown.", - "My research has garnered a certain bit of notoriety, it appears. The royals are very eager to see what I have concocted.", - "They've gotten it in their heads that they can use it against the West." + "gui.unicopia.spellbook.chapter.fire.p12.1.body", + "gui.unicopia.spellbook.chapter.fire.p12.2.body", + "gui.unicopia.spellbook.chapter.fire.p12.3.body" ] }, { "title": "", "level": 13, "elements": [ - "Gods forbid they succeed. I shudder to think what the council might do if they got their hooves on my work.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p12.4.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { "title": "", "level": 3, "elements": [ - "Addendum", - { - "text": "", - "strikethrough": true, - "extra": [ - {"text": "I am told the crown has started giving directions to find other uses. Ways to..."} - ] - } + "gui.unicopia.spellbook.chapter.fire.p12.5.body", + "gui.unicopia.spellbook.chapter.fire.p12.6.body" ] }, + { }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "20th Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p13.title", "level": 9, "elements": [ - "I have word from the crown. They appear satisfied, for now, and have agreed to let my continue my research as I have into the winter.", - "I am under duress to destroy the last several entries, I'm afraid.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p13.1.body", + "gui.unicopia.spellbook.chapter.fire.p13.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "21st Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p14.title", "level": 0, "elements": [ - { - "text": "I shall visit", - "extra": [ - { "text": "Commander Hurricane", "obfuscated": true }, - " tomorrow. Perhaps she may shed light onto my predicament." - ] - }, - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.fire.p14.1.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, + { }, { - "title": "", - "level": 0, - "elements": [] - }, - { - "title": "Protection", + "title": "spell.unicopia.shield", "level": 2, "elements": [ - "Casting shields are one of the first things every unicorn learns in self-defense. It's simple and easy to cast, and is an excellent introduction to incanting.", - "Its disadvantage is the energy and mental cost, however we can negate both by attaching it to a gem as per follows...", + "gui.unicopia.spellbook.chapter.fire.shield.1.body", + "gui.unicopia.spellbook.chapter.fire.shield.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" } ] }, @@ -249,7 +216,7 @@ "level": 2, "elements": [ { "recipe": "unicopia:spells/shield" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "item": "unicopia:gemstone" }, @@ -258,35 +225,30 @@ { "count": 10, "trait": "unicopia:power" } ] }, - "+ add power trait to increase effect range" + "gui.unicopia.spellbook.chapter.fire.shield.modifier.1" ] }, { - "title": "Protection II", + "title": "gui.unicopia.spellbook.chapter.fire.p16.title", "level": 4, "elements": [ - "By adding extra traits, I was able to slightly modify the shield to allow or deny certain parties into the effect range.", - "+ add life trait --> all animals may enter\n+ add blood trait --> all monsters may enter\n+ add ice trait --> all ponies may enter" + "gui.unicopia.spellbook.chapter.fire.p16.1.body", + "gui.unicopia.spellbook.chapter.fire.p16.2.body" ] }, { - "title": "Protection III", + "title": "gui.unicopia.spellbook.chapter.fire.p17.title", "level": 5, "elements": [ - "+ add genorosity trait to attach the spell to a location rather than yourself" + "gui.unicopia.spellbook.chapter.fire.p17.1.body" ] }, { - "title": "Scrap: 9th Jum '12", + "title": "gui.unicopia.spellbook.chapter.fire.p18.title", "level": 3, "elements": [ - "Fire magic has proven to a be a little more... unpredictable than anticipated. Every time I feel like I'm making progress it finds a way to set me back.", - { - "text": "I can't stop now, though...I'm told the situation in the west is growing dire. They have asked me to pick up the pace and produce something we can use to get the upper hoof against the", - "extra": [ - { "text": "Changeling Storm.", "obfuscated": true} - ] - } + "gui.unicopia.spellbook.chapter.fire.p18.1.body", + "gui.unicopia.spellbook.chapter.fire.p18.2.body" ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json index 1c05cb6b..523f318c 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json @@ -5,28 +5,28 @@ "content": { "pages": [ { - "title": "Ch.3 Ice Magic", + "title": "gui.unicopia.spellbook.chapter.ice.p1.title", "level": 0, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/ice_magic.png" } ] }, { - "title": "4th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p2.title", "level": 0, "elements": [ - "This is an interesting one. Rather simple, I admit, but Luna insisted I make something cold to help us deal with this darn heat.", - "All you need is a gem and something cold. Like a snowball.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p2.1.body", + "gui.unicopia.spellbook.chapter.ice.p2.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Frost", + "title": "spell.unicopia.frost", "level": 0, "elements": [ - "Creates a chilling affect up to a radius of 3 hooves from any surfaces it touches.", - "Will sap energy out of the immediate environment causing a phase change.", + "gui.unicopia.spellbook.chapter.ice.frost.1.body", + "gui.unicopia.spellbook.chapter.ice.frost.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/snowball.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] @@ -36,7 +36,7 @@ "level": 3, "elements": [ { "recipe": "unicopia:spells/frost" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 15, "trait": "unicopia:ice" } @@ -45,11 +45,11 @@ ] }, { - "title": "Chilling Breath", + "title": "gui.unicopia.spellbook.chapter.ice.p4.title", "level": 0, "elements": [ - "Alters the ability of certain objects to distenguish between hot and cold.", - "This is a very weak spell, but when used with a boat can be exceedingly useful to get out of a sticky stituation.", + "gui.unicopia.spellbook.chapter.ice.p4.1.body", + "gui.unicopia.spellbook.chapter.ice.p4.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/oak_boat.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] @@ -59,7 +59,7 @@ "level": 0, "elements": [ { "recipe": "unicopia:spells/chilling_breath" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:frost" }, @@ -70,44 +70,40 @@ ] }, { - "title": "5th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p5.title", "level": 4, "elements": [ - "The village-ponies had a bonfire last night. I could tell by the strong smell of burning wood and the sound of music.", - "Luna, bless her heart, insisted that we take a break to join them. She had to practically drag me away from my desk to do it.", - "What can I say? She's a light in my heart." + "gui.unicopia.spellbook.chapter.ice.p5.1.body", + "gui.unicopia.spellbook.chapter.ice.p5.2.body", + "gui.unicopia.spellbook.chapter.ice.p5.3.body" ] }, { - "title": "Bonfire", + "title": "gui.unicopia.spellbook.chapter.ice.p6.title", "level": 5, "elements": [ - "We arrived at the bonfire, and of course the first thing they had was a mug of ale in my hoof. I didn't drink it, of course-alcohol is a poison to me. I'd be sick as a mule.", - "Luna enjoyed it-the bonfire, not the ale!-though. She made immediate friends with one of the town's fillies, Celly or something. They played the whole night." + "gui.unicopia.spellbook.chapter.ice.p6.1.body", + "gui.unicopia.spellbook.chapter.ice.p6.2.body" ] }, { - "title": "Bonfire II", + "title": "gui.unicopia.spellbook.chapter.ice.p7.title", "level": 6, "elements": [ - "On the way back Luna was telling me of the stories her friend told her. The town has a lot of legends, as to be expected.", - "One of them was about a scary old warlock who lived in a haunted tower at the edge of town. There's no mystery who that was about.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p7.1.body", + "gui.unicopia.spellbook.chapter.ice.p7.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, - { - "title": "", - "level": -1, - "elements": [] - }, + { }, { "title": "", "level": 6, "elements": [ - "Ice Spell II", - "Creates a cooling affect up to a radius of 3 hooves from any surfaces it touches.", - "Requires:", + "gui.unicopia.spellbook.chapter.ice.p7.3.body", + "gui.unicopia.spellbook.chapter.ice.p7.4.body", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 15, "trait": "unicopia:ice" } @@ -118,21 +114,21 @@ ] }, { - "title": "6th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p8.title", "level": 4, "elements": [ - "There was a strange noise in the village last night. Very strange. I heard a lot ponies shouting and there may have been a fire.", - "I hope everything is okay.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p8.1.body", + "gui.unicopia.spellbook.chapter.ice.p8.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Dancing Lights", + "title": "spell.unicopia.light", "level": 5, "elements": [ - "By combining a fire bolt gem with a splash of life and the chilling effect of ice I've created a spell to help with seeing in the night.", - "Dancing Lights will summon a cluster of glowing orbs to illuminate your path.", + "gui.unicopia.spellbook.chapter.ice.light.1.body", + "gui.unicopia.spellbook.chapter.ice.light.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/light.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] @@ -142,7 +138,7 @@ "level": 5, "elements": [ { "recipe": "unicopia:spells/light" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:fire_bolt" }, @@ -151,138 +147,133 @@ { "count": 30, "trait": "unicopia:ice" } ] }, - "* By adding more focus you can extend the duration of the spell" + "gui.unicopia.spellbook.chapter.ice.light.modifier.1" ] }, { - "title": "12th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p10.title", "level": 4, "elements": [ - "There were more noises last night, this time a lot closer. The town's dimeaner has also changed. A lot of the ponies I see that are normally very cheerful have become sullen.", - "Something has happened, that much is obvious, though few will tell me what.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p10.1.body", + "gui.unicopia.spellbook.chapter.ice.p10.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "15th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p11.title", "level": 4, "elements": [ - "Winter is nearly upon us now. I just saw the earliest flakes of snow outside this window as I write.", - { - "text": "The locals have begun their winter unwrapping and though the usual grumblings about frozen fields abound, I can tell there is still ", - "extra": [ - { "text": "a sense of uneasyness.", "obfuscated": true} - ] - }, - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p11.1.body", + "gui.unicopia.spellbook.chapter.ice.p11.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "17th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p12.title", "level": 6, "elements": [ - "It's rather surprising how quickly the weather starts to change around here. Everything in Catermoore is so very well controlled, with the spells we use to manage temperature and the pegasi assisting with the weather, we sometimes forget what wild seasons can be like.", - "But these Earth Ponies don't ave any of those luxuries. They have to deal with the weather as it comes." + "gui.unicopia.spellbook.chapter.ice.p12.1.body", + "gui.unicopia.spellbook.chapter.ice.p12.2.body" ] }, { - "title": "Frozen Lake", + "title": "gui.unicopia.spellbook.chapter.ice.p13.title", "level": 6, "elements": [ - "Just this morning I was on the way to the stall when I passed the lake at the foot of this tower's hill and saw it was nearly completely frozen over. A few colts had taken to scating across it.", - "Luna asked if she could join them, but I didn't allow it. I couldn't say why at the time, but I had a bad feeling, like something was going to happen..." + "gui.unicopia.spellbook.chapter.ice.p13.1.body", + "gui.unicopia.spellbook.chapter.ice.p13.2.body" ] }, { - "title": "17th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p14.title", "level": 19, "elements": [ - "Oh gods, of princesses. I. I don't know how to describe this. My hooves are shaking, I can barely breeze. I'm freezing cold and I can't stop thinking about what happened.", - "I knew there was something wrong. I b---knew it. I didn't know what it was at the time, but I'm extremely glad I didn't let Luna scate on that lake." + "gui.unicopia.spellbook.chapter.ice.p14.1.body", + "gui.unicopia.spellbook.chapter.ice.p14.2.body" ] }, { - "title": "Frozen Lake II", + "title": "gui.unicopia.spellbook.chapter.ice.p15.title", "level": 19, "elements": [ - "Let me take a step back a bit to describe what happened. Do you remember the frozen lake and those colts that were skating on it?", - "Well, after that I went on to the market and I was looking at the strawberries in one of the stalls--Didn't get any, sadly they were forgotten in the confusion." + "gui.unicopia.spellbook.chapter.ice.p15.1.body", + "gui.unicopia.spellbook.chapter.ice.p15.2.body" ] }, { - "title": "Frozen Lake III", + "title": "gui.unicopia.spellbook.chapter.ice.p16.title", "level": 19, "elements": [ - "Whilst I was debating the vendor about the price, I felt Luna tugging on my tunic and she asked me what was going on. I heard galloping and I saw ponies running by us. None of them stopped to explain, but I heard some very gruff words in old ponish.", - "They were heading in the direction of our tower so I set off after them." + "gui.unicopia.spellbook.chapter.ice.p16.1.body", + "gui.unicopia.spellbook.chapter.ice.p16.2.body" ] }, { "title": "", "level": 20, "elements": [ - "My immediate thoughts were 'was it a fire'? Was my lab in danger?", - "I tell you what, I wish that were the case. What I actually found was much, much, worse, and even thinking of it makes my blood run cold anew." + "gui.unicopia.spellbook.chapter.ice.p16.3.body", + "gui.unicopia.spellbook.chapter.ice.p16.4.body" ] }, { - "title": "Frozen Lake IV", + "title": "gui.unicopia.spellbook.chapter.ice.p17.title", "level": 20, "elements": [ - "When we were getting near the lake from earlier, I saw a large crowd growing along its banks. Ladders and emergency equipment were out and scattered on the shoreline and a loud uproar had erupted about what to do.", - "Getting closer, though, I realised what had happened soon enough--and I made a beeline for for the water-- The ice was broken and the lake was freezing cold." + "gui.unicopia.spellbook.chapter.ice.p17.1.body", + "gui.unicopia.spellbook.chapter.ice.p17.2.body" ] }, { "title": "", "level": 20, "elements": [ - "I jumped in anyway, pulling my saddlebags open with my magic, and grabbed the last of the gems i had with my and cast the unfinished spell it had inside.", - "The waters receded away from me as I galloped down the slop and across the drying lake bed and dove to catch the colts that had fallen in." + "gui.unicopia.spellbook.chapter.ice.p17.3.body", + "gui.unicopia.spellbook.chapter.ice.p17.4.body" ] }, { - "title": "Frozen Lake V", + "title": "gui.unicopia.spellbook.chapter.ice.p18.title", "level": 20, "elements": [ - "They were freezing and wet, even as the spell's effects worked to pull the water away from their coats, we carred them up to the shore and got them covered in blankets with hot drinks in their hooves.", - "The townponies insisted on giving me a blanket of my own, even though I hadn't - couldn't have- gotten wet." + "gui.unicopia.spellbook.chapter.ice.p18.1.body", + "gui.unicopia.spellbook.chapter.ice.p18.2.body" ] }, { "title": "", "level": 20, "elements": [ - "It was only much later, when the shock began to wear of and I was feeling my head start to pound that I remembered to cancel the spell.", - "Thank the princesses we got there in time.", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p18.3.body", + "gui.unicopia.spellbook.chapter.ice.p18.4.body", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "18th Trot '12", + "title": "gui.unicopia.spellbook.chapter.ice.p19.title", "level": 7, "elements": [ - "No sign of the colts this morning, I assume they won't be coming near this lake for a long while. The water had frozen again in the night and looked peaceful.", - "The unseasy feeling I had yesterday was gone today so I was able to relax on its banks with Luna. She didn't want to swim in this lake any more, and I don't blame her. I wouldn't either." + "gui.unicopia.spellbook.chapter.ice.p19.1.body", + "gui.unicopia.spellbook.chapter.ice.p19.2.body" ] }, { - "title": "Sandcastle", + "title": "gui.unicopia.spellbook.chapter.ice.p20.title", "level": 7, "elements": [ - "Luna started a sand castle, and whilst she was busy with that I decided to sketch out the details of my new spell.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.ice.p20.1.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Water Repulsion", + "title": "spell.unicopia.hydrophobic", "level": 20, "elements": [ - "By combining the abilities of a shield spell with that of the frost gem, the results are... Admittedly strange.", - "I'm calling this water repulsion because it does just that: It pushes water away from the caster.", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.1.body", + "gui.unicopia.spellbook.chapter.ice.hydrophobic.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] @@ -292,7 +283,7 @@ "level": 20, "elements": [ { "recipe": "unicopia:spells/hydrophobic" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:frost" }, @@ -302,8 +293,8 @@ }, { "ingredients": [ - { "text": "* By adding more focus you can extend the duration of the spell" }, - { "text": "* Add the generosity trait to tie this spell to a location rather than a user" } + { "text": "gui.unicopia.spellbook.chapter.ice.hydrophobic.modifier.1" }, + { "text": "gui.unicopia.spellbook.chapter.ice.hydrophobic.modifier.2" } ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/introduction.json b/src/main/resources/data/unicopia/spellbook/chapters/introduction.json index d34b424d..fe32be55 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/introduction.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/introduction.json @@ -5,112 +5,88 @@ "content": { "pages": [ { - "title": "Preface", + "title": "gui.unicopia.spellbook.chapter.introduction.p1.title", "level": 0, "elements": [ - { - "text": "To whomever holds this tome, beware what you seek for you might not like what you find.", - "extra": [ - { "text": "Hither yonder equs.", "obfuscated": true } - ] - }, - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.introduction.p1.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Ch.1 Magic in Equestria", + "title": "gui.unicopia.spellbook.chapter.introduction.p2.title", "level": 0, "elements": [ - { - "text": "Equestria is filled with magic of all different shapes and forms. Following recent events, however, it's has become plainly obvious that we do not fully understand all that there is about the world of Equestria. That is why the crown has tasked me with researching Magic in all of its forms, so we might utilise it and, I hope, save ourselves from the", - "extra": [ - { "text": "aaaaaaa", "obfuscated": "true" } - ] - }, + "gui.unicopia.spellbook.chapter.introduction.p2.body", { "x": 125, "y": 0, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/profile.png" } ] }, { - "title": "1st Mare '12", + "title": "gui.unicopia.spellbook.chapter.introduction.p3.title", "level": 0, "elements": [ - "Odd Rocks", - "These 'Gemstones' as the locals call them are a common material found around the world. Farm-Ponies dig them up all the time and consider it a local delicacy, but I believe these stones are capable of a lot more than they let on.", + "gui.unicopia.spellbook.chapter.introduction.p3.1.body", + "gui.unicopia.spellbook.chapter.introduction.p3.2.body", { "x": 125, "y": 0, "width": 32, "height": 32, "texture": "unicopia:textures/item/gemstone.png" } ] }, { - "title": "Gemstones", + "title": "gui.unicopia.spellbook.chapter.introduction.p4.title", "level": 0, "elements": [ - { - "text": "My research is still incomplete but I may have stumbled upon something. These stones have high magical potentia! More than I've ever seen before!" - }, - { - "text": "Luna-wants", - "strikethrough": true, - "extra": [ - { "text": "I'm going to keep experimenting. Hooves-crossed, I'll update you tomorrow if I find anything.", "strikethrough": false} - ] - }, - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.introduction.p4.1.body", + "gui.unicopia.spellbook.chapter.introduction.p4.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "2nd Mare '12", + "title": "gui.unicopia.spellbook.chapter.introduction.p5.title", "level": 0, "elements": [ - { - "text": "It worked! Holy", - "extra": [ - { "text": "Celestia's ass-cheeks'", "obfuscated": true}, - { "text": "it actually worked." } - ] - }, - "This is amazing! These can do so much more than I could have ever imagined. Think of the advances I could bring to Equestria. Gem-powered lighting, heating, cooling, I'd no longer have to spend summer sitting on this-", - "I'm getting ahead of myself. Let me explain..." + "gui.unicopia.spellbook.chapter.introduction.p5.1.body", + "gui.unicopia.spellbook.chapter.introduction.p5.2.body", + "gui.unicopia.spellbook.chapter.introduction.p5.3.body" ] }, { - "title": "Spellcrafting", + "title": "gui.unicopia.spellbook.chapter.introduction.p6.title", "level": 0, "elements": [ { "x": 125, "y": 0, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/crafting.png" }, - "I drew a guide at the start of this book to help with the placement.", - "Put a raw gem-it mustn't have any spells already-in the middle and place materials around it in the slots I marked.", - "Each material gives different effects and putting them closer enhances their influence on the gem." + "gui.unicopia.spellbook.chapter.introduction.p6.1.body", + "gui.unicopia.spellbook.chapter.introduction.p6.2.body", + "gui.unicopia.spellbook.chapter.introduction.p6.3.body" ] }, { - "title": "3rd Mare '12", + "title": "gui.unicopia.spellbook.chapter.introduction.p7.title", "level": 0, "elements": [ - "I'm going to start documenting spell combinations as I find them. Some of them are pretty obvious, like gem + fire = fire gem", - "But some are less clear. For instance, what traits would an egg add? Much experimenting is needed. Oh, I'm giddy with excitement!", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.introduction.p7.1.body", + "gui.unicopia.spellbook.chapter.introduction.p7.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] }, { - "title": "Botched Gems", + "title": "gui.unicopia.spellbook.chapter.introduction.p8.title", "level": 1, "elements": [ { "x": 127, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/item/botched_gem.png" }, - "Not every combination works. What's dissapointing is now I have all these useless stones piling up in my chambers.", - "I don't know what to do with them. They're not edible. At least the locals don't think so.", - "They do still have the traits I gave them, so maybe I can find a use other than building a rock-fort with little Luna..." + "gui.unicopia.spellbook.chapter.introduction.p8.1.body", + "gui.unicopia.spellbook.chapter.introduction.p8.2.body", + "gui.unicopia.spellbook.chapter.introduction.p8.3.body" ] }, { - "title": "13th Mare '12", + "title": "gui.unicopia.spellbook.chapter.introduction.p9.title", "level": 0, "elements": [ - "Sorry for the long delay in updates. I've been hard at work researching different spells and desciding my approach.", - "Fire is becomg a very interesting aspect, what with traits for it being readily available.", - "At the princess' behest", - "- Starswirl the Bearded" + "gui.unicopia.spellbook.chapter.introduction.p9.1.body", + "gui.unicopia.spellbook.chapter.introduction.p9.2.body", + "gui.unicopia.spellbook.author1.sign_off", + "gui.unicopia.spellbook.author1.name" ] } ] diff --git a/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json b/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json index aee0fb23..0a046cbe 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json @@ -5,26 +5,26 @@ "content": { "pages": [ { - "title": "Ch.6 The Beyond", + "title": "gui.unicopia.spellbook.chapter.otherworldly.p1.title", "level": 10, "elements": [ { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/the_otherworldly.png" } ] }, { - "title": "2nd Croptober '12", + "title": "gui.unicopia.spellbook.chapter.otherworldly.p2.title", "level": 20, "elements": [ - "This chapter serves as an exploration of the worlds beyond our own and a delving into what most unicorns would normally shy away from.", - "In this section can be found the most powerful of the powerful spells, but also the most danger. Read further at your own peril, as this is not for the light of mind.", - "- Lord Sombra" + "gui.unicopia.spellbook.chapter.otherworldly.p2.1.body", + "gui.unicopia.spellbook.chapter.otherworldly.p2.2.body", + "gui.unicopia.spellbook.author2.name" ] }, { - "title": "Life Sapping", + "title": "spell.unicopia.siphoning", "level": 20, "elements": [ - "A simple spell that siphons life force out of a living entity and uses it to revitalise the caster.", + "gui.unicopia.spellbook.chapter.otherworldly.siphoning.1.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } ] @@ -34,7 +34,7 @@ "level": 20, "elements": [ { "recipe": "unicopia:spells/siphoning" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:infernal" }, @@ -45,16 +45,11 @@ ] }, { - "title": "Necromancy", + "title": "spell.unicopia.necromancy", "level": 21, "elements": [ - "This area effect spell taps into the great beyond to summon life to serve its master.", - { - "text": "This spell is not very useful when used on its own, but combined with other traits may become a powerful tool against the", - "extra": [ - { "text": "Changeling Swarms.", "obfuscated": true } - ] - }, + "gui.unicopia.spellbook.chapter.otherworldly.necromancy.1.body", + "gui.unicopia.spellbook.chapter.otherworldly.necromancy.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } ] @@ -64,7 +59,7 @@ "level": 21, "elements": [ { "recipe": "unicopia:spells/necromancy" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:siphoning" }, @@ -79,11 +74,11 @@ ] }, { - "title": "Dark Vortex", + "title": "spell.unicopia.dark_vortex", "level": 23, "elements": [ - "Dipping below the fabric of reality, this spell taps into the deep arcane powers of the beyond to punch a hole in reality.", - "The resulting hole is a hungry mass that consumes all who approach. It grants massive energy, but feed it at your peril.", + "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.1.body", + "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/chaos.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] @@ -93,7 +88,7 @@ "level": 23, "elements": [ { "recipe": "unicopia:spells/dark_vortex" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:vortex" }, @@ -106,11 +101,11 @@ ] }, { - "title": "Arcane Rift", + "title": "spell.unicopia.portal", "level": 24, "elements": [ - "Combining the effects of the displacement spell created by my predecessor and the dark vortex gem, one is able to tame its chaotic nature.", - "The arcane rift spell allows the caster to link two locations together to create a bridge across the ether. Anything that enters one end will appear at the other maintaining its velocity.", + "gui.unicopia.spellbook.chapter.otherworldly.portal.1.body", + "gui.unicopia.spellbook.chapter.otherworldly.portal.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -120,7 +115,7 @@ "level": 24, "elements": [ { "recipe": "unicopia:spells/portal" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "item": "unicopia:gemstone" }, @@ -133,11 +128,11 @@ ] }, { - "title": "Mind Swap", + "title": "spell.unicopia.mind_swap", "level": 27, "elements": [ - "Continuing my predecessor's research into the abilities of the Changeling Spawn, I have enhanced his mimic spell by adding a chaotic twist.", - "Mind Swap extends the effects of mimic to cover two individuals, in effect swapping their bodies for a limited time.", + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.1.body", + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.2.body", { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] @@ -147,7 +142,7 @@ "level": 28, "elements": [ { "recipe": "unicopia:spells/mind_swap" }, - "Requires:", + "gui.unicopia.spellbook.recipe.requires", { "ingredients": [ { "count": 1, "spell": "unicopia:mimic" }, @@ -156,7 +151,7 @@ { "count": 40, "trait": "unicopia:chaos" } ] }, - "* Add the focus trait to increase the effect's duration" + "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.3.body" ] } ] From dc6bc9fe9e20d2f17b91f32fd596137553b011dd Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 31 Jan 2024 14:04:29 +0000 Subject: [PATCH 089/104] Add a dust cloud when earth ponies stomp sand, gravel, and concrete powder --- .../com/minelittlepony/unicopia/UTags.java | 1 + .../ability/EarthPonyStompAbility.java | 15 +++- .../unicopia/client/URenderers.java | 2 + .../AbstractGeometryBasedParticle.java | 12 ++- .../client/particle/DustCloudParticle.java | 86 +++++++++++++++++++ .../unicopia/particle/UParticles.java | 2 + .../data/c/tags/blocks/concrete_powders.json | 21 +++++ .../unicopia/tags/blocks/kicks_up_dust.json | 9 ++ 8 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/particle/DustCloudParticle.java create mode 100644 src/main/resources/data/c/tags/blocks/concrete_powders.json create mode 100644 src/main/resources/data/unicopia/tags/blocks/kicks_up_dust.json diff --git a/src/main/java/com/minelittlepony/unicopia/UTags.java b/src/main/java/com/minelittlepony/unicopia/UTags.java index e8d0b5d7..08da479c 100644 --- a/src/main/java/com/minelittlepony/unicopia/UTags.java +++ b/src/main/java/com/minelittlepony/unicopia/UTags.java @@ -44,6 +44,7 @@ public interface UTags { TagKey CRYSTAL_HEART_BASE = block("crystal_heart_base"); TagKey CRYSTAL_HEART_ORNAMENT = block("crystal_heart_ornament"); TagKey UNAFFECTED_BY_GROW_ABILITY = block("unaffected_by_grow_ability"); + TagKey KICKS_UP_DUST = block("kicks_up_dust"); TagKey POLEARM_MINEABLE = block("mineable/polearm"); diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyStompAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyStompAbility.java index 1a5c72ef..e81f5a0d 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyStompAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyStompAbility.java @@ -6,6 +6,7 @@ import org.jetbrains.annotations.Nullable; import com.minelittlepony.unicopia.AwaitTickQueue; import com.minelittlepony.unicopia.Race; +import com.minelittlepony.unicopia.UTags; import com.minelittlepony.unicopia.ability.data.Hit; import com.minelittlepony.unicopia.client.render.PlayerPoser.Animation; import com.minelittlepony.unicopia.entity.Living; @@ -17,6 +18,7 @@ import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.particle.UParticles; import com.minelittlepony.unicopia.server.world.BlockDestructionManager; import com.minelittlepony.unicopia.util.PosHelper; +import com.minelittlepony.unicopia.util.VecHelper; import net.minecraft.block.Block; import net.minecraft.block.BlockState; @@ -26,6 +28,7 @@ import net.minecraft.entity.LivingEntity; import net.minecraft.entity.attribute.EntityAttributes; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; +import net.minecraft.particle.BlockStateParticleEffect; import net.minecraft.registry.tag.BlockTags; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.Identifier; @@ -33,6 +36,7 @@ import net.minecraft.util.math.BlockBox; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Box; import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.Vec3d; import net.minecraft.world.World; import net.minecraft.world.WorldEvents; @@ -156,7 +160,10 @@ public class EarthPonyStompAbility implements Ability { spawnEffectAround(player, center, radius, rad); ParticleUtils.spawnParticle(player.getWorld(), UParticles.GROUND_POUND, player.getX(), player.getY() - 1, player.getZ(), 0, 0, 0); - ParticleUtils.spawnParticle(player.getWorld(), UParticles.SHOCKWAVE, player.getX(), player.getY() - 1, player.getZ(), 0, 0, 0); + BlockState steppingState = player.getSteppingBlockState(); + if (steppingState.isIn(UTags.KICKS_UP_DUST)) { + ParticleUtils.spawnParticle(player.getWorld(), new BlockStateParticleEffect(UParticles.DUST_CLOUD, steppingState), player.getBlockPos().down().toCenterPos(), Vec3d.ZERO); + } iplayer.subtractEnergyCost(rad); iplayer.asEntity().addExhaustion(3); @@ -218,6 +225,12 @@ public class EarthPonyStompAbility implements Ability { } else { w.syncWorldEvent(WorldEvents.BLOCK_BROKEN, pos, Block.getRawIdFromState(state)); } + + if (state.isIn(UTags.KICKS_UP_DUST)) { + if (w.random.nextInt(4) == 0 && w.isAir(pos.up()) && w.getFluidState(pos.up()).isEmpty()) { + ParticleUtils.spawnParticle(w, new BlockStateParticleEffect(UParticles.DUST_CLOUD, state), pos.up().toCenterPos(), VecHelper.supply(() -> w.random.nextTriangular(0, 0.1F))); + } + } } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index ebe72254..0d4509bb 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -10,6 +10,7 @@ import com.minelittlepony.unicopia.block.cloud.CloudChestBlock; import com.minelittlepony.unicopia.client.particle.ChangelingMagicParticle; import com.minelittlepony.unicopia.client.particle.CloudsEscapingParticle; import com.minelittlepony.unicopia.client.particle.DiskParticle; +import com.minelittlepony.unicopia.client.particle.DustCloudParticle; import com.minelittlepony.unicopia.client.particle.FloatingBubbleParticle; import com.minelittlepony.unicopia.client.particle.GroundPoundParticle; import com.minelittlepony.unicopia.client.particle.HealthDrainParticle; @@ -80,6 +81,7 @@ public interface URenderers { ParticleFactoryRegistry.getInstance().register(UParticles.GROUND_POUND, GroundPoundParticle::new); ParticleFactoryRegistry.getInstance().register(UParticles.CLOUDS_ESCAPING, CloudsEscapingParticle::new); ParticleFactoryRegistry.getInstance().register(UParticles.LIGHTNING_BOLT, LightningBoltParticle::new); + ParticleFactoryRegistry.getInstance().register(UParticles.DUST_CLOUD, DustCloudParticle::new); AccessoryFeatureRenderer.register( BraceletFeatureRenderer::new, AmuletFeatureRenderer::new, GlassesFeatureRenderer::new, diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java index 1714d93a..cb5a2c51 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/AbstractGeometryBasedParticle.java @@ -11,6 +11,7 @@ import net.minecraft.client.render.Tessellator; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexFormat; import net.minecraft.client.render.VertexFormats; +import net.minecraft.client.util.math.MatrixStack; import net.minecraft.client.world.ClientWorld; public abstract class AbstractGeometryBasedParticle extends Particle { @@ -38,6 +39,16 @@ public abstract class AbstractGeometryBasedParticle extends Particle { te.draw(); } + protected final void renderQuad(MatrixStack matrices, Tessellator te, BufferBuilder buffer, RenderUtil.Vertex[] corners, float alpha, float tickDelta) { + int light = getBrightness(tickDelta); + buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); + for (RenderUtil.Vertex corner : corners) { + var position = corner.position(matrices.peek().getPositionMatrix()); + buffer.vertex(position.x, position.y, position.z).texture(corner.texture().x, corner.texture().y).color(red, green, blue, alpha).light(light).next(); + } + te.draw(); + } + protected final void renderQuad(Tessellator te, BufferBuilder buffer, RenderUtil.Vertex[] corners, float alpha, float tickDelta) { int light = getBrightness(tickDelta); buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_TEXTURE_COLOR_LIGHT); @@ -47,7 +58,6 @@ public abstract class AbstractGeometryBasedParticle extends Particle { te.draw(); } - protected final void renderQuad(VertexConsumer buffer, Vector3f[] corners, float alpha, float tickDelta) { int light = getBrightness(tickDelta); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/DustCloudParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/DustCloudParticle.java new file mode 100644 index 00000000..e39bb0b0 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/DustCloudParticle.java @@ -0,0 +1,86 @@ +package com.minelittlepony.unicopia.client.particle; + +import com.minelittlepony.common.util.Color; +import com.minelittlepony.unicopia.client.render.RenderUtil; +import net.minecraft.block.Blocks; +import net.minecraft.client.MinecraftClient; +import net.minecraft.client.render.BufferBuilder; +import net.minecraft.client.render.Tessellator; +import net.minecraft.client.texture.Sprite; +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.client.world.ClientWorld; +import net.minecraft.particle.BlockStateParticleEffect; +import net.minecraft.util.Identifier; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.MathHelper; +import net.minecraft.util.math.RotationAxis; + +public class DustCloudParticle extends AbstractBillboardParticle { + //private static final Identifier TEXTURE = new Identifier("textures/particle/big_smoke_3.png"); + + protected static final int SEGMENTS = 20; + protected static final int SEPARATION = 270 / SEGMENTS; + + private float scaleFactor; + + protected Sprite sprite; + private final RenderUtil.Vertex[] vertices; + + public DustCloudParticle(BlockStateParticleEffect effect, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) { + super(world, x, y, z, velocityX, velocityY, velocityZ); + maxAge = 1000; + gravityStrength = 1; + red = 0.6F; + green = 0.6F; + blue = 0.6F; + alpha = (float)world.getRandom().nextTriangular(0.6, 0.2); + scaleFactor = (float)world.getRandom().nextTriangular(2, 1.2); + sprite = MinecraftClient.getInstance().getBlockRenderManager().getModels().getModelParticleSprite(effect.getBlockState()); + vertices = new RenderUtil.Vertex[]{ + new RenderUtil.Vertex(-1, -1, 0, sprite.getMinU(), sprite.getMinV()), + new RenderUtil.Vertex(-1, 1, 0, sprite.getMaxU(), sprite.getMinV()), + new RenderUtil.Vertex( 1, 1, 0, sprite.getMaxU(), sprite.getMaxV()), + new RenderUtil.Vertex( 1, -1, 0, sprite.getMinU(), sprite.getMaxV()) + }; + if (!effect.getBlockState().isOf(Blocks.GRASS_BLOCK)) { + int i = MinecraftClient.getInstance().getBlockColors().getColor(effect.getBlockState(), world, BlockPos.ofFloored(x, y, z), 0); + red *= Color.r(i); + green *= Color.g(i); + blue *= Color.b(i); + } + } + + @Override + protected Identifier getTexture() { + return sprite.getAtlasId(); + } + + @Override + public void tick() { + super.tick(); + scaleFactor += 0.001F; + scale(MathHelper.clamp(age / 5F, 0, 1) * scaleFactor); + } + + @Override + protected void renderQuads(Tessellator te, BufferBuilder buffer, float x, float y, float z, float tickDelta) { + float scale = getScale(tickDelta); + float alpha = this.alpha * (1 - ((float)age / maxAge)); + MatrixStack matrices = new MatrixStack(); + matrices.translate(x, y, z); + matrices.scale(scale, scale * 0.5F, scale); + + float angle = ((this.age + tickDelta) % 360) / SEGMENTS; + + for (int i = 0; i < SEGMENTS; i++) { + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_X.rotationDegrees((i * angle) % 360)); + matrices.multiply(RotationAxis.POSITIVE_Y.rotationDegrees((SEPARATION * i + angle) % 360)); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees((SEPARATION * i + angle) % 360)); + float ringScale = 1 + MathHelper.sin(((i * 10) + age + tickDelta) * 0.05F) * 0.1F; + matrices.scale(ringScale, ringScale, ringScale); + renderQuad(matrices, te, buffer, vertices, alpha, tickDelta); + matrices.pop(); + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java index 17554070..9bec2e5c 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java @@ -3,6 +3,7 @@ package com.minelittlepony.unicopia.particle; import com.minelittlepony.unicopia.Unicopia; import net.fabricmc.fabric.api.particle.v1.FabricParticleTypes; +import net.minecraft.particle.BlockStateParticleEffect; import net.minecraft.particle.DefaultParticleType; import net.minecraft.particle.ParticleType; import net.minecraft.registry.Registry; @@ -13,6 +14,7 @@ public interface UParticles { ParticleType UNICORN_MAGIC = register("unicorn_magic", FabricParticleTypes.complex(MagicParticleEffect.FACTORY)); DefaultParticleType CHANGELING_MAGIC = register("changeling_magic", FabricParticleTypes.simple()); DefaultParticleType BUBBLE = register("bubble", FabricParticleTypes.simple()); + ParticleType DUST_CLOUD = register("dust_cloud", FabricParticleTypes.complex(BlockStateParticleEffect.PARAMETERS_FACTORY)); ParticleType RAINBOOM_RING = register("rainboom_ring", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY)); ParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.complex(TargetBoundParticleEffect.FACTORY)); diff --git a/src/main/resources/data/c/tags/blocks/concrete_powders.json b/src/main/resources/data/c/tags/blocks/concrete_powders.json new file mode 100644 index 00000000..e3142856 --- /dev/null +++ b/src/main/resources/data/c/tags/blocks/concrete_powders.json @@ -0,0 +1,21 @@ +{ + "replace": false, + "values": [ + "minecraft:white_concrete_powder", + "minecraft:orange_concrete_powder", + "minecraft:magenta_concrete_powder", + "minecraft:light_blue_concrete_powder", + "minecraft:yellow_concrete_powder", + "minecraft:lime_concrete_powder", + "minecraft:pink_concrete_powder", + "minecraft:gray_concrete_powder", + "minecraft:light_gray_concrete_powder", + "minecraft:cyan_concrete_powder", + "minecraft:purple_concrete_powder", + "minecraft:blue_concrete_powder", + "minecraft:brown_concrete_powder", + "minecraft:green_concrete_powder", + "minecraft:red_concrete_powder", + "minecraft:black_concrete_powder" + ] +} diff --git a/src/main/resources/data/unicopia/tags/blocks/kicks_up_dust.json b/src/main/resources/data/unicopia/tags/blocks/kicks_up_dust.json new file mode 100644 index 00000000..5a3a6783 --- /dev/null +++ b/src/main/resources/data/unicopia/tags/blocks/kicks_up_dust.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "#minecraft:sand", + "minecraft:gravel", + "minecraft:suspicious_gravel", + "#c:concrete_powders" + ] +} From a36aa10085b24cd942415a129eb340dd83f6450c Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 31 Jan 2024 14:05:14 +0000 Subject: [PATCH 090/104] Add the dust cloud when pegasi take off from sand, gravel, and concrete power + fix dust particles flying away too quickly from where a pegasus takes off --- .../unicopia/entity/player/PlayerPhysics.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index bb9b68e9..e1a6cd75 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -40,6 +40,7 @@ import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.damage.DamageSource; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NbtCompound; +import net.minecraft.particle.BlockStateParticleEffect; import net.minecraft.particle.ParticleTypes; import net.minecraft.predicate.entity.EntityPredicates; import net.minecraft.registry.RegistryKeys; @@ -564,10 +565,14 @@ public class PlayerPhysics extends EntityPhysics implements Tickab entity.calculateDimensions(); if (entity.isOnGround() || !force) { - Supplier pos = VecHelper.sphere(pony.asWorld().getRandom(), 0.5D); - Supplier vel = VecHelper.sphere(pony.asWorld().getRandom(), 0.15D); - pony.spawnParticles(ParticleTypes.CAMPFIRE_COSY_SMOKE, pos, vel, 5); - pony.spawnParticles(ParticleTypes.CLOUD, pos, vel, 5); + BlockState steppingState = pony.asEntity().getSteppingBlockState(); + if (steppingState.isIn(UTags.KICKS_UP_DUST)) { + pony.addParticle(new BlockStateParticleEffect(UParticles.DUST_CLOUD, steppingState), pony.getOrigin().down().toCenterPos(), Vec3d.ZERO); + } else { + Supplier pos = VecHelper.sphere(pony.asWorld().getRandom(), 0.5D); + Supplier vel = VecHelper.sphere(pony.asWorld().getRandom(), 0.015D); + pony.spawnParticles(ParticleTypes.CLOUD, pos, vel, 5); + } } } From e85bb4b3a5f20028188f2c0d298a513fcabfd757 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 31 Jan 2024 17:00:47 +0000 Subject: [PATCH 091/104] Fix formatting being lost when wrapping text - move page headers outside the scrollable area, - fix text cut off at the bottom of the scroll region --- .../client/gui/ParagraphWrappingVisitor.java | 47 ++++++++++++++++--- .../gui/spellbook/element/DynamicContent.java | 28 +++++++---- .../client/gui/spellbook/element/Panel.java | 22 +++++++-- .../client/gui/spellbook/element/Recipe.java | 9 +--- .../client/gui/spellbook/element/Stack.java | 10 +--- .../spellbook/chapters/air_magic.json | 18 +++---- .../spellbook/chapters/crystal_heart.json | 2 +- .../spellbook/chapters/dark_magic.json | 30 ++++++------ .../spellbook/chapters/fire_magic.json | 24 +++++----- .../spellbook/chapters/ice_magic.json | 22 ++++----- .../spellbook/chapters/introduction.json | 2 +- .../spellbook/chapters/the_otherworldly.json | 22 ++++----- 12 files changed, 141 insertions(+), 95 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/ParagraphWrappingVisitor.java b/src/main/java/com/minelittlepony/unicopia/client/gui/ParagraphWrappingVisitor.java index 0a947e9c..66f38d23 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/ParagraphWrappingVisitor.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/ParagraphWrappingVisitor.java @@ -2,7 +2,6 @@ package com.minelittlepony.unicopia.client.gui; import java.util.*; import java.util.function.BiConsumer; - import it.unimi.dsi.fastutil.ints.Int2IntFunction; import net.minecraft.client.MinecraftClient; import net.minecraft.client.font.TextHandler; @@ -31,12 +30,18 @@ public class ParagraphWrappingVisitor implements StyledVisitor { } @Override - public Optional accept(Style style, String s) { + public Optional accept(Style initialStyle, String s) { + StyleBreakingVisitor visitor = new StyleBreakingVisitor(initialStyle, this::acceptFragment); + TextVisitFactory.visitFormatted(s, 0, initialStyle, initialStyle, visitor); + visitor.flush(); + return Optional.empty(); + } + private Optional acceptFragment(Style inlineStyle, String s) { int remainingLength = (int)(pageWidth - currentLineCollectedLength); while (!s.isEmpty()) { - int trimmedLength = handler.getTrimmedLength(s, remainingLength, style); + int trimmedLength = handler.getTrimmedLength(s, remainingLength, inlineStyle); int newline = s.indexOf('\n'); if (newline >= 0 && newline < trimmedLength) { @@ -57,7 +62,7 @@ public class ParagraphWrappingVisitor implements StyledVisitor { trimmedLength = lastSpace > 0 ? Math.min(lastSpace, trimmedLength) : trimmedLength; } - Text fragment = Text.literal(s.substring(0, trimmedLength).trim()).setStyle(style); + Text fragment = Text.literal(s.substring(0, trimmedLength).trim()).setStyle(inlineStyle); float grabbedWidth = handler.getWidth(fragment); // advance if appending the next segment would cause an overflow @@ -101,14 +106,42 @@ public class ParagraphWrappingVisitor implements StyledVisitor { } public void advance() { + line++; if (progressedNonEmpty || currentLineCollectedLength > 0) { progressedNonEmpty = true; - lineConsumer.accept(currentLine, (++line) * font.fontHeight); + lineConsumer.accept(currentLine, line * font.fontHeight); } - pageWidth = widthSupplier.applyAsInt((++line) * font.fontHeight); + pageWidth = widthSupplier.applyAsInt(line * font.fontHeight); currentLine = Text.empty(); currentLineCollectedLength = 0; } - record StyledString (String string, Style style) {} + static final class StyleBreakingVisitor implements CharacterVisitor { + private final StyledVisitor fragmentVisitor; + private final StringBuilder collectedText = new StringBuilder(); + + private Style currentStyle; + + public StyleBreakingVisitor(Style initialStyle, StyledVisitor fragmentVisitor) { + this.currentStyle = initialStyle; + this.fragmentVisitor = fragmentVisitor; + } + + @Override + public boolean accept(int index, Style style, int codepoint) { + if (!style.equals(currentStyle)) { + flush(); + } + currentStyle = style; + collectedText.append((char)codepoint); + return true; + } + + public void flush() { + if (collectedText.length() > 0) { + fragmentVisitor.accept(currentStyle, collectedText.toString()); + collectedText.setLength(0); + } + } + } } \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java index c8a64c74..e9dc8bab 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java @@ -139,6 +139,19 @@ public class DynamicContent implements Content { compiled = false; } + public void drawHeader(DrawContext context, int mouseX, int mouseY) { + + if (elements.isEmpty()) { + return; + } + boolean needsMoreXp = level < 0 || Pony.of(MinecraftClient.getInstance().player).getLevel().get() < level; + int x = bounds.left; + int y = bounds.top - 16; + + DrawableUtil.drawScaledText(context, needsMoreXp ? UNKNOWN : title, x, y, 1.3F, headerColor); + DrawableUtil.drawScaledText(context, Text.translatable("gui.unicopia.spellbook.page.level_requirement", level < 0 ? "???" : "" + (level + 1)).formatted(Formatting.DARK_GREEN), x, y + 12, 0.8F, headerColor); + } + @Override public void draw(DrawContext context, int mouseX, int mouseY, IViewRoot container) { @@ -149,25 +162,24 @@ public class DynamicContent implements Content { if (!compiled) { compiled = true; int relativeY = 0; + int textHeight = 0; for (PageElement element : elements.stream().filter(PageElement::isInline).toList()) { element.compile(relativeY, container); relativeY += element.bounds().height; + if (element instanceof TextBlock) { + textHeight += element.bounds().height; + } } - bounds.height = relativeY; + bounds.height = textHeight == 0 ? 0 : relativeY; } - boolean needsMoreXp = level < 0 || Pony.of(MinecraftClient.getInstance().player).getLevel().get() < level; - MatrixStack matrices = context.getMatrices(); - DrawableUtil.drawScaledText(context, needsMoreXp ? UNKNOWN : title, bounds.left, bounds.top - 10, 1.3F, headerColor); - DrawableUtil.drawScaledText(context, Text.translatable("gui.unicopia.spellbook.page.level_requirement", level < 0 ? "???" : "" + (level + 1)).formatted(Formatting.DARK_GREEN), bounds.left, bounds.top - 10 + 12, 0.8F, headerColor); matrices.push(); - matrices.translate(0, 16, 0); + matrices.translate(0, -8, 0); elements.stream().filter(PageElement::isFloating).forEach(element -> { - Bounds bounds = element.bounds(); matrices.push(); - bounds.translate(matrices); + element.bounds().translate(matrices); element.draw(context, mouseX, mouseY, container); matrices.pop(); }); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java index fc84e687..315e1f7b 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Panel.java @@ -24,15 +24,16 @@ class Panel extends ScrollContainer { getContentPadding().top = 15; page = content.getPage(pageIndex); - margin.left = screen.getX() + 30; - margin.top = screen.getY() + 15; - margin.right = screen.width - screen.getBackgroundWidth() - screen.getX() + 20; + int width = screen.getBackgroundWidth() / 2; + margin.top = screen.getY() + 35; margin.bottom = screen.height - screen.getBackgroundHeight() - screen.getY() + 40; + margin.left = screen.getX() + 30; if (pageIndex % 2 == 1) { - margin.left += screen.getBackgroundWidth() / 2 - 10; + margin.left += screen.getBackgroundWidth() / 2 - 20; + margin.right = screen.getX() + 20; } else { - margin.right += screen.getBackgroundWidth() / 2; + margin.right = screen.width - width - margin.left + 30; } init(() -> {}); screen.addDrawable(this); @@ -63,4 +64,15 @@ class Panel extends ScrollContainer { @Override protected void drawDecorations(DrawContext context, int mouseX, int mouseY, float partialTicks) { } + + @Override + protected void drawOverlays(DrawContext context, int mouseX, int mouseY, float partialTicks) { + context.getMatrices().push(); + this.getBounds().translate(context.getMatrices()); + page.ifPresent(p -> { + p.drawHeader(context, mouseX, mouseY); + }); + context.getMatrices().pop(); + super.drawOverlays(context, mouseX, mouseY, partialTicks); + } } \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Recipe.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Recipe.java index 79264fa3..4d6439a3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Recipe.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Recipe.java @@ -4,7 +4,6 @@ import com.minelittlepony.common.client.gui.IViewRoot; import com.minelittlepony.common.client.gui.dimension.Bounds; import com.minelittlepony.unicopia.ability.magic.spell.crafting.SpellbookRecipe; import com.minelittlepony.unicopia.client.gui.spellbook.IngredientTree; -import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookScreen; import com.minelittlepony.unicopia.entity.player.Pony; import net.minecraft.client.MinecraftClient; @@ -13,18 +12,14 @@ import net.minecraft.util.Identifier; record Recipe (DynamicContent.Page page, Identifier id, Bounds bounds) implements PageElement { @Override public void compile(int y, IViewRoot container) { - if (container instanceof SpellbookScreen book) { - bounds().left = book.getX(); - bounds().top = book.getY(); - } MinecraftClient.getInstance().world.getRecipeManager().get(id).ifPresent(recipe -> { if (recipe instanceof SpellbookRecipe spellRecipe) { boolean needsMoreXp = page.getLevel() < 0 || Pony.of(MinecraftClient.getInstance().player).getLevel().get() < page.getLevel(); IngredientTree tree = new IngredientTree( - bounds().left + page().getBounds().left, - bounds().top + page().getBounds().top + y + 10, + bounds().left, + bounds().top + y - 10, page().getBounds().width - 20 ).obfuscateResult(needsMoreXp); spellRecipe.buildCraftingTree(tree); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Stack.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Stack.java index 1113d668..f1f8195d 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Stack.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/Stack.java @@ -4,19 +4,13 @@ import com.minelittlepony.common.client.gui.IViewRoot; import com.minelittlepony.common.client.gui.dimension.Bounds; import com.minelittlepony.unicopia.ability.magic.spell.crafting.IngredientWithSpell; import com.minelittlepony.unicopia.client.gui.spellbook.IngredientTree; -import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookScreen; record Stack (DynamicContent.Page page, IngredientWithSpell ingredient, Bounds bounds) implements PageElement { @Override public void compile(int y, IViewRoot container) { - int xx = 0, yy = 0; - if (container instanceof SpellbookScreen book) { - xx = book.getX(); - yy = book.getY(); - } IngredientTree tree = new IngredientTree( - bounds().left + xx + page().getBounds().left, - bounds().top + yy + page().getBounds().top + y + 10, + bounds().left + page().getBounds().left, + bounds().top + page().getBounds().top + y - 10, 30 ); tree.input(ingredient.getMatchingStacks()); diff --git a/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json index bdf768bc..d552314e 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/air_magic.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.air.p1.title", "level": 1, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/air_magic.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/air_magic.png" } ] }, { @@ -45,8 +45,8 @@ "gui.unicopia.spellbook.chapter.air.p4.1.body", "gui.unicopia.spellbook.chapter.air.p4.2.body", "gui.unicopia.spellbook.chapter.air.p4.3.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -65,8 +65,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.air.catapult.1.body", "gui.unicopia.spellbook.chapter.air.catapult.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -91,8 +91,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.air.bubble.1.body", "gui.unicopia.spellbook.chapter.air.bubble.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/water.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/water.png" } ] }, { @@ -149,8 +149,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.air.feather_fall.1.body", "gui.unicopia.spellbook.chapter.air.feather_fall.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { diff --git a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json index 795e6f83..d16b5763 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.artefacts.p1.title", "level": 0, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/crystal_heart.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/crystal_heart.png" } ] }, { diff --git a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json index ded71e87..ff69df04 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.dark_magic.p1.title", "level": 10, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" } ] }, { @@ -43,8 +43,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.vortex.1.body", "gui.unicopia.spellbook.chapter.dark_magic.vortex.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/knowledge.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/air.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/knowledge.png" } ] }, { @@ -150,8 +150,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.transformation.1.body", "gui.unicopia.spellbook.chapter.dark_magic.transformation.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/life.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/life.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -175,8 +175,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.reveal.1.body", "gui.unicopia.spellbook.chapter.dark_magic.reveal.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -247,8 +247,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.1.body", "gui.unicopia.spellbook.chapter.dark_magic.arcane_protection.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] }, { @@ -273,8 +273,8 @@ "level": 17, "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.displacement.1.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -311,8 +311,8 @@ "level": 17, "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.mimic.1.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] }, { @@ -373,8 +373,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.dark_magic.p28.1.body", "gui.unicopia.spellbook.author1.name", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/kindness.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/kindness.png" } ] }, { diff --git a/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json index 9657c486..491cb6de 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/fire_magic.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.fire.p1.title", "level": 0, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/fire_magic.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/fire_magic.png" } ] }, { @@ -27,8 +27,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.fire.scorch.1.body", "gui.unicopia.spellbook.chapter.fire.scorch.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } ] }, { @@ -50,8 +50,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.fire.flame.1.body", "gui.unicopia.spellbook.chapter.fire.flame.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/fire.png" } ] }, { @@ -85,8 +85,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.fire.p6.1.body", "gui.unicopia.spellbook.chapter.fire.p6.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } ] }, { @@ -114,8 +114,8 @@ "gui.unicopia.spellbook.chapter.fire.fire_bolt.1.body", "gui.unicopia.spellbook.chapter.fire.fire_bolt.2.body", "gui.unicopia.spellbook.chapter.fire.fire_bolt.3.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/focus.png" } ] }, { @@ -140,8 +140,8 @@ "gui.unicopia.spellbook.chapter.fire.p10.1.body", "gui.unicopia.spellbook.chapter.fire.p10.2.body", "gui.unicopia.spellbook.chapter.fire.p10.3.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/strength.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/fire.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/strength.png" } ] }, { @@ -208,7 +208,7 @@ "elements": [ "gui.unicopia.spellbook.chapter.fire.shield.1.body", "gui.unicopia.spellbook.chapter.fire.shield.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" } ] }, { diff --git a/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json index 523f318c..fcf6fa57 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/ice_magic.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.ice.p1.title", "level": 0, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/ice_magic.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/ice_magic.png" } ] }, { @@ -27,8 +27,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.ice.frost.1.body", "gui.unicopia.spellbook.chapter.ice.frost.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/snowball.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "minecraft:textures/item/snowball.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] }, { @@ -50,8 +50,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.ice.p4.1.body", "gui.unicopia.spellbook.chapter.ice.p4.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/oak_boat.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "minecraft:textures/item/oak_boat.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] }, { @@ -109,8 +109,8 @@ { "count": 15, "trait": "unicopia:ice" } ] }, - { "x": 115, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/snowball.png" }, - { "x": 115, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } + { "x": 115, "y": -10, "width": 32, "height": 32, "texture": "minecraft:textures/item/snowball.png" }, + { "x": 115, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] }, { @@ -129,8 +129,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.ice.light.1.body", "gui.unicopia.spellbook.chapter.ice.light.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "minecraft:textures/item/light.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "minecraft:textures/item/light.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] }, { @@ -274,8 +274,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.ice.hydrophobic.1.body", "gui.unicopia.spellbook.chapter.ice.hydrophobic.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/strength.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/ice.png" } ] }, { diff --git a/src/main/resources/data/unicopia/spellbook/chapters/introduction.json b/src/main/resources/data/unicopia/spellbook/chapters/introduction.json index fe32be55..b2cca4f9 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/introduction.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/introduction.json @@ -73,7 +73,7 @@ "title": "gui.unicopia.spellbook.chapter.introduction.p8.title", "level": 1, "elements": [ - { "x": 127, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/item/botched_gem.png" }, + { "x": 127, "y": 0, "width": 32, "height": 32, "texture": "unicopia:textures/item/botched_gem.png" }, "gui.unicopia.spellbook.chapter.introduction.p8.1.body", "gui.unicopia.spellbook.chapter.introduction.p8.2.body", "gui.unicopia.spellbook.chapter.introduction.p8.3.body" diff --git a/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json b/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json index 0a046cbe..57a28e5c 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/the_otherworldly.json @@ -8,7 +8,7 @@ "title": "gui.unicopia.spellbook.chapter.otherworldly.p1.title", "level": 10, "elements": [ - { "x": 15, "y": 0, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/the_otherworldly.png" } + { "x": 15, "y": -10, "width": 128, "height": 128, "texture": "unicopia:textures/gui/container/pages/the_otherworldly.png" } ] }, { @@ -25,8 +25,8 @@ "level": 20, "elements": [ "gui.unicopia.spellbook.chapter.otherworldly.siphoning.1.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } ] }, { @@ -50,8 +50,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.otherworldly.necromancy.1.body", "gui.unicopia.spellbook.chapter.otherworldly.necromancy.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/darkness.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/blood.png" } ] }, { @@ -79,8 +79,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.1.body", "gui.unicopia.spellbook.chapter.otherworldly.dark_vortex.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/chaos.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/chaos.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/darkness.png" } ] }, { @@ -106,8 +106,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.otherworldly.portal.1.body", "gui.unicopia.spellbook.chapter.otherworldly.portal.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/trait/knowledge.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { @@ -133,8 +133,8 @@ "elements": [ "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.1.body", "gui.unicopia.spellbook.chapter.otherworldly.mind_swap.2.body", - { "x": 125, "y": -20, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, - { "x": 125, "y": -20, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } + { "x": 125, "y": -10, "width": 32, "height": 32, "texture": "unicopia:textures/gui/container/pages/dark_magic.png" }, + { "x": 125, "y": -10, "width": 16, "height": 16, "texture": "unicopia:textures/gui/trait/chaos.png" } ] }, { From 72b5b3d50c8ab32dc2e833cec5c5897b55cfc6cd Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 12:12:25 +0000 Subject: [PATCH 092/104] Apply text tint to more parts of the spellbook's contents --- .../unicopia/client/gui/MagicText.java | 16 ++++++++++++++++ .../spellbook/SpellbookCraftingPageContent.java | 8 +++----- .../spellbook/SpellbookProfilePageContent.java | 4 ++-- .../gui/spellbook/element/DynamicContent.java | 11 +++++------ .../client/gui/spellbook/element/TextBlock.java | 3 ++- 5 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/client/gui/MagicText.java diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/MagicText.java b/src/main/java/com/minelittlepony/unicopia/client/gui/MagicText.java new file mode 100644 index 00000000..4387217f --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/MagicText.java @@ -0,0 +1,16 @@ +package com.minelittlepony.unicopia.client.gui; + +import net.minecraft.client.MinecraftClient; +import net.minecraft.util.math.MathHelper; + +public interface MagicText { + static int getColor() { + MinecraftClient client = MinecraftClient.getInstance(); + float ticks = client.player.age + client.getTickDelta(); + + float sin = (MathHelper.sin(ticks / 10F) + 1) * 155 * 0.25F; + float cos = (MathHelper.cos((ticks + 10) / 10F) + 1) * 155 * 0.25F; + + return (int)(sin + cos); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookCraftingPageContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookCraftingPageContent.java index 6ca19c38..6350bc98 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookCraftingPageContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookCraftingPageContent.java @@ -5,6 +5,7 @@ import com.minelittlepony.common.client.gui.ScrollContainer; import com.minelittlepony.common.client.gui.element.Label; import com.minelittlepony.unicopia.ability.magic.spell.crafting.SpellbookRecipe; import com.minelittlepony.unicopia.client.gui.DrawableUtil; +import com.minelittlepony.unicopia.client.gui.MagicText; import com.minelittlepony.unicopia.container.SpellbookState; import com.minelittlepony.unicopia.item.URecipes; import com.mojang.blaze3d.systems.RenderSystem; @@ -42,13 +43,10 @@ public class SpellbookCraftingPageContent extends ScrollContainer implements Spe @Override public void draw(DrawContext context, int mouseX, int mouseY, IViewRoot container) { - - int headerColor = mouseY % 255; - - DrawableUtil.drawScaledText(context, state.getOffset() == 0 ? INVENTORY_TITLE : RECIPES_TITLE, screen.getFrameBounds().left + screen.getFrameBounds().width / 2 + 20, SpellbookScreen.TITLE_Y, 1.3F, headerColor); + DrawableUtil.drawScaledText(context, state.getOffset() == 0 ? INVENTORY_TITLE : RECIPES_TITLE, screen.getFrameBounds().left + screen.getFrameBounds().width / 2 + 20, SpellbookScreen.TITLE_Y, 1.3F, MagicText.getColor()); Text pageText = Text.translatable("%s/%s", state.getOffset() + 1, TOTAL_PAGES); - context.drawText(textRenderer, pageText, (int)(337 - textRenderer.getWidth(pageText) / 2F), 190, headerColor, false); + context.drawText(textRenderer, pageText, (int)(337 - textRenderer.getWidth(pageText) / 2F), 190, MagicText.getColor(), false); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java index 42ac5a74..f630b9f4 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java @@ -72,7 +72,7 @@ public class SpellbookProfilePageContent implements SpellbookChapterList.Content float currentScaledLevel = pony.getLevel().getScaled(1); float currentCorruption = pony.getCorruption().getScaled(1); - DrawableUtil.drawScaledText(context, pony.asEntity().getName(), SpellbookScreen.TITLE_X, y, 1.3F, SpellbookScreen.TITLE_COLOR); + DrawableUtil.drawScaledText(context, pony.asEntity().getName(), SpellbookScreen.TITLE_X, y, 1.3F, MagicText.getColor()); DrawableUtil.drawScaledText(context, ExperienceGroup.forLevel( currentScaledLevel, currentCorruption @@ -89,7 +89,7 @@ public class SpellbookProfilePageContent implements SpellbookChapterList.Content matrices.push(); matrices.translate(screen.getBackgroundWidth() / 2 + SpellbookScreen.TITLE_X - 10, y, 0); matrices.scale(1.3F, 1.3F, 1); - context.drawText(font, SpellbookCraftingPageContent.INVENTORY_TITLE, 0, 0, SpellbookScreen.TITLE_COLOR, false); + context.drawText(font, SpellbookCraftingPageContent.INVENTORY_TITLE, 0, 0, MagicText.getColor(), false); matrices.pop(); Bounds bounds = screen.getFrameBounds(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java index e9dc8bab..804d107d 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java @@ -5,6 +5,7 @@ import java.util.*; import com.minelittlepony.common.client.gui.IViewRoot; import com.minelittlepony.common.client.gui.dimension.Bounds; import com.minelittlepony.unicopia.client.gui.DrawableUtil; +import com.minelittlepony.unicopia.client.gui.MagicText; import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookScreen; import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookChapterList.Content; import com.minelittlepony.unicopia.client.gui.spellbook.SpellbookChapterList.Drawable; @@ -12,7 +13,6 @@ import com.minelittlepony.unicopia.container.SpellbookChapterLoader.Flow; import com.minelittlepony.unicopia.container.SpellbookState; import com.minelittlepony.unicopia.entity.player.Pony; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.font.TextRenderer; import net.minecraft.client.gui.DrawContext; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.network.PacketByteBuf; @@ -39,11 +39,10 @@ public class DynamicContent implements Content { @Override public void draw(DrawContext context, int mouseX, int mouseY, IViewRoot container) { int pageIndex = state.getOffset() * 2; - TextRenderer font = MinecraftClient.getInstance().textRenderer; - headerColor = mouseY % 255; + MinecraftClient client = MinecraftClient.getInstance(); Text pageText = Text.translatable("%s/%s", (pageIndex / 2) + 1, (int)Math.ceil(pages.size() / 2F)); - context.drawText(font, pageText, (int)(337 - font.getWidth(pageText) / 2F), 190, headerColor, false); + context.drawText(client.textRenderer, pageText, (int)(337 - client.textRenderer.getWidth(pageText) / 2F), 190, MagicText.getColor(), false); } @Override @@ -148,8 +147,8 @@ public class DynamicContent implements Content { int x = bounds.left; int y = bounds.top - 16; - DrawableUtil.drawScaledText(context, needsMoreXp ? UNKNOWN : title, x, y, 1.3F, headerColor); - DrawableUtil.drawScaledText(context, Text.translatable("gui.unicopia.spellbook.page.level_requirement", level < 0 ? "???" : "" + (level + 1)).formatted(Formatting.DARK_GREEN), x, y + 12, 0.8F, headerColor); + DrawableUtil.drawScaledText(context, needsMoreXp ? UNKNOWN : title, x, y, 1.3F, MagicText.getColor()); + DrawableUtil.drawScaledText(context, Text.translatable("gui.unicopia.spellbook.page.level_requirement", level < 0 ? "???" : "" + (level + 1)).formatted(Formatting.DARK_GREEN), x, y + 12, 0.8F, MagicText.getColor()); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/TextBlock.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/TextBlock.java index 79867f24..422996d7 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/TextBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/TextBlock.java @@ -6,6 +6,7 @@ import java.util.function.Supplier; import com.minelittlepony.common.client.gui.IViewRoot; import com.minelittlepony.common.client.gui.dimension.Bounds; +import com.minelittlepony.unicopia.client.gui.MagicText; import com.minelittlepony.unicopia.client.gui.ParagraphWrappingVisitor; import com.minelittlepony.unicopia.container.SpellbookChapterLoader.Flow; import com.minelittlepony.unicopia.entity.player.Pony; @@ -52,7 +53,7 @@ class TextBlock implements PageElement { MatrixStack matrices = context.getMatrices(); matrices.push(); wrappedText.forEach(line -> { - context.drawText(font, needsMoreXp ? line.text().copy().formatted(Formatting.OBFUSCATED) : line.text().copy(), line.x(), 0, 0, false); + context.drawText(font, needsMoreXp ? line.text().copy().formatted(Formatting.OBFUSCATED) : line.text().copy(), line.x(), 0, MagicText.getColor(), false); matrices.translate(0, font.fontHeight, 0); }); matrices.pop(); From b194f720efacb9a3e3881f7819f18b909c37f3bd Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 12:18:15 +0000 Subject: [PATCH 093/104] Fixed spell equip sound playing when opening the spellbook --- .../unicopia/entity/player/PlayerCharmTracker.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCharmTracker.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCharmTracker.java index 20e91f27..aeaf4d73 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCharmTracker.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerCharmTracker.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.entity.player; +import java.util.Objects; + import com.google.common.collect.Streams; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.ability.magic.spell.effect.CustomisedSpellType; @@ -53,7 +55,9 @@ public class PlayerCharmTracker implements NbtSerialisable { public CustomisedSpellType equipSpell(Hand hand, CustomisedSpellType spell) { CustomisedSpellType previous = handSpells[hand.ordinal()]; handSpells[hand.ordinal()] = spell; - pony.asEntity().playSound(USounds.GUI_SPELL_EQUIP.value(), 0.25F, 1.75F); + if (!Objects.equals(previous, spell)) { + pony.asEntity().playSound(USounds.GUI_SPELL_EQUIP.value(), 0.25F, 1.75F); + } pony.setDirty(); return previous; } From fbe859dcc77bd5feecb963da21fb2c1412fdfb21 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 13:00:38 +0000 Subject: [PATCH 094/104] Fixed zap apple trees not progressing through their stages properly --- .../block/BaseZapAppleLeavesBlock.java | 84 ++++--------------- .../unicopia/block/ZapAppleLeavesBlock.java | 23 +---- .../block/ZapAppleLeavesPlaceholderBlock.java | 31 ++----- .../unicopia/block/ZapStagedBlock.java | 63 ++++++++++++++ .../server/world/ZapAppleStageStore.java | 6 +- 5 files changed, 87 insertions(+), 120 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java diff --git a/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java b/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java index 0b56490b..a971749f 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java @@ -13,7 +13,7 @@ import net.minecraft.util.math.*; import net.minecraft.util.math.random.Random; import net.minecraft.world.*; -public class BaseZapAppleLeavesBlock extends LeavesBlock implements TintedBlock { +public class BaseZapAppleLeavesBlock extends LeavesBlock implements TintedBlock, ZapStagedBlock { BaseZapAppleLeavesBlock() { super(Settings.create() @@ -29,61 +29,35 @@ public class BaseZapAppleLeavesBlock extends LeavesBlock implements TintedBlock } @Override - public boolean hasRandomTicks(BlockState state) { - return !state.get(PERSISTENT); - } - - @Override - public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) { - super.randomTick(state, world, pos, random); - tryAdvanceStage(state, world, pos, random); - } - - @Override - public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) { - if (state.get(PERSISTENT)) { - return state; + public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) { + if (state.get(PERSISTENT) + || oldState.isOf(state.getBlock()) + || oldState.isOf(UBlocks.ZAP_LEAVES) + || oldState.isOf(UBlocks.FLOWERING_ZAP_LEAVES) + || oldState.isOf(UBlocks.ZAP_LEAVES_PLACEHOLDER) + || !(world instanceof ServerWorld sw)) { + return; } - if (world instanceof ServerWorld sw) { - ZapAppleStageStore store = ZapAppleStageStore.get(sw); - ZapAppleStageStore.Stage currentStage = store.getStage(); - if (currentStage == ZapAppleStageStore.Stage.HIBERNATING) { - return currentStage.getNewState(state); - } - } - - return state; + updateStage(state, sw, pos); } @Override public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) { super.scheduledTick(state, world, pos, random); - tryAdvanceStage(state, world, pos, random); - if (!state.get(PERSISTENT)) { - world.scheduleBlockTick(pos, this, 1); - } - } - - private void tryAdvanceStage(BlockState state, ServerWorld world, BlockPos pos, Random random) { if (state.get(PERSISTENT)) { return; } - - ZapAppleStageStore store = ZapAppleStageStore.get(world); - ZapAppleStageStore.Stage newStage = store.getStage(); - if (!world.isDay() && getStage(state).mustChangeIntoInstantly(newStage)) { - world.setBlockState(pos, newStage.getNewState(state)); - onStageChanged(store, newStage, world, state, pos, random); - } + tryAdvanceStage(state, world, pos, random); } - protected ZapAppleStageStore.Stage getStage(BlockState state) { + @Override + public ZapAppleStageStore.Stage getStage(BlockState state) { return ZapAppleStageStore.Stage.FLOWERING; } @Override - protected boolean shouldDecay(BlockState state) { + protected final boolean shouldDecay(BlockState state) { return false; } @@ -114,40 +88,10 @@ public class BaseZapAppleLeavesBlock extends LeavesBlock implements TintedBlock @Override public int getTint(BlockState state, @Nullable BlockRenderView world, @Nullable BlockPos pos, int foliageColor) { - if (pos == null) { return 0x4C7EFA; } return TintedBlock.blend(TintedBlock.rotate(foliageColor, 2), 0x0000FF, 0.3F); } - - static void onStageChanged(ZapAppleStageStore store, ZapAppleStageStore.Stage stage, ServerWorld world, BlockState state, BlockPos pos, Random random) { - boolean mustFruit = Random.create(state.getRenderingSeed(pos)).nextInt(5) < 2; - BlockState below = world.getBlockState(pos.down()); - - if (world.isAir(pos.down())) { - if (stage == ZapAppleStageStore.Stage.FRUITING && mustFruit) { - world.setBlockState(pos.down(), UBlocks.ZAP_BULB.getDefaultState(), Block.NOTIFY_ALL); - store.triggerLightningStrike(pos); - } - } - - if (stage != ZapAppleStageStore.Stage.HIBERNATING && world.getRandom().nextInt(10) == 0) { - store.triggerLightningStrike(pos); - } - - if (stage == ZapAppleStageStore.Stage.RIPE) { - if (below.isOf(UBlocks.ZAP_BULB)) { - world.setBlockState(pos.down(), UBlocks.ZAP_APPLE.getDefaultState(), Block.NOTIFY_ALL); - store.playMoonEffect(pos); - } - } - - if (mustFruit && stage == ZapAppleStageStore.Stage.HIBERNATING) { - if (below.isOf(UBlocks.ZAP_APPLE) || below.isOf(UBlocks.ZAP_BULB)) { - world.setBlockState(pos.down(), Blocks.AIR.getDefaultState()); - } - } - } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesBlock.java b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesBlock.java index 4e83cbcf..e94f3475 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesBlock.java @@ -4,11 +4,8 @@ import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; import net.minecraft.block.*; import net.minecraft.item.ItemPlacementContext; -import net.minecraft.server.world.ServerWorld; import net.minecraft.state.StateManager; import net.minecraft.state.property.*; -import net.minecraft.util.math.BlockPos; -import net.minecraft.world.World; public class ZapAppleLeavesBlock extends BaseZapAppleLeavesBlock { public static final EnumProperty STAGE = EnumProperty.of("stage", ZapAppleStageStore.Stage.class); @@ -17,31 +14,13 @@ public class ZapAppleLeavesBlock extends BaseZapAppleLeavesBlock { setDefaultState(getDefaultState().with(STAGE, ZapAppleStageStore.Stage.GREENING)); } - @Override - public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) { - if (state.get(PERSISTENT) - || oldState.isOf(state.getBlock()) - || oldState.isOf(UBlocks.ZAP_LEAVES) - || oldState.isOf(UBlocks.FLOWERING_ZAP_LEAVES) - || oldState.isOf(UBlocks.ZAP_LEAVES_PLACEHOLDER) - || !(world instanceof ServerWorld sw)) { - return; - } - - ZapAppleStageStore store = ZapAppleStageStore.get(sw); - ZapAppleStageStore.Stage currentStage = store.getStage(); - if (currentStage != getStage(state)) { - world.setBlockState(pos, currentStage.getNewState(state)); - } - } - @Override public BlockState getPlacementState(ItemPlacementContext ctx) { return super.getPlacementState(ctx).with(STAGE, ZapAppleStageStore.Stage.GREENING); } @Override - protected ZapAppleStageStore.Stage getStage(BlockState state) { + public ZapAppleStageStore.Stage getStage(BlockState state) { return state.get(STAGE); } diff --git a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java index 5b6a7cdc..7c187001 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java @@ -1,51 +1,36 @@ package com.minelittlepony.unicopia.block; import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; +import com.minelittlepony.unicopia.server.world.ZapAppleStageStore.Stage; import net.minecraft.block.*; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.*; import net.minecraft.util.math.random.Random; -import net.minecraft.world.WorldAccess; +import net.minecraft.world.World; -public class ZapAppleLeavesPlaceholderBlock extends AirBlock { +public class ZapAppleLeavesPlaceholderBlock extends AirBlock implements ZapStagedBlock { ZapAppleLeavesPlaceholderBlock() { super(Settings.create().replaceable().noCollision().dropsNothing().air()); } @Override - public boolean hasRandomTicks(BlockState state) { - return true; + public Stage getStage(BlockState state) { + return ZapAppleStageStore.Stage.HIBERNATING; } @Override - public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) { - + public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) { if (world instanceof ServerWorld sw) { - ZapAppleStageStore store = ZapAppleStageStore.get(sw); - ZapAppleStageStore.Stage currentStage = store.getStage(); - if (currentStage != ZapAppleStageStore.Stage.HIBERNATING) { - return currentStage.getNewState(state); - } + updateStage(state, sw, pos); } - - return state; } @Deprecated @Override public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) { super.scheduledTick(state, world, pos, random); - - ZapAppleStageStore store = ZapAppleStageStore.get(world); - ZapAppleStageStore.Stage newStage = store.getStage(); - if (!world.isDay() && ZapAppleStageStore.Stage.HIBERNATING.mustChangeIntoInstantly(newStage)) { - state = newStage.getNewState(state); - world.setBlockState(pos, state); - BaseZapAppleLeavesBlock.onStageChanged(store, newStage, world, state, pos, random); - } - - world.scheduleBlockTick(pos, state.getBlock(), 1); + tryAdvanceStage(state, world, pos, random); } } diff --git a/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java b/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java new file mode 100644 index 00000000..a47e5cb2 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java @@ -0,0 +1,63 @@ +package com.minelittlepony.unicopia.block; + +import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; + +import net.minecraft.block.Block; +import net.minecraft.block.BlockState; +import net.minecraft.block.Blocks; +import net.minecraft.server.world.ServerWorld; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.random.Random; + +public interface ZapStagedBlock { + ZapAppleStageStore.Stage getStage(BlockState state); + + default void updateStage(BlockState state, ServerWorld world, BlockPos pos) { + ZapAppleStageStore.Stage currentStage = ZapAppleStageStore.get(world).getStage(); + if (currentStage != getStage(state)) { + state = currentStage.getNewState(state); + world.setBlockState(pos, state); + } + world.scheduleBlockTick(pos, state.getBlock(), 1); + } + + default void tryAdvanceStage(BlockState state, ServerWorld world, BlockPos pos, Random random) { + ZapAppleStageStore store = ZapAppleStageStore.get(world); + ZapAppleStageStore.Stage newStage = store.getStage(); + if (!world.isDay() && getStage(state).mustChangeIntoInstantly(newStage)) { + state = newStage.getNewState(state); + world.setBlockState(pos, state); + onStageChanged(store, newStage, world, state, pos, random); + } + world.scheduleBlockTick(pos, state.getBlock(), 1); + } + + private static void onStageChanged(ZapAppleStageStore store, ZapAppleStageStore.Stage stage, ServerWorld world, BlockState state, BlockPos pos, Random random) { + boolean mustFruit = Random.create(state.getRenderingSeed(pos)).nextInt(5) < 2; + BlockState below = world.getBlockState(pos.down()); + + if (world.isAir(pos.down())) { + if (stage == ZapAppleStageStore.Stage.FRUITING && mustFruit) { + world.setBlockState(pos.down(), UBlocks.ZAP_BULB.getDefaultState(), Block.NOTIFY_ALL); + store.triggerLightningStrike(pos); + } + } + + if (stage != ZapAppleStageStore.Stage.HIBERNATING && world.getRandom().nextInt(10) == 0) { + store.triggerLightningStrike(pos); + } + + if (stage == ZapAppleStageStore.Stage.RIPE) { + if (below.isOf(UBlocks.ZAP_BULB)) { + world.setBlockState(pos.down(), UBlocks.ZAP_APPLE.getDefaultState(), Block.NOTIFY_ALL); + store.playMoonEffect(pos); + } + } + + if (mustFruit && stage == ZapAppleStageStore.Stage.HIBERNATING) { + if (below.isOf(UBlocks.ZAP_APPLE) || below.isOf(UBlocks.ZAP_BULB)) { + world.setBlockState(pos.down(), Blocks.AIR.getDefaultState()); + } + } + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java index e1460494..361b59bd 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java @@ -156,12 +156,8 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { return VALUES[MathHelper.clamp(id, 0, VALUES.length)]; } - public boolean mustChangeInto(Stage to) { - return this != to && (getNext() == to || this == HIBERNATING || to == HIBERNATING); - } - public boolean mustChangeIntoInstantly(Stage to) { - return this != to && (this == HIBERNATING || to == HIBERNATING); + return this != to;// && (this == HIBERNATING || to == HIBERNATING); } public BlockState getNewState(BlockState currentState) { From 2e938633e952582867415fb5ca5c0ecde6fba025 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 13:26:26 +0000 Subject: [PATCH 095/104] Clean up and adjust transitions when zap apple trees change stages --- .../block/BaseZapAppleLeavesBlock.java | 10 +---- .../block/ZapAppleLeavesPlaceholderBlock.java | 4 +- .../unicopia/block/ZapStagedBlock.java | 40 +++++++++++++++---- .../gui/spellbook/element/DynamicContent.java | 2 - .../server/world/ZapAppleStageStore.java | 18 --------- 5 files changed, 35 insertions(+), 39 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java b/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java index a971749f..902b5a11 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/BaseZapAppleLeavesBlock.java @@ -30,16 +30,10 @@ public class BaseZapAppleLeavesBlock extends LeavesBlock implements TintedBlock, @Override public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) { - if (state.get(PERSISTENT) - || oldState.isOf(state.getBlock()) - || oldState.isOf(UBlocks.ZAP_LEAVES) - || oldState.isOf(UBlocks.FLOWERING_ZAP_LEAVES) - || oldState.isOf(UBlocks.ZAP_LEAVES_PLACEHOLDER) - || !(world instanceof ServerWorld sw)) { + if (state.get(PERSISTENT) || oldState.isOf(state.getBlock())) { return; } - - updateStage(state, sw, pos); + updateStage(state, world, pos); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java index 7c187001..40fa9fc2 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/ZapAppleLeavesPlaceholderBlock.java @@ -22,9 +22,7 @@ public class ZapAppleLeavesPlaceholderBlock extends AirBlock implements ZapStage @Override public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) { - if (world instanceof ServerWorld sw) { - updateStage(state, sw, pos); - } + updateStage(state, world, pos); } @Deprecated diff --git a/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java b/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java index a47e5cb2..5e3f41d4 100644 --- a/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java +++ b/src/main/java/com/minelittlepony/unicopia/block/ZapStagedBlock.java @@ -8,14 +8,18 @@ import net.minecraft.block.Blocks; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.random.Random; +import net.minecraft.world.World; public interface ZapStagedBlock { ZapAppleStageStore.Stage getStage(BlockState state); - default void updateStage(BlockState state, ServerWorld world, BlockPos pos) { - ZapAppleStageStore.Stage currentStage = ZapAppleStageStore.get(world).getStage(); + default void updateStage(BlockState state, World world, BlockPos pos) { + if (!(world instanceof ServerWorld sw)) { + return; + } + ZapAppleStageStore.Stage currentStage = ZapAppleStageStore.get(sw).getStage(); if (currentStage != getStage(state)) { - state = currentStage.getNewState(state); + state = getState(currentStage); world.setBlockState(pos, state); } world.scheduleBlockTick(pos, state.getBlock(), 1); @@ -23,15 +27,35 @@ public interface ZapStagedBlock { default void tryAdvanceStage(BlockState state, ServerWorld world, BlockPos pos, Random random) { ZapAppleStageStore store = ZapAppleStageStore.get(world); - ZapAppleStageStore.Stage newStage = store.getStage(); - if (!world.isDay() && getStage(state).mustChangeIntoInstantly(newStage)) { - state = newStage.getNewState(state); - world.setBlockState(pos, state); - onStageChanged(store, newStage, world, state, pos, random); + ZapAppleStageStore.Stage currentStage = store.getStage(); + if (!world.isDay() && currentStage != getStage(state)) { + int transitionRate = getTransitionRate(currentStage); + if (transitionRate == 0 || random.nextInt(transitionRate) == 0) { + state = getState(currentStage); + world.setBlockState(pos, state); + onStageChanged(store, currentStage, world, state, pos, random); + } } world.scheduleBlockTick(pos, state.getBlock(), 1); } + default int getTransitionRate(ZapAppleStageStore.Stage stage) { + if (stage == ZapAppleStageStore.Stage.HIBERNATING || stage == ZapAppleStageStore.Stage.GREENING) { + return 10; + } + return 2500; + } + + default BlockState getState(ZapAppleStageStore.Stage stage) { + if (stage == ZapAppleStageStore.Stage.HIBERNATING) { + return UBlocks.ZAP_LEAVES_PLACEHOLDER.getDefaultState(); + } + if (stage == ZapAppleStageStore.Stage.FLOWERING) { + return UBlocks.FLOWERING_ZAP_LEAVES.getDefaultState(); + } + return UBlocks.ZAP_LEAVES.getDefaultState().with(ZapAppleLeavesBlock.STAGE, stage); + } + private static void onStageChanged(ZapAppleStageStore store, ZapAppleStageStore.Stage stage, ServerWorld world, BlockState state, BlockPos pos, Random random) { boolean mustFruit = Random.create(state.getRenderingSeed(pos)).nextInt(5) < 2; BlockState below = world.getBlockState(pos.down()); diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java index 804d107d..cbcd7392 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/element/DynamicContent.java @@ -30,8 +30,6 @@ public class DynamicContent implements Content { private final Panel leftPanel = new Panel(this); private final Panel rightPanel = new Panel(this); - private int headerColor; - public DynamicContent(PacketByteBuf buffer) { pages = buffer.readList(Page::new); } diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java index 361b59bd..bb936372 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java @@ -5,13 +5,10 @@ import java.util.stream.StreamSupport; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.Unicopia; -import com.minelittlepony.unicopia.block.UBlocks; -import com.minelittlepony.unicopia.block.ZapAppleLeavesBlock; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.util.Tickable; -import net.minecraft.block.BlockState; import net.minecraft.entity.EntityType; import net.minecraft.entity.LightningEntity; import net.minecraft.nbt.*; @@ -156,24 +153,9 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { return VALUES[MathHelper.clamp(id, 0, VALUES.length)]; } - public boolean mustChangeIntoInstantly(Stage to) { - return this != to;// && (this == HIBERNATING || to == HIBERNATING); - } - - public BlockState getNewState(BlockState currentState) { - if (this == ZapAppleStageStore.Stage.HIBERNATING) { - return UBlocks.ZAP_LEAVES_PLACEHOLDER.getDefaultState(); - } - if (this == ZapAppleStageStore.Stage.FLOWERING) { - return UBlocks.FLOWERING_ZAP_LEAVES.getDefaultState(); - } - return UBlocks.ZAP_LEAVES.getDefaultState().with(ZapAppleLeavesBlock.STAGE, this); - } - @Override public String asString() { return name().toLowerCase(Locale.ROOT); } } - } From e1f4d775809f1559246b6543eb3120c11a904f36 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 13:26:57 +0000 Subject: [PATCH 096/104] Adjust tree heights to remove the possibility of trees generating absurdly tall --- .../com/minelittlepony/unicopia/server/world/UTreeGen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java index 8331e694..0d456e02 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/UTreeGen.java @@ -24,7 +24,7 @@ import net.minecraft.world.gen.trunk.UpwardsBranchingTrunkPlacer; public interface UTreeGen { Tree ZAP_APPLE_TREE = Tree.Builder.create(Unicopia.id("zap_apple_tree"), new UpwardsBranchingTrunkPlacer( - 7, 2, 3, + 5, 3, 0, UniformIntProvider.create(3, 6), 0.3f, UniformIntProvider.create(1, 3), @@ -47,7 +47,7 @@ public interface UTreeGen { Tree SWEET_APPLE_TREE = createAppleTree("sweet_apple", UBlocks.SWEET_APPLE_LEAVES, 3); Tree SOUR_APPLE_TREE = createAppleTree("sour_apple", UBlocks.SOUR_APPLE_LEAVES, 5); Tree GOLDEN_APPLE_TREE = Tree.Builder.create(Unicopia.id("golden_oak_tree"), - new StraightTrunkPlacer(6, 7, 3), + new StraightTrunkPlacer(6, 1, 3), new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3) ) .configure(TreeFeatureConfig.Builder::forceDirt) @@ -90,7 +90,7 @@ public interface UTreeGen { static Tree createAppleTree(String name, Block leaves, int preferredDensity) { return Tree.Builder.create(Unicopia.id(name + "_tree"), - new StraightTrunkPlacer(4, 6, 2), + new StraightTrunkPlacer(4, 3, 2), new BlobFoliagePlacer(ConstantIntProvider.create(3), ConstantIntProvider.create(0), 3) ) .configure(TreeFeatureConfig.Builder::forceDirt) From 8804fa0abafc9d1c2131e565ea8f40253de46e55 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 21:47:05 +0000 Subject: [PATCH 097/104] Added the spectral clock for tracking the zap apple tree's season and make the zap apple tree cyce faster --- assets/spectral_clock_0.xcf | Bin 0 -> 17993 bytes .../unicopia/client/URenderers.java | 1 + .../unicopia/client/UnicopiaClient.java | 15 +++ .../container/SpellbookChapterLoader.java | 2 +- .../minelittlepony/unicopia/item/UItems.java | 1 + .../unicopia/network/Channel.java | 8 +- .../unicopia/network/MsgZapAppleStage.java | 23 +++++ .../handler/ClientNetworkHandlerImpl.java | 7 +- .../server/world/ZapAppleStageStore.java | 90 +++++++++++++----- .../resources/assets/unicopia/lang/en_us.json | 2 + .../unicopia/models/item/spectral_clock.json | 29 ++++++ .../models/item/spectral_clock_1.json | 6 ++ .../models/item/spectral_clock_2.json | 6 ++ .../models/item/spectral_clock_3.json | 6 ++ .../item/spectral_clock_flowering_0.json | 6 ++ .../item/spectral_clock_flowering_1.json | 6 ++ .../item/spectral_clock_flowering_2.json | 6 ++ .../item/spectral_clock_flowering_3.json | 6 ++ .../item/spectral_clock_fruiting_0.json | 6 ++ .../item/spectral_clock_fruiting_1.json | 6 ++ .../item/spectral_clock_fruiting_2.json | 6 ++ .../item/spectral_clock_fruiting_3.json | 6 ++ .../item/spectral_clock_greening_0.json | 6 ++ .../item/spectral_clock_greening_1.json | 6 ++ .../item/spectral_clock_greening_2.json | 6 ++ .../item/spectral_clock_greening_3.json | 6 ++ .../models/item/spectral_clock_ripe_0.json | 6 ++ .../models/item/spectral_clock_ripe_1.json | 6 ++ .../models/item/spectral_clock_ripe_2.json | 6 ++ .../models/item/spectral_clock_ripe_3.json | 6 ++ .../textures/item/spectral_clock_0.png | Bin 0 -> 4695 bytes .../textures/item/spectral_clock_1.png | Bin 0 -> 4697 bytes .../textures/item/spectral_clock_2.png | Bin 0 -> 4703 bytes .../textures/item/spectral_clock_3.png | Bin 0 -> 4697 bytes .../textures/item/spectral_clock_3.xcf | Bin 0 -> 9850 bytes .../item/spectral_clock_flowering_0.png | Bin 0 -> 4711 bytes .../item/spectral_clock_flowering_1.png | Bin 0 -> 4737 bytes .../item/spectral_clock_flowering_2.png | Bin 0 -> 4717 bytes .../item/spectral_clock_flowering_3.png | Bin 0 -> 4716 bytes .../item/spectral_clock_fruiting_0.png | Bin 0 -> 4708 bytes .../item/spectral_clock_fruiting_1.png | Bin 0 -> 4710 bytes .../item/spectral_clock_fruiting_2.png | Bin 0 -> 4714 bytes .../item/spectral_clock_fruiting_3.png | Bin 0 -> 4720 bytes .../item/spectral_clock_greening_0.png | Bin 0 -> 4691 bytes .../item/spectral_clock_greening_1.png | Bin 0 -> 4719 bytes .../item/spectral_clock_greening_2.png | Bin 0 -> 4728 bytes .../item/spectral_clock_greening_3.png | Bin 0 -> 4720 bytes .../textures/item/spectral_clock_ripe_0.png | Bin 0 -> 4711 bytes .../textures/item/spectral_clock_ripe_1.png | Bin 0 -> 4709 bytes .../textures/item/spectral_clock_ripe_2.png | Bin 0 -> 4716 bytes .../textures/item/spectral_clock_ripe_3.png | Bin 0 -> 4686 bytes 51 files changed, 264 insertions(+), 28 deletions(-) create mode 100644 assets/spectral_clock_0.xcf create mode 100644 src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_3.json create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_0.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_1.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_2.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_3.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_3.xcf create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_0.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_1.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_2.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_3.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_0.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_1.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_2.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_3.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_0.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_1.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_2.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_3.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_0.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_1.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_2.png create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_3.png diff --git a/assets/spectral_clock_0.xcf b/assets/spectral_clock_0.xcf new file mode 100644 index 0000000000000000000000000000000000000000..5675c5b009949b593b62693167cb109f44927847 GIT binary patch literal 17993 zcmds8eQX@Zb>Gk1`=G1c^O_e`Eqzpcr!%dUsB9$b0@KP@0|zQlUz8wOfL3@BDT)d$ z65>U+il$+~LQo5wR9Yv&uBE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#Rsq0I@%0&OG! ZkXXxLtC>fKVcHSHepmo&nqPSx^WVkvBNG4s literal 0 HcmV?d00001 diff --git a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java index 0d4509bb..ab09e503 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/URenderers.java +++ b/src/main/java/com/minelittlepony/unicopia/client/URenderers.java @@ -116,6 +116,7 @@ public interface URenderers { PolearmRenderer.register(UItems.WOODEN_POLEARM, UItems.STONE_POLEARM, UItems.IRON_POLEARM, UItems.GOLDEN_POLEARM, UItems.DIAMOND_POLEARM, UItems.NETHERITE_POLEARM); ModelPredicateProviderRegistry.register(UItems.GEMSTONE, new Identifier("affinity"), (stack, world, entity, seed) -> EnchantableItem.isEnchanted(stack) ? EnchantableItem.getSpellKey(stack).getAffinity().getAlignment() : 0); ModelPredicateProviderRegistry.register(UItems.ROCK_CANDY, new Identifier("count"), (stack, world, entity, seed) -> stack.getCount() / (float)stack.getMaxCount()); + ModelPredicateProviderRegistry.register(Unicopia.id("zap_cycle"), (stack, world, entity, seed) -> UnicopiaClient.getInstance().getZapStageDelta()); ColorProviderRegistry.BLOCK.register(URenderers::getTintedBlockColor, TintedBlock.REGISTRY.stream().toArray(Block[]::new)); ColorProviderRegistry.ITEM.register((stack, i) -> getTintedBlockColor(Block.getBlockFromItem(stack.getItem()).getDefaultState(), null, null, i), TintedBlock.REGISTRY.stream().map(Block::asItem).filter(i -> i != Items.AIR).toArray(Item[]::new)); diff --git a/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java b/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java index 32b01a8e..9ea6a700 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java +++ b/src/main/java/com/minelittlepony/unicopia/client/UnicopiaClient.java @@ -22,6 +22,7 @@ import com.minelittlepony.unicopia.entity.player.PlayerCamera; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.network.handler.ClientNetworkHandlerImpl; import com.minelittlepony.unicopia.server.world.WeatherConditions; +import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; import com.minelittlepony.unicopia.util.Lerp; import net.fabricmc.api.ClientModInitializer; @@ -53,6 +54,9 @@ public class UnicopiaClient implements ClientModInitializer { public final Lerp tangentalSkyAngle = new Lerp(0, true); public final Lerp skyAngle = new Lerp(0, true); + private ZapAppleStageStore.Stage zapAppleStage = ZapAppleStageStore.Stage.HIBERNATING; + private long zapStageTime; + public static Optional getCamera() { PlayerEntity player = MinecraftClient.getInstance().player; @@ -84,6 +88,15 @@ public class UnicopiaClient implements ClientModInitializer { instance = this; } + public void setZapAppleStage(ZapAppleStageStore.Stage stage, long delta) { + zapAppleStage = stage; + zapStageTime = delta; + } + + public float getZapStageDelta() { + return zapAppleStage.getCycleProgress(zapStageTime); + } + public float getSkyAngleDelta(float tickDelta) { if (MinecraftClient.getInstance().world == null) { return 0; @@ -135,6 +148,8 @@ public class UnicopiaClient implements ClientModInitializer { world.setRainGradient(gradient); world.setThunderGradient(gradient); } + + zapStageTime++; } private Float getTargetRainGradient(ClientWorld world, BlockPos pos, float tickDelta) { diff --git a/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java b/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java index 15e0dd3a..d7c7b5dc 100644 --- a/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java +++ b/src/main/java/com/minelittlepony/unicopia/container/SpellbookChapterLoader.java @@ -56,7 +56,7 @@ public class SpellbookChapterLoader extends JsonDataLoader implements Identifiab dirty = false; MsgServerResources msg = new MsgServerResources(); server.getWorlds().forEach(world -> { - Channel.SERVER_RESOURCES_SEND.sendToAllPlayers(msg, world); + Channel.SERVER_RESOURCES.sendToAllPlayers(msg, world); }); } } diff --git a/src/main/java/com/minelittlepony/unicopia/item/UItems.java b/src/main/java/com/minelittlepony/unicopia/item/UItems.java index 3aa1e5ea..cf71cf2a 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/UItems.java +++ b/src/main/java/com/minelittlepony/unicopia/item/UItems.java @@ -164,6 +164,7 @@ public interface UItems { Item PALM_BASKET = register("palm_basket", new BasketItem(AirBalloonEntity.BasketType.of(UWoodTypes.PALM_BOAT_TYPE), new Item.Settings().maxCount(1)), ItemGroups.TOOLS); Item GIANT_BALLOON = register("giant_balloon", new HotAirBalloonItem(new Item.Settings().maxCount(1)), ItemGroups.TOOLS); + Item SPECTRAL_CLOCK = register("spectral_clock", new Item(new Item.Settings()), ItemGroups.TOOLS); Item LIGHT_GRAY_BED_SHEETS = register(CloudBedBlock.SheetPattern.LIGHT_GRAY); Item GRAY_BED_SHEETS = register(CloudBedBlock.SheetPattern.GRAY); diff --git a/src/main/java/com/minelittlepony/unicopia/network/Channel.java b/src/main/java/com/minelittlepony/unicopia/network/Channel.java index 48592fa2..67f56df1 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/Channel.java +++ b/src/main/java/com/minelittlepony/unicopia/network/Channel.java @@ -3,6 +3,7 @@ package com.minelittlepony.unicopia.network; import com.minelittlepony.unicopia.*; import com.minelittlepony.unicopia.entity.player.Pony; import com.minelittlepony.unicopia.server.world.UnicopiaWorldProperties; +import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; import com.sollace.fabwork.api.packets.*; import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents; @@ -29,11 +30,12 @@ public interface Channel { S2CPacketType> SERVER_SPELLBOOK_UPDATE = SimpleNetworking.serverToClient(Unicopia.id("server_spellbook_update"), MsgSpellbookStateChanged::new); C2SPacketType> CLIENT_SPELLBOOK_UPDATE = SimpleNetworking.clientToServer(Unicopia.id("client_spellbook_update"), MsgSpellbookStateChanged::new); - S2CPacketType SERVER_RESOURCES_SEND = SimpleNetworking.serverToClient(Unicopia.id("resources_send"), MsgServerResources::new); + S2CPacketType SERVER_RESOURCES = SimpleNetworking.serverToClient(Unicopia.id("resources"), MsgServerResources::new); S2CPacketType SERVER_OTHER_PLAYER_CAPABILITIES = SimpleNetworking.serverToClient(Unicopia.id("other_player_capabilities"), MsgOtherPlayerCapabilities::new); S2CPacketType SERVER_PLAYER_ANIMATION_CHANGE = SimpleNetworking.serverToClient(Unicopia.id("other_player_animation_change"), MsgPlayerAnimationChange::new); S2CPacketType SERVER_SKY_ANGLE = SimpleNetworking.serverToClient(Unicopia.id("sky_angle"), MsgSkyAngle::new); + S2CPacketType SERVER_ZAP_STAGE = SimpleNetworking.serverToClient(Unicopia.id("zap_stage"), MsgZapAppleStage::new); static void bootstrap() { ServerPlayConnectionEvents.JOIN.register((handler, sender, server) -> { @@ -50,8 +52,10 @@ public interface Channel { Unicopia.LOGGER.info("Setting {}'s race to {} due to host setting", handler.player.getDisplayName().getString(), Race.REGISTRY.getId(race).toString()); } } - sender.sendPacket(SERVER_RESOURCES_SEND.id(), new MsgServerResources().toBuffer()); + sender.sendPacket(SERVER_RESOURCES.id(), new MsgServerResources().toBuffer()); sender.sendPacket(SERVER_SKY_ANGLE.id(), new MsgSkyAngle(UnicopiaWorldProperties.forWorld(handler.getPlayer().getServerWorld()).getTangentalSkyAngle()).toBuffer()); + ZapAppleStageStore store = ZapAppleStageStore.get(handler.player.getServerWorld()); + sender.sendPacket(SERVER_ZAP_STAGE.id(), new MsgZapAppleStage(store.getStage(), store.getStageDelta()).toBuffer()); }); } } diff --git a/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java b/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java new file mode 100644 index 00000000..10bad6c1 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java @@ -0,0 +1,23 @@ +package com.minelittlepony.unicopia.network; + +import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; +import com.sollace.fabwork.api.packets.Packet; + +import net.minecraft.entity.player.PlayerEntity; +import net.minecraft.network.PacketByteBuf; + +public record MsgZapAppleStage ( + ZapAppleStageStore.Stage stage, + long delta + ) implements Packet { + + public MsgZapAppleStage(PacketByteBuf buffer) { + this(buffer.readEnumConstant(ZapAppleStageStore.Stage.class), buffer.readLong()); + } + + @Override + public void toBuffer(PacketByteBuf buffer) { + buffer.writeEnumConstant(stage); + buffer.writeLong(delta); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/network/handler/ClientNetworkHandlerImpl.java b/src/main/java/com/minelittlepony/unicopia/network/handler/ClientNetworkHandlerImpl.java index d2dd56cd..6082dca9 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/handler/ClientNetworkHandlerImpl.java +++ b/src/main/java/com/minelittlepony/unicopia/network/handler/ClientNetworkHandlerImpl.java @@ -36,8 +36,9 @@ public class ClientNetworkHandlerImpl { Channel.SERVER_BLOCK_DESTRUCTION.receiver().addPersistentListener(this::handleBlockDestruction); Channel.CANCEL_PLAYER_ABILITY.receiver().addPersistentListener(this::handleCancelAbility); Channel.UNLOCK_TRAITS.receiver().addPersistentListener(this::handleUnlockTraits); - Channel.SERVER_RESOURCES_SEND.receiver().addPersistentListener(this::handleServerResources); + Channel.SERVER_RESOURCES.receiver().addPersistentListener(this::handleServerResources); Channel.SERVER_SKY_ANGLE.receiver().addPersistentListener(this::handleSkyAngle); + Channel.SERVER_ZAP_STAGE.receiver().addPersistentListener(this::handleZapStage); Channel.SERVER_PLAYER_ANIMATION_CHANGE.receiver().addPersistentListener(this::handlePlayerAnimation); Channel.SERVER_REQUEST_PLAYER_LOOK.receiver().addPersistentListener(this::handleCasterLookRequest); } @@ -93,6 +94,10 @@ public class ClientNetworkHandlerImpl { UnicopiaClient.getInstance().tangentalSkyAngle.update(packet.tangentalSkyAngle(), 200); } + private void handleZapStage(PlayerEntity sender, MsgZapAppleStage packet) { + UnicopiaClient.getInstance().setZapAppleStage(packet.stage(), packet.delta()); + } + @SuppressWarnings("unchecked") private void handleServerResources(PlayerEntity sender, MsgServerResources packet) { SpellTraits.load(packet.traits()); diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java index bb936372..cb27244f 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/ZapAppleStageStore.java @@ -5,6 +5,8 @@ import java.util.stream.StreamSupport; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.Unicopia; +import com.minelittlepony.unicopia.network.Channel; +import com.minelittlepony.unicopia.network.MsgZapAppleStage; import com.minelittlepony.unicopia.particle.LightningBoltParticleEffect; import com.minelittlepony.unicopia.particle.ParticleUtils; import com.minelittlepony.unicopia.util.Tickable; @@ -20,10 +22,13 @@ import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; import net.minecraft.world.PersistentState; import net.minecraft.world.World; +import net.minecraft.world.dimension.DimensionType; import net.minecraft.world.event.GameEvent; public class ZapAppleStageStore extends PersistentState implements Tickable { private static final Identifier ID = Unicopia.id("zap_apple_stage"); + static final long DAY_LENGTH = World.field_30969; + static final long MOON_PHASES = DimensionType.MOON_SIZES.length; public static ZapAppleStageStore get(World world) { return WorldOverlay.getPersistableStorage(world, ID, ZapAppleStageStore::new, ZapAppleStageStore::new); @@ -32,7 +37,9 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { private final World world; private Stage lastStage = Stage.HIBERNATING; - private int countdown; + private long stageDelta; + private long lastTime; + private boolean stageChanged; private boolean playedMoonEffect; private int nextLightningEvent = 1200; @@ -40,8 +47,8 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { ZapAppleStageStore(World world, NbtCompound compound) { this(world); lastStage = Stage.VALUES[Math.max(0, compound.getInt("stage")) % Stage.VALUES.length]; + stageDelta = compound.getLong("stageDelta"); stageChanged = compound.getBoolean("stageChanged"); - countdown = compound.getInt("countdown"); playedMoonEffect = compound.getBoolean("playedMoonEffect"); nextLightningEvent = compound.getInt("nextLightningEvent"); } @@ -55,32 +62,38 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { if (!world.isDay()) { if (nextLightningEvent > 0) { nextLightningEvent--; - markDirty(); } if (!stageChanged && (lastStage != Stage.HIBERNATING || (world.getMoonPhase() == 0))) { stageChanged = true; - if (countDay()) { - lastStage = lastStage.getNext(); - countdown = 1; - playedMoonEffect = false; - markDirty(); - onStageChanged(); - } + lastStage = lastStage.getNext(); + stageDelta = 0; + playedMoonEffect = false; + sendUpdate(); } } else if (stageChanged) { stageChanged = false; - markDirty(); } - } - private boolean countDay() { + long timeOfDay = world.getTimeOfDay(); + if (stageDelta != 0 && (timeOfDay < lastTime || timeOfDay > lastTime + 10)) { + long timeDifference = timeOfDay - lastTime; + Unicopia.LOGGER.info("Times a changing {}!", timeDifference); + while (timeDifference < 0) { + timeDifference += DAY_LENGTH; + } + stageDelta += timeDifference; + sendUpdate(); + } + lastTime = timeOfDay; + + + stageDelta++; markDirty(); - return countdown-- <= 0; } - protected void onStageChanged() { - //world.setRainGradient(0.5F); + protected void sendUpdate() { + Channel.SERVER_ZAP_STAGE.sendToAllPlayers(new MsgZapAppleStage(getStage(), stageDelta), world); } public void playMoonEffect(BlockPos pos) { @@ -112,7 +125,6 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { /** * Returns true during nights that the zap apples must change their states. - * @return */ public boolean hasStageChanged() { return stageChanged; @@ -125,30 +137,60 @@ public class ZapAppleStageStore extends PersistentState implements Tickable { return lastStage; } + public long getStageDelta() { + return stageDelta; + } + + public float getStageProgress() { + return getStage().getStageProgress(getStageDelta()); + } + + public float getCycleProgress() { + return getStage().getCycleProgress(getStageDelta()); + } + @Override public NbtCompound writeNbt(NbtCompound compound) { compound.putInt("stage", lastStage.ordinal()); + compound.putLong("stageDelta", stageDelta); compound.putBoolean("stageChanged", stageChanged); - compound.putInt("countdown", countdown); compound.putBoolean("playedMoonEffect", playedMoonEffect); compound.putInt("nextLightningEvent", nextLightningEvent); return compound; } public enum Stage implements StringIdentifiable { - HIBERNATING, - GREENING, - FLOWERING, - FRUITING, - RIPE; + HIBERNATING(MOON_PHASES * DAY_LENGTH), + GREENING(DAY_LENGTH), + FLOWERING(DAY_LENGTH), + FRUITING(DAY_LENGTH), + RIPE(DAY_LENGTH); - static final long DAY_LENGTH = 24000; static final Stage[] VALUES = values(); + private final long duration; + + Stage(long duration) { + this.duration = duration; + } + public Stage getNext() { return byId((ordinal() + 1) % VALUES.length); } + public Stage getPrevious() { + return byId(((ordinal() - 1) + VALUES.length) % VALUES.length); + } + + public float getStageProgress(long time) { + return (time % duration) / (float)duration; + } + + public float getCycleProgress(long time) { + float ordinal = ordinal(); + return MathHelper.lerp(getStageProgress(time), ordinal, ordinal + 1) / 5F; + } + public static Stage byId(int id) { return VALUES[MathHelper.clamp(id, 0, VALUES.length)]; } diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 348b9423..a607365d 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -44,6 +44,8 @@ "item.unicopia.palm_chest_boat": "Palm Boat with Chest", "item.unicopia.spellbook": "Spellbook", + "item.unicopia.spectral_clock": "Spectral Clock", + "emi.category.unicopia.spellbook": "Spellbook", "emi.category.unicopia.cloud_shaping": "Shaping", "emi.category.unicopia.growing": "Growing", diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock.json b/src/main/resources/assets/unicopia/models/item/spectral_clock.json new file mode 100644 index 00000000..7e95d97d --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock.json @@ -0,0 +1,29 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_0" + }, + "overrides": [ + { "predicate": { "unicopia:zap_cycle": 0.00}, "model": "unicopia:item/spectral_clock" }, + { "predicate": { "unicopia:zap_cycle": 0.05}, "model": "unicopia:item/spectral_clock_1" }, + { "predicate": { "unicopia:zap_cycle": 0.10}, "model": "unicopia:item/spectral_clock_2" }, + { "predicate": { "unicopia:zap_cycle": 0.15}, "model": "unicopia:item/spectral_clock_3" }, + { "predicate": { "unicopia:zap_cycle": 0.20}, "model": "unicopia:item/spectral_clock_greening_0" }, + { "predicate": { "unicopia:zap_cycle": 0.25}, "model": "unicopia:item/spectral_clock_greening_1" }, + { "predicate": { "unicopia:zap_cycle": 0.30}, "model": "unicopia:item/spectral_clock_greening_2" }, + { "predicate": { "unicopia:zap_cycle": 0.35}, "model": "unicopia:item/spectral_clock_greening_3" }, + { "predicate": { "unicopia:zap_cycle": 0.40}, "model": "unicopia:item/spectral_clock_flowering_0" }, + { "predicate": { "unicopia:zap_cycle": 0.45}, "model": "unicopia:item/spectral_clock_flowering_1" }, + { "predicate": { "unicopia:zap_cycle": 0.50}, "model": "unicopia:item/spectral_clock_flowering_2" }, + { "predicate": { "unicopia:zap_cycle": 0.55}, "model": "unicopia:item/spectral_clock_flowering_3" }, + { "predicate": { "unicopia:zap_cycle": 0.60}, "model": "unicopia:item/spectral_clock_fruiting_0" }, + { "predicate": { "unicopia:zap_cycle": 0.65}, "model": "unicopia:item/spectral_clock_fruiting_1" }, + { "predicate": { "unicopia:zap_cycle": 0.70}, "model": "unicopia:item/spectral_clock_fruiting_2" }, + { "predicate": { "unicopia:zap_cycle": 0.75}, "model": "unicopia:item/spectral_clock_fruiting_3" }, + { "predicate": { "unicopia:zap_cycle": 0.80}, "model": "unicopia:item/spectral_clock_ripe_0" }, + { "predicate": { "unicopia:zap_cycle": 0.85}, "model": "unicopia:item/spectral_clock_ripe_1" }, + { "predicate": { "unicopia:zap_cycle": 0.90}, "model": "unicopia:item/spectral_clock_ripe_2" }, + { "predicate": { "unicopia:zap_cycle": 0.95}, "model": "unicopia:item/spectral_clock_ripe_3" }, + { "predicate": { "unicopia:zap_cycle": 1.00}, "model": "unicopia:item/spectral_clock" } + ] +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_1.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_1.json new file mode 100644 index 00000000..400741ed --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_1.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_1" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_2.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_2.json new file mode 100644 index 00000000..787a4b8c --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_2.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_2" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_3.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_3.json new file mode 100644 index 00000000..8913008e --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_3.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_3" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_0.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_0.json new file mode 100644 index 00000000..59db2a20 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_0.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_flowering_0" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_1.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_1.json new file mode 100644 index 00000000..cfa05c39 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_1.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_flowering_1" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_2.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_2.json new file mode 100644 index 00000000..90307acf --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_2.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_flowering_2" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_3.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_3.json new file mode 100644 index 00000000..110a9d8f --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_3.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_flowering_3" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_0.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_0.json new file mode 100644 index 00000000..c076b00b --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_0.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_fruiting_0" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_1.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_1.json new file mode 100644 index 00000000..8a9faa82 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_1.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_fruiting_1" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_2.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_2.json new file mode 100644 index 00000000..cae50ca0 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_2.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_fruiting_2" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_3.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_3.json new file mode 100644 index 00000000..d2a97210 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_3.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_fruiting_3" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_0.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_0.json new file mode 100644 index 00000000..8f4d3428 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_0.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_greening_0" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_1.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_1.json new file mode 100644 index 00000000..3633579d --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_1.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_greening_1" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_2.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_2.json new file mode 100644 index 00000000..d36dd4a4 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_2.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_greening_2" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_3.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_3.json new file mode 100644 index 00000000..03151fdb --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_greening_3.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_greening_3" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_0.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_0.json new file mode 100644 index 00000000..f8322a56 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_0.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_ripe_0" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_1.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_1.json new file mode 100644 index 00000000..43b85fd6 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_1.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_ripe_1" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_2.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_2.json new file mode 100644 index 00000000..7bd07507 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_2.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_ripe_2" + } +} diff --git a/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_3.json b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_3.json new file mode 100644 index 00000000..60a8cfd9 --- /dev/null +++ b/src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_3.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "unicopia:item/spectral_clock_ripe_3" + } +} diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_0.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_0.png new file mode 100644 index 0000000000000000000000000000000000000000..8591477bcbc653f06f96a49337929768d2bafec3 GIT binary patch literal 4695 zcmeHKdsGuw8lMDE#8O=m>tkDDL{V`vlgV>pf;vL_zwOZODt5~gicCE#B*SbCs_0)U|ozXKTarhIHAMk5<;#c)H;G;NN!+(3y zd;MX|xg$S4Xe?OSuowU4&W3;rXJs=JfA&_!*A3BufkTf6p8~c~Tv>UctKe!H_K$^| z?9ZNd&MR2lXpN1HEK!^|T&yXws~xM`Vsh4OWwv%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LphzK3z|}KEiVT?7;{(MD)IxcGG3?chFFU{Er}r#=#}xqe@FK6I z@336Ma=nrQuLK^>u3@=eNr6`a4`lEbxe+A`(mnGL!@t?qpmJgmfI}yCz z2SKB%>r>YQkH0e|n}wheuklR;Rn?3EPG8PsPV&9$Aqolin&nS}e;tUPniAtI+As3T z=jOZ?7rg!xb79x2O0VXfOKT&WLM=+)4d%e4k__=5y#sHqExozPJvD3Ly!eK~j!T83 zO5XQv$lACLZ%k|sdc85hGaDYOu1+pLP?^czwHnWjKlbgDrpE9)&wgpG{_B*FQqTD~ z#$5Sj{f5yQF^exak_&SEpa#niGcV=%mM^-p*OvDE*5~Qly&ZMmL561!FNAaNO$#}& zFc_ckK}7hTZw>#}-*~#{q3_nc)2IUr&-$0{&2HcNJWD&Sz4dUap~zWjTp5_%vTgPW zT_|_FOBHDtdHj??T~amU!zG8WH{UYfxSrNowj}t|?lWc09s6o6-4Sh(w?~H8kGvdn zBKfT)p#^PGVW#p!<98kn==!I*_)6OwhhE$~cjIK!=`R-FJ(afL>)N`i07plAJQcEf z!=_r*OsU)vsYuyvW1nm-@q>$)((1a}OT`x(;zl3jmOR)6-P?V8`=RQ=@;>$J6c{3!8V#2bl;>zUXzCiiSejH)cio?Md6U-*w>d(+QojtJQ@g SHn)JJfJ{kgiAUm>7XKIX`+r9O literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_2.png new file mode 100644 index 0000000000000000000000000000000000000000..b6ca8164b525b02dc92a1d5222619dd437c1b17b GIT binary patch literal 4703 zcmeHKdsGuw8lM2l!}=_^AZv}$Jr-p$lgWc*BuF4ZQVnGV5nb&%nYoE0NhVGP2zDum zTJTwX;T}ZAU0-F3wz@}JU8}BdS6dXNcDLeV&sM1vb*;~%>)x60^0epd@to~{B)PfY zeE0i)_q)IQ-7mRIGBYOjj~Et#AV_~}x_Juh2Z=4LFZ>>H{{;oRMv!ZDSg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ZIjq273`T?m2~cEuk`!VDY!FJ6a>Ss=6si!Zl7k{}G={dCFtDAJ2{V#n zi`mExu!N(LiCVP)5y4}c#4L<400*@oo-*gy#|Dxq6Pd(dESnMq9HK-JrA!K*3JEf1 zltNlA_miC@YCEv^ANgv($posyjNY1ILNL7)*mP zBmf<)!^tCcI2eXecqn`pPDc}zA^(3_vxkQt2JFF>$5J*he?F%gI#Eev_R!nVYZk>F zB|e`!6exxdEy0H6k^~ngz#1CDGcdD}1l40WT}SlPPox5_$6-Phf(RuBkN`3qmkU*x zf)FB@Uapj>3{t&eX#YmhZM1>O!>nYa5%37O0_n;9Lh%E+jha6(mb?s--336H5F`mK z86iwMOqh6h!D6;%jI20J{9l}eaR%dx4DcJ$f#L;fp?I_y4s!SB{t0lL2pfG8xN|f^##hQj8+#twa0!a&6ulEsf0zbt*+rI*i;e=XDp>y3uU z+LnRTR8tCeBCRw-*19{ht|UWNa?Ri)UUjGS@};7IL0QnN+&ZYIz1ZyY9CC?|{?6xS zacj5H*W$5S_3>5Dil-0zWb5i>?kk-S3H+ziha*s=-}&+N?1aBJYyW&c zewD9d`khRzV?^!F7Y%`z-aS)9ZClfl;6L->$3Z&l@5+5!t3GspUJ}=LyrS{;(=X#U z)NQXf|7!WvIsZ^yD1QHQzg6FTbtKXU)ji?=)1-q>KjF~_6e#>v~3eL=d8_R?n`RL@%S zE&Y7clX(Fy)7<^`p>c$CdCv5`j=Y|A=sHb^W4h;aC#D!$-gN!2q2TV1&dcU~AJ`K) S?L&|hkT!aWreRTf(SHD#oqQ?) literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_3.xcf b/src/main/resources/assets/unicopia/textures/item/spectral_clock_3.xcf new file mode 100644 index 0000000000000000000000000000000000000000..93e0c89a057b9e027becf956b6e5839f51988e7d GIT binary patch literal 9850 zcmds63s4kSx<1{_L*z9xjwDedsGtyS6k0U1S7c)%A&E&CjgK(|f(#6p;Sm@GtIQ7W zAQehRoj6irF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V-DZM)Et%vQY83H52{oiNMSM( zljDFLLiKYMO#?#iZk<;A299 z7rJWSH!A-#|40hbR3>9`xh$dn7L}8m#_2;-a);b5`R1i?DtV9Q<7oZyGptrcM)MGn zGN%}4ODGMUvVD_G^ecY`LtR zVn4Iz*S|mg()vAA+4067zWidqX5aG~um?vvuKnrDkMPJIiaq$r-jkQF9AoX`9$*jJ z+Yfbw;~Cf4!2`$kA~FK@;28EesZMxrn!aB)BBk#U#3YY|iN5_J&21ixL?wf`1yPAXm literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_0.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_0.png new file mode 100644 index 0000000000000000000000000000000000000000..31063a116b45d3028765c23d6b2460c51ea90973 GIT binary patch literal 4711 zcmeHKdsGu=7M}nL#9}D|DtL4VdXVa5CNDA>2?~Tq)M%8*!(Ce^Gm|iqm&rf^E{Z7i zL1lelrHFQIb!G90hwAZB+^*L8XnjFlU3*+X-MWIhN>{sU>$2=O!$a)$oIRei{g32) ze0T15@9(?!_ucQ3S!bM+5h9KfLl6|A&(zHab0|N8hJ(Kop7fAlYGHEq7QOyWCpp{|OSlnLy%^`{xY3!3fKxGEAyS0REU0= zTtUQoW6U4L`-z(4PhYQ9PK=jUl^2{m`N8RiRh0)DM>dwj&;0K^ytTVSGO2A__`=V9 zx4%ug)O@e2t+cGA9=mvdy??D^dncW8;jh`JTc!jAgq{pK!&t_8HdmKBOK)bOR~Nl& z{r;cbd8JF*%rj<8tWumhv`)R&nqXh`Bx&jDt@PGsb-vGbj|iLYUi9s=4W3qJr8WJ+ z?2?^$%GAhdxt)u%<*GaEo%)8(YLwPyYn)53y{WqPN!$t&KX72GXU8>cbMEJ16W1Dz zsbeFquWfDIVvaG~3!c!k@xiupdp7QSExl@(X;*Sl_pKFO%MNFgOTL;Vjw^dK`t0{( zhNU#mIQR%}KU;MrQB;2U#MZWdozpmx!?bZIn9V^>ZPRD*vT@p05cESD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=Ezf*6zLh_}A+eN#u94ZanB( zQ}adr<>S#~#79N>)%WY88lu+CzS(u*i&5i>LSpttn3IE{_SiW8qUZItY$Rk(UU%Ri z8ruEV-&^sk?hQ+hr6)yYJYAOe{)(AXCzJC-9J}Tbp>MCf$hIaytLv# zYvRF+-CO_E(_po|RWj!zQ(V{AXPZuzKK$FwQ+JyVVmBvc&df_G-~M%{=a82Ms_sS%v)jiH$HFLvntT`Jnzf!qdQ7Y-8mC?rAp!3)-y5~`QRyj=t#_Kt&^{U z#Y5jUcKE&osohVz7k{ZTgVS}?cSh;VP)^t^I?^Zyl!kk{PMq|i(?C}KOapr Vx16&z&*V!4(x=VQHKr^s{|`P`fA|0Z literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_1.png new file mode 100644 index 0000000000000000000000000000000000000000..a69d288d0a186282cbbbed2478ada369e05eeb0d GIT binary patch literal 4737 zcmeHKdr%YC8sG3XR^?J3C|+GsTT$6$vw5&t2!bIKp)DtkRb4PeCI0?bZ40?ok^#g426IPfD{Bk z0v-dJpr7q0@Q3`t*fP+`e?q+96kzepJ^gf@-T-4_DJqsJfj^4L2^1qxDU3-83@7ArfEN6tFCw0) zV%aZW0hVG`qcP|-8rb2qn^+42L7v)zHR_bZhT$der*9OE2#zhq1HNv&qScPg8L`q3 zc~Q8H`21gwhgHibOcJkNnse~r`lEG4pX{g~TE7&2=HJ$FW5XTMyDe42|9Zr8^HKci zy|*8>6f8Nr89jA(rGK@prk$R4@~6zBXQu=NgdPlOW=x}9<&{hA1=rIhm*$k2pFe#$ zyI_8cF(F~XYT4nPD`HB`N^4PP{DR`O^x9{&ol{;PPChwv;TQO{ z=#jBm?ej7*MH}0;xvsrZLaQ@X_63(GD=s%qTukB(4biT3m(lX9BViLt4F=8V5m!pj z)mIoJ^|uF&fA!hDsvkCfw&ktl)qxpbCc0nVSp0C&?o4w2`5D5AOYV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z=&lzF%g@OZALJ5cKRZ_yH8}!mS~a&KzvWD0I&M8*!@7mB5I1!&95QXAf7dR-{<1h` zk?imjQ_zpQqSaLgwqJX^{7l;FPunt2#bn}}@13DK7iH~_J>6gt-g_EQvTAH|%eXNT zcjWC(ZasJLr+JgZny2gu-*f)xO8<@z$8FswtS#H5!()e6O*~yuwrN+f9f;KNv1lE;6D~HccDN!tX<==JloYSpN9s!aE(rHtZ>Zi?H`d^)a BlllMv literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_2.png new file mode 100644 index 0000000000000000000000000000000000000000..698a20a7772c5c463dfd06eea3380db7e3b12773 GIT binary patch literal 4717 zcmeHKdr(tX8c%qLP+vt<@KIxQ>+>czHwk%20C`7^WP~Eps@%s(xIl74a)E$i5fmRN zqkvkGqOH%O!dM+T#TUNa)kU{4h?>A<)^TPAc742FFm)LNw+qJ=xVSHv;> z?AufYSys}ap+s-sM+aFRPSMJB1ZEhlz2R@-BUMf91ncDW!|kFljfZDR0(J{uEbNSI=;KeiJQ@Kj%GZjnNqDH==RP zwW<vOy&=eCZz*yigVaxC~r ztGfAO(RTsDysLGan|@g^rtb0Nhc9YI>Reubv!d{)n!S&OTW8kYDVebS>*?;a=PH+{ z%OjdgT?bfKG$|SDAxC+jz_0A1M+4Mqw+rh^PqaR7t*HO@%@5y|H4ojOv>y)No*l8y!aW`rX)%Lb(LfrCl6lOQ|;SlNj^DJZfl-j;4p<+nqT zQjiKP5bA)l%6d)7-MFp@P69J+vGGw*>|RKgHg${DYi-;Jznz{7f#F@ez0jR|=fMzV zFlfUVGM!tVK1?U(=GRgTNmE+hG*N1kO0HBQYNZTC6cmsnII2Mrl^j+1qZ&f3An+bk zdaHxQtt8;6Ai0EwJOogxa018>4Uhpu0VotvV}ug%SIAXBEh9(*m-V2Cw$m^x@zkEH z;;1M{g;InH$K@tOp;G%pDiw-oNJ4=S8h=cw@Hd%AIm%N}q&9-FTX1-sv;{WEtY zTzyiYPvHLS>X)le3iJuwpI!eqxxBhxr+^jy7nBKKmaYzMy8>Ud1`u;1!{F<^w_w=z znmMbX$I}+I&>;}KH=JuiL0P#kbb7FQL%7ES7vYGp%EepWRSN_zUiz?EvFgj|#Y>Xr zr}X*Z}NlMDU-usQmx1*~6I_}kJ&A;nkI)=22b&ZU__xj*1zo53` z)Pv3Dz}dcK&s`g4_-_P$!L9BXTWBtjrezQtZzWXh@u0ulmDY6ob5KWNk=tBJvpTlN+^nodfBiv_vSor$FnXBr*9X(vT$*7Fj zlbuu_ZAFF#x1Ps}5(T;W_l3nL{Zq!FS2OI9#n>mg!hIXUrX9HO zVeYNvKhoLzyiYcGr+xCi%*%8y;n z;NO#*3)E3Z8WVM!E$=e7-7h`y%llc^bGD5sdY+K9`uz3cghd`kk-#fTc<#D)Zp5wO k4TD{hu89{GXWxJ8;jyxDYMYzc2@^%251$uS6_S|uA81C3%m4rY literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_3.png new file mode 100644 index 0000000000000000000000000000000000000000..de3e77a6a137fbde685cd9052fecf64334c742b0 GIT binary patch literal 4716 zcmeHKdsGu=7N772!J-1IqBg{LWs;d8Zxa+DKnl?aNU_zflX-*@G6|Ug(G?%m2U?4Y zSht8)TOWW&skKW_QBkx$w(BbD7VB{VwXJW_F7<)O$9^+Bgx#LA$8)y-k(`h3&i(HF zefR#p`&}|C%~KPC0)_@a5ENugj7tG?FhBf!z~499UgBVCpfZfK(fAhR2OfZ>$O{tj zHeiT)$Q~k3$P?(6gE0`uybV8wioAt+HITzQ$LFzGAivTTVF-QBcaQW zUjQgenb=sfF*a80aN21mn}Q&BdBHk;;xTi`vT3P1B%!_&i_~6~wLcgP!?HqGnIrxY zut)pngTKB}CLc9kT3nb_U;pXxst-QgzqkM1Lh%#NYj>|~zbP5ryfN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dSH?Qoe{rG{40<#f;Mbu8%?tEGS$8w+uVvg<_0$#mNQ7rfsln-8(vX)0wf)_0xOHx7{c)cG8 z1#hZJS^+fvj>MT91oa!l4-r&WJ{Tx{T}G3^_ojy^bhwDtXy1b%4}W7^Oq%*{xh2yw zOYmVQCskKR6&+2C`M7bb*%|p+*lN5!Jve2=sO?EH!}G@J(l%z!`66OK%t>~Lm*OUN z6FJd;-4}tX$faR3-#)hT%=_nmCKsK)_wb&$uCh9MS4*3&<^GMw1uy(uL+Ux=?Y3uE zSFCL??z&G0K52qZrFa{rL#0#2+nN@%{p6o*-9wJl988UXn%@uq{32^n%=oGO>yY}# zXT5^9URrSd(e^QOXEaBQ2+S1M($n`}5)Va+eCmc?Y>##>4SGo}AG5`AioMpfvEueQ zMXm2M_RDp{woH=-ezv4))@W8r)Xn$4ysYi6CY!j|X!uv9q;1K8z)ilProx6pUQpey z6}4kV=oZ)Q@|_-X>FMaJn*$>J3Lk}%l~Z2+7+%_MQ|TYiqOA)JFE`uDZw+hQG45z_ z@_5~vAmXt#`Gvc_HA!D{C;El?$S2Z>q|gBS&H=%LGgQ}x4?gcf56bZfQ~g*spycqH zdQZnr?o`UM1y!e75~h7$+Mc$LD_j$0oHfF?`1q%}IqS!T|Ftr=x+zZnar>eK=+d5N zq~$O2oP+eX`(JrCMeD!2E``FgE?4CoW@P>L1wOv9b7fd`zp{yb)se@N59Q4p_V6&i zPm&ZGX8Gjl!poWM-yORi^K(gC$mazK?`<>rZkfGmcavhVkJnaFKy~Eq_^rqPIiR7x iN5ynvU-12k=f3WB7iXzv4Y~^I1Tq??#_gRlr|{oCqJ`c7 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_0.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_0.png new file mode 100644 index 0000000000000000000000000000000000000000..9be87cb47b1c52f58b0ddcb53d2e17a91d71a2ac GIT binary patch literal 4708 zcmeHKdsGuw8lUhK)S`e7)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dJKvO+$3sC=!#3n7 bK6wt!t+)ae#B|*S5dxV_Gm{P_EG+ylj}?sd literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_2.png new file mode 100644 index 0000000000000000000000000000000000000000..78c13d32b2cf77fc9678a805eea15666afc141d8 GIT binary patch literal 4714 zcmeHKdsGuw8lUinu0mOK>w8GuRn%l2nIw~#@Q{b35{$qi_V{2jnTZ4BVJ0yF7au5! zXb}}fkydTdDsFvCtN2{8)>f_5*6Qwx)}A9iQI{66r`Ej_p6>RXJ)X1ukK|nLH~0ST z?|%39efJ}?+>ko4U&!DP2!i_Qk`vNEA11V*0PuH2>kA5WmzXRatJ95vg1`eniu@pv zfB{X^%k~lZLcU;ZDQMxq7BE5^Eb{mED}g`mw5%xi)Tzy9Y8S6Ku)F{6BDmf6)`Ochcf@~es*HHM!Smgd=!^Bu zkDCe?UfO|PxL4|1W!-ewG~xX1%rlq9`uT;O3i^~`2k~nvifo0~(~)mxtTaD+`g~ep zPLnY5IR4!$=$fpC@R213L;RotS4$dq zuQf*Mn}bKZD8FC%*|zdsze_6f&)6C__xa5QkLT58QaN8u3K_Mq`Po7>;gIH z;WDzES^5+;ZL>%zlg-FTJr=tVFh~>Qu~T#|x(IFa-8W30*Ck1;fc~)NS(TcsiYG4b)h#2-loVi+Y7RaM` zn}dM~DIrBAi5_k)E{+a?H4YQ2PD@DYqySG^@ocBlu0{~I+bwm=q&9~c!Bi?0g5n5{ zO8`Q`=UbhWM`GpQ6ev145*VI#aCRqWv%&%=Wwg1RTCo_+!(IMa?0S7Sy_N4&0qB8v zC_92lQN&_FdavM}iE{x-r$fKGg3rjeGe{c4+guKsNu0}Aop1K0Fwx!X?Jh^2_c$gR zVe%LYfbw8h?4>P*8`r%;kig7Y?A}#C?3a*Ej_ncaCEtV@?{RuN0+x64zJ%^NyB7>l zdc8WqM!N*}bO~Cqu)o@5qdAk>Ybuqjj9^U)32wqr385fp3CSvG2_ZKT7=bJ0MpD^} zN@wMrl$B-#DnKsf0FO~lnv{%OCc#*YkPrleNl2PjNC-@YGDcd)%4Mcr6q6ks$Vw`& zw^ss{2~f#t5+zuSl*mXDmk=tl|&CH zlX37M69rCh?exwFVNrv_0AVR1PXU2<9GpcR?_emW&5>cVYXBaEJelLc{`uaajvJNE%;|XQc+BIx zR|$r_mqJa^9Y^4)xlBi}09VHpJ)5$c8Bjes)3s}y`;}C{Q8^=5$&?b1Iv{>BmXxTB z3Zn#NP=Zt$S(!pz4(eBxd5CtHZ1jQvN z_Md_wod-sQn$dM)4f0=_XuN=4MFyMTp>NLQ;Ze-3UY&&B|3iv3tqGWjFToNfYhb=N*ymX=<=b#-w=*w!6E1yLi$gw6U(dF&?>>fnO=k#{1O zhZKa}(WSg-q4I$2Lr;{LyX^fmzw9Z}$BcE|)lDuuc;n=+{N}q?)s|IQXyi6d4GzHWhr`D|J2j2%7Pe{aby lpD}R|^Z7X2#9dc@@y)@md~sbP7jY0qb literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_3.png new file mode 100644 index 0000000000000000000000000000000000000000..ec8b07b9f210f5db669a26c13ba65bdb1d5556ce GIT binary patch literal 4720 zcmeHKdsGuw8lUh6*HtW7#aE2@#7SoIP9%ts04W9{L<(JTon&spXkI2mh*S`E()wi)LO(^AFSoLcZPSj=j`#E?SCZaa=-cR z@B7_*fA_l|nK$(*iDN?|LJ$NQt4&g;!G1i`f&$>*84sTmu)7E{wPvk$0TKisAd=&U za2O11oME;P#~1O1zEapGK%2oZErR3E_M4$SrQfcB_PlA_^^{@${9R~Zo zuu)}wa~*{?^9f?VNzh`L2l_;}VyCBOORD8T%8z0Ygx*TT83J}CwU$9k`bX*@+lA7MY3lCgWF8AAW_^L)TbxnAM ze&&^skCcBn^5eK#apZh{W$~J0$NqS7@20m7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_%mEcCpTEe;4Mc~a2K&1_oj zpDjL|MAFOjQ8H_$-8Jhkxq74MaG{`UIG z56lU743>YsGAUvPCpIc$d>m4q!fjZ-zWx2cvKuL$nTg%)1<0<>{j1!2Zl;6j>r+At z6%B_t5hnxrWs!7YzUEd-hc&U>uY7K5$v5{xr>B3>U8{#)mfw31J+k;~YzKMMJ=!_~X4XiBNmsU0@BD;Qlv~P3ZSpl*l z>H_}Qv(|I|T=zk|pbAP4JA)|j$YAZl~=&TG??EPWom}RZfN!&p)`Scav9YSUR_K*||9ZM{i!N2rt}G+a{=6-y}aJ*-+Hz_%Z89N9&cy*A9Gn zch!udu$R-o)WRk@D{0$-&ka89i%z_9wqnKZPq!{FO=$gW`&XZIl=2_7`&?bI;D9$_ zM-%dKUCHmx{Pa#;@8R&y(5TYsvy2~vG~a);IPJ6K)-%TF`h7N zjEG#{w!eIPsUm#hzux_}AX#jyzR(eVY~%5%d0nw literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_0.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_0.png new file mode 100644 index 0000000000000000000000000000000000000000..54c1277e7b215f0663492aaefd9573bae9490ed5 GIT binary patch literal 4691 zcmeHKdsGuw8lNC<>Piuii7t!2A+hNs=0v&VDV|47c|e)qfI z_q*Ty-S2+nt~4bj3=A9*h#<&7Lt<<)?1TB{?+gEqZu_2s-6fD_uow&xh(8=aOOZDs z;%#6P^^v_q1CRkw_W^7nQ08s;HbUeh^lP9zvP&+9a(I`G7nEfpFJvI>D`6v`918or zu(3s*YyAbv{KsGTCPIlv?(P!|Mw6J3%5bS%1^sbCLE;37%fy6?B-Er*1+7IN^+v=a z{jv0_7NRU?^?H**uNOO{w>h+kx}#{1)%8*y=?vWBcO zg;!2^VOCw;j?;UWtv*!si>gBL^8xoB-`V*;)dQR*N3YqMj^Yr;zR|8m@5&!x0yzQEp zw}(ciHP1~Yl=s+sd-gV$V~j3U%Vl4SP+qGUzl754-~YDj!)thH+NqGS#U_(}_>ddL z4OM04FysAz(ciCswE66=^`E>EU*ePU+vxcncb2p+tWKroeK{>~d_l`w^)H6`#MDkX z)S|gvUvfE0RCw|D#>Rio9(nxn_~vh_hw8k({qxe*kE;LhShP9v_?@z_Z3id%umLN) zS{KLPE+61)U)reT?E74mlaS#RvmW|tG~Q=cl^<=0 z=Aeg7Npq(er;{{ilTr+422zjB!5tkG~_wX%)7^ z&={}+8#HynRb{U%$=|ph51xVy*5(krAla{2x>-vvS+B&#&j{P;8whmo!F|QLd+&lV zv@#mWSdPx&!!yL{B>eg$!_h253Zg{|C=H+)l%^;xsvu|usxd1Rs9Y%E(MOBoXMipiij%qao9I9jlp_MT}uC(-lnBin$R#Mi! zQSnd=gi>n=Kv@(tYBA$xR6%Q0s2M16)FM-?3S^&Udy;YyZY&REe2l8xIepoGP(kLpHsjNe+A{j$5Mlwd;uR?zUFBOvG92xf&_1? zo>l}k0gl9XT?i61m~SGaqH-8i`ne6pIKKy8q9G%-!>Dn3_?m7t#73uR&aWt)kvaIC z;G$#3g~8b`>qD1K7UJ|BiqI`+kGlR7KuQq_^t-$)Mbx-9!89d`B1l6p_p^N@*k(e>-B z%~!q{(N1FxO>d!f|EwClzVYnuBeL!9Mq<<%8^op7$*k6XN`s2r@Dv0UUop#!e{xA)G~aOsOLs@8t9W>wIJvQxgk zM@`q4UCvstyJpZ_Jz`xyM|pIUUu*HNy(*%Sfg?WM)P}m+5%BCvNBES88896XLtIj9 JRm|MN{{jHzfvo@l literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_1.png new file mode 100644 index 0000000000000000000000000000000000000000..a6ceabe352c7d39f510543597bad4c2e7cbb5ebe GIT binary patch literal 4719 zcmeHKdsGuw8lOZ|#5X7faZ60K;v>mq@|uhU#RN>mV2)5k&#~)d=1v?T50e2R7EzRf z_(H^5(W<4sdn!dOw%XQrb;T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ures/item/spectral_clock_greening_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_3.png new file mode 100644 index 0000000000000000000000000000000000000000..37fa366af98b379bcde7e8f674efb20ad48ed794 GIT binary patch literal 4720 zcmeHKdsGuw8lM1yps0uXLT!!FRzxS6%;Y&FD3SnCA}JuEXLUPCZo-r#6EYKsS}foj z6%}-Ck=5F&wR(J8-AZeHRdH*(iq=A_+Z7Y;?nM&@ILK1dpu|RAIZ7gZ@&Ax zzx&j<>@Pf!0h30gdJTc2n!nuNGmiirsYoR8r$62nPMD#WEEt|Fx}h!%X*5fRVy z#+LVBpn?T-e7wmJA1`!!7#r;X2;!^AU#(3#Vd}pyC2fmnKuF9IRnTXLujuu|vIi8K zMqCWrNq+EUW8ZSws4?P_qU>YGHh!~x{<8hM`s^waJ`cQIe{*xK=*^mS{b!u?-D-&a zzVhCan*4%u+pzEM7YCNR*4J4lp1qs#&AG8bLH&;PJOyl#Z0VXJCjWYx_v-ukan;+$&no&1&yHSZ%5bG{CnEaqxGZfo*f*h4QM)4xa`5ft@VO+F-LEfjaa{LY!5ng zVZf7l2{+aR2D=Jt&ymQTGOtWpJ?Dqi!|qo?xbka}khW??)8t0X z=#B?jbkZCTNSiYy-7+WJqPB|0$A)QqBqVSGjuQHu4i`)Mv?4z*32ojj5efYeE?XDiNCd})ZSgtXMq@j@i)~c_ z>LKw_Zi!TkNt{ke=NT-g&xItd0sZC-Hhs1mNKygIcs&-N&jl`SWM>MirG38J>v8zE zW3@0cW+_lwDS}X{ZRSoCDIOYTCFSTG z6;EY_R5CSYmJW=shbW&#ijmD*2bwU7yn$4SBCq@9!u#fT&0%d3WZ8ZbbvB| zhlQEQbNXwie}q345^e?xOYwOM3H*Mz7c$-hD30-@GmJwkYOlKO!$x?WtQ1G-C=Ni< z_Bx#2R)@!87>Tun&(j$hD{Y(oztH^U5o#bF9(fYY!u4nST`e~%4dk>uwLCg#|5XwS z{g;BIEG=7Lsa#<7#|gPwhAdf>%MM`mXie8PKm8l204R%s!W3pyVKKv0kSj1$g-a>a zN&rCFtX6`s$-A<%jE&2qJRr^vb%a{M^z{FS5=QwCYD`yjUKZd_0Sbmnsk;|>C4IZ) z>Xz%36nG_YcXoBl^-2o761Y3N{%>-Hb-Ydi7yK2J2Va)9J}B4;U$lbFlM{9D^*#dW zxBlSd#n2P#PMXdlNUzuUCP2z72192EXE5qRY6AoVhV}iR{H@m!Bp}?Ni%VC1>n%;m zD$N;udOR7E$y_qcVJA(Td?rpmX<_nwS47R>Ne}nL?I|-Yt~ySg-x*hLdR~LqRy#8n zzrDwC_|$<6Ve-MPwYushS$8&FK6GN4i=$60;F_OY{DQdBtcb3QPTh zT{1IMbT1ogs13dmxbe)3A&&8tRUl>PWx>efo6`2)VTRvB8n5>uu>wQ?!B+`$M34WZ zxEjX3SmcZP?#f?2+_GZ%soIzepX`r=E3DK?u%!XW7G1>Ymdh*^G*(L9_L9ydpc%JM0!5E z+Rq8az54mSrkX)NZ-{z1Zq}XcFE!JKjh?HojGkJReIX=>6d|u~Dw(i-RY+~&;;_bE jf&=vaYgK(8Huo(|Jip`HT_28uxq=wm literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_0.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_0.png new file mode 100644 index 0000000000000000000000000000000000000000..5e8c4f31aa3d33d89e45e03126b35c5f2c86c530 GIT binary patch literal 4711 zcmeHKeN+=y7M}nrVnwB5rOGizyM9hGGvsRq!iNMQ#b{Py#CGvGnVE#qBoi|O1iOf$ zRt2OgaIiotw9<7^ab46s_1mhr>$j^_&$dO^?y9KuW7P^;j{9c#5O;gd9?#kSM{*wT z&VBd(?tQ;^-zBr!GCg@<$lDRKi-A0%Q!WGY_)ePuAfvJXXdsxY!N7n# z6wLKtuq!)a9RRZU36{PoKoXI==46xEBFB^{qKwi4e*{w#2u2{N9772VCp2ncEvtE% zk%&~GTHgXtma~b87E@xP-0R~Utc!sle|6qEL&_1$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V%{isq z%B9f=*x_z{&U}nMMnC*pPsjM^$6n=pKMQtcG!j7JT7qj)^N@-dvWmx z^`Xx~qmdu9V-D(|)+g;BdA_B-`O8e=?33R$PHs5x>-Px%Lnb2ZMbR5y+oK~5nROwl zEx-L?@k#ZpXnIsx&C|i-oA?2`R@%uKphO^3(sX0Plz9dJ1__ph`Tzg` literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_1.png new file mode 100644 index 0000000000000000000000000000000000000000..561ea8b3e807117767c83d29035fa93e92468048 GIT binary patch literal 4709 zcmeHKeN+=y7M}!ANM+?vWkFnxQ;W4a$z+m{4+!#+04WApK}5G&=PO|}UuFh~wy0qJ zLPe`6T|if@R;w%2>cJ|tl?qi?Wu;o{+6sPb>lZ~_>@HTV`(^@&r#)wn=WPEYoR@d! zzI%V~-ru|LhFOu3o)Rn>CV?O**qmyd4CWAi1P%b-BRikqU^+|Zn5|~>t56_#0G1+u zNW|NKA?hQGMShSU&@BZc6v(^{KZc0{gn1Q^BfI4?AivUWBL=cUB!+^)Tm=ROz*Z-w)_u`fNtAAHrEba2U)^=t4P59-O@*&e3yjSnV zHPzkdXenHDb{Bf)c8Onwv+@>|c>4S7#v9@GM=#IFNQxMG zad~s~dSaC2M$pJ7Ywwhw*s*rcpybkktgQ+8kFPB3c(XPepZ#T;WXz)W-yeSv9*|fU zzrS7Edc5>ptf=_!M>n+mdurs-wlTMUtPL}We>zyS@=ophZKCp+qgU3Cs{CkN028!C z+_50JwajmTv#3Swa_(iT;-H9%DYpk`wfCna$-cxx_%Mt#OL`bL$GDtQ9up^Ad7J@;!Me03K8M?4>4kT)-7Ek; z25SA=x>1_IoBai6j7$z3o8 zRu+ri=pys@@XSU7%kc^o)6PR4=TXt~>I z6Bc;F^$8hf1B}Vgr^SnBVk3Jn^q#gr(DDO74D=G#cX z%ceans6-x9=$(Q)e=K^C3?LTg>l6S8d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R^{{XxbmOcOg literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_3.png new file mode 100644 index 0000000000000000000000000000000000000000..9f228247b13e5f458847c716c3b7755d3cf203e2 GIT binary patch literal 4686 zcmeHKdr%Zd8lMGuNK`BZ<0GfbYEDIGclJHIviM*Z*yzdz2x2ap%+6yOV0YG;0aiQ} zQ3LoYK`bf6*A?cFi{c}tQIk`nq9zhCIVmkmP)ZF1f(nKscN(u}c-N)s%BstM%vNuI z)BWpTfBoyPzuhjdFOC@*G%*N*ppn*Cb3CX=3nkDWd{60kg@LM;Otw;1Yd91LUI0=u z43Y>KP$UCvABivI3)(&gWel(dj8G;@{KR?-uqXA{#lW7?gYf~jQsM)R1a%oGDqx3z zx)KyRuY0b)16z0k#ZN4-1m@m4#%i-mRdOXFSL?udM5QqzDkGwls+2}GVpO64E!p4i zk-)Sl*qIJkHqcQ~c576W)Wb3qolZiKw`_HxDfXg0WMf>yL0M?PoP2cHp)vC^2PJuQq8oP@@=_k7cT6(T)BSpi6f(q8&E;c5NqoZ1Sc=EqIGrS9F$#DeROlP=fJ8a8b7g}`c(n!ptm=Q6ABB`9t!+v5D? zpD&lLPOW#$n>THn`r>B=`h2I(wZ0>A#fF{4&aN`=SLJVvnaeJF*0q(pNv?B7Utg5H z7hN!W+??d*kCIf{M!K=0vbk76n34?4in?%Z-I?iYF|?{`Hn*n^DN4RHW?H`89yKBK zcK*#HI~-xQABInPwY_E6)q~srHX?ePU*duJnJ@3JeY)yo5|;Yi!l3CnZEs%rWxU^l zv-3{0p$%8IeIFsoy>WhLedm%%=Ub;Y|9o(3E)@^P%`AMr}*PQeBcZBUeKFg0D zzR~CDn&^gNUw`+ydM)EV%#}q#6H4Fv(H}*JRc|W(vaO?S@3*I4-u=F`A$Y5nJ!UB! zo&jReOD87t$+ksCoN>u9f^m>?ugfEB7!)zr>%s6el9xJ2C+#-Lo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%a%u(khisI|6P)dl0SQR z;`;To|1Og3*9I&Sknwg1TFK_#xgH8R(x4CL=*XgC7eEwe8i>J1h2Jf+k7srH)?KjAAG*bZ(d0UTX6O5Qxz&jR>_j1nq3sy zRQ=`gy3uLoR8DecSyE%cr^!zwS6|k|{Z+T7A#(Yt2X7t447DF0?+DKM>F_3G@@H*M zL*b+97qg!=#$2mizwyb0lC*~xFGSxNwR;cHjg{TK%>>;`nB3YPF1bNRm#xmO_@nGl zIeHJWhe6@7e&%>9wC7Gp?FgTW1n0pL&8=SpUKC#2dGyYA4?rY9R?A}Zkp&;+{s+BB BfBXOd literal 0 HcmV?d00001 From 7cb8e9c859f62c9461e1f85b2e9a5980b8d2b7f2 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 1 Feb 2024 23:17:46 +0000 Subject: [PATCH 098/104] Fixed cloud block placement desync when on multiplayer --- .../com/minelittlepony/unicopia/InteractionManager.java | 4 ++++ .../unicopia/ability/AbilityDispatcher.java | 1 + .../unicopia/client/ClientInteractionManager.java | 9 +++++++++ .../unicopia/item/cloud/CloudBlockItem.java | 4 +++- .../resources/data/unicopia/tags/items/falls_slowly.json | 3 ++- 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java index 736cf4a3..7c60d0d5 100644 --- a/src/main/java/com/minelittlepony/unicopia/InteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/InteractionManager.java @@ -86,4 +86,8 @@ public class InteractionManager { public PlayerEntity createPlayer(World world, GameProfile profile) { return new DummyPlayerEntity(world, profile); } + + public void sendPlayerLookAngles(PlayerEntity player) { + + } } diff --git a/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java b/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java index d9a977b4..8a291d0a 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/AbilityDispatcher.java @@ -209,6 +209,7 @@ public class AbilityDispatcher implements Tickable, NbtSerialisable { warmup = 0; if (data.isPresent()) { + InteractionManager.instance().sendPlayerLookAngles(player.asEntity()); Channel.CLIENT_PLAYER_ABILITY.sendToServer(new MsgPlayerAbility<>(ability, data, ActivationType.NONE)); } else { player.asEntity().playSound(USounds.GUI_ABILITY_FAIL, 1, 1); diff --git a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java index 3a4105b9..837b65fd 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java +++ b/src/main/java/com/minelittlepony/unicopia/client/ClientInteractionManager.java @@ -26,6 +26,7 @@ import com.mojang.authlib.GameProfile; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import net.minecraft.client.MinecraftClient; +import net.minecraft.client.network.ClientPlayerEntity; import net.minecraft.client.sound.AggressiveBeeSoundInstance; import net.minecraft.client.sound.MovingMinecartSoundInstance; import net.minecraft.client.sound.PassiveBeeSoundInstance; @@ -37,6 +38,7 @@ import net.minecraft.entity.passive.BeeEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.vehicle.AbstractMinecartEntity; import net.minecraft.network.PacketByteBuf; +import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket; import net.minecraft.sound.SoundCategory; import net.minecraft.util.Identifier; import net.minecraft.util.math.random.Random; @@ -152,4 +154,11 @@ public class ClientInteractionManager extends InteractionManager { public ParticleSpawner createBoundParticle(UUID id) { return new ClientBoundParticleSpawner(id); } + + @Override + public void sendPlayerLookAngles(PlayerEntity player) { + if (player instanceof ClientPlayerEntity c) { + c.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookAndOnGround(player.getYaw(), player.getPitch(), player.isOnGround())); + } + } } diff --git a/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudBlockItem.java b/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudBlockItem.java index 4652d8e9..f208e723 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudBlockItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/cloud/CloudBlockItem.java @@ -1,5 +1,7 @@ package com.minelittlepony.unicopia.item.cloud; +import com.minelittlepony.unicopia.InteractionManager; + import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.entity.player.PlayerEntity; @@ -30,7 +32,7 @@ extends BlockItem { @Override public TypedActionResult use(World world, PlayerEntity user, Hand hand) { - + InteractionManager.instance().sendPlayerLookAngles(user); Vec3d targetPos = user.getEyePos().add(user.getRotationVec(1).multiply(1, 1.5, 1).normalize().multiply(2)); ItemPlacementContext context = new ItemPlacementContext(user, hand, user.getStackInHand(hand), new BlockHitResult( targetPos, diff --git a/src/main/resources/data/unicopia/tags/items/falls_slowly.json b/src/main/resources/data/unicopia/tags/items/falls_slowly.json index d413b877..49ac7cee 100644 --- a/src/main/resources/data/unicopia/tags/items/falls_slowly.json +++ b/src/main/resources/data/unicopia/tags/items/falls_slowly.json @@ -2,6 +2,7 @@ "replace": false, "values": [ "minecraft:feather", - "#unicopia:magic_feathers" + "#unicopia:magic_feathers", + "unicopia:cloud_lump" ] } From 82428f77b78e7be443585f6c5f1c5f57e427f87b Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 08:16:33 +0000 Subject: [PATCH 099/104] Add more stages to the spectral clock --- assets/spectral_clock_0.xcf | Bin 17993 -> 34751 bytes .../unicopia/models/item/spectral_clock.json | 62 ++++++++++++------ ...al_clock_1.json => spectral_clock_05.json} | 2 +- ...al_clock_2.json => spectral_clock_10.json} | 2 +- ...al_clock_3.json => spectral_clock_15.json} | 2 +- ...ock_ripe_0.json => spectral_clock_20.json} | 2 +- .../models/item/spectral_clock_25.json | 6 ++ .../models/item/spectral_clock_30.json | 6 ++ .../models/item/spectral_clock_35.json | 6 ++ .../item/spectral_clock_flowering_0.json | 6 -- .../item/spectral_clock_flowering_00.json | 6 ++ .../item/spectral_clock_flowering_05.json | 6 ++ .../item/spectral_clock_flowering_1.json | 6 -- .../item/spectral_clock_flowering_10.json | 6 ++ .../item/spectral_clock_flowering_15.json | 6 ++ .../item/spectral_clock_flowering_2.json | 6 -- .../item/spectral_clock_flowering_20.json | 6 ++ .../item/spectral_clock_flowering_25.json | 6 ++ .../item/spectral_clock_flowering_3.json | 6 -- .../item/spectral_clock_flowering_30.json | 6 ++ .../item/spectral_clock_flowering_35.json | 6 ++ .../item/spectral_clock_fruiting_0.json | 6 -- .../item/spectral_clock_fruiting_00.json | 6 ++ .../item/spectral_clock_fruiting_05.json | 6 ++ .../item/spectral_clock_fruiting_1.json | 6 -- .../item/spectral_clock_fruiting_10.json | 6 ++ .../item/spectral_clock_fruiting_15.json | 6 ++ .../item/spectral_clock_fruiting_2.json | 6 -- .../item/spectral_clock_fruiting_20.json | 6 ++ .../item/spectral_clock_fruiting_25.json | 6 ++ .../item/spectral_clock_fruiting_3.json | 6 -- .../item/spectral_clock_fruiting_30.json | 6 ++ .../item/spectral_clock_fruiting_35.json | 6 ++ .../item/spectral_clock_greening_0.json | 6 -- .../item/spectral_clock_greening_00.json | 6 ++ .../item/spectral_clock_greening_05.json | 6 ++ .../item/spectral_clock_greening_1.json | 6 -- .../item/spectral_clock_greening_10.json | 6 ++ .../item/spectral_clock_greening_15.json | 6 ++ .../item/spectral_clock_greening_2.json | 6 -- .../item/spectral_clock_greening_20.json | 6 ++ .../item/spectral_clock_greening_25.json | 6 ++ .../item/spectral_clock_greening_3.json | 6 -- .../item/spectral_clock_greening_30.json | 6 ++ .../item/spectral_clock_greening_35.json | 6 ++ .../models/item/spectral_clock_ripe_00.json | 6 ++ .../models/item/spectral_clock_ripe_05.json | 6 ++ .../models/item/spectral_clock_ripe_1.json | 6 -- .../models/item/spectral_clock_ripe_10.json | 6 ++ .../models/item/spectral_clock_ripe_15.json | 6 ++ .../models/item/spectral_clock_ripe_2.json | 6 -- .../models/item/spectral_clock_ripe_20.json | 6 ++ .../models/item/spectral_clock_ripe_25.json | 6 ++ .../models/item/spectral_clock_ripe_3.json | 6 -- .../models/item/spectral_clock_ripe_30.json | 6 ++ .../models/item/spectral_clock_ripe_35.json | 6 ++ ...tral_clock_0.png => spectral_clock_00.png} | Bin .../textures/item/spectral_clock_05.png | Bin 0 -> 4685 bytes ...tral_clock_1.png => spectral_clock_10.png} | Bin .../textures/item/spectral_clock_15.png | Bin 0 -> 4702 bytes ...tral_clock_2.png => spectral_clock_20.png} | Bin .../textures/item/spectral_clock_25.png | Bin 0 -> 4699 bytes .../textures/item/spectral_clock_3.xcf | Bin 9850 -> 0 bytes ...tral_clock_3.png => spectral_clock_30.png} | Bin .../textures/item/spectral_clock_35.png | Bin 0 -> 4708 bytes ..._0.png => spectral_clock_flowering_00.png} | Bin .../item/spectral_clock_flowering_05.png | Bin 0 -> 4696 bytes ..._1.png => spectral_clock_flowering_10.png} | Bin .../item/spectral_clock_flowering_15.png | Bin 0 -> 4709 bytes ..._2.png => spectral_clock_flowering_20.png} | Bin .../item/spectral_clock_flowering_25.png | Bin 0 -> 4714 bytes ..._3.png => spectral_clock_flowering_30.png} | Bin .../item/spectral_clock_flowering_35.png | Bin 0 -> 4723 bytes ...g_0.png => spectral_clock_fruiting_00.png} | Bin .../item/spectral_clock_fruiting_05.png | Bin 0 -> 4727 bytes ...g_1.png => spectral_clock_fruiting_10.png} | Bin .../item/spectral_clock_fruiting_15.png | Bin 0 -> 4703 bytes ...g_2.png => spectral_clock_fruiting_20.png} | Bin .../item/spectral_clock_fruiting_25.png | Bin 0 -> 4712 bytes ...g_3.png => spectral_clock_fruiting_30.png} | Bin .../item/spectral_clock_fruiting_35.png | Bin 0 -> 4719 bytes ...g_0.png => spectral_clock_greening_00.png} | Bin .../item/spectral_clock_greening_05.png | Bin 0 -> 4735 bytes ...g_1.png => spectral_clock_greening_10.png} | Bin .../item/spectral_clock_greening_15.png | Bin 0 -> 4706 bytes ...g_2.png => spectral_clock_greening_20.png} | Bin .../item/spectral_clock_greening_25.png | Bin 0 -> 4722 bytes ...g_3.png => spectral_clock_greening_30.png} | Bin .../item/spectral_clock_greening_35.png | Bin 0 -> 4701 bytes ..._ripe_0.png => spectral_clock_ripe_00.png} | Bin .../textures/item/spectral_clock_ripe_05.png | Bin 0 -> 4717 bytes ..._ripe_1.png => spectral_clock_ripe_10.png} | Bin .../textures/item/spectral_clock_ripe_15.png | Bin 0 -> 4702 bytes ..._ripe_2.png => spectral_clock_ripe_20.png} | Bin .../textures/item/spectral_clock_ripe_25.png | Bin 0 -> 4702 bytes ..._ripe_3.png => spectral_clock_ripe_30.png} | Bin .../textures/item/spectral_clock_ripe_35.png | Bin 0 -> 4685 bytes 97 files changed, 255 insertions(+), 115 deletions(-) rename src/main/resources/assets/unicopia/models/item/{spectral_clock_1.json => spectral_clock_05.json} (53%) rename src/main/resources/assets/unicopia/models/item/{spectral_clock_2.json => spectral_clock_10.json} (53%) rename src/main/resources/assets/unicopia/models/item/{spectral_clock_3.json => spectral_clock_15.json} (53%) rename src/main/resources/assets/unicopia/models/item/{spectral_clock_ripe_0.json => spectral_clock_20.json} (51%) create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_25.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_30.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_35.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_00.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_05.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_10.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_15.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_20.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_25.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_30.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_flowering_35.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_00.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_05.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_10.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_15.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_20.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_25.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_30.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_fruiting_35.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_0.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_00.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_05.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_10.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_15.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_20.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_25.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_30.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_greening_35.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_00.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_05.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_1.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_10.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_15.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_2.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_20.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_25.json delete mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_3.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_30.json create mode 100644 src/main/resources/assets/unicopia/models/item/spectral_clock_ripe_35.json rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_0.png => spectral_clock_00.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_05.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_1.png => spectral_clock_10.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_15.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_2.png => spectral_clock_20.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_25.png delete mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_3.xcf rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_3.png => spectral_clock_30.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_35.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_flowering_0.png => spectral_clock_flowering_00.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_05.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_flowering_1.png => spectral_clock_flowering_10.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_15.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_flowering_2.png => spectral_clock_flowering_20.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_25.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_flowering_3.png => spectral_clock_flowering_30.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_35.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_fruiting_0.png => spectral_clock_fruiting_00.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_05.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_fruiting_1.png => spectral_clock_fruiting_10.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_15.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_fruiting_2.png => spectral_clock_fruiting_20.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_25.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_fruiting_3.png => spectral_clock_fruiting_30.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_35.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_greening_0.png => spectral_clock_greening_00.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_05.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_greening_1.png => spectral_clock_greening_10.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_15.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_greening_2.png => spectral_clock_greening_20.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_25.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_greening_3.png => spectral_clock_greening_30.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_35.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_ripe_0.png => spectral_clock_ripe_00.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_05.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_ripe_1.png => spectral_clock_ripe_10.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_15.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_ripe_2.png => spectral_clock_ripe_20.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_25.png rename src/main/resources/assets/unicopia/textures/item/{spectral_clock_ripe_3.png => spectral_clock_ripe_30.png} (100%) create mode 100644 src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_35.png diff --git a/assets/spectral_clock_0.xcf b/assets/spectral_clock_0.xcf index 5675c5b009949b593b62693167cb109f44927847..82bac275d33399aa2c9944c350417afc2419e4c8 100644 GIT binary patch delta 12649 zcmbW7eUMaFdY|t-efw(|c5gQ=W&vxM0d><0+y(ZUU3w*CsU+8KOnI#iioNX}w2Uk) z7C9OsdeKtexW{X6id4D5p&Jq+DP@oUalxn(XNYYWx#S9eY;8u_8Db}6O%NH9vI)Dy zq-t9|(;xSCp7-2tn33hG%|gvR=iJY?-}Btx`<`>p_kPEG_pJKer&VP8A3gI!RkBVS z`d@4+DEqbsW&ayN`N``+nf#leTt66;pXvnVPnkhE_`{$aelI8=dnPEioe0Y9=YrDt zeo*e7(Phc_>7NRAe13mWe&L0neBwtz`P3JK@|mtdUtAZoe=Zu7KmSxvJ~tYa2dhE( zi+>%Izx-@a9y%YCqicimrLdIG8^+5o2Rn{+J@9Jx7yXmX!Tw_R7rg!-gZ8hl56a*8 zxuE>be;$;-{f9wm7?t1bTUYr}Xjz5NQ{AY-e^fEouUFykO$~?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yt5Flexx}k3Vi>v+%)dq2l literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_10.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_1.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_10.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_15.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_15.png new file mode 100644 index 0000000000000000000000000000000000000000..7573eac7d68550e3aa56a5bfa7964663da4b63c1 GIT binary patch literal 4702 zcmeHKdsGuw8lT_;j3Nk}6(49$#1}ZpWb$N|STsS15=4wFi}rLUGdD0oGGQ_#0qdi> zfYxf&g^CtiAJw(>aeUMVx}qMn*p^kQJyzQasJjL09z|W(T`976hWBaD+2c9e|44Fk zzxnR({_efM``s_OYtmAaf~BLS2!aG#lFjL`4i!q!VE8@$X*&t4I*@5`SS&F}5PX10 z$v{LRU|^B-vI8UokO9zF0!tXQ1&mNeO9qMcJJ24}X_rBJN+%`&+A2u^5)A7~Sa4`Z z!1@zdn9`21s-Z2sg2Z<+v;^j^I>};9li>;#rcmo(e+<_U7!E%&%s^mT0>>d*vb|?U z0uwVLe+*>#BV#h9SxhFGn`0eJ9zYO(<OrB@KIKC&oyZZ`&R9f1-)Eh_^n~;spK^c6N`VNs?Y!a z!jgto?s=3<6O(fE)ZG<(zH<;;LXTE0Q2kT-mLq6F|!!#)h3Tfxt`n{+UC+}V7^sc9{>tG8IL zh9|AQWDksus-3-OR=joW0`0aZ#rtbwn$Rm*yFbf%{x{{Yrf22g;PugoVQVv24jds} zJY`qF7}d80>C-;CAAjfGcyC)+RRmXl{_^1!F`CN<$NvtD6l;;?&cM31yN2;p zLe9vX8&OTIH}khnPG}i*^4fPV7Z0dti#}6-V`oxAyUv||`$n0ukqeA0!s+?m-7<7X z8d86?`F-wOBU*R*hi3;0)?W{lna<3eY*KeIzo}1OyDv9=SrS@xU z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0~Vhe z2`t{98mU6%%SoLG1b%eh@`B=pu`rBxZ+Y|L+n3TJF+cyPeZ!{wLk+1&?Tn=H?WVMc zd7frDnFw#9aak(Miwgjj$n$eKWRCniW(3?2Bt{DeH z6q&R^LeJgtK9<|*O9PDq>1uC@Ai!^P!ssFQ?z|UXh$VN_f{^jy?Gt%F!U9L} zd`d>k;%OOJ?K@HPlG8FDnjvMY!xLuDPK1cOTiD!mWIVB$a<-Zm5OjvqeIr3B{RFJz zl-@^_$_D|Z9Buz?)6|p{K!qul1w*43wUoGQT#^0Ig`YL@$ao|w88!;51`1jOK)F%a|_LEx?&d=7c8I0V-DZM)Et%vQY83H52{oiNMSM( zljDFLLiKYMO#?#iZk<;A299 z7rJWSH!A-#|40hbR3>9`xh$dn7L}8m#_2;-a);b5`R1i?DtV9Q<7oZyGptrcM)MGn zGN%}4ODGMUvVD_G^ecY`LtR zVn4Iz*S|mg()vAA+4067zWidqX5aG~um?vvuKnrDkMPJIiaq$r-jkQF9AoX`9$*jJ z+Yfbw;~Cf4!2`$kA~FK@;28EesZMxrn!aB)BBk#U#3YY|iN5_J&21ixL?wf`1yPAXm diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_30.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_3.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_30.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_35.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_35.png new file mode 100644 index 0000000000000000000000000000000000000000..4d7b00ac738e5e76f3b6efeee3c4a8f376d0dd49 GIT binary patch literal 4708 zcmeHKc~BHr8t=gaGKxXah$mg6qJlls)6Cg25o87!V06N@h?R{!-96C49LzM#h(|<4 zbUjvCq`VUFfFf#$S2jpW@r-VTh{hByDueJvK0f?UEU-A{o<2rzFv6Hvii*P&z#qkAIEsNUjH+-{j>{APEhv8-5yy1t zWZ6ol1~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E6}VZpLK~tx(1_InWaJyNzuU$3< zRyG@%$kSdaJZqv!CCyJVJk2qrEE2euA~1qMXhugPIs=U&MgxT+l#XV!I=fzLr`Rq~ zR+mSlTr?{|0dO@3a9B)h*W!c`(P9LJ=(I)$V#nhgh!(fg20amn>1eDA#3X?OSxMz~ zjY@)I0F+USqgn&V2|Z5fK{Q$hG1_$u0L2Kc7K>vXaegR$FZ6Ulhf zSiu7_QNomKr|d3m3kenjh^3@F1pu-htc5fSEG6-=bQ`kKJlm9W7laCS% z%ZGxbX#WyCR6fhdaRMy=5S>H0vRP0)+S0XM&;3j)Xmv&-4l)KISi*qlFoHnrw8MZn zbU02ES{Bo@aoy29yhALY1a@pT;1O^I(o_D0f=9?3HL|;PK@KbJ0w4@Qaqwv;Oy5SB zrftC*sb;jVI9~H#oW#opU5X6w^XowI0<}=nQ4HHSlgiF7_-fmWUvLHh-80Ec@!LaJ z4_z0$RT@94LcDtIZPJ7!VK=gtTl7XacwCC)UKV8N|ub4<_fN zPYyp`T=1;_&a%m=}d&-2PcY`Bhs*>BX7%i{^$-ntr&V=}yb(XD^Cxk7+Q54NUy{R$QI8 zac1h?bC(TxP}w1-GTF?Sjo0~4m}e_V8&@HOoq{#saA`ctppg%{3SvZkDW+NAwH=-YL3 z4MDLpCitFW5Btx&`1FvumoBr#oWmE7f>)jj6@3xa?)A@BtD&QlPH)~Bd2GhIeFvK@ zYmUvhT(zM2QQ^PdbzRl=*6*=yiRrCsYTW-}%5BTxR}!909rTTQ-mB5uNq3a@>?K$2 z(*wUw_~8mqU9~sViR772mrR$UKG|p6fSPfKK5Bk;bzjX5H^4uC=Ur#b$jIu)-#j?J z?D-#tY|MKwXW@F)%2SKazXN$g5~4DKWA;YO52_rxDIzd!>t9kw(x0^UMpvC_j>}n4 Q4srsrS|%p$9yhDxKL*!;XaE2J literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_10.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_1.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_10.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_15.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_15.png new file mode 100644 index 0000000000000000000000000000000000000000..d469774a0349d39acbcb1524a7068b6aec9a719a GIT binary patch literal 4709 zcmeHKdsGuw8lMCz6rX_Y3Kq%6C+K7zNrogPiY5qAqB#(iy4yWFGnv2$c})h0Y*mUV zK3YMJTA^AORMu9dRgZ4fBTA`{wye^+#TPH}fwjA*w#u>|7uh?*d$;H8@to~{OmgRb zbMNo|?stFpyI(RJEsGLH2ZaYg5H#A9XiNt6IH3fN0Qbnp-6W{$nN*YAWQv9Y!2>`_ z{2_^e0Yx&%mP-5}KhU-wln`JG7@>qqUJ~nffIYF--UjR$y%;I5F^Lo!4eDK>;J_Xa z>W@HS3w!3O2DWeoil0Pa3Cw+Ug2`-=;R*~@CJ+tpsSv9|t@V zm_qpu4PYr?4F-$JV34^vmz~XIAjr3C)mD9CZQO+QEtL!6ql2=?WnHrD{#%87%kiN2 z1LIb#TN;t1=vq5%v}x1ky{*gLkJ64jY;8MqaP2`^;PX7q>zb%ji5pv{u6q@0_B7W1 zq2(FZ86i_eCmlQ0mREVpt}7jP?Bo*cNzmK&z{wMeOPM-Ta!~c1?Qs`)>S&(&C|DhQgSF{Pw3*E{M@#Ls+p6{dK9N-J*wMKYPu4d zu;DxvFf*cVLFN2d^J`1gyMJ1D=wfs`e0ll)3(Gt2BBRUM??h&Ig`6DEZLhg>BrjTZsVeecV^?=JL?@YZO}G8)yV^97bX@wc z(i$Zh@Mw zJb0fw*9zC4zTa^;Ys=LDnc>WWCMclroNw#VYpa@@uHN|bnvCUL&m>cFxI*fijS(OQ zeXKQ=Pc7@m~*9GOn9&Zn1)ygFbD&4^qkLih~5JQc)| z!NoB$l|rRJ;dmdLjmu{T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6*5{~IpMhOqzu literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_20.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_2.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_20.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_25.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_flowering_25.png new file mode 100644 index 0000000000000000000000000000000000000000..9ab9b43e5f0d0a0a422b8c050ac99b07ba8be9a5 GIT binary patch literal 4714 zcmeHKdsGuw8lM0Prcx2uq9`&OtqMBHWHJd!Br1{!0iqP5OL488%uL7#d5{bcQCeT9 zX!X<{^@xJv8q?D3rKf6V0Oesk~d z``vqg_q$&*1&Om_e1*Y62!ed|vDze1`*Fo*F!&CA)Ior%j!w~=_4;tg2Rs0zzzY&^ z7*GU#Y!87a`lO)*oE-`wp8E&`GUF#6b#sbpgsf& zv$}JvGr;C9AO4O77RTIO$LI}-Fea9wVwnQ?qZqD6G4O#=r5cS;qf&qtl=RMsW4iSH zzjT0QB@-Q;sE>|@9ZtKM$)F*~U6i*`6MKI8h*eGd<82M?fkc-jhXf57dO3h zJ_~{I@PwnMT9)p=X;v5d9X&Zm`dGNk>@#-6$AxsYK1q1y_77tOXPUlnZ~3rc=bqU$ z^M?AYsme5ORXiB{pnAX6(Kunlr=OJh?+lo|m5pkNDW5c^GE;nNa$EJ9Lj9$Hm^ELR zyeEZJ$L*gPX&606Ui>h>?5prQNNwuAFH@iWLo)Qvlg)Jb9gJ7#)^!jai z?as5!NL@wilRsr`xa_%9J+=L%U|f!KwdtFJ5Dh+rPVrfWngAdaH# zP8!C=xEMurZYCQOO%=kCPRguK($4In08bi`g=HOTi6kc{N1P)Q+ns3=sY<1ipqK>1 z5P(2ji)<|6Mr^LJ97QLGmUfX&#=$an8_aPMCVLjE5s5%Q+&w?5!(iy4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dc#%9pOuK7MG3Z7X2@@ba`L{z=I=?<2_*gMZTeq8mc5J}@OA~_+(5uJ*zm73byg)6)x{G0_W+2{Q^V4}2zvdD!+_%U}>Dwn) zpIk4cz)OMqva3(7mr~%RzK>6>f!HrUI5=l^(C>kUu-!iJ{y#ciLTeIg$lw7rd}`PW!tEgtH+@T1|(<*g2};*~8s zj}CvUKD(~)U^%lg=HmTvAz`ql{9enN(9fPbAyd*ZN?4z8;!Q}bD2=Z;(sHE#!pa46 zbs?q8hSk>Yj0Ikbv2Ao3B`dxR%2)EOoCt=P9K!_u?^4 zH#P_A9@NnX5cc#`<)j~)9p^ti1$H=2+}b4k^tZY86w~F#nR%~nlgaD__q5@WgU@5x q1tYU#BO`XUy_z}o?w!!gb{XY=ZNX6H>`;(0kU4s`Y0qzdzw|#EE{hKU literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_10.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_1.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_10.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_15.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_15.png new file mode 100644 index 0000000000000000000000000000000000000000..75124f0eaf4e39cea45a62be0555bf91fe3a2319 GIT binary patch literal 4703 zcmeHKdsGuw8lQj~L_JcZEJ~4Sd?9v{$$K&qfhGu1qX;Odt1_7fjFJbF2}E3#wN<3P zALWSRYSCh~7G

(xSWS`l8ip7qu=Av6XJ!Jz~|eJu2><;puMA+2c9e|44FkzxnR> z{qA>v_q$(m3lpcu5Ah%24?)lnOM*EG^Z`Qi8vwq;AH5(zca=`FFcwQB6rcFNm;9MNgx17xMd2O0wU63|pY4g&o_ z(Aa{GxoUtcy!^y>0+0mcu0GykO@vi)B`R0zfIq6z;HV0GU=+hqJ+4N9wPa6EL;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_m*-eXcGkv? z@#FW$9iRN?ZDcG|^xNq6)JExP$FZ5nl-l#-Lbz2yCMlTVC&$q9S5~>^SFc-HTByD@ zayUD5D&-R!u1=h)<)$;z-{JGo&#d#Ll|}77 zN0QU%{hwOWP3Cf~tK`I$t@k}Ob$4#v-8ngYU)_&q>t~jgFKD`y9-cq8Ja|mes9a*f zKRHcAap-t;TXE}=@E6S|@h$QLCBeszo^Khwa{^oO`krUi_|e%v=d`3;U*EPa^zt3~ zwuL`n(f6x&w61v+FsLeU>*0l4>f0ki4n14`Xi)8emewN+pRBHyR@J4ynVR%qVr?Vy z-J7WiRY4(5rInRo2Sc%ATW%Z-g%H1(L0=!-G54bHr-fF@E;xUzHMsIoS=9?DxZrEs U&8@R2kQ$IBZo0Yr?evxZ2GLc4umAu6 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_20.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_2.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_20.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_25.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_25.png new file mode 100644 index 0000000000000000000000000000000000000000..3f4048b69ff3b7f0c599df665ebec8229812d477 GIT binary patch literal 4712 zcmeHKdsGuw8lS`mF-n(3x4J4NMtp&jnF)E9)X*eAlqdzPh^{)B2MpvzGI_w31*?d* zt}7G}t5&PUTD7dSwOSw0>T2Cxi!PjHwF)Bkptkk3zSecEduMo`_MAPQv;B`GH}{)+ zfA@F4`@7%$lDj5lZepl-ycmL@P)m|271Uu|5e*05k$0cspgK!sSZIqS8WMpAfD{ac z1RMqwK|fn47y=CeZL2^D2R4V{%6P#rzFrIL3Eg%Du%~xpguuoGLMRl}n?aESdkm;| zgTj<{%~cOiNxVg)N1qcO!|G)mka7tPoy2nud4EYl|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6ts+RCoS|s(8$qT5kPNm9tRpjSc}yha!n`{g-jEse!UNZgu^VR_;k%*edX5d z(XWgtX|OcSOoqQ*yOyz!oc+cy;brq|7wY{G2C+wGW#c{=NTB&D65`#n6ETQRC-K2)tgpesRXlWmBr?2Pa~;Ply~kr($W*)8Us-=95Pn%0kZ@ z;idSLD(8^{6*K;FylLC>6E(-K*AJny)6C&{I}Q)qW`x-F&#jK?fTnsE8Dd1+=5G1> d?}LkO6p3VKHX^0R!F3*jEathU+LxET{$CxZgR1}l literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_30.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_3.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_30.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_35.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_fruiting_35.png new file mode 100644 index 0000000000000000000000000000000000000000..246831ece58e021b99ee99518ced6c07546f63ed GIT binary patch literal 4719 zcmeHKc~BH*7Vkj?1c`{2x*(x59thgg#~jSGjE*t`3^GapBWtXfp6;HRR_36mXBeQo z!(qIl(Uf?U7hzG6Xf#Gmd6gk?zWuA7Pnx~^-`{dzcrY^t`b+Wf~bAK&Zu zz4!ax`+e_w&`UC=q=bb;hCmP$W=z#*f;n6q!GYj+Ov_6OOc&T3qs3^9hl0Tau$1(M zB%%!%k}h(9q!-i+=t{td0J3N!jz~!#|GW&yQSI^?Adhah2>>!K34p@Dyb%ln$b-PV z6AZ4jZLgz17C*uMpHv`;$Q^Tv(UbubG8~i1Rlpx36eLD~FN~>4EP+&LfVE`HtB6D- z-KoTMfbs#Cl$2piN`hUy)57Jl5aio9ca=8vq;6L=WWszUxXN{ z!ei%Ig-gJbd4wY53!ig_hvqLq95K&lod9j^6smo06lAwZ2d0-`Ko; z>e+Yu1($uDXIZC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|}={NYNk=AmFm zKK0f0A6|6KpMCeeNp)rJb!7!ziMyYrV8Na5KR6sWC2U&9;@Tgdre@5}IPpnUb7+oF z&W4bNln}qE6*Kb7Hia~tPV~5Ozv9id-yV3~bJE1<^rPFKX7SMmBheC9Rdrk%^9{LaQiG{^d#`G{&? zS1SI|u<(?8?e?9^iLRe8Xw`nz-FMa$RX6DQ+iS@H&zy_##>gARC#SX?IMTLt&Ev%Z zXG-IrTUj%?!N>fQ`opHdeSvH8)^s=C>8&U#7i6cVstVfPI`%T`)q_QKxf}oae5$SM zca=MvKi(JfpT}RE@H~D|(f8!CzNu)}Y0j~Sf4aQ3wx@CHp|-o;@5+yyY05f1EA?h& z(~*tuotvc2hms?fh3glv)PdrO!u8PQT`L*_Jgoh!Rqf4<-(uxVhC#~cgsAdG@2~$a D?ctk* literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_1.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_10.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_1.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_10.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_15.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_15.png new file mode 100644 index 0000000000000000000000000000000000000000..679026c9ccb6c52071b51c8755fd150f8fcf965c GIT binary patch literal 4706 zcmeHKdsGuw8lQlL81=|Yr7C4kw1~hYlOfMB5imgr5~L7XtKCy4GZPrhi(~?U*7_Dj z>sqT-Dz0yjN0ilCpZHw0x~J^Q0gtvQph8#NRafnUbrIYlxVyNf}l~xR6`c%gSaLP0KX%Dd_{n+mY!p@8jUfK5Ig{+U>GFe zFrWzr*nR?k$RCWY1T6&E9ENM-1#j^ET3}D;u{Q!cx(DM2Y?;6h8U^|a&@fmBcH7KZ?n56a!xvRpY1tR$I$t0;9rv_mRk`tcXv(T9 zmcZDEnzVg0wWf(VifzwV9K0Iy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ys%ludzdf!@3_11d?MO(*bZDk>i4YxL!avFYESMW=U)_nf>+G=5KSFFx4v8#l&woUr@V(FzH z44u2*@9aG46wWTm$ZT{JEPAZlbh^6rKOzq1oIq;T&A1-Eq3Ht|{eD&o_lO zoh;EPuk3xw#NG(oJF{`W!@n&EirC|y_9?zNSvwXL`GsRt<-EwP9g(eP>ho*5J|6?J O12QIO7^-H>U-}>Nn}MbP literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_20.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_2.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_20.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_25.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_greening_25.png new file mode 100644 index 0000000000000000000000000000000000000000..3b38257ca36b4c3b01665b0a83047dc0399cdb12 GIT binary patch literal 4722 zcmeHKdsGuw8XtlyF}^5RMG(oxM-`l8W=KLZk}8`ZM2N787V(_c$;=ImArB@Kh-eE7 zf}*Zg>x(K{pIybbi_g~js8&~6IogAYFT}Q5-HKY3wHDnw!$aKdIeR>3`yZ3Jx!-*E z`+oPkzx&-UnX=Sz2|Z<@G6X?-niEaqVIL?oX;=6i@$(A`b~PZ~Y%`l95h;9tmVR9j zKfwkzzYem*&mZxJx>DGJpe)!3E!6K1Vm}|sVXg8KC=YA3kw6*ulOR1|zX~=2%6(wJ z1vYke%Up+{EL>9YlL#dNxvftyTT|i^xKb{CUZ@+X8-6gc?D~+BzWBAAE5~PC zf5tV1%hi#|dk!`fZn|tE%LDfun20};{lz976!Kv?s5Xz69lm*Ypx@!^Cw$8auC7_1 z^7WJ+(m7w|*j8vCbbV00$>F~C)`Fdjw+5{VPFcanH6(108u&$y^5BU3)pN?tXM+>w zoUjH&g;$T=G$z(EV4|ktVae97B5$GJWNbW{(e$0F$F0Xp!S?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wP0O+1cUW(ryx_an( zDF$B3xF@@M=z1vzUdp&9yZ&!<$zNQj7&rJYs1RJ1Qf_`@0T-=4_VFoZaJ`R&BG&91 zUjj6JJ*iWC5cJ9bvB{v-YomZNM6lW{A$Nj;LPPsb8GdpXxJ@@(&57BDlm2BBQkUmP z9glzT_O%m#@Ra>Yw`z>@MosdLlV{+~@0BK&DBm%U);47+5_O*~`OUhrIJ$(W{~Jn} z-$Xv$5f#YWwRCUQvx6Qyw*Hl>>ge1jy9*yYIofYlzazJsi&|THO}%jW;=Q!$_+~OO zZ;-?NT9~c3Y|B7;phcFsdhQ3wP33>turqORRo?n*lYfHD$)oa%?>j5X;-0T&e{7go z18o_+VR*kGY5ySNPn=y+521JG^?66gtqz&tiW$BR7 zbDx)dbmJbMTXWp=;oSbJ#xMBk%qnNaKfmAX&P&ni71SXs~K4yb>oh+=oGy*OuAaZFUx*4atI@5j_`|9a04@6W$` z*n9Nat<8 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_2.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_20.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_2.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_20.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_25.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_25.png new file mode 100644 index 0000000000000000000000000000000000000000..50eb8942b62ccab57f43fbe7f7a7e60d3415bd26 GIT binary patch literal 4702 zcmeHKdsq`!7N4LcF%?B{D?X4h+N$UzGkGUXR3r!i0zp%yRJ%-OCNN4KOa>C@YN?3$ z?$)C9LDyE4ZL3nB+lm!ztt;!34=p}HLATn~ZSAg#U4-_|1Q5UN_wDERZT};gn|tQm zbAI>S-#z!hU2aW@4-t5RfrJ5EKIXa?s>J9t!$T zK%+|obJYNu`-u2&0+2Z5?mpgZvBGjGhDsG`;E&3cdQ=V`7}e^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Q|d3Lm9JWcC&(+CfqT%sc z{N^|FN<%VVh#J1CMOSd<;niWr_MFf^>tcrWtNV0I%jGYc_NJuXym-f}=$wdWmlr;` zXzfqS2Op`d4o>>}o%br{-ko~v-7CW;kcnRmuQAQ>ChR->LECpmXz$4pcXo`49avve z`&?05OUlXXtA1}?DTW#buU>!Lmwi9Vv42cb=EHtBEU!Pj+x(@kVBNfz=fQ+C=IxqH zjnLImX+HGTmbJ;5(zi2g=^3*hO+JGf6{*bqnkHc`W=US=`RCmMXGV>LV6^Rb2R^da zmE8`XyF2KUomNr)d3D2~J@i*;Q#(Jtl$caGZsF(9t|^-3wlmrbf`nSJ=2*$Pk)JSc+ WoX8Lk8d48312V^@n5w2{F8&3^Wqn}) literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_3.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_30.png similarity index 100% rename from src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_3.png rename to src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_30.png diff --git a/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_35.png b/src/main/resources/assets/unicopia/textures/item/spectral_clock_ripe_35.png new file mode 100644 index 0000000000000000000000000000000000000000..e54583ea3cc6dbf994bfa54bcb93a8492090aad3 GIT binary patch literal 4685 zcmeHKdsGuw8lNCaOw}TED=NsGsKtVlnMsDcOaz()h!S8GDGPPmNoEoT@*RBK(|w(Az?inMCAM_gYmT2XxU;ByzcTh`sO;@%map6xk%JZJkK$=uv; z?)`ngd++al_k&xNo|-gKG))9S&_rXhei5jHxgs0~ek1?>gap+&I?HG^8lxd0cmYU3 zASB>0pa@3T0fI5m7|>P$N(ity3|FQJ#`1Lyu%{2$8-P7$022UgTo3?F1oc)>q`-aw z)Vo1pD*MN31~&H*^50}&am<5tlF^h7OC>lak;#ESCMDFE6g)7dRD(xK0JPx!;TdsE zg*(1G09aNrI$gR^r-R)dmzA;85ai#wY@Ig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zAyDv^KQ62UE#uwEzw$!RbD>-jK%2LQfyN-#Xfg!d4G0hlr|S2#e+_Qa_l^354CQIx z`ncRsGVIG0RS~-#Y{QOvBI}paCd@I&zR5h;uxjl-ajoER*)Q}#^=sE;Zw-t}*qvJU zaYOmqgzR&9Ip(j#iQYflFJNkBonLi45LZ<`Sax;xCEJgEe>&T>toiLrpU=>BNIg~pk=ixeH-rDW$;Sq6fx$**i$l1MDpc{>@(wlhI(#F>6G--8A zT7-6dYo}XdGcKvB@S{(taSfANOlL~7-g`s-C{i<_<*mDh3XQJewU9lp_ipNZ?!fKS zU)&~|PIkVsE5Eq?uw{ErLO^?@@T6C~bH`X?v2MwvM2YBf$nenqU_;cyLzMM{W|e%Nx`Il)W`M-(hm^j=VwQl zXYO+=de-z@$m|N=yZri_tD4`dxqE0?$K)#~UYyPtj&`l5H$+`cK*E*Bez;o@^Yso& zKC|f&G(lJ@xH5)a|7}g^!Ho{VHMn$AgnZ%D_A5`sonKY_^Fh;95D1XbkgDJR${Q>H E12d6#Gynhq literal 0 HcmV?d00001 From a0ebfbacce6615b99034ce47ab7fe6f3957b4efe Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 08:23:13 +0000 Subject: [PATCH 100/104] Move the unintelligle stuff to translation strings for LingVarr --- .../resources/assets/unicopia/lang/en_us.json | 4 +++- .../spellbook/chapters/crystal_heart.json | 18 ++---------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index a607365d..5870c3ca 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -1114,7 +1114,9 @@ "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.title": "5th Mare '12", "gui.unicopia.spellbook.chapter.artefacts.crystal_heart.3.body": "Other accounts say that this artefact only functions when mounted on a specific pedestal of diamond blocks, like a beacon.", "gui.unicopia.spellbook.chapter.artefacts.torn_page.title": "Torn Page", - "gui.unicopia.spellbook.chapter.artefacts.torn_page.2.body": "Building Materials:", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.1.body": "§kaaa§rential c§ka§rr§kaaa§rnial purpose§kaaa§r?", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.2.body": "§kAasa sasa fwefsd q43rgfd wqklmsdfl as, klasn.§r", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.3.body": "Building Materials:", "gui.unicopia.spellbook.chapter.artefacts.crystal_podium.title": "Crystal Podium", "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.2.body": "It's, um a scroll that you write somepony's name on it and you hold it in one hoof and something in the other hoof and, like, um it goes whooosh and the item is sent to that pony.", "gui.unicopia.spellbook.chapter.artefacts.dragon_breath_scroll.title": "2nd Hoof '12", diff --git a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json index d16b5763..602110cb 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/crystal_heart.json @@ -42,23 +42,9 @@ "title": "gui.unicopia.spellbook.chapter.artefacts.torn_page.title", "level": 0, "elements": [ - { - "text": "", - "extra": [ - { "text": "aaa", "obfuscated": "true" }, - { "text": "ential c" }, - { "text": "a", "obfuscated": "true" }, - { "text": "r" }, - { "text": "aaa", "obfuscated": "true" }, - { "text": "nial purpose" }, - { "text": "aaa", "obfuscated": "true" }, - { "text": "?" } - ] - }, - { - "text": "Aasa sasa fwefsd q43rgfd wqklmsdfl as, klasn.", "obfuscated": "true" - }, + "gui.unicopia.spellbook.chapter.artefacts.torn_page.1.body", "gui.unicopia.spellbook.chapter.artefacts.torn_page.2.body", + "gui.unicopia.spellbook.chapter.artefacts.torn_page.3.body", { "ingredients": [ { "count": 2, "item": "minecraft:end_rod" }, From 28e64eebe1592117122f95c6f53d708a7256baff Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 08:26:00 +0000 Subject: [PATCH 101/104] Fix incorrect translation string --- src/main/resources/assets/unicopia/lang/en_us.json | 2 +- .../resources/data/unicopia/spellbook/chapters/dark_magic.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 5870c3ca..90e2a220 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -1088,7 +1088,7 @@ "gui.unicopia.spellbook.chapter.dark_magic.p27.3.body": "I feel myself being drained any time I'm around it. Is it... feeding on me?", "gui.unicopia.spellbook.chapter.dark_magic.p27.4.body": "No, it couldn't be.", "gui.unicopia.spellbook.chapter.dark_magic.p28.1.body": "I found this incantation under some old notes whilst clearing out the lab. It's... simplistic and hard to manage, but it gets the job done.", - "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body": "* Add the power trait to increase the effect's range", + "gui.unicopia.spellbook.chapter.dark_magic.dispel_evil.modifier.1": "* Add the power trait to increase the effect's range", "gui.unicopia.spellbook.chapter.otherworldly.p1.title": "Ch.6 The Beyond", "gui.unicopia.spellbook.chapter.otherworldly.p2.title": "2nd Croptober '12", diff --git a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json index ff69df04..fb4e0968 100644 --- a/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json +++ b/src/main/resources/data/unicopia/spellbook/chapters/dark_magic.json @@ -391,7 +391,7 @@ { "count": 1, "trait": "unicopia:power" } ] }, - "gui.unicopia.spellbook.chapter.dark_magic.p27.2.body" + "gui.unicopia.spellbook.chapter.dark_magic.dispel_evil.modifier.1" ] } ] From 5a5ec8b24c3b24b295172c2a79e8cbd249b26bd7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 21:04:20 +0000 Subject: [PATCH 102/104] Implement method to obtain the spectral clock using the altar --- .../spell/crafting/AltarRecipeMatch.java | 42 ++++++ .../entity/SpellbookEntityRenderer.java | 87 +++++++++++ .../unicopia/entity/mob/SpellbookEntity.java | 140 ++++++++++++++---- 3 files changed, 238 insertions(+), 31 deletions(-) create mode 100644 src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/AltarRecipeMatch.java diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/AltarRecipeMatch.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/AltarRecipeMatch.java new file mode 100644 index 00000000..820f7667 --- /dev/null +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/crafting/AltarRecipeMatch.java @@ -0,0 +1,42 @@ +package com.minelittlepony.unicopia.ability.magic.spell.crafting; + +import java.util.List; + +import org.jetbrains.annotations.Nullable; + +import com.minelittlepony.unicopia.item.UItems; + +import net.minecraft.entity.Entity; +import net.minecraft.entity.ItemEntity; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; + +public record AltarRecipeMatch( + ItemEntity target, + List ingredients, + ItemStack result + ) { + + @Nullable + public static AltarRecipeMatch of(List inputs) { + ItemEntity clock = inputs.stream().filter(item -> item.getStack().isOf(Items.CLOCK)).findFirst().orElse(null); + + if (clock != null) { + return new AltarRecipeMatch(clock, List.of(), UItems.SPECTRAL_CLOCK.getDefaultStack()); + } + + return null; + } + + public boolean isRemoved() { + return target.isRemoved() || ingredients.stream().anyMatch(ItemEntity::isRemoved); + } + + public void craft() { + ItemStack clockStack = result.copyWithCount(target.getStack().getCount()); + clockStack.setNbt(target.getStack().getNbt()); + target.setStack(clockStack); + target.setInvulnerable(true); + ingredients.forEach(Entity::discard); + } +} diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/SpellbookEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/SpellbookEntityRenderer.java index f04a5494..ceac4e95 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/SpellbookEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/SpellbookEntityRenderer.java @@ -1,19 +1,31 @@ package com.minelittlepony.unicopia.client.render.entity; +import org.joml.Matrix3f; +import org.joml.Matrix4f; + import com.minelittlepony.unicopia.Unicopia; import com.minelittlepony.unicopia.entity.mob.SpellbookEntity; +import com.minelittlepony.unicopia.server.world.Altar; +import net.minecraft.client.render.OverlayTexture; +import net.minecraft.client.render.RenderLayer; +import net.minecraft.client.render.VertexConsumer; +import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.EntityRendererFactory; import net.minecraft.client.render.entity.LivingEntityRenderer; +import net.minecraft.client.render.entity.feature.FeatureRenderer; +import net.minecraft.client.render.entity.feature.FeatureRendererContext; import net.minecraft.client.util.math.MatrixStack; import net.minecraft.util.Identifier; import net.minecraft.util.math.*; public class SpellbookEntityRenderer extends LivingEntityRenderer { private static final Identifier TEXTURE = Unicopia.id("textures/entity/spellbook/normal.png"); + private static final Identifier ALTAR_BEAM_TEXTURE = new Identifier("textures/entity/end_crystal/end_crystal_beam.png"); public SpellbookEntityRenderer(EntityRendererFactory.Context context) { super(context, new SpellbookModel(SpellbookModel.getTexturedModelData().createModel()), 0); + addFeature(new AltarBeamFeature(this)); } @Override @@ -51,4 +63,79 @@ public class SpellbookEntityRenderer extends LivingEntityRenderer { + public AltarBeamFeature(FeatureRendererContext context) { + super(context); + } + + @Override + public void render(MatrixStack matrices, VertexConsumerProvider vertices, int light, SpellbookEntity entity, float limbPos, float limbSpeed, float tickDelta, float animationProgress, float yaw, float pitch) { + if (!entity.hasBeams()) { + return; + } + + matrices.peek(); + matrices.pop(); + matrices.push(); + + + Altar altar = entity.getAltar().get(); + Vec3d center = altar.origin().toCenterPos(); + + float x = (float)MathHelper.lerp(tickDelta, entity.prevX, entity.getX()); + float y = (float)MathHelper.lerp(tickDelta, entity.prevY, entity.getY()); + float z = (float)MathHelper.lerp(tickDelta, entity.prevZ, entity.getZ()); + Vec3d bookPos = new Vec3d(x, y, z); + Vec3d shift = bookPos.subtract(center); + + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Z.rotationDegrees(180)); + matrices.translate(shift.x, shift.y - 1, shift.z); + + for (BlockPos pillar : altar.pillars()) { + renderBeam(center.subtract(pillar.toCenterPos()), -tickDelta, -entity.age, matrices, vertices, light, 1, 0, 1); + } + + matrices.pop(); + } + + public static float getYOffset(float animationProgress) { + animationProgress = MathHelper.sin(animationProgress * 0.2F) * 0.5F + 0.5F; + return ((animationProgress * animationProgress + animationProgress) * 0.4F) - 1.4F; + } + } + + public static void renderBeam(Vec3d offset, float tickDelta, int age, MatrixStack matrices, VertexConsumerProvider buffers, int light, float r, float g, float b) { + final float horizontalDistance = (float)offset.horizontalLength(); + final float distance = (float)offset.length(); + matrices.push(); + matrices.multiply(RotationAxis.POSITIVE_Y.rotation((float)(-Math.atan2(offset.z, offset.x)) - 1.5707964f)); + matrices.multiply(RotationAxis.POSITIVE_X.rotation((float)(-Math.atan2(horizontalDistance, offset.y)) - 1.5707964f)); + VertexConsumer buffer = buffers.getBuffer(RenderLayer.getEntityTranslucent(ALTAR_BEAM_TEXTURE)); + final float minV = -(age + tickDelta) * 0.01f; + final float maxV = minV + (distance / 32F); + final int sides = 8; + final float diameter = 0.35F; + float segmentX = 0; + float segmentY = diameter; + float minU = 0; + MatrixStack.Entry entry = matrices.peek(); + Matrix4f positionMat = entry.getPositionMatrix(); + Matrix3f normalMat = entry.getNormalMatrix(); + + for (int i = 1; i <= sides; i++) { + float o = MathHelper.sin(i * MathHelper.TAU / sides) * diameter; + float p = MathHelper.cos(i * MathHelper.TAU / sides) * diameter; + float maxU = i / (float)sides; + buffer.vertex(positionMat, segmentX * 0.2F, segmentY * 0.2F, 0).color(0, 0, 0, 255).texture(minU, minV).overlay(OverlayTexture.DEFAULT_UV).light(light).normal(normalMat, 0, -1, 0).next(); + buffer.vertex(positionMat, segmentX, segmentY, distance).color(r, g, b, 1).texture(minU, maxV).overlay(OverlayTexture.DEFAULT_UV).light(light).normal(normalMat, 0, -1, 0).next(); + buffer.vertex(positionMat, o, p, distance).color(r, g, b, 1).texture(maxU, maxV).overlay(OverlayTexture.DEFAULT_UV).light(light).normal(normalMat, 0, -1, 0).next(); + buffer.vertex(positionMat, o * 0.2F, p * 0.2F, 0).color(0, 0, 0, 255).texture(maxU, minV).overlay(OverlayTexture.DEFAULT_UV).light(light).normal(normalMat, 0, -1, 0).next(); + segmentX = o; + segmentY = p; + minU = maxU; + } + matrices.pop(); + } } \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java index eb97f159..a09abfc8 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/SpellbookEntity.java @@ -2,9 +2,12 @@ package com.minelittlepony.unicopia.entity.mob; import java.util.Optional; +import org.jetbrains.annotations.Nullable; + import com.minelittlepony.unicopia.EquinePredicates; import com.minelittlepony.unicopia.USounds; import com.minelittlepony.unicopia.UTags; +import com.minelittlepony.unicopia.ability.magic.spell.crafting.AltarRecipeMatch; import com.minelittlepony.unicopia.container.SpellbookScreenHandler; import com.minelittlepony.unicopia.container.SpellbookState; import com.minelittlepony.unicopia.entity.MagicImmune; @@ -19,6 +22,7 @@ import net.fabricmc.fabric.api.util.TriState; import net.minecraft.block.Blocks; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; +import net.minecraft.entity.ItemEntity; import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.data.DataTracker; import net.minecraft.entity.data.TrackedData; @@ -30,6 +34,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.nbt.NbtCompound; import net.minecraft.network.PacketByteBuf; import net.minecraft.particle.ParticleTypes; +import net.minecraft.predicate.entity.EntityPredicates; import net.minecraft.screen.*; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.world.ServerWorld; @@ -38,13 +43,18 @@ import net.minecraft.sound.SoundCategory; import net.minecraft.text.Text; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; +import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Box; import net.minecraft.util.math.Vec3d; import net.minecraft.world.GameRules; import net.minecraft.world.World; +import net.minecraft.world.World.ExplosionSourceType; public class SpellbookEntity extends MobEntity implements MagicImmune { private static final TrackedData LOCKED = DataTracker.registerData(SpellbookEntity.class, TrackedDataHandlerRegistry.BYTE); private static final TrackedData ALTERED = DataTracker.registerData(SpellbookEntity.class, TrackedDataHandlerRegistry.BOOLEAN); + private static final byte ALTAR_BEAMS_START = 61; + private static final byte ALTAR_BEAMS_END = 62; private static final int TICKS_TO_SLEEP = 600; @@ -55,6 +65,12 @@ public class SpellbookEntity extends MobEntity implements MagicImmune { private Optional altar = Optional.empty(); + private boolean hasBeams; + private int beamsActive; + + @Nullable + private AltarRecipeMatch activeRecipe; + public SpellbookEntity(EntityType type, World world) { super(type, world); setPersistent(); @@ -104,6 +120,14 @@ public class SpellbookEntity extends MobEntity implements MagicImmune { this.altar = Optional.of(altar); } + public Optional getAltar() { + return altar; + } + + public boolean hasBeams() { + return hasBeams && altar.isPresent(); + } + public boolean isAltered() { return dataTracker.get(ALTERED); } @@ -205,44 +229,83 @@ public class SpellbookEntity extends MobEntity implements MagicImmune { return false; } - altar.pillars().forEach(pillar -> { - Vec3d center = pillar.toCenterPos().add( - random.nextTriangular(0.5, 0.2), - random.nextTriangular(0.5, 0.2), - random.nextTriangular(0.5, 0.2) - ); + tickAltarCrafting(altar); - ((ServerWorld)getWorld()).spawnParticles( - ParticleTypes.SOUL_FIRE_FLAME, - center.x - 0.5, center.y + 0.5, center.z - 0.5, - 0, - 0.5, 0.5, 0.5, 0); - - if (random.nextInt(12) != 0) { - return; - } - - Vec3d vel = center.subtract(this.altar.get().origin().toCenterPos()).normalize(); - - ((ServerWorld)getWorld()).spawnParticles( - ParticleTypes.SOUL_FIRE_FLAME, - center.x - 0.5, center.y + 0.5, center.z - 0.5, - 0, - vel.x, vel.y, vel.z, -0.2); - - if (random.nextInt(2000) == 0) { - if (getWorld().getBlockState(pillar).isOf(Blocks.CRYING_OBSIDIAN)) { - pillar = pillar.down(); - } - getWorld().setBlockState(pillar, Blocks.CRYING_OBSIDIAN.getDefaultState()); - } - }); + Vec3d origin = altar.origin().toCenterPos(); + altar.pillars().forEach(pillar -> tickAltarPillar(origin, pillar)); return true; }); } } + public void setBeamTicks(int ticks) { + getWorld().sendEntityStatus(this, ticks > 0 ? ALTAR_BEAMS_START : ALTAR_BEAMS_END); + beamsActive = ticks; + } + + private void tickAltarCrafting(Altar altar) { + if (activeRecipe == null || activeRecipe.isRemoved()) { + activeRecipe = AltarRecipeMatch.of(getWorld().getEntitiesByClass(ItemEntity.class, Box.of(altar.origin().toCenterPos(), 2, 2, 2), EntityPredicates.VALID_ENTITY)); + + if (activeRecipe != null) { + setBeamTicks(5); + } + } + + if (beamsActive <= 0) { + return; + } + + if (--beamsActive > 0) { + playSound(USounds.Vanilla.ENTITY_GUARDIAN_ATTACK, 1.5F, 0.5F); + return; + } + + //setBeamTicks(0); + + if (activeRecipe == null) { + return; + } + + activeRecipe.craft(); + activeRecipe = null; + getWorld().createExplosion(this, altar.origin().getX(), altar.origin().getY(), altar.origin().getZ(), 0, ExplosionSourceType.NONE); + } + + private void tickAltarPillar(Vec3d origin, BlockPos pillar) { + Vec3d center = pillar.toCenterPos().add( + random.nextTriangular(0.5, 0.2), + random.nextTriangular(0.5, 0.2), + random.nextTriangular(0.5, 0.2) + ); + + ((ServerWorld)getWorld()).spawnParticles( + ParticleTypes.SOUL_FIRE_FLAME, + center.x - 0.5, center.y + 0.5, center.z - 0.5, + 0, + 0.5, 0.5, 0.5, 0); + + if (random.nextInt(12) != 0) { + return; + } + + Vec3d vel = center.subtract(origin).normalize(); + + ((ServerWorld)getWorld()).spawnParticles( + ParticleTypes.SOUL_FIRE_FLAME, + center.x - 0.5, center.y + 0.5, center.z - 0.5, + 0, + vel.x, vel.y, vel.z, -0.2); + + if (random.nextInt(2000) == 0) { + if (getWorld().getBlockState(pillar).isOf(Blocks.CRYING_OBSIDIAN)) { + pillar = pillar.down(); + } + getWorld().setBlockState(pillar, Blocks.CRYING_OBSIDIAN.getDefaultState()); + } + } + private boolean shouldBeSleeping() { return MeteorlogicalUtil.getSkyAngle(getWorld()) > 1 && activeTicks <= 0; } @@ -337,4 +400,19 @@ public class SpellbookEntity extends MobEntity implements MagicImmune { }); Altar.SERIALIZER.writeOptional("altar", compound, altar); } + + @Override + public void handleStatus(byte status) { + switch (status) { + case ALTAR_BEAMS_START: + altar = Altar.locateAltar(getWorld(), getBlockPos()); + hasBeams = altar.isPresent(); + break; + case ALTAR_BEAMS_END: + altar = Optional.empty(); + hasBeams = false; + default: + super.handleStatus(status); + } + } } From eb4c70de2f6dbf428f214691789c2a1cc4379355 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 21:17:16 +0000 Subject: [PATCH 103/104] 1.20.1 -> 1.20.2 (merge fixes) --- .../ability/EarthPonyGrowAbility.java | 2 +- .../unicopia/compat/emi/Main.java | 8 ++-- .../unicopia/item/TransformCropsRecipe.java | 38 ++++++------------- .../unicopia/network/MsgZapAppleStage.java | 3 +- 4 files changed, 18 insertions(+), 33 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java index 61ab54d5..ec910617 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/EarthPonyGrowAbility.java @@ -138,7 +138,7 @@ public class EarthPonyGrowAbility implements Ability { return player.asWorld().getRecipeManager() .getAllMatches(URecipes.GROWING, new TransformCropsRecipe.PlacementArea(player, pos), player.asWorld()) .stream() - .map(recipe -> recipe.checkPattern(player.asWorld(), pos)) + .map(recipe -> recipe.value().checkPattern(player.asWorld(), pos)) .filter(result -> result.matchedLocations().size() + 1 >= TransformCropsRecipe.MINIMUM_INPUT) .filter(result -> { boolean transform = result.shoudTransform(player.asWorld().random); diff --git a/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java b/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java index 9a7df925..94d5525a 100644 --- a/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java +++ b/src/main/java/com/minelittlepony/unicopia/compat/emi/Main.java @@ -112,10 +112,10 @@ public class Main implements EmiPlugin { registry.addWorkstation(GROWING_CATEGORY, GROWING_STATION); registry.getRecipeManager().listAllOfType(URecipes.GROWING).forEach(recipe -> { registry.addRecipe(new EmiWorldInteractionRecipe(EmiWorldInteractionRecipe.builder() - .id(recipe.getId()) - .leftInput(EmiStack.of(recipe.getTargetAsItem())) - .rightInput(EmiStack.of(recipe.getCatalyst(), TransformCropsRecipe.MINIMUM_INPUT), true) - .output(EmiStack.of(recipe.getOutput()))) { + .id(recipe.id()) + .leftInput(EmiStack.of(recipe.value().getTargetAsItem())) + .rightInput(EmiStack.of(recipe.value().getCatalyst(), TransformCropsRecipe.MINIMUM_INPUT), true) + .output(EmiStack.of(recipe.value().getOutput()))) { @Override public EmiRecipeCategory getCategory() { return GROWING_CATEGORY; diff --git a/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java b/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java index 284665ce..557fb014 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java +++ b/src/main/java/com/minelittlepony/unicopia/item/TransformCropsRecipe.java @@ -3,12 +3,9 @@ package com.minelittlepony.unicopia.item; import java.util.HashSet; import java.util.Set; -import com.google.gson.JsonObject; import com.minelittlepony.unicopia.block.state.StateUtil; import com.minelittlepony.unicopia.entity.player.Pony; -import com.mojang.datafixers.util.Pair; import com.mojang.serialization.Codec; -import com.mojang.serialization.JsonOps; import com.mojang.serialization.codecs.RecordCodecBuilder; import net.minecraft.block.Block; @@ -22,7 +19,6 @@ import net.minecraft.recipe.RecipeSerializer; import net.minecraft.recipe.RecipeType; import net.minecraft.registry.DynamicRegistryManager; import net.minecraft.registry.Registries; -import net.minecraft.util.Identifier; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.Direction; import net.minecraft.util.math.random.Random; @@ -35,14 +31,11 @@ public class TransformCropsRecipe implements Recipe getSerializer() { return URecipes.TRANSFORM_CROP_SERIALIZER; @@ -82,11 +70,11 @@ public class TransformCropsRecipe implements Recipe { - record Intermediate(Block target, BlockState fuel, BlockState output) {} - private static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( - Registries.BLOCK.getCodec().fieldOf("target").forGetter(Intermediate::target), - BlockState.CODEC.fieldOf("consume").forGetter(Intermediate::fuel), - BlockState.CODEC.fieldOf("output").forGetter(Intermediate::output) - ).apply(instance, Intermediate::new)); + private static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( + Registries.BLOCK.getCodec().fieldOf("target").forGetter(recipe -> recipe.target), + BlockState.CODEC.fieldOf("consume").forGetter(recipe -> recipe.catalyst), + BlockState.CODEC.fieldOf("output").forGetter(recipe -> recipe.output) + ).apply(instance, TransformCropsRecipe::new)); @Override - public TransformCropsRecipe read(Identifier id, JsonObject json) { - Intermediate content = CODEC.decode(JsonOps.INSTANCE, json).result().map(Pair::getFirst).get(); - return new TransformCropsRecipe(id, content.target(), content.fuel(), content.output()); + public Codec codec() { + return CODEC; } @Override - public TransformCropsRecipe read(Identifier id, PacketByteBuf buffer) { - return new TransformCropsRecipe(id, + public TransformCropsRecipe read(PacketByteBuf buffer) { + return new TransformCropsRecipe( buffer.readRegistryValue(Registries.BLOCK), Block.getStateFromRawId(buffer.readInt()), Block.getStateFromRawId(buffer.readInt()) diff --git a/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java b/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java index 10bad6c1..2a63a8d7 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java +++ b/src/main/java/com/minelittlepony/unicopia/network/MsgZapAppleStage.java @@ -3,13 +3,12 @@ package com.minelittlepony.unicopia.network; import com.minelittlepony.unicopia.server.world.ZapAppleStageStore; import com.sollace.fabwork.api.packets.Packet; -import net.minecraft.entity.player.PlayerEntity; import net.minecraft.network.PacketByteBuf; public record MsgZapAppleStage ( ZapAppleStageStore.Stage stage, long delta - ) implements Packet { + ) implements Packet { public MsgZapAppleStage(PacketByteBuf buffer) { this(buffer.readEnumConstant(ZapAppleStageStore.Stage.class), buffer.readLong()); From 38892ffde43ca9f72e06457d7fe584626b3c32a9 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 21:17:34 +0000 Subject: [PATCH 104/104] Remove unused mixin --- .../client/render/spell/PortalSpellRenderer.java | 8 -------- .../unicopia/mixin/client/MixinWorldRenderer.java | 9 +-------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index 8881834e..a75c3f72 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -6,9 +6,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.entity.EntityReference; -import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.render.Frustum; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.util.math.MatrixStack; @@ -80,10 +78,4 @@ public class PortalSpellRenderer extends SpellRenderer { matrices.pop(); } - - public interface WorldRendererDuck { - ObjectArrayList unicopia_getChunkInfos(); - - Frustum unicopia_getFrustum(); - } } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java index bf5dc7b5..edcc852d 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java @@ -15,10 +15,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import com.minelittlepony.unicopia.client.ClientBlockDestructionManager; import com.minelittlepony.unicopia.client.UnicopiaClient; -import com.minelittlepony.unicopia.client.render.spell.PortalSpellRenderer; - import it.unimi.dsi.fastutil.longs.Long2ObjectMap; -import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.render.BlockBreakingInfo; import net.minecraft.client.render.Camera; import net.minecraft.client.render.WorldRenderer; @@ -28,7 +25,7 @@ import net.minecraft.resource.SynchronousResourceReloader; import net.minecraft.util.math.RotationAxis; @Mixin(value = WorldRenderer.class, priority = 1001) -abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source, PortalSpellRenderer.WorldRendererDuck { +abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source { private final ClientBlockDestructionManager destructions = new ClientBlockDestructionManager(); @@ -44,10 +41,6 @@ abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCl return destructions; } - @Override - @Accessor("chunkInfos") - public abstract ObjectArrayList unicopia_getChunkInfos(); - @Override @Accessor("ticks") public abstract int getTicks();