Everything posted by opssemnik
-
Problem with ResourceLocation loading
is your modid basic (all in lower case)?
-
Rideable Mobs Help [1.6.2]
goes back to origin doing for not correctly syinc client-server position of the entity...
-
[1.7.2] Forge Advanced Model loader help
you dont put on .obj as far i know, you use a code on your render, search for the vannila one and copy / paste
-
[Unsolved] "Already tesselating!" crash with custom block model
update for lastest forge
-
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
did you do gradlew reobf and used the class files inside build folder? that error its because your class files are not obfuscated
-
[1.6.4] addChatMessage on a custom event
@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(); if(s.itemID == Block.furnaceIdle.blockID && !p.worldObj.isRemote) { p.addChatMessage("Furnace Placed"); } } }
-
[1.7.2] Armor
its rendering as iron because you didnt implement getArmorTexture(3 params that i dont remeber)
-
Where does Minecraft store the pyramid code?
its just a loop checking for blocks, ins´t that hard
-
FML Lib loader
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?
-
How to make an API for my mod
ex: public list<String> lol = new ArrayList<String>(); //blablablala nah i prefer spoilers, this isnt working code it need changes
-
Save Entity to NTB?
as far i know u can only save serialized classes (probably wrong)
-
@ServerStarted annotation not working?
question: u know these only work on dedicated server right?
-
Item tooltip hook
"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
-
OreRegisterEvent not being invoked real event?
erm ok, anyways did u registred the event on the @PreInit? if not try that
-
OreRegisterEvent not being invoked real event?
because ore events use MinecraftForge.ORE_BUS (or something like that) to register the ore events..
-
is there a forge password system (or something like this) (for a server)?
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?
-
Sign like GUI
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();
-
Is There a Way to Implement Item Longevity?
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
-
[1.5.1] Saving Integers in a Config File to Be Loaded Later
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.
-
Some way to change the Camera view?
change the mc.renderViewEntity (or something like that) to your render
-
[1.5.1] Saving Integers in a Config File to Be Loaded Later
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);
-
Some way to change the Camera view?
we already have a topic about this, do some search
-
Hide the nameplates
if u pm me with the link of the bukkit mod i can update to u.
-
Get block ID by name?
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; }
-
Get block ID by name?
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; }
IPS spam blocked by CleanTalk.