添加data generator
This commit is contained in:
parent
827c91c726
commit
342847c1f7
43 changed files with 396 additions and 258 deletions
|
@ -36,13 +36,18 @@ minecraft {
|
||||||
property 'mixin.env.remapRefMap', 'true'
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
}
|
}
|
||||||
|
|
||||||
data {
|
data {
|
||||||
property 'mixin.env.remapRefMap', 'true'
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
|
|
||||||
|
args '--mod', 'superbwarfare', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = "https://maven.theillusivec4.top/"
|
url = "https://maven.theillusivec4.top/"
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
// 1.20.1 2024-09-09T20:11:17.4096685 Item Models: superbwarfare
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/aa_12_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ak_47_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/bocek_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/devotion_blueprint.json
|
||||||
|
831ce33c5a4c90b71a42515f42f16d4c1a946c50 assets/superbwarfare/models/item/empty_perk.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/glock_17_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/glock_18_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/hk_416_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/hunting_rifle_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/javelin_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/k_98_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/marlin_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/minigun_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/mk_14_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/mosin_nagant_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_1911_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_4_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_60_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_79_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_870_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_98b_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ntw_20_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/qbz_95_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/rpg_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/rpk_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/sentinel_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/sks_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/svd_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/taser_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/trachelium_blueprint.json
|
||||||
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/vector_blueprint.json
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/perk/empty_perk"
|
"layer0": "superbwarfare:item/perk/empty_perk"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"parent": "item/generated",
|
"parent": "minecraft:item/generated",
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/gun_blueprint"
|
"layer0": "superbwarfare:item/gun_blueprint"
|
||||||
}
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package net.mcreator.superbwarfare.datagen;
|
||||||
|
|
||||||
|
import net.mcreator.superbwarfare.ModUtils;
|
||||||
|
import net.minecraft.core.HolderLookup;
|
||||||
|
import net.minecraft.data.DataGenerator;
|
||||||
|
import net.minecraft.data.PackOutput;
|
||||||
|
import net.minecraftforge.common.data.ExistingFileHelper;
|
||||||
|
import net.minecraftforge.data.event.GatherDataEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
@Mod.EventBusSubscriber(modid = ModUtils.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||||
|
public class DataGenerators {
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public static void gatherData(GatherDataEvent event) {
|
||||||
|
DataGenerator generator = event.getGenerator();
|
||||||
|
PackOutput packOutput = generator.getPackOutput();
|
||||||
|
CompletableFuture<HolderLookup.Provider> lookupProvider = event.getLookupProvider();
|
||||||
|
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();
|
||||||
|
|
||||||
|
// generator.addProvider(event.includeServer(), ModLootTableProvider.create(packOutput));
|
||||||
|
// generator.addProvider(event.includeServer(), new ModWorldGenProvider(packOutput, lookupProvider));
|
||||||
|
// generator.addProvider(event.includeServer(), new ModBlockStateProvider(packOutput, existingFileHelper));
|
||||||
|
generator.addProvider(event.includeServer(), new ModItemModelProvider(packOutput, existingFileHelper));
|
||||||
|
// ModBlockTagProvider tagProvider = generator.addProvider(event.includeServer(), new ModBlockTagProvider(packOutput, lookupProvider, existingFileHelper));
|
||||||
|
// generator.addProvider(event.includeServer(), new ModItemTagProvider(packOutput, lookupProvider, tagProvider.contentsGetter(), existingFileHelper));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,82 @@
|
||||||
|
package net.mcreator.superbwarfare.datagen;
|
||||||
|
|
||||||
|
import net.mcreator.superbwarfare.ModUtils;
|
||||||
|
import net.mcreator.superbwarfare.init.ModItems;
|
||||||
|
import net.minecraft.data.PackOutput;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
|
import net.minecraft.world.item.Item;
|
||||||
|
import net.minecraft.world.level.block.Block;
|
||||||
|
import net.minecraftforge.client.model.generators.ItemModelBuilder;
|
||||||
|
import net.minecraftforge.client.model.generators.ItemModelProvider;
|
||||||
|
import net.minecraftforge.common.data.ExistingFileHelper;
|
||||||
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
import net.minecraftforge.registries.RegistryObject;
|
||||||
|
|
||||||
|
@SuppressWarnings({"ConstantConditions", "UnusedReturnValue", "SameParameterValue", "unused"})
|
||||||
|
public class ModItemModelProvider extends ItemModelProvider {
|
||||||
|
public ModItemModelProvider(PackOutput output, ExistingFileHelper existingFileHelper) {
|
||||||
|
super(output, ModUtils.MODID, existingFileHelper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void registerModels() {
|
||||||
|
simpleItem(ModItems.EMPTY_PERK, "perk/");
|
||||||
|
|
||||||
|
// blueprints
|
||||||
|
blueprintItem(ModItems.TRACHELIUM_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.GLOCK_17_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.GLOCK_18_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.HUNTING_RIFLE_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_79_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.RPG_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.BOCEK_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_4_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.AA_12_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.HK_416_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.RPK_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.SKS_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.NTW_20_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.VECTOR_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.MINIGUN_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.MK_14_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.SENTINEL_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_60_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.SVD_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.MARLIN_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_870_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_98B_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.AK_47_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.DEVOTION_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.TASER_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.M_1911_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.QBZ_95_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.K_98_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.MOSIN_NAGANT_BLUEPRINT);
|
||||||
|
blueprintItem(ModItems.JAVELIN_BLUEPRINT);
|
||||||
|
}
|
||||||
|
|
||||||
|
private ItemModelBuilder simpleItem(RegistryObject<Item> item) {
|
||||||
|
return simpleItem(item, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
private ItemModelBuilder simpleItem(RegistryObject<Item> item, String location) {
|
||||||
|
return withExistingParent(item.getId().getPath(), new ResourceLocation("item/generated"))
|
||||||
|
.texture("layer0", new ResourceLocation(ModUtils.MODID, "item/" + location + item.getId().getPath()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ItemModelBuilder simpleItem(RegistryObject<Item> item, String location, String renderType) {
|
||||||
|
return withExistingParent(item.getId().getPath(), new ResourceLocation("item/generated"))
|
||||||
|
.texture("layer0", new ResourceLocation(ModUtils.MODID, "item/" + location + item.getId().getPath())).renderType(renderType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void evenSimplerBlockItem(RegistryObject<Block> block) {
|
||||||
|
this.withExistingParent(ModUtils.MODID + ":" + ForgeRegistries.BLOCKS.getKey(block.get()).getPath(),
|
||||||
|
modLoc("block/" + ForgeRegistries.BLOCKS.getKey(block.get()).getPath()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private ItemModelBuilder blueprintItem(RegistryObject<Item> item) {
|
||||||
|
return withExistingParent(item.getId().getPath(), new ResourceLocation("item/generated"))
|
||||||
|
.texture("layer0", new ResourceLocation(ModUtils.MODID, "item/gun_blueprint"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,51 +0,0 @@
|
||||||
{
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"parent": "builtin/entity",
|
|
||||||
"texture_size": [
|
|
||||||
256,
|
|
||||||
256
|
|
||||||
],
|
|
||||||
"display": {
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"translation": [
|
|
||||||
-4.75,
|
|
||||||
-2.75,
|
|
||||||
-4.5
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"firstperson_lefthand": {
|
|
||||||
"translation": [
|
|
||||||
8.75,
|
|
||||||
-61,
|
|
||||||
-21
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"gui": {
|
|
||||||
"rotation": [
|
|
||||||
165.69,
|
|
||||||
-39.63,
|
|
||||||
178.66
|
|
||||||
],
|
|
||||||
"translation": [
|
|
||||||
-2.4,
|
|
||||||
-4.75,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
0.21,
|
|
||||||
0.21,
|
|
||||||
0.21
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,102 +0,0 @@
|
||||||
{
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"parent": "builtin/entity",
|
|
||||||
"texture_size": [
|
|
||||||
64,
|
|
||||||
64
|
|
||||||
],
|
|
||||||
"gui_light": "front",
|
|
||||||
"display": {
|
|
||||||
"thirdperson_righthand": {
|
|
||||||
"translation": [
|
|
||||||
0,
|
|
||||||
5.5,
|
|
||||||
-0.25
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"thirdperson_lefthand": {
|
|
||||||
"scale": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"translation": [
|
|
||||||
-1.5,
|
|
||||||
-12.5,
|
|
||||||
-26.5
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
3,
|
|
||||||
3,
|
|
||||||
3
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"firstperson_lefthand": {
|
|
||||||
"scale": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ground": {
|
|
||||||
"translation": [
|
|
||||||
0,
|
|
||||||
4.25,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
1.2,
|
|
||||||
1.2,
|
|
||||||
1.2
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"gui": {
|
|
||||||
"rotation": [
|
|
||||||
90,
|
|
||||||
45,
|
|
||||||
-90
|
|
||||||
],
|
|
||||||
"translation": [
|
|
||||||
-5.75,
|
|
||||||
-1.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
1.6,
|
|
||||||
1.6,
|
|
||||||
1.6
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"head": {
|
|
||||||
"translation": [
|
|
||||||
0,
|
|
||||||
23.75,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
3,
|
|
||||||
3,
|
|
||||||
3
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"fixed": {
|
|
||||||
"rotation": [
|
|
||||||
90,
|
|
||||||
-45,
|
|
||||||
90
|
|
||||||
],
|
|
||||||
"translation": [
|
|
||||||
-6.5,
|
|
||||||
7.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"parent": "builtin/entity",
|
|
||||||
"texture_size": [
|
|
||||||
128,
|
|
||||||
128
|
|
||||||
],
|
|
||||||
"display": {
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"translation": [
|
|
||||||
-6.5,
|
|
||||||
3.75,
|
|
||||||
5
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"firstperson_lefthand": {
|
|
||||||
"scale": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
{
|
|
||||||
"credit": "Made with Blockbench",
|
|
||||||
"parent": "builtin/entity",
|
|
||||||
"texture_size": [
|
|
||||||
64,
|
|
||||||
64
|
|
||||||
],
|
|
||||||
"display": {
|
|
||||||
"firstperson_righthand": {
|
|
||||||
"translation": [
|
|
||||||
-10.25,
|
|
||||||
-2.5,
|
|
||||||
-7.25
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"firstperson_lefthand": {
|
|
||||||
"translation": [
|
|
||||||
-80,
|
|
||||||
-80,
|
|
||||||
-80
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"gui": {
|
|
||||||
"rotation": [
|
|
||||||
165.69,
|
|
||||||
-39.63,
|
|
||||||
178.66
|
|
||||||
],
|
|
||||||
"translation": [
|
|
||||||
0.25,
|
|
||||||
-3.5,
|
|
||||||
0
|
|
||||||
],
|
|
||||||
"scale": [
|
|
||||||
0.45,
|
|
||||||
0.45,
|
|
||||||
0.45
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +1,53 @@
|
||||||
{
|
{
|
||||||
"parent": "superbwarfare:displaysettings/aa12.item",
|
"credit": "Made with Blockbench",
|
||||||
|
"parent": "builtin/entity",
|
||||||
|
"texture_size": [
|
||||||
|
256,
|
||||||
|
256
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"translation": [
|
||||||
|
-4.75,
|
||||||
|
-2.75,
|
||||||
|
-4.5
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"translation": [
|
||||||
|
8.75,
|
||||||
|
-61,
|
||||||
|
-21
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [
|
||||||
|
165.69,
|
||||||
|
-39.63,
|
||||||
|
178.66
|
||||||
|
],
|
||||||
|
"translation": [
|
||||||
|
-2.4,
|
||||||
|
-4.75,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
0.21,
|
||||||
|
0.21,
|
||||||
|
0.21
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/aa12_new"
|
"layer0": "superbwarfare:item/aa12_new"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,104 @@
|
||||||
{
|
{
|
||||||
"parent": "superbwarfare:displaysettings/abekiri.item",
|
"credit": "Made with Blockbench",
|
||||||
|
"parent": "builtin/entity",
|
||||||
|
"texture_size": [
|
||||||
|
64,
|
||||||
|
64
|
||||||
|
],
|
||||||
|
"gui_light": "front",
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"translation": [
|
||||||
|
0,
|
||||||
|
5.5,
|
||||||
|
-0.25
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"thirdperson_lefthand": {
|
||||||
|
"scale": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"translation": [
|
||||||
|
-1.5,
|
||||||
|
-12.5,
|
||||||
|
-26.5
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
3,
|
||||||
|
3,
|
||||||
|
3
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"scale": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"translation": [
|
||||||
|
0,
|
||||||
|
4.25,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
1.2,
|
||||||
|
1.2,
|
||||||
|
1.2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [
|
||||||
|
90,
|
||||||
|
45,
|
||||||
|
-90
|
||||||
|
],
|
||||||
|
"translation": [
|
||||||
|
-5.75,
|
||||||
|
-1.5,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
1.6,
|
||||||
|
1.6,
|
||||||
|
1.6
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"head": {
|
||||||
|
"translation": [
|
||||||
|
0,
|
||||||
|
23.75,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
3,
|
||||||
|
3,
|
||||||
|
3
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [
|
||||||
|
90,
|
||||||
|
-45,
|
||||||
|
90
|
||||||
|
],
|
||||||
|
"translation": [
|
||||||
|
-6.5,
|
||||||
|
7.5,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/abekiri"
|
"layer0": "superbwarfare:item/abekiri"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,26 @@
|
||||||
{
|
{
|
||||||
"parent": "superbwarfare:displaysettings/ak47.item",
|
"credit": "Made with Blockbench",
|
||||||
|
"parent": "builtin/entity",
|
||||||
|
"texture_size": [
|
||||||
|
128,
|
||||||
|
128
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"translation": [
|
||||||
|
-6.5,
|
||||||
|
3.75,
|
||||||
|
5
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"scale": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/ak47"
|
"layer0": "superbwarfare:item/ak47"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,48 @@
|
||||||
{
|
{
|
||||||
"parent": "superbwarfare:displaysettings/bocek.item",
|
"credit": "Made with Blockbench",
|
||||||
|
"parent": "builtin/entity",
|
||||||
|
"texture_size": [
|
||||||
|
64,
|
||||||
|
64
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"translation": [
|
||||||
|
-10.25,
|
||||||
|
-2.5,
|
||||||
|
-7.25
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"firstperson_lefthand": {
|
||||||
|
"translation": [
|
||||||
|
-80,
|
||||||
|
-80,
|
||||||
|
-80
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [
|
||||||
|
165.69,
|
||||||
|
-39.63,
|
||||||
|
178.66
|
||||||
|
],
|
||||||
|
"translation": [
|
||||||
|
0.25,
|
||||||
|
-3.5,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"scale": [
|
||||||
|
0.45,
|
||||||
|
0.45,
|
||||||
|
0.45
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"textures": {
|
"textures": {
|
||||||
"layer0": "superbwarfare:item/bocek"
|
"layer0": "superbwarfare:item/bocek"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue