Everything posted by Ewe Loon
-
[1.7.10] Phantom Blocks
you are probably setting them to air client-side only, you need to do it server-side move "if(!world.isRemote) { " up a few lines
-
Problem with adding multiple effects on food & with crafting recipe of bucket
just a point, milk makes better cheese than water does also you could create a special block (Cheese vat) for creating the cheese then recipes are irrelevant
-
Leggings not rendering
I think the closing bracket is in the wrong place change to public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { return "basic:armor/ultaniumar" + "_" + (armorType == 2 ? "2" : "1") + ".png"; }
-
[1.7.10] Dimensional teleporting without any form of portal
I used this code while testing my test world EntityPlayerMP pl player to teleport int id id of dimention double xpos double ypos double zpos position to go to private void tptoworld(EntityPlayerMP pl,int id,double xpos,double ypos, double zpos) { MinecraftServer mcServer = MinecraftServer.getServer(); ServerConfigurationManager cm=pl.mcServer.getConfigurationManager(); int oldid = pl.dimension; WorldServer worldserver = mcServer.worldServerForDimension(pl.dimension); pl.dimension = id; WorldServer worldserver1 = mcServer.worldServerForDimension(pl.dimension); pl.playerNetServerHandler.sendPacket(new S07PacketRespawn(pl.dimension, pl.worldObj.difficultySetting, pl.worldObj.getWorldInfo().getTerrainType(), pl.theItemInWorldManager.getGameType())); worldserver.removePlayerEntityDangerously(pl); pl.isDead = false; pl.setLocationAndAngles(xpos, ypos, zpos, pl.rotationYaw, pl.rotationPitch); worldserver1.spawnEntityInWorld(pl); worldserver1.updateEntityWithOptionalForce(pl, false); pl.setWorld(worldserver1); WorldServer worldserverx = pl.getServerForPlayer(); if (worldserver != null){ worldserver.getPlayerManager().removePlayer(pl); } worldserverx.getPlayerManager().addPlayer(pl); worldserverx.theChunkProviderServer.loadChunk((int)pl.posX >> 4, (int)pl.posZ >> 4); pl.playerNetServerHandler.setPlayerLocation(pl.posX, pl.posY, pl.posZ, pl.rotationYaw, pl.rotationPitch); pl.theItemInWorldManager.setWorld(worldserver1); cm.updateTimeAndWeatherForPlayer(pl, worldserver1); cm.syncPlayerInventory(pl); Iterator<PotionEffect> iterator = pl.getActivePotionEffects().iterator(); while (iterator.hasNext()){ PotionEffect potioneffect = iterator.next(); pl.playerNetServerHandler.sendPacket(new S1DPacketEntityEffect(pl.getEntityId(), potioneffect)); } FMLCommonHandler.instance().firePlayerChangedDimensionEvent(pl, oldid, id); } hope this helps, I extracted it all from minecraft code
-
unknown error
here is a section of my log , it seems to only happen with 1 user memory usage also goes up to 100% latency causes everyone to get kicked this is from logs\fml-server-latest.log anyone have any idea what causes this, or what i should look for [08:51:05] [server thread/DEBUG] [FML/]: Gathering id map for writing to world save LegoLand [08:52:26] [Netty IO #2/ERROR] [FML/]: NetworkDispatcher exception java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcher.write0(Native Method) ~[?:1.6.0_24] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.6.0_24] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122) ~[?:1.6.0_24] at sun.nio.ch.IOUtil.write(IOUtil.java:93) ~[?:1.6.0_24] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:352) ~[?:1.6.0_24] at io.netty.buffer.UnpooledHeapByteBuf.getBytes(UnpooledHeapByteBuf.java:208) ~[unpooledHeapByteBuf.class:?] at io.netty.buffer.UnpooledHeapByteBuf.readBytes(UnpooledHeapByteBuf.java:214) ~[unpooledHeapByteBuf.class:?] at io.netty.channel.socket.nio.NioSocketChannel.doWriteBytes(NioSocketChannel.java:214) ~[NioSocketChannel.class:?] at io.netty.channel.nio.AbstractNioByteChannel.doWrite(AbstractNioByteChannel.java:178) ~[AbstractNioByteChannel.class:?] at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:231) ~[NioSocketChannel.class:?] at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:680) ~[AbstractChannel$AbstractUnsafe.class:?] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:260) ~[AbstractNioChannel$AbstractNioUnsafe.class:?] at io.netty.channel.AbstractChannel$AbstractUnsafe.flush(AbstractChannel.java:649) ~[AbstractChannel$AbstractUnsafe.class:?] at io.netty.channel.DefaultChannelPipeline$HeadHandler.flush(DefaultChannelPipeline.java:1038) ~[DefaultChannelPipeline$HeadHandler.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:674) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:655) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115) ~[ChannelOutboundHandlerAdapter.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:674) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:655) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115) ~[ChannelOutboundHandlerAdapter.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:674) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:655) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.ChannelOutboundHandlerAdapter.flush(ChannelOutboundHandlerAdapter.java:115) ~[ChannelOutboundHandlerAdapter.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:674) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.flush(DefaultChannelHandlerContext.java:655) ~[DefaultChannelHandlerContext.class:?] at cpw.mods.fml.common.network.handshake.NetworkDispatcher.flush(NetworkDispatcher.java:430) ~[NetworkDispatcher.class:?] at io.netty.channel.DefaultChannelHandlerContext.invokeFlush(DefaultChannelHandlerContext.java:674) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:700) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:717) ~[DefaultChannelHandlerContext.class:?] at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:893) ~[DefaultChannelPipeline.class:?] at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:239) ~[AbstractChannel.class:?] at net.minecraft.network.NetworkManager$1.run(NetworkManager.java:174) [ek.class:?] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354) [singleThreadEventExecutor.class:?] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348) [NioEventLoop.class:?] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [singleThreadEventExecutor$2.class:?] at java.lang.Thread.run(Thread.java:679) [?:1.6.0_24] [08:53:26] [Netty IO #4/ERROR] [FML/]: NetworkDispatcher exception io.netty.handler.timeout.ReadTimeoutException [08:53:32] [server thread/DEBUG] [FML/]: Gathering id map for writing to world save LegoLand [\code]
-
[Solved] obfuscation name table
found it here .gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.0.1180\srgs\notch-mcp.srg and here .gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.0.1180\srgs\mcp-notch.srg
-
[Solved] obfuscation name table
anyone know where i can find the file containing the table with all the obfuscation field names
-
A block that can have 12 possible orientations [SOLVED FOR NOW] [1.7.10]
use @Override public void onBlockPlacedBy(World w, int x, int y, int z, EntityLivingBase e, ItemStack s){ calculate metadate value based on e.rotationYaw and e.rotationPitch w.setBlockMetadataWithNotify(x, y, z, meta, 3); } or if you prefer to orientate the block based on the where the click was use @Override public int onBlockPlaced(World world, int x, int y, int z, int side, float hitx, float hity, float hitz, int metadata) { do stuff here return metadata }
-
add potion effect without adding the visual effect
that will work for the leggings, but i am using night vision, jump boost and resistance on other items
-
Limited World Generation Mod
I dont know if there is any absolute way of doing what you want, but one possibility is simply to limit where the player can go every server tick enum through the players and clamp there location to (-500 to 500) x and z if you want the world to be a block with edges that can be fallen off , you could try using one of the populator events to clear the chunk , maybe a custom terrain generator (as i havnt done one yet, i cant help with that)
-
Need a question answered for eclipse please.
I cant see anything obvious but one problem i know of is that it dosnt work with java 8 in the menu select "Project" > "Properties" then select "Java Build Path" then select the "Libraries" tab" scroll to the bottom and tell us what JRE System Library is being used
-
[1.7.10] AI not executing
first what are you extending for MobThief second try putting the priority up : this.targetTasks.addTask(50, n........ also put this in your ai @Override public boolean isInterruptible() { //System.out.println("isInterruptible"); return false; }
-
add potion effect without adding the visual effect
I am trying to add potion effects to armor without adding the visual swirls , any suggestions ? im currently using @Override public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { if (itemStack.getItem().equals(LoonToolItems.obsidianLeggings)) player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 40));
-
How do I add thaumcraft jar to my mod test client in eclipse
first the api will probably only have enough in it to to enable you to access the classes, methods and properties by name, and type (no code in it) the mod in question will be obfistercated and therefore incompatible with un obfistercated minecraft (which is what is run from eclipse) unfortunately the only way to run them together is is to build your mod with gradlew and put both mods into minecraft sorry to be the one to give you the bad news
-
Save Mod from Java Decompiler
and what exactly do you mean by "save mod"
-
[SOLVED][1.7.X]Client Chat Event
there is a list of events here https://dl.dropboxusercontent.com/s/h777x7ugherqs0w/forgeevents.html you probably want ClientChatReceivedEvent
-
Slow an entity by a specific factor
for living entities try entity.setAIMoveSpeed(0.5); non living entities will be the hard part you could try changing their motionX motionY and motionZ properties, it might work on some of them
-
How can I make my mod be a jar and have my armors model textures not missing?
at this stage i have only 1 idea, Zip the entire src folder , upload it somewhere, where we can access it, and post a link to the file
-
[1.7.10]Custom Caves
could you not change the stone after the caves are generated ?
-
Selectively remove recipe
removing recipes is easy CraftingManager.getInstance().getRecipeList().clear(); oops no recipes however this isnt what you want to do, first copy all the recipes into your own list , then clear the origonal create and add your own IRecipe that checks against the recipes in your list and also check other conditions if you want to only control specific recipes you can selectively remove them instead of clearing the whole list however some recipes dont give an output correctly until the input is set with matches() (fireworks is an example, leather armor coloring is another) the really complex part is trying to keep server-side and client-side in sync with one another
-
[1.7.10][SOLVED] java.lang.NoClassDefFoundError: net/minecraft/world/World$2
i would suggest checking all your filenames, treat them as case sensitive , check registering of blocks, items, and tile entities the error is caused by something being missing , could even be trying to access a client only class, server side
-
[1.7.10]Question about approach to a custom villager
My opinion, yes , create you own, you could try extending EntityVillager , Are you aware that the villager registry allows you to register a custom texture for your profession, but getting the recipe to work the way you want will be the hardest part, (if possible)
-
Pass Ingredient Item NBT to Crafting Result
yes it is possible create a new recipe class extending the one you currently use @Override public ItemStack getCraftingResult(InventoryCrafting crft) { create and return the itemstack that the user will receive
-
How can I make my mod be a jar and have my armors model textures not missing?
here is something else to remember, when you run MCForge from eclipse on a windows platform (not sure about others) the textures and sounds are read directly from files so they are not case sensitive, BUT, when you compile them into a jar or zip, they become case sensitive, so check that the code and filename are the same, I found it best to have them all in lowercase, that way its easier to see if something is wrong , case wise
-
[1.7.10] Adding Village Structures
thankyou, thats what i needed
IPS spam blocked by CleanTalk.