Jump to content

Modding__With__Forge__Cannot instantiate the type?


CraftyPuffin
 Share

Recommended Posts

Iv been able to create steps and iv moved onto slabs, i basicly took minecrafts slabs and figure out all the red errors but in the core class:

Block RedStoneSlab = new MeetTheMod_B_Slab(RedStoneSlabID, MeetTheMod_A_SUPER_CORE.RedStone, 64).setResistance(0.8F).setBlockName("RedStoneSlab");

 

This in red says it cant Instantiate the type  MeetTheMod_B_Slab and it confuses me...

 

Heres the class file i took from the soruces: http://paste.minecraftforge.net/view/ca9d6134

 

If you know my problem can you just stupify it for me? tell me were to go what to change or direct me to a working tutorial <3

 

thanks in advance!

   

Link to comment
Share on other sites

I might me maken a java mod but doesint always mean the one maken the mod knows this stuff lol im letrally new to this and i only know what i know from tutorials for miencrasft only lol asume the worst!

 

Also i took out abstract didint notice it was there and it keeps telling me to add it :( Still a noob any more help about maken slabs mate?

Link to comment
Share on other sites

actually if theres a updated tutorial on maken slabs that would help greatly.

 

I know how to make tools, armor, ore generation, smelting, items, food, plants and flowers, steps and maybe something else i cant think of right now.

 

I just need pointers or a tutorial or updated examples. Im not a dumbass  show me once and ill probally know how to update ect.

Link to comment
Share on other sites

I figured out steps on my own with the minor help of pointing my attention to "Block" since my only problem with steps was i was extending block not BlockStairs and then it worked fine, there was no tutorials for steps from what i could find all im asking is for help on slabs since i cant figure out what i need to change in the side class.

 

I just need a working example, but i do intend to learn java properly i just want to get 15% of this mod finished so i can post it and see how well it can do, seeing blocks work and other stuff was very encouraging.

 

Anyway maken this mod is still learning java, figureing out problems is widening my outlook on the codes i just cant figure out slabs.

Link to comment
Share on other sites

Grand cause i try not to fall into flame wars xD

 

Sweet ill definetly look at them in the morning my head is melted atm lol Much apresiated for the link ^_^

 

BUT i still want help :3 (Im a very stubborn person but i do intend to learn java properly I just wanted to get slabs doors and fences sorted before i moved into other projects O.o)

Link to comment
Share on other sites

Grand cause i try not to fall into flame wars xD

 

Sweet ill definetly look at them in the morning my head is melted atm lol Much apresiated for the link ^_^

 

BUT i still want help :3 (Im a very stubborn person but i do intend to learn java properly I just wanted to get slabs doors and fences sorted before i moved into other projects O.o)

LEARN JAVA!!!!

 

Pretty much.

[shadow=black,right][glow=green,2,300]

uyjulian's website

[/glow][/shadow]

Link to comment
Share on other sites

Will.

Intended too before i started.

Still want help.

 

Atleast for slabs then ill finish up my mod and post it.

 

No more "Go learn java" comments.

 

Ether Send a helpfull reply in slab department or just dont. Getting anoyed ill be looking into java tuts tomo.

 

extends BlockSlab

 

Also, get rid of the abstract.

[shadow=black,right][glow=green,2,300]

uyjulian's website

[/glow][/shadow]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I made a huge forge 1.7.10 mod pack but whenever I try to create a singleplayer world I get the error saying "A fatal error has occurred, this connection is terminated." Does anyone know what the issue could be?  Here is my fml-client-latest.log from when it crashes: https://paste.ubuntu.com/p/3rKSJSqnrX/ and here is the list of mods: https://imgur.com/a/AZifMbg    
    • Im trying to host a minecraft server using the curseforge serverpack from FTB Direwolf20 and when I try to start the server I run into an error The Error: Starting server A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)         at java.lang.reflect.Method.invoke(Unknown Source)         at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43)         at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12) Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level         at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Level         at java.net.URLClassLoader$1.run(Unknown Source)         at java.net.URLClassLoader$1.run(Unknown Source)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)         at java.lang.ClassLoader.loadClass(Unknown Source)         ... 8 more   I'have tried deleting and downloading the newset version of java wich didnt work and now im using an older version which is the 1.7.0_80 Here is what my Server folder looks like: https://ibb.co/jkbfRY7 Here is what the ServerStart.bat file looks like: @if NOT "%FTB_VERBOSE%"=="yes" ( @echo off ) call settings.bat if NOT EXIST minecraft_server.1.7.10.jar ( goto install ) if NOT EXIST libraries\%LAUNCHWRAPPER% ( goto install ) goto skipinstall :install echo running install script! call FTBInstall.bat :skipinstall REM Check if java in path REM TODO: use %JAVACMD% where java > NUL 2>&1 if %ERRORLEVEL% NEQ 0 ( echo No java binary in path. Can't run server, exiting... pause exit /B ) REM Test JVM REM e.g. 32-bit JVM does not have server\jvm.dll library java -server -version > java-test.log 2>&1 if %ERRORLEVEL% NEQ 0 ( echo Detected following JVM error: echo ======================================= more java-test.log echo ======================================= echo JVM test failed. Can't run server, Exiting... pause exit /B ) if not exist eula.txt ( echo Missing eula.txt. Startup will fail and eula.txt will be created echo Make sure to read eula.txt before playing! goto startserver ) find "eula=false" eula.txt 1 > NUL 2>&1 if %ERRORLEVEL% EQU 0 ( echo Make sure to read eula.txt before playing! Exiting. pause exit /B ) del /f /q autostart.stamp > nul 2>1 :startserver echo Starting server java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1558.jar nogui :server_loop if exist autostart.stamp ( del /f /q autostart.stamp > nul 2>1 echo If you want to completely stop the server process now, press Ctrl+C before the time is up! for /l %%i in (5,-1,1) do ( echo Restarting server in %%i choice /t 1 /d y > nul ) echo Starting server now java -server -Xms512M -Xmx2048M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1558.jar nogui echo Server process finished goto :server_loop ) echo Exiting... pause  
    • Made a modpack (Well Rounded Blockheads, in case the modlist on curseforge helps) and server to host it, worked fine until last night. The issue that pops up after some days being up/working is when you leave a world (singleplayer) or shutdown a server, the process hangs and jumps to 8.5gb ram used, eats up CPU usage (50-60% in taskman on a 3800x) and just sits there. If done on a single player world, the game doesnt fully crash, (e.g. if you alt+f4 buttons like save and quit, options stay in the window, are still clickable but they do nothing) Saving seems to still happen, as location/inventory updates if I restart server or client and play the world again.   If I start the currently afflicted server but dont login the server closes properly, its only once I log back in the problem occurs. Its a priv server and I dont have anyone else to test atm so Idk if its a prob with my player or players/area in general. Only recent changes in game are the additions of a pnuematicraft pressure chamber, an enchanting table, and bookshelves from builders crafts and additions.... I've been trying to get help on this all day, so ANY assistance goes a long way, even if its a way to debug this myself >~< Debug/Latest logs
    • Thanks warjort. I was afraid, that this is because they are entities. Now I know where to dig. But what about water, for example? I have checked via debug code, that there is no entity there (appropriate method return null). What is wrong with liquids?
  • Topics

×
×
  • Create New...

Important Information

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