Skip to content

Commit

Permalink
⬆️ 1.19.4 port
Browse files Browse the repository at this point in the history
  • Loading branch information
LocusAzzurro committed Jun 20, 2023
1 parent 179ca86 commit 0830374
Show file tree
Hide file tree
Showing 32 changed files with 109 additions and 82 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

minecraft_version=1.19.3
minecraft_version_range=[1.19.3]
forge_version=44.1.0
forge_version_range=[44,)
loader_version_range=[44,)
minecraft_version=1.19.4
minecraft_version_range=[1.19.4]
forge_version=45.1.0
forge_version_range=[45,)
loader_version_range=[45,)
mappings_channel=official
mappings_version=1.19.3
mappings_version=1.19.4

mod_id=pyrotechnicraft
mod_name=Pyrotechnicraft
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-06-21T00:29:39.0726577 Block States: pyrotechnicraft
// 1.19.4 2023-06-21T01:11:42.3099359 Block States: pyrotechnicraft
1b2704a1f88f054bfbe0f5efe83f296bc6a9f5d7 assets/pyrotechnicraft/blockstates/composite_firework_orb_launcher_stand.json
0f8af74078302a356965c663d796ead70437ee56 assets/pyrotechnicraft/blockstates/firework_launcher_stand.json
3b2bff2975eccc0c42f772f6999bbbc36ccc4c45 assets/pyrotechnicraft/blockstates/firework_missile_crafting_table.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-06-21T00:29:39.0746577 pyrotechnicraft Item Tags
// 1.19.4 2023-06-21T01:11:42.3109363 pyrotechnicraft Item Tags
1b2b2d7ade8bc1d9416753e0cda18cc7cf9ebca8 data/forge/tags/items/dusts/coal.json
35133e95f1c8fdd7a1c21afcc231fc0bffefb9a8 data/forge/tags/items/dusts/diamond.json
35133e95f1c8fdd7a1c21afcc231fc0bffefb9a8 data/forge/tags/items/dusts/iron.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-06-21T00:29:39.0766584 pyrotechnicraft Item Models
// 1.19.4 2023-06-21T01:11:42.3129367 pyrotechnicraft Item Models
e7f248b2d2667c34a23694dbf868a93f3dba915e assets/pyrotechnicraft/models/item/2d_explosion_pattern.json
fa19194798f1dd31d7d6fcadade9458997c754a2 assets/pyrotechnicraft/models/item/3d_explosion_pattern.json
002be3c6f48046a16cfd6162a787c7bc7bf07c57 assets/pyrotechnicraft/models/item/burst_explosion_pattern.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-06-21T00:29:39.0746577 Loot Tables
// 1.19.4 2023-06-21T01:11:42.3109363 Loot Tables
0252994caec71ff7612f432051aaac2cc156847b data/pyrotechnicraft/loot_tables/blocks/composite_firework_orb_launcher_stand.json
12d520c81b5c58ad6e4e6daf6459ab5292c8700c data/pyrotechnicraft/loot_tables/blocks/firework_launcher_stand.json
c8996ce9edfaa445382a2a0a96bc585e663a32a1 data/pyrotechnicraft/loot_tables/blocks/firework_missile_crafting_table.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// 1.19.3 2023-06-21T00:29:39.0746577 pyrotechnicraft Block Tags
// 1.19.4 2023-06-21T01:11:42.3109363 pyrotechnicraft Block Tags
2c5103cafd2498b05d247b84469869ccf9b57ef3 data/minecraft/tags/blocks/mineable/axe.json
e57dda9981b976cd6e50d607a435479c669e2958 data/minecraft/tags/blocks/mineable/pickaxe.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.19.3 2023-06-21T00:29:39.075658 Recipes
// 1.19.4 2023-06-21T01:11:42.3119366 Recipes
c2544c3a5070819f7156b1aa346a0dff03d51013 data/pyrotechnicraft/advancements/recipes/combat/firecracker.json
4f0d62a9014762cee6d7de5a05ba082de1f531ab data/pyrotechnicraft/advancements/recipes/combat/homing_array.json
950240db635ca89da99950e7ead8e82a4a2dd748 data/pyrotechnicraft/advancements/recipes/combat/homing_array_script.json
Expand All @@ -20,24 +20,24 @@ b594a22e3d4253ba484bd5a074f915470b14bfb2 data/pyrotechnicraft/advancements/recip
c3bc17c5a972fd77e9fccc3e32d9bc709147646f data/pyrotechnicraft/advancements/recipes/tools/firework_missile_crafting_table.json
4573136b7c71f0002a3c6f04ad7e5e0dc7b7b418 data/pyrotechnicraft/advancements/recipes/tools/firework_orb_crafting_table.json
94fc30831805eb39ed85477b5f567b73415abf1c data/pyrotechnicraft/advancements/recipes/tools/firework_orb_shooter.json
69fc0d20f71fab44abba8d28073b6fc23ba379ca data/pyrotechnicraft/recipes/burst_explosion_pattern.json
90f4b1f942d83cc5e2fd9afaf1179b72b6321310 data/pyrotechnicraft/recipes/extended_fuse.json
31e4d20289fea4fa79d9adba35571bc62a1e3a38 data/pyrotechnicraft/recipes/firecracker.json
eef638dde38e7450d9c1ca86a9bc68aca3536192 data/pyrotechnicraft/recipes/firework_homing_module.json
ed78b90aadd93efcf9118bf9be6c0f856abda1f0 data/pyrotechnicraft/recipes/firework_launcher.json
38e4529e427dc5226acec77e90a8625effc51f88 data/pyrotechnicraft/recipes/firework_missile_crafting_table.json
b2500703565a53af347baf4f2bdda05ab12c3073 data/pyrotechnicraft/recipes/burst_explosion_pattern.json
0db92e6b67f2e20e37003b272309f2f1a09e06cf data/pyrotechnicraft/recipes/extended_fuse.json
0099faafd288489a75a726faf2495dbfd2ae9915 data/pyrotechnicraft/recipes/firecracker.json
04a831198757e3c4c6387a87f486a8573f83168d data/pyrotechnicraft/recipes/firework_homing_module.json
784e6d576a90e83e9b46f8582849f62f35c1d20a data/pyrotechnicraft/recipes/firework_launcher.json
61031eee380956c7cc363fd13c6f64b2065bcbe8 data/pyrotechnicraft/recipes/firework_missile_crafting_table.json
9d403ae6609313670513f293d90d5ca7fcee9f1a data/pyrotechnicraft/recipes/firework_mixture.json
d07b5837515be6c6e74bd5c1608314001b2a4d26 data/pyrotechnicraft/recipes/firework_mixture_with_gunpowder.json
4c52f58510d5b8de450dda070beef49274647cb1 data/pyrotechnicraft/recipes/firework_orb_core.json
6f5df8ea244b2f9d469b6879a078d9ccc057a53b data/pyrotechnicraft/recipes/firework_orb_core_with_firework_mixture.json
89d25b06dd02a3efce6470601beeb751aba45031 data/pyrotechnicraft/recipes/firework_orb_core_with_gunpowder.json
f0baea4f5c71cac201c2482f99721198ca9d8e94 data/pyrotechnicraft/recipes/firework_orb_crafting_table.json
3d3c6bdc6ae872fe87dd3098c202d3b058daab03 data/pyrotechnicraft/recipes/firework_orb_shooter.json
521899b15eb2382dceaa7f10122ee4a3998e2c93 data/pyrotechnicraft/recipes/firework_wrapping_paper.json
98b7faa44d42a9f842ec8bc5de73e8d6a9a2b57d data/pyrotechnicraft/recipes/flicker_stick.json
b1b1338e2c6b5783faa60f173c7eb32607a60916 data/pyrotechnicraft/recipes/homing_array.json
3cdb20e2a4dbc17b8469f0068be42207b9aec7fd data/pyrotechnicraft/recipes/firework_orb_crafting_table.json
f25c48ce5aa8df0c39ca6e802f8314748cd2e9ad data/pyrotechnicraft/recipes/firework_orb_shooter.json
ab2a75585cdd3f61dda573f9bc860d2d50962dfa data/pyrotechnicraft/recipes/firework_wrapping_paper.json
0660232c3c3b7c2c42755354b4506e856eb326e6 data/pyrotechnicraft/recipes/flicker_stick.json
5b12a6086b609196a0ebdda47078726b1746180d data/pyrotechnicraft/recipes/homing_array.json
fe54a5da711b3fe029c6e6ceaf14554cd3bcaf10 data/pyrotechnicraft/recipes/homing_array_script.json
2e8d3e297a8f0ba18b98817903d5623e16da2cf5 data/pyrotechnicraft/recipes/instant_fuse.json
38471fe7ca3e72c37e9d6780e2bef1d4b7d958de data/pyrotechnicraft/recipes/regular_fuse.json
000f8407b463a5a296931417cdcd6c7ccf5a7af0 data/pyrotechnicraft/recipes/ring_explosion_pattern.json
48d9c90844bc97b5a15ff95743127cb6f75d3584 data/pyrotechnicraft/recipes/sphere_explosion_pattern.json
f919ea7ce476d40824672c0900e64742519ebc21 data/pyrotechnicraft/recipes/instant_fuse.json
f359a19976e64b95397e4146b69ca41aae1c5f2a data/pyrotechnicraft/recipes/regular_fuse.json
f5b3431b7a830c3fceaef850f1d09fb454ac5ff4 data/pyrotechnicraft/recipes/ring_explosion_pattern.json
23be91d473744464779a5cbc3e85e52c24127086 data/pyrotechnicraft/recipes/sphere_explosion_pattern.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"result": {
"item": "pyrotechnicraft:burst_explosion_pattern"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"result": {
"count": 2,
"item": "pyrotechnicraft:extended_fuse"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
],
"result": {
"item": "pyrotechnicraft:firecracker"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
],
"result": {
"item": "pyrotechnicraft:firework_homing_module"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
],
"result": {
"item": "pyrotechnicraft:firework_launcher"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
],
"result": {
"item": "pyrotechnicraft:firework_missile_crafting_table"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
],
"result": {
"item": "pyrotechnicraft:firework_orb_crafting_table"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"result": {
"item": "pyrotechnicraft:firework_orb_shooter"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"result": {
"count": 4,
"item": "pyrotechnicraft:firework_wrapping_paper"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
],
"result": {
"item": "pyrotechnicraft:flicker_stick"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
],
"result": {
"item": "pyrotechnicraft:homing_array"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"result": {
"count": 2,
"item": "pyrotechnicraft:instant_fuse"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"result": {
"count": 2,
"item": "pyrotechnicraft:regular_fuse"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"result": {
"item": "pyrotechnicraft:ring_explosion_pattern"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
],
"result": {
"item": "pyrotechnicraft:sphere_explosion_pattern"
}
},
"show_notification": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.mineplugin.locusazzurro.pyrotechnicraft.data;

import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.damagesource.DamageType;
import org.mineplugin.locusazzurro.pyrotechnicraft.Pyrotechnicraft;

public class DamageTypeRegistry {

public static final ResourceKey<DamageType> FIREWORK = register("firework");

private static ResourceKey<DamageType> register(String name)
{
return ResourceKey.create(Registries.DAMAGE_TYPE, new ResourceLocation(Pyrotechnicraft.MOD_ID, name));
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
package org.mineplugin.locusazzurro.pyrotechnicraft.datagen;

import net.minecraft.core.HolderLookup;
import net.minecraft.core.RegistrySetBuilder;
import net.minecraft.core.registries.Registries;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.PackOutput;
import net.minecraftforge.common.data.DatapackBuiltinEntriesProvider;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.data.event.GatherDataEvent;
import org.mineplugin.locusazzurro.pyrotechnicraft.Pyrotechnicraft;

import java.util.Set;
import java.util.concurrent.CompletableFuture;

@Mod.EventBusSubscriber(modid = Pyrotechnicraft.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class DataGenerators {

final static String MOD_ID = Pyrotechnicraft.MOD_ID;

private static final RegistrySetBuilder BUILDER = new RegistrySetBuilder()
.add(Registries.DAMAGE_TYPE, ModDamageTypes::bootstrap);
@SubscribeEvent
public static void gatherData(GatherDataEvent event) {
DataGenerator generator = event.getGenerator();
Expand All @@ -29,5 +35,6 @@ public static void gatherData(GatherDataEvent event) {
ModBlockTagsProvider blockTags = new ModBlockTagsProvider(output, lookupProvider, fh);
generator.addProvider(event.includeServer(), blockTags);
generator.addProvider(event.includeServer(), new ModItemTagsProvider(output, lookupProvider, blockTags, fh));
generator.addProvider(event.includeServer(), new DatapackBuiltinEntriesProvider(output, event.getLookupProvider(), BUILDER, Set.of(Pyrotechnicraft.MOD_ID)));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.mineplugin.locusazzurro.pyrotechnicraft.datagen;

import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.world.damagesource.DamageType;
import org.mineplugin.locusazzurro.pyrotechnicraft.data.DamageTypeRegistry;

public class ModDamageTypes {
protected static void bootstrap(BootstapContext<DamageType> context)
{
context.register(DamageTypeRegistry.FIREWORK, new DamageType("firework", 0.1F));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class ModItemTagsProvider extends ItemTagsProvider {

public ModItemTagsProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, TagsProvider<Block> blockTagProvider, ExistingFileHelper existingFileHelper) {
super(output, lookupProvider, blockTagProvider, DataGenerators.MOD_ID, existingFileHelper);
super(output, lookupProvider, blockTagProvider.contentsGetter(), DataGenerators.MOD_ID, existingFileHelper);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public static void registerTabs(CreativeModeTabEvent.Register event){
event.registerCreativeModeTab(new ResourceLocation(Pyrotechnicraft.MOD_ID, "firework"), builder -> builder
.icon(() -> new ItemStack(ItemRegistry.FIREWORK_MISSILE.get()))
.title(Component.translatable("itemGroup.pyrotechnicraft"))
.displayItems((featureFlags, output, hasOp) -> {
ItemRegistry.ITEMS.getEntries().stream().map(RegistryObject::get).forEach(output::accept);
})
.displayItems((displayParameters, output) -> ItemRegistry.ITEMS.getEntries().stream().map(RegistryObject::get).forEach(output::accept))
);
}

Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0830374

Please sign in to comment.