opssemnik
Members-
Posts
269 -
Joined
-
Last visited
Everything posted by opssemnik
-
is your modid basic (all in lower case)?
-
goes back to origin doing for not correctly syinc client-server position of the entity...
-
[1.7.2] Forge Advanced Model loader help
opssemnik replied to Death_Dealer's topic in Modder Support
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
opssemnik replied to bdkuhman's topic in Modder Support
update for lastest forge -
[1.7.2]KeyBinding.isPressed() Build:10.12.0.1024:
opssemnik replied to cruXcon's topic in Modder Support
did you do gradlew reobf and used the class files inside build folder? that error its because your class files are not obfuscated -
@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"); } } }
-
its rendering as iron because you didnt implement getArmorTexture(3 params that i dont remeber)
-
Where does Minecraft store the pyramid code?
opssemnik replied to bigbaddevil6's topic in Modder Support
its just a loop checking for blocks, ins´t that hard -
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?
-
ex: public list<String> lol = new ArrayList<String>(); //blablablala nah i prefer spoilers, this isnt working code it need changes
-
as far i know u can only save serialized classes (probably wrong)
-
question: u know these only work on dedicated server right?
-
"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?
opssemnik replied to jordan30001's topic in Modder Support
erm ok, anyways did u registred the event on the @PreInit? if not try that -
OreRegisterEvent not being invoked real event?
opssemnik replied to jordan30001's topic in Modder Support
because ore events use MinecraftForge.ORE_BUS (or something like that) to register the ore events.. -
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?
opssemnik replied to TylerTheMapper's topic in Modder Support
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
opssemnik replied to Mitchellbrine's topic in Modder Support
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. -
change the mc.renderViewEntity (or something like that) to your render
-
[1.5.1] Saving Integers in a Config File to Be Loaded Later
opssemnik replied to Mitchellbrine's topic in Modder Support
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); -
we already have a topic about this, do some search
-
if u pm me with the link of the bukkit mod i can update to u.
-
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; }
-
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; }