Jump to content

Noxxous

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by Noxxous

  1. I finally got it to work by changing everything to example mod which seems to work. I think I need to delete something in the background, and I think that this is a bug, because I was trying to hack Minecraft to let me to have a bigger file, and that's why you haven't dealt with this before. It has taken a lot of work, and I am just wondering what I could delete

  2. Quote

    ---- Minecraft Crash Report ----
    // Surprise! Haha. Well, this is awkward.

    Time: 2023-06-02 18:37:26
    Description: Rendering overlay

    java.lang.NullPointerException: Cannot invoke "net.minecraft.client.resources.model.BakedModel.getParticleIcon()" because the return value of "net.minecraft.client.renderer.block.BlockModelShaper.getBlockModel(net.minecraft.world.level.block.state.BlockState)" is null
        at net.minecraft.client.renderer.block.LiquidBlockRenderer.setupSprites(LiquidBlockRenderer.java:36) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.renderer.block.BlockRenderDispatcher.onResourceManagerReload(BlockRenderDispatcher.java:127) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.server.packs.resources.ResourceManagerReloadListener.lambda$reload$0(ResourceManagerReloadListener.java:13) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading}
        at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?] {}
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}
        at net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$new$3(SimpleReloadInstance.java:65) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading}
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:143) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading}
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:116) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
        at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:104) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
        at net.minecraft.client.Minecraft.runTick(Minecraft.java:1091) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.run(Minecraft.java:713) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.run(Main.java:212) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.main(Main.java:51) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
        at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:25) ~[fmlloader-1.19.3-44.1.0.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Thread: Render thread
    Stacktrace:
        at net.minecraft.client.renderer.block.LiquidBlockRenderer.setupSprites(LiquidBlockRenderer.java:36) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.renderer.block.BlockRenderDispatcher.onResourceManagerReload(BlockRenderDispatcher.java:127) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.server.packs.resources.ResourceManagerReloadListener.lambda$reload$0(ResourceManagerReloadListener.java:13) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading}
        at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?] {}
        at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}
        at net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$new$3(SimpleReloadInstance.java:65) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading}
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:143) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading,pl:accesstransformer:B}
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:22) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading}
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:116) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar%23191!/:?] {re:classloading,pl:accesstransformer:B}
    -- Overlay render details --
    Details:
        Overlay name: net.minecraft.client.gui.screens.LoadingOverlay
    Stacktrace:
        at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:923) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.runTick(Minecraft.java:1135) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.run(Minecraft.java:713) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.run(Main.java:212) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.main(Main.java:51) ~[forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
        at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:25) ~[fmlloader-1.19.3-44.1.0.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.8.jar:?] {}
        at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}


    -- Last reload --
    Details:
        Reload number: 1
        Reload reason: initial
        Finished: No
        Packs: vanilla, mod_resources

    -- System Details --
    Details:
        Minecraft Version: 1.19.3
        Minecraft Version ID: 1.19.3
        Operating System: Windows 10 (amd64) version 10.0
        Java Version: 17.0.7, Eclipse Adoptium
        Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
        Memory: 186666184 bytes (178 MiB) / 444596224 bytes (424 MiB) up to 4139778048 bytes (3948 MiB)
        CPUs: 16
        Processor Vendor: AuthenticAMD
        Processor Name: AMD Ryzen 7 4800H with Radeon Graphics         
        Identifier: AuthenticAMD Family 23 Model 96 Stepping 1
        Microarchitecture: unknown
        Frequency (GHz): 2.89
        Number of physical packages: 1
        Number of physical CPUs: 8
        Number of logical CPUs: 16
        Graphics card #0 name: NVIDIA GeForce RTX 3050 Ti Laptop GPU
        Graphics card #0 vendor: NVIDIA (0x10de)
        Graphics card #0 VRAM (MB): 4095.00
        Graphics card #0 deviceId: 0x25a0
        Graphics card #0 versionInfo: DriverVersion=31.0.15.1640
        Graphics card #1 name: AMD Radeon(TM) Graphics
        Graphics card #1 vendor: Advanced Micro Devices, Inc. (0x1002)
        Graphics card #1 VRAM (MB): 512.00
        Graphics card #1 deviceId: 0x1636
        Graphics card #1 versionInfo: DriverVersion=30.0.13002.19003
        Memory slot #0 capacity (MB): 8192.00
        Memory slot #0 clockSpeed (GHz): 3.20
        Memory slot #0 type: DDR4
        Memory slot #1 capacity (MB): 8192.00
        Memory slot #1 clockSpeed (GHz): 3.20
        Memory slot #1 type: DDR4
        Virtual memory max (MB): 29577.41
        Virtual memory used (MB): 25432.68
        Swap memory total (MB): 13786.29
        Swap memory used (MB): 1562.07
        JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
        Launched Version: MOD_DEV
        Backend library: LWJGL version 3.3.1 build 7
        Backend API: AMD Radeon(TM) Graphics GL version 3.2.14761 Core Profile Forward-Compatible Context 21.30.02.19 30.0.13002.19003, ATI Technologies Inc.
        Window size: 854x480
        GL Caps: Using framebuffer using OpenGL 3.2
        GL debug messages: 
        Using VBOs: Yes
        Is Modded: Definitely; Client brand changed to 'forge'
        Type: Client (map_client.txt)
        Graphics mode: fancy
        Resource Packs: 
        Current Language: English (US)
        CPU: 16x AMD Ryzen 7 4800H with Radeon Graphics 
        ModLauncher: 10.0.8+10.0.8+main.0ef7e830
        ModLauncher launch target: forgeclientuserdev
        ModLauncher naming: mcp
        ModLauncher services: 
            mixin-0.8.5.jar mixin PLUGINSERVICE 
            eventbus-6.0.3.jar eventbus PLUGINSERVICE 
            fmlloader-1.19.3-44.1.0.jar slf4jfixer PLUGINSERVICE 
            fmlloader-1.19.3-44.1.0.jar object_holder_definalize PLUGINSERVICE 
            fmlloader-1.19.3-44.1.0.jar runtime_enum_extender PLUGINSERVICE 
            fmlloader-1.19.3-44.1.0.jar capability_token_subclass PLUGINSERVICE 
            accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE 
            fmlloader-1.19.3-44.1.0.jar runtimedistcleaner PLUGINSERVICE 
            modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE 
            modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE 
        FML Language Providers: 
            minecraft@1.0
            lowcodefml@null
            javafml@null
        Mod List: 
            forge-1.19.3-44.1.0_mapped_official_1.19.3-recomp.|Minecraft                     |minecraft                     |1.19.3              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
                                                              |Forge                         |forge                         |44.1.0              |DONE      |Manifest: NOSIGNATURE
            main                                              |Not Enough Sci-Fi             |notenoughscifi                |0; The Alpha Stage  |DONE      |Manifest: NOSIGNATURE
        Crash Report UUID: 7fa2fe4a-d6b7-4ec7-817f-12399c614e33
        FML: 44.1
        Forge: net.minecraftforge:44.1.0

    This has come since I tried using a animated Texture that had too many pixels (512*512), and Minecraft didn't like it. I was wondering if you guys could help?

  3. I just copied and pasted from a tutorial and it worked. It was probably because of the rule test variable, the spawn rate being too high and the height difference. I think that the spawn rate's maximum is 50 but I'm not going to do anything else so that I don't become burnt out

  4. It sounds like the names used to distinguish two world generation code is the same, which confuses the system and causes it to crash because that's not how it's supposed to happen. What you could try doing is experimenting with alternative mods by deleting different ones until you find the culprit 

  5. Hello, I am currently trying to get custom ore generation to work and I have tried to imitate every last bit of code from the tutorials, I've edited and I have even tried using an older version of Forge but it still isn't working. I have spent hours working on this for nothing

     

    	public Lightsaber_Main() {
    		IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
    		
    		itemInit.Items.register(bus);
    		BlockInit.Blocks.register(bus);
    		
    		ModSounds.register(bus);
    
    		configuredFeatureInit.CONFIGURED_FEATURES.register(bus);
    		
    		PlacedFeaturesInit.Placed_Feature.register(bus);
    		
    		MinecraftForge.EVENT_BUS.register(this);
    		
    	}
    public class configuredFeatureInit {
    
    	private static final RuleTest END_STONE = new BlockMatchTest(Blocks.STONE);
    	   
    	public static final DeferredRegister<ConfiguredFeature<?, ?>> CONFIGURED_FEATURES 
    		= DeferredRegister.create(Registry.CONFIGURED_FEATURE_REGISTRY, Lightsaber_Main.MOD_ID);
    
    	public static final Supplier<List<OreConfiguration.TargetBlockState>> END_KYBER_CRYSTAL_ORE 
    		= Suppliers.memoize(() -> List.of(
    				OreConfiguration.target(OreFeatures.STONE_ORE_REPLACEABLES,
    				BlockInit.kyber_crystal_ore.get().defaultBlockState()),
    				
    				OreConfiguration.target(OreFeatures.DEEPSLATE_ORE_REPLACEABLES,
    						BlockInit.kyber_crystal_ore.get().defaultBlockState())
    				));
    	
    	public static final RegistryObject<ConfiguredFeature<?, ?>> END_ORE_GENERATION 
    		= CONFIGURED_FEATURES.register("kyber_crystal_ore", 
    				() -> new ConfiguredFeature<>(Feature.ORE, 
    						new OreConfiguration(END_KYBER_CRYSTAL_ORE.get(), 14)));
    	
    }
    public class PlacedFeaturesInit {
    
    	public static final DeferredRegister<PlacedFeature> Placed_Feature = DeferredRegister.create(Registry.PLACED_FEATURE_REGISTRY, Lightsaber_Main.MOD_ID);
    
    	public static final RegistryObject<PlacedFeature> END_ORE = Placed_Feature.register("kyber_crystal_ore_placed",
    		() -> new PlacedFeature(configuredFeatureInit.END_ORE_GENERATION.getHolder().get(), 
    			commonOrePlacement(50,
    				HeightRangePlacement.uniform(
    					VerticalAnchor.aboveBottom(-64),
    					VerticalAnchor.belowTop(319)
    				)
    			)
    		)
    	);
    	
    	
    	public static List<PlacementModifier> commonOrePlacement(int countPerChunk, PlacementModifier height) {
    		return orePlacement(CountPlacement.of(countPerChunk), height);
    		
    	}
    
    	public static List<PlacementModifier> orePlacement(PlacementModifier count, PlacementModifier height) {
    		return List.of(count, InSquarePlacement.spread(), BiomeFilter.biome());
    	}
    	
    	public static List<PlacementModifier> rareOrePlacement(int count, PlacementModifier height) {
    		return orePlacement(RarityFilter.onAverageOnceEvery(count), height);
    	}
    }

     

    add_kyber_crystal_ore.json:

    {
    	"type": "forge:add_features",
    	"biomes": "#minecraft:is_overworld",
    	"features": "lightsabermod:kyber_crystal_ore_placed",
    	"step": "underground_ores"
    }

     

  6. Hello, I have set it to Setblock Fire and I have tried copying from Flint and Steel and I have changed it to no. 3 flag, but it still burns forever and unloads when you go somewhere else


        @SubscribeEvent
        public static void Mine (LeftClickBlock event) {
            BlockPos bPos = event.getPos();
            BlockPos DebugPos = bPos;
            if ((event.getEntity().getMainHandItem().getItem() == itemInit.lightsaber_on.get() || event.getEntity().getMainHandItem().getItem() == itemInit.lightsaber_off.get())/* && !event.getLevel().isClientSide*/){
                if (event.getFace() == Direction.UP || event.getFace() == Direction.DOWN) {
                    for (int i = 1; i > -2; i--) {
                        for (int j = 1; j > -2; j--) {
                            bPos = new BlockPos(DebugPos.getX() + i, DebugPos.getY(), DebugPos.getZ() + j);
                            Minecraft.getInstance().level.setBlock(bPos, BaseFireBlock.getState(Minecraft.getInstance().level, bPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, bPos);
                            Minecraft.getInstance().level.setBlock(DebugPos, BaseFireBlock.getState(Minecraft.getInstance().level, DebugPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, DebugPos);
                        }
                    }
                }
                if (event.getFace() == Direction.NORTH || event.getFace() == Direction.SOUTH) {
                    for (int i = 1; i > -2; i--) {
                        for (int j = 1; j > -2; j--) {
                            bPos = new BlockPos(DebugPos.getX() + i, DebugPos.getY() + j, DebugPos.getZ());
                            Minecraft.getInstance().level.setBlock(bPos, BaseFireBlock.getState(Minecraft.getInstance().level, bPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, bPos);
                            Minecraft.getInstance().level.setBlock(DebugPos, BaseFireBlock.getState(Minecraft.getInstance().level, DebugPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, DebugPos);
                        }
                    }
                }
                if (event.getFace() == Direction.EAST || event.getFace() == Direction.WEST) {
                    for (int i = 1; i > -2; i--) {
                        for (int j = 1; j > -2; j--) {
                            bPos = new BlockPos(DebugPos.getX(), DebugPos.getY() + i, DebugPos.getZ() + j);
                            Minecraft.getInstance().level.setBlock(bPos, BaseFireBlock.getState(Minecraft.getInstance().level, bPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, bPos);
                            Minecraft.getInstance().level.setBlock(DebugPos, BaseFireBlock.getState(Minecraft.getInstance().level, DebugPos), 3);
                            event.getLevel().gameEvent(event.getEntity(), GameEvent.BLOCK_PLACE, DebugPos);
                        }
                    }
                }
                Minecraft.getInstance().player.playSound(SoundEvents.GENERIC_DRINK, 1.0f, 1.0f);
                event.setCanceled(true);
            }
        }
     

  7. 14 hours ago, DietmarKracht said:

    It is teleportTo iirc. Check the parameters. Though you need a serverworld as the targetworld

    Ok, but how do you find the ServerWorld of the target dimension? I'm having the same problem with Change Dimension except I can't find any class that is associated with any Dimension, and I want to use a custom dimension (using datapack) so I would probably need to the codec but then that's just a RegistryKey so a completely different instance and probably a method from what I remember and I can't think of any terms to find the Dimension class

  8. Thanks my guy. I can see straight away it's permanent storage I want because I want to charge my item (using Redstone, got that sorted). I am very ADHD and can't take medication currently but I read through it a little bit. Just waiting on to be able to get coffee. Anyway thanks

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.