Jump to content

hydroflame

Members
  • Posts

    1511
  • Joined

  • Last visited

Posts posted by hydroflame

  1. @yagoki, yeah i was also thinking they were searching way too far

     

    @op, the code described by yagoki will not overburden your server,even with a small server, even calculated every tick is NOTHING compared to what vanilla minecraft has to do every tick, its safe to assume you could do this every tick because if you do it every 5 minute you will have weird result when the time is near dawn/dusk (the time will seem to "jump" back)

  2. hey i remember you from the post about coming from bukkit and trying to merge to forge, seems like you like it here ;)

     

    to answer your question, yes it looks like its easier then you think, all you have to do is make a class extend EntityThrowable and override the method "onImpact"

    then register this new entity in the main mod class and make it spawn when you use the item.

     

    you could also make a new renderer if you need to make it look appealing

     

    i suggest you look into the "blaster" tutorial from the wiki, it explains very well what you're trying to do

     

    -hydroflame-

  3. woups sorry you misunderstood (or i did)

    i was thinking that Tsundare was saying there is a vanilla command line thing to do thsi (like tp player1 player2 or give player123 65 64, stop, say hello world, etc)

     

    but yeah thanks seabass ill deffinitelly check into that ;)

     

  4. @diesieben07 well that and hes not constructing his Item in the preInit:

     

    //ADD ITEMS
            //*********
            public static final Item ItemDutarFragment = new ItemDutarFragment(5001);
            
            
            
            // Server 'proxy' code being loaded.
            @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy")
            public static CommonProxy proxy;
            
            @EventHandler
            public void preInit(FMLPreInitializationEvent event) {
                    // Stub Method
            	
            }

     

    change to

     

    import net.minecraft.item.Item;
    public class classname{
    //ADD ITEMS
            //*********
            public static Item ItemDutarFragment;
            
            
            
            // Server 'proxy' code being loaded.
            @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy")
            public static CommonProxy proxy;
            
            @EventHandler
            public void preInit(FMLPreInitializationEvent event) {
                    ItemDutarFragment = new ItemDutarFragment(5001);
            	
            }

  5. ?

    wont a Class/Method/FieldNotFoundException be thrown only if a parent/herited class/method has already the @Sideonly annotation? and if they do. adding it again wouldnt change anything. unless im wrong calling  a function with @Sideonly will throw a NotFoundEx only if you're calling it from the wrong side as opposed to calling the method/wtv with the try/catch will throw the exception if its called from the wrong side BUT will not crash the server/client

     

    and like i said, debugging, lets not make @sideonly a religion xD

  6. post: "Modder Support Board Guidelines - READ ME BEFORE POSTING!!!"

    This forum section is for modders needing help with coding.

    If you need help using the universal binary, please go to http://www.minecraftforge.net/forum/index.php/board,15.0.html.

    The wiki here: http://www.minecraftforge.net/wiki/ and the javadoc: http://jd.minecraftforge.net/ also contain additional resources to help you in taking advantage of the power of Forge in your mods.

     

    Please report posts that aren't acceptable using the "Report to Moderator" link. I will take action ASAP.

    Do note that bump posts will be removed.

     

    When posting code and stack traces use http://paste.minecraftforge.net/ ! :P Thanks!

     

    wrong board budddy ;)

  7. yeah i know theres no "recommended" build, but i wanted to ask people opinion on its stability overall as i don't want to upgrade to something ill spend more time debugging then actually coding my features

     

    about the obfuscation mapping being mcp: yeah, sorry i forgot they're 2 different things xD

     

    i can read the release thread y'know :P

  8. @diesieben using @Sideonly is the equivalent of this

    try{
    if(side is server){
    throw new exception();
    }
    }catch(Exception e){
    e.printStackTrace();
    }

     

    i agree that you should not have million of them. but they can be usefull for debugging and understanding what goes where

  9. underground would have been some chosen value like 16 and down. of course itll break player construction but if its only 16 and down, you could tell your players that every x amount of time youll regen 16 and down. so they wont really build there. as for keep track of every block created by the player? you would just eventually end up with the same problem. some people plce torch and cobblestone while digging

  10. @mew

     

    new ResourceLocation("/assets/MODID/textures/model/TEXTURENAME.png")

     

    100% speculation as i havnt used 161 yet but do you know/think that you are suppose to keep the "ResourceLocation" object saved somewhere as minecraft might be doing some stuff when setting them up that you should only have to setup once. so if you recreate them every time you need them, you're using computer ressources you shouldnt be using ?

×
×
  • Create New...

Important Information

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