• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello all,  I am fairly new to the whole modding for Minecraft and I I’m stuck spend about 5 hours researching where to go, how to use loot Tables, but I’m still a little stuck. I’ve created two blocks in my mod, but when I break them I’m getting no item. I know I have to use Lott Tables. Does anyone know where or could show me the best way to create / start off the generation for Loot Table? Like I’m I just using .json files out of the loot_table folder, or is there Java somewhere that can point me in the correct location? Anything will help at this point. Would love some pointers.    thank you,    Hunter 
    • When i tranna locate my structure minecraft says "Could not find that structure nearby ". What i did wrong public class MyStructure { public static final DeferredRegister<Structure<?>> DEFERRED_REGISTRY_STRUCTURE = DeferredRegister.create(ForgeRegistries.STRUCTURE_FEATURES, Main.MODID); public static final RegistryObject<Structure<NoFeatureConfig>> RUN_DOWN_HOUSE = registerStructure("run_down_house", () -> (new MyPieces(NoFeatureConfig.field_236558_a_))); private static <T extends Structure<?>> RegistryObject<T> registerStructure(String name, Supplier<T> structure) { return DEFERRED_REGISTRY_STRUCTURE.register(name, structure); } public static void setupStructures() { setupMapSpacingAndLand( RUN_DOWN_HOUSE.get(), new StructureSeparationSettings(10 , 5 , 1234567890 ), true); } public static <F extends Structure<?>> void setupMapSpacingAndLand( F structure, StructureSeparationSettings structureSeparationSettings, boolean transformSurroundingLand) { Structure.NAME_STRUCTURE_BIMAP.put(structure.getRegistryName().toString(), structure); if(transformSurroundingLand) Structure.field_236384_t_.add(structure); DimensionStructuresSettings.field_236191_b_.put(structure, structureSeparationSettings); }   public class MyPieces extends Structure<NoFeatureConfig> { public MyPieces(Codec<NoFeatureConfig> codec) { super(codec); } @Override public IStartFactory<NoFeatureConfig> getStartFactory() { return MyPieces.Start::new; } @Override public GenerationStage.Decoration getDecorationStage() { return GenerationStage.Decoration.SURFACE_STRUCTURES; } public static class Start extends StructureStart<NoFeatureConfig> { public Start(Structure<NoFeatureConfig> p_i225876_1_, int p_i225876_2_, int p_i225876_3_, MutableBoundingBox p_i225876_4_, int p_i225876_5_, long p_i225876_6_) { super(p_i225876_1_, p_i225876_2_, p_i225876_3_, p_i225876_4_, p_i225876_5_, p_i225876_6_); } @Override public void func_230364_a_(DynamicRegistries dynamicRegistries, ChunkGenerator chunkGenerator, TemplateManager templateManager, int cx, int cy, Biome biome, NoFeatureConfig config) { int x = cx << 4; int z = cy << 4; BlockPos blockpos = new BlockPos(x, 0, z); JigsawManager.func_242837_a( dynamicRegistries,new VillageConfig(() -> dynamicRegistries.getRegistry(Registry.JIGSAW_POOL_KEY).getOrDefault(new ResourceLocation(Main.MODID,"run_down_house/start_pool")),10), AbstractVillagePiece::new,chunkGenerator,templateManager,blockpos,this.components,this.rand,false,true); this.components.forEach(piece -> piece.offset(0, 1, 0)); this.components.forEach(piece -> piece.getBoundingBox().minY -= 1); this.recalculateStructureSize(); } } }   public class MyConfigStructures { public static StructureFeature<?, ?> CONFIGURED_RUN_DOWN_HOUSE = MyStructure.RUN_DOWN_HOUSE.get().withConfiguration(IFeatureConfig.NO_FEATURE_CONFIG); public static void registerConfiguredStructures() { Registry<StructureFeature<?, ?>> registry = WorldGenRegistries.CONFIGURED_STRUCTURE_FEATURE; Registry.register(registry, new ResourceLocation(Main.MODID, "configured_run_down_house"), CONFIGURED_RUN_DOWN_HOUSE); Map<Structure<?>, StructureFeature<?, ?>> STR = ObfuscationReflectionHelper.getPrivateValue(FlatGenerationSettings.class,null,"STRUCTURES"); STR.put(MyStructure.RUN_DOWN_HOUSE.get(), CONFIGURED_RUN_DOWN_HOUSE); ObfuscationReflectionHelper.setPrivateValue(FlatGenerationSettings.class,null,STR,"STRUCTURES"); //Map<Structure<?>, StructureFeature<?, ?>> STR = ObfuscationReflectionHelper.getPrivateValue(FlatGenerationSettings.class,null,"field_202247_j"); //STR.put(MyStructure.RUN_DOWN_HOUSE.get(), CONFIGURED_RUN_DOWN_HOUSE); //ObfuscationReflectionHelper.setPrivateValue(FlatGenerationSettings.class,null,STR,"field_202247_j"); } }   public Main() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); MyStructure.DEFERRED_REGISTRY_STRUCTURE.register(bus); bus.addListener(this::setup); IEventBus forgeBus = MinecraftForge.EVENT_BUS; forgeBus.addListener(EventPriority.NORMAL, this::addDimensionalSpacing); forgeBus.addListener(EventPriority.HIGH, this::biomeModification); } private void setup (final FMLCommonSetupEvent event) { Networking.RegMes(); event.enqueueWork(() -> { MyStructure.setupStructures(); MyConfigStructures.registerConfiguredStructures(); }); } public void biomeModification(final BiomeLoadingEvent event) { event.getGeneration().getStructures().add(() -> MyConfigStructures.CONFIGURED_RUN_DOWN_HOUSE); } public void addDimensionalSpacing(final WorldEvent.Load event) { if(event.getWorld() instanceof ServerWorld){ ServerWorld serverWorld = (ServerWorld)event.getWorld(); if(serverWorld.getChunkProvider().getChunkGenerator() instanceof FlatChunkGenerator && serverWorld.getDimensionKey().equals(World.OVERWORLD)){ return; } Map<Structure<?>, StructureSeparationSettings> tempMap = new HashMap<>(serverWorld.getChunkProvider().generator.func_235957_b_().func_236195_a_()); tempMap.put(MyStructure.RUN_DOWN_HOUSE.get(), DimensionStructuresSettings.field_236191_b_.get(MyStructure.RUN_DOWN_HOUSE.get())); serverWorld.getChunkProvider().generator.func_235957_b_().func_236195_a_(); }    
    • I wonder how to create a sword that have more damage to entities.
    • Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release 2021-01-18 23:17:17,936 main WARN Advanced terminal features are not available in this environment [23:17:18] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, yourawizardharry, --version, 1.16.4-forge-35.1.13, --gameDir, C:\Users\vital\AppData\Roaming\.minecraft, --assetsDir, C:\Users\vital\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, d41d8cd98f00b204e9800998ecf8427e, --accessToken, ????????, --userType, legacy, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 35.1.13, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20201102.104115] [23:17:18] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 1.8.0_271 by Oracle Corporation [23:17:18] [Thread-0/INFO] [in.mi.GameStarter$1/]: gonna patch [23:17:18] [Thread-0/INFO] [in.mi.GameStarter/]: Patching protocol factory [23:17:18] [Thread-0/INFO] [in.mi.GameStarter/]: Previous factory: null [23:17:18] [main/INFO] [op.OptiFineTransformationService/]: OptiFineTransformationService.onLoad [23:17:18] [main/INFO] [op.OptiFineTransformationService/]: OptiFine ZIP file: C:\Users\vital\AppData\Roaming\.minecraft\mods\OptiFine_1.16.4_HD_U_G5.jar [23:17:18] [main/INFO] [op.OptiFineTransformer/]: Target.PRE_CLASS is available [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]: java.lang.reflect.InvocationTargetException [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]:     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]:     at java.lang.reflect.Method.invoke(Unknown Source) [23:17:18] [main/INFO] [STDERR/]: [info.mineshafter.GameStarter:main:63]:     at info.mineshafter.GameStarter.main(GameStarter.java:61) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]: Caused by: java.lang.Error: factory already defined [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at java.net.URL.setURLStreamHandlerFactory(Unknown Source) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at net.minecraftforge.fml.loading.FMLLoader.onInitialLoad(FMLLoader.java:102) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at net.minecraftforge.fml.loading.FMLServiceProvider.onLoad(FMLServiceProvider.java:122) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.TransformationServiceDecorator.onLoad(TransformationServiceDecorator.java:53) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$loadTransformationServices$11(TransformationServicesHandler.java:131) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at java.util.HashMap$Values.forEach(Unknown Source) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.TransformationServicesHandler.loadTransformationServices(TransformationServicesHandler.java:131) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:56) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:76) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [23:17:18] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:-1]:     ... 5 more   does not show the 5 more please help 
  • Topics

  • Who's Online (See full list)