Abastro
Forge Modder-
Posts
1075 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Abastro
-
Please show your CryTabs class. there might be the problem.
-
[1.6.4] Can't get serverside code to run on a tileentity?
Abastro replied to thatsimplekid's topic in Modder Support
So, where is your tileentity registration code? please show the code. -
You should do that on the server side. If you does that in client side, then a cheat client came to possible, which is very dangerous for servers. So, you can specify the current state of the container for each player. You can get the GUI information from the client by packet, and do tick process using that.
-
There is significant difference between gasses and liquids. Gases cannot be something like transparent liquid or a liquid with a lot of air. Gas has following properties: 1. Gas diffuses through the air if there is no barrier. the diffusion velocity is dependent on the temperature and the molar mass of the gas. 2. Gas can get 'Buoyancy' which is same as the weight of air with the same volume. (More Explanations: https://en.wikipedia.org/wiki/Buoyancy) So the Gases lighter than air would float up to the end of the sky, while the rest would sink down to the ground. So, the behavior of gases are significantly different from those of liquids. But I think that "isGaseous" only controls the rendering of the gas. There should be separate classes for the behavior of gases. So, I support this suggestion.
-
You can remove Client-Server sync problem by damaging item only on the Server-side. Do not use Minecraft.getMinecraft(), since that is for Client-side. Instead, Just use EntityJoinWorldEvent to start the timer, and store the player in the timer.
-
[SOLVED] Changing eye height / camera render viewpoint
Abastro replied to coolAlias's topic in Modder Support
The code for third person view just moves the camera to the looking direction, so it cannot give any clue for this case. Btw, I think the ASM is necessary for this case. -
@NetworkMod(clientSideRequired = true, serverSideRequired = false) You should set the "serverSideRequired" to true. since you are using GUI, you have to make your mod as Universal.
-
[SOLVED] Changing eye height / camera render viewpoint
Abastro replied to coolAlias's topic in Modder Support
If only it were that simple. Changing the yOffset of the player results in the game crashing due to "an Illegal Stance" - that was the first thing I tried You can do that by setting yOffset on Render Tick Start, and return it to original yOffset on Render Tick End. -
[SOLVED] Changing eye height / camera render viewpoint
Abastro replied to coolAlias's topic in Modder Support
It might be unstable if you changes the Camera Entity every time. See EntityRenderer#orientCamera, which sets up the Camera. You can see that 'f1' variable in the function is setting eye height, and it was the entity's yOffset - 1.62F. So you can do it by setting yOffset of the Entity! -
[1.6.4] getBlockTileEntity not as intensive as it seems?
Abastro replied to Reika's topic in Modder Support
How did you use ChunkCoordinates to get the Tile Entity from the Map? if you used new ChunkCoordinates(x,y,z) or something, it should take time to create the coordinates. -
Sci API version 0.1.0 had Released!
-
Thinking of Light API, I discovered that it would be more realistic and mod-friendly if the Effects like Stellar (Light) Effects, Weather Effects, Fog Effect, etc. are distributed to Locals (similar with biomes). If then We can have Local Weather & Sunlight Strength in minecraft, which would be more realistic, modifiable, and readable. Details of my suggestion: - Local would be similar with extended version of Biome, but it controls more effects. - Any approach for getting property of Local Effects have to call 'Local' instead of 'World'. ex> CelestialAngle, isDayTime, isRaining, etc. - Stellar & Weather Effects would be customized, maybe WeatherRegistry or something exists, and LocalProvider for controlling properties of Local. Of course I know that this is far from vanila minecraft system, But I need this for my mod due to compatibility problem, and I think this is great. Can I know if it is possible? I can make pullrequest on this if possible.
-
I want any answer on this suggestion..
-
Can I make a PullRequest, then?
-
Plan was changed and this will be named "Sci API"!
-
So, I'd say more details about this.. What I want is: 1. Separate getSunBrightness, calculateSkylightSubtracted, etc. from getCelestialAngle I realized that what we can change about the skylight is only the Celestial Angle, but one could want to make it dark while sun is still on the surface. So I want to make them independent, like moving the methods to the worldprovider, etc, and change their name more understandable like "getSkyBrightness" so they can use this easily to Solar panel, etc. 2. Modifiable getBlockLightValue in World class and Chunk class, etc. Maybe someone would want to add light diffraction to his/her world, so making these methods modifiable in the worldprovider class will be better. 3. Give getCelestialAngle more parameters. I want to make the mod 'Stellarium' which makes celestial angle differs via coordinates. so, I want some parameters which could give the coordinates information, etc. Of course I know that this have many issues, but I really want it. 4. Customizing Moon Factors I've seen that we can only modify the phase of the moon through the world. I want it more specific and direct, like moving the method "getCurrentMoonPhaseFactor" to the worldprovider. There would be many ways... 5. Gather Dispersed Effect of Rain and Thunder, etc. into one or more classes. I've seen that Effect of Rain and Thunder is dispersed on many functions. I think it would be better to gather them into one or more classes, and customize them, and give some space to other (weather) effects which can be added by some mods.
-
What I wanted was changing basic light calculation method of minecraft, which covers every parts of the world, not specific Tile entity or something. I think there is plenty of modularizable things at light calculation. if that is not possible, at least I want interfaces like 'LightCalcHandler' for specific added world.
-
I think the light calculation process of the Minecraft is not enough customized through Forge, So I suggest adding a 'Light API' to the Forge. Light API would give modders access to Minecraft's light calculation process, so modders can modify the light properties for their world, etc.
-
I think my explanation for this api was insufficient. This api is adding Heat System for minecraft, which is another energy transportation system. It is not applicable for normal blocks, but for tile entities which implements IHeatComponent interface. Amount of Transferred Heat is just proportional to temperature difference and thermal conductivity, and when Heat is Transferred, OnTransferHeat Method of IHeatComponent called, to change the Temperature of the component, or change the amount of water. I'll have to change the explanation, anyway. Thanks for reply.
-
Sci-API Information Sci API is the api for Scientific Mods. This contains useful classes and methods related with Science. 1. Calculation API Calculation API is the api which applies Calculation Systems. You can use Vector and Matrix using this API. Functions would be added in this api, too. 2. Unit API Unit API offers Scientific Unit System. If you are confused with many units (ex: tick vs. second vs. day, EU vs MJ vs W)., Then you can use this api! You can use like these: Time l = new Time(30.0, "second"); Time d = new Time(225.0, "tick"); Time p = l.add(d); * This may be cause of performance hit if frequently used. Use setadd, setsub, etc. if you want to avoid the performance hit. 3. Data API Data API offers interfaces and classes related with data reading/writing. You can use these interfaces to get structured data from byte array or string array. * This may be a cause of bug, for this part is not fully tested. please tell me when you get a bug with this api. 4. Chemical API Chemical API offers Chemical System for Minecraft. Group of Elements forms Chemical, and Group of Chemicals forms Compound. Compounds may be used for determining the Ingredients & Properties of a block/item. Now, Element part of this api is finished. 5. ItemEntity API ItemEntity is the TileEntity for Items in inventory. It can be used similar to the TileEntity. Instead of World, its worldObj is type of McInvWorld, which represents the 2-dimensional inventory. (It describes the inventory as world) And its position can be expressed using 2 coordinates (x and y). It is basically only applied to the player inventory, but you can make it applicable to your custom inventory. And This api also contains the 'MultiItem' system, which is the item version for the MultiBlock. They will be constructed when certain 'shape' is formed, and destroyed when the shape has broken. 6. Heat API Heat API is the api which adds Heat System in minecraft. If you want to make new energy system, you can use this Heat system added by this api. In this api, Heat can be transferred between Heat Components, from hot component to cold component. You can register TileEntity as Heat Component, and control temperature of the tile entity, and decide what to do when heat is transferred in/out. Downloads Latest Version: Version 0.3.0 | Direct - Source | Direct Old Downloads: How To Use 1. For Modders: You can download the decompiled SciAPI.jar file and add the jar file as the library. - (Temporarily unavailable) (Find out "Using APIs" in Minecraft Forge Forum.) You can see the source code at the github : https://github.com/Abastro/SciAPI 2. For Mod Users: You can just download the SciAPI.jar file and put it in your mod folder. Make sure that Minecraft Forge is installed. Update Log Inquiry You can Inquiry here. Any reports about bugs would be appreciated. You can also send email: [email protected].
-
Hi, I'm Abastro, making Stellarium mod which modifies the celestial angle, etc. I want to modify this behavior: Spawning at night. Currently I saw that it uses constant getcelestialAngle method, so I want change that.. Is it possible?
-
Hi, I'm making the Stellarium mod, which changes minecraft into configurable universe. I want to make the minecraft world sphere, but I realized that full minecraft code is designed for planar minecraft world. What I have to do is only changing the direction of sun via coordinates, but the 'getCelestialAngle' method returns constant for every coordinates.. Then can I hook the Light-level calculation, etc.? or are there any other ways?
-
Hi, I'm making the Stellarium for minecraft, which changes the direction of sun. I am displeased with the calculateCelestialAngle method, which only depends on the time of the world. I think that if the method uses the x, y, z coordinates, so we can modify the angle via coordinates of the world, then it would be great for modification in sky..
-
Stellarium 0.2.0 would be Opensource, or there will be Stellarium API. but not for Stellarium 0.1.0, because It is only a test version.
-
You can't change it now. but when the next version(Stellarium 0.2.0) comes out, You can reMAKE the solar system by changing configuration!!