Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

opssemnik

Members
  • Content Count

    269
  • Joined

  • Last visited

Everything posted by opssemnik

  1. goes back to origin doing for not correctly syinc client-server position of the entity...
  2. you dont put on .obj as far i know, you use a code on your render, search for the vannila one and copy / paste
  3. did you do gradlew reobf and used the class files inside build folder? that error its because your class files are not obfuscated
  4. @ForgeSubscribe public void onPlayerPlaceFurnace(PlayerInteractEvent event) { EntityPlayer p = event.entityPlayer; if(event.action == Action.RIGHT_CLICK_BLOCK) { ItemStack s = p.inventory.getCurrentItem(); if(s.itemID == Block.furnaceIdle.blockID) { this.mc.getNetHandler().getPlayer().addChatMessage("Furnace Placed"); } } } TO @ForgeSubscribe public void onPlayerPlaceFurnace(PlayerInteractEvent event) { EntityPlayer p = event.entityPlayer; if(event.action == Action.RIGHT_CLICK_BLOCK) { ItemStack s = p.inventory.getCurrentItem(); i
  5. its rendering as iron because you didnt implement getArmorTexture(3 params that i dont remeber)
  6. its just a loop checking for blocks, ins´t that hard
  7. Hey, i remember back in 1.5(i think) i was looking in forge sources and found an interface that made possibly to add some external lib to the fml lib loader, so it would download and add it to the classpath,however i cant find on forge gradle(10.x). what is the name?
  8. ex: public list<String> lol = new ArrayList<String>(); //blablablala nah i prefer spoilers, this isnt working code it need changes
  9. as far i know u can only save serialized classes (probably wrong)
  10. question: u know these only work on dedicated server right?
  11. "so that mods like mine can add tooltips to the vanilla minecraft items, or other mod items.", well actualy u can add that using tick handlers with ticktype player, getting the current equiped item and adding information
  12. erm ok, anyways did u registred the event on the @PreInit? if not try that
  13. because ore events use MinecraftForge.ORE_BUS (or something like that) to register the ore events..
  14. y u just go into servers ftp, rename the mcpc+ jar to the server jar on the ftp, shutdown the server, and then u replace the server jar with the mcpc one?
  15. y just no read your code: this.textBoxCode.drawTextBox(); super.drawScreen(par1, par2, par3); with that u are saying to the textbox render before the rest it should be super.drawScreen(par1, par2, par3); this.textBoxCode.drawTextBox();
  16. yea, use the onUpdate method and then u store an long (u need to declare the long with -1 as the first value), check to see the value is -1 if yes u override it with the current system time, and if not u just compare the int(the first system time) to the actual system time and check if has been 30 minutes, if yes u add other stack with the other item, and remove the current item from entity:), u will need to do some math because System.getSystemTimeMili (or something like that) gives in milisceonds also there is System.getNanoTime
  17. ehh read my code, its sets the integer stamina (int = integer) after u do your code and before it read from nbt, U CANT SAVE WHEN THE PLAYER LOG OUT BECAUSE A PLAYER CAN EASLY DIRECTLY CLOSES MINECRAFT OR CLOSE THE PROCESS.
  18. change the mc.renderViewEntity (or something like that) to your render
  19. you are using tick handlers to do that? (the stamina thing). BTW, if u have the instance of the player u could just use player.getEntityData(). EX: public int stamina = 0; some void here or method stamina = player.getEntityData().getInteger("lol") > 0 ? player.getEntityData().getInteger("lol") : 0; //code player.getEntityData().setInteger("lol", stamina);
  20. we already have a topic about this, do some search
  21. if u pm me with the link of the bukkit mod i can update to u.
  22. minecraft is coded in java not in c# c# foreach(Block b in Block.blocksList){ if(b.name.Equals(name)) return block; } java for(Block b : Block.blocksList){ if(b.name.equals(name) return block; }
  23. minecraft is coded in java not in c# c# foreach(Block b in Block.blocksList){ if(b.name.Equals(name)) return block; } java for(Block b : Block.blocksList){ if(b.name.equals(name) return block; }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.