Jump to content

Abastro

Forge Modder
  • Posts

    1075
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Abastro

  1. Maybe you would changed the Top Block to unregistered block... please show your code related with your biome.
  2. Thanks. Then, is there anythin similar with the IPlayerTracker in 1.7.2?
  3. I cannot find the PlayerEvent.PlayerLoggedOutEvent. I'm on the version 1.6.4. Is this event from 1.7.2?
  4. Ah, then you have to use the packets. You have to send the tileentity information of the server to client using packets, so you can get the property from the client side TileEntity. This tutorial might be help: http://www.minecraftforge.net/wiki/Tile_Entities#Sending_Tile_Entity_Data_From_Server_to_Client
  5. I am making a mod which hooks to the inventory of player. So, I saves the inventories of Player in the world. I can find the EntityJoinWorldEvent, so i could add the inventory of a player. But I couldn't find the EntityLeaveWorldEvent or something. I couldn't find any hooks for that. So, is there any hooks to detect leaving player? Or is it impossible?
  6. Just use IBlockAccess#getBlockTileEntity(x, y, z). And, remember that MinecraftServer.getServer() returns null in client, where rendering happens.
  7. Just add @SideOnly(Side.Client) Annotation to the rendering functions. You can see this in every rendering-related functions in minecraft, it's a common solution.
  8. You have to override several methods of Container. see this tutorial: http://www.minecraftforge.net/wiki/Containers_and_GUIs
  9. It would be a temporary error. Refresh(F5) or Restart the eclipse and run again.
  10. f1 = (float) Math.atan(d3, d1) * 180.0D / Math.PI, I think.
  11. I think your par1EntityShipBlock.controller is null. Was it exceptional case(like when the ship is not yet builded) or common case? If it is common case, then you may miss setting the controller value.
  12. Then please post your crash report.
  13. The metadata of the bed tells the direction of the bed. so, we can get the texture using the side and direction(metadata). * Remember that int value cannot save three values, so it cannot represent the coordinates. the coordinates have nothing to do with rendering.
  14. Abastro

    Gas

    No, there is a several differences between them. 1) Forge already supports Gas. There is a method named 'isGaseous()' in the Fluid class which affects the rendering. I think it means that the Minecraft Forge intends to add Gas system. But of course, anything like Plasma is NOT supported. 2) Gas is one of the three fundamental and well known phases. Maybe it is hard to be notified, but it is as important as Solid and Liquid. Also it has many differences with them. In contrast, Plasma could be one of the four fundamental phase, but it is a lot similar to the gas. It acts like Ideal Gas, and except for the ionization and high temperature, it is actually a gas. Also, Plasma is not well known as Solid, Liquid, and Gas. It can only be created under control, not like others.
  15. Sounds like you should make a "true sky" mod, complete with constellations! Yes, I'm already making one. It is named "Stellarium for minecraft". you can find it in a "Mods" subforum of Minecraft Forge Forum.
  16. There is a simple way to do this. Just have the sun stop(or have the minecraftia stop), not the time. Of course it is a lot harder to stop the time than the sun. It can be easily done by this way: There is "getCelestialAngle" method in the WorldProvider class. You can modify the method, and set it return 270 degrees on every time. Then the sun will always be at directly downward, and the moon at directly upward(Zenith). * The following passage is editorial. Please do not neglect the sky. It nearly controls everything. Everything on the earth have period of 1 day, respecting to the sun, and 1 month is based on the rotation of the moon. I think the developers of minecraft is also neglecting the events of the sky. The sky in minecraft is simple and repetitive, while the real sky is not. The sun and moon is NOT moving at same rate, and there is several events with the real sky. Of course someone think it would be hard to show the events in the game, but it is not that hard compared to the other mechanisms in it. This passage was only editorial, anyway.
  17. Abastro

    Gas

    There are problems with fluid block interface, etc. They are from the differences between fluids and gases. Since pressure of a gas can be bigger till it becomes liquid, the "getFilledPercentage" is not appropriate. I saw that the behavior of gas can be made with current forge, but I think it would be better if there is something like BlockGasBase. (I can make a pullrequest about that) Also, I want custom Gravitation & Buoyancy effects for the fluids. I think that the vertical flow would be affected by gravitation of a world, But there were nothing like that in the BlockFluidBase..
  18. Sci API version 0.2.0b had Released. Data API, Chemical API had added. Serious bugs on version 0.2.0a are fixed.
  19. Did your portal work perfectly with eclipse? If not, please post the symptoms.
  20. Abastro

    Gas

    You are not getting my point. the "microscopic" cannot be the point. Of course I surely know that it is impossible to simulate microscopic gas or anything. I wanted to say that, macroscopic behaviors of gas are far apart from the behaviors of liquids. Also they are far apart from those of the fluids in Minecraft Forge, too. The behaviors are: 1. They spreads to every directions. They always spreads to the sides, and gravitation or buoyancy cannot forbid them from spreading up or down. 2. Their spreading velocity is affected by the temperature, and forces like gravitation or buoyancy. but they cannot prohibit the diffusion of gas. Also, I know that this can be sanely created. This is the best approximation of a gas: 1. Set the pressure value for each gas block. 2. Calculate the diffusion rate for each pair of neighboring gas blocks. Forces like Gravitation or Buoyancy might affect the diffusion velocity via direction. 3. If there is empty space adjacent to a gas block with plenty of pressure, sets the empty space to a gas block. pressure should be determined by diffusion.
  21. Use World#getBlockId() if you are in 1.6.4. You can use the player's position, and check the block under the player. If it is ice block, you can make the player "skate" fast. you can refer to the player running code.
  22. Abastro

    Gas

    Pretty sure a gas is a very spacious liquid. Of course not. A gas can fill every available space if there is plenty of time. Like liquid flows on the ground No, flowing has a limit. But diffusion has no limit, and a gas can diffuse infinitely if it exists. and a gas can be spread to every directions. Like the viscosity of a liquid Yes, It is macroscopically similar. but not microscopically. Like a liquid with a negative desnsity. No. The gases lighter than air don't float up directly, but they also spreads to side while floating. And I have to say that every material gets Buoyancy. I had mistaken there. Like standard liquids. No. The rest can spread infinitely, and they can also spread to up. You've yet to tell me anything that can't be represented as a liquid, or well, fluid, as gasses can be fluid. Since I selected wrong terms at then. I had been missing the term ''infinitely". Why? Seems people are able to make gasses just fine with the fluid system and nothing you have said requires any special gas code... Of course they could, but they had to hard-code. Also, the Buoyancy and Gravitation effect for fluids was ignored or determined at the coder's option. So, the mods including custom gravitation effect would be hard to be compatible with them.
  23. Before making a pullrequest or something, think about the ways to solve this problem now. you can use the PlayerSleepInBedEvent to control the case and reset the tick.
  24. I think this is complicated a bit, since if that is accepted, the time of every dimensions changes when everyone in the one dimension sleeps. You might as well use the event.
  25. GameRegistry.registerTileEntity(TileEntityWire.class, "SCWireEntity"); So where is the registration code?
×
×
  • Create New...

Important Information

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