larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
Every player on the client side is a subclass of AbstractClientPlayer , and every player on the server side is a subclass of EntityPlayerMP .
-
Hello, In 1.7.10 I used an ISBRH to render the vanilla stone block, then rendering an overlay on the stone texture and dynamically color the overlay based on the block's metadata. Now I am wondering if it is possible to do something like that using the new model system in 1.8, or do I have to make all the textures by hand for each possible state? - larsgerrits
-
You can use a gray-scale image for the base texture for every ingot, and return a different color with the getColorFromItemStack method for each ingot.
-
Also, never use sites like 9minecraft, 6minecraft or any malicious site like that. This is a thread which was about sites like that, and why you should never use them. And as the 2 year old (!) Youtube video says you have to do, don't do it. You will get these kind of issues when you do.
-
Tools didn't change much since 1.7.10, only the textures, for which are plenty of tutorials to convert, and you can refer to the Minecraft source code for help.
-
There are plenty of tutorials for tools. Or, you know, you could look at the way vanilla adds tools? Did you actually search before posting here? If you have anything specific you are having trouble with, post again here.
-
I think you have to translate the cube to the Entity position.
-
Forced entities: 7 total; [EntityFallenMount['Horse'/942285, l='MpServer', x=82.50, y=42.00, z=-20.50], EntityXPOrb['Experience Orb'/956665, l='MpServer', x=-1.03, y=72.25, z=-110.69], EntityCrab['Crab'/956662, l='MpServer', x=15.50, y=18.00, z=-93.50], EntityClientPlayerMP['callous4567'/956653, l='MpServer', x=83.55, y=65.62, z=-17.04], EntityBat['Bat'/956661, l='MpServer', x=10.50, y=11.00, z=-85.50], EntityCaveCrawler['Cave Crawler'/956659, l='MpServer', x=-2.50, y=12.00, z=-44.50], EntityCaveclops['Caveclops'/956657, l='MpServer', x=6.50, y=12.00, z=-36.50]] This is a piece of the error log. It mentions these entities: EntityFallenMount , EntityXPOrb , EntityCrab , EntityClientPlayerMP , EntityBat , EntityCaveCrawler and EntityCaveclops . We know this issue doesn't exist in vanilla, so we can remove those from the list, leaving us with these: EntityCrab , EntityCaveCrawler and EntityCaveclops . So one of these entities is causing the server to crash. Now you have to find the mod(s) that adds those entities, and remove them, one by one, to figure out which mod causes the issue.
-
Sand blocks spawn an EntityFallingSand when they fall. You can set the block to air at the original position, and spawn a new EntityFallingSand(World,X,Y,Z,Block,metadata) with motion in the world.
-
Then you didn't search very good, because I found it in 5 minutes. If you go to the MCF mod page, and look under downloads, you'll see all the download links you need.
-
[1.7.10] Changing the volume of a sound while it is playing
larsgerrits replied to Earthcomputer's topic in Modder Support
@jeffryfisher May I ask why you call your class classContinuousPositionedSound with class being in the name? -
Did you register your renderer with RenderingRegistry.registerEntityRenderingHandler ?
-
[1.7.10][Solved] EntityItem not spawning in world
larsgerrits replied to yorkeMC's topic in Modder Support
Yes, I meant I didn't see any more than that one. You showed HOW, but I asked WHERE you registered your event handler, i.e. show the class where you registered it. -
[1.8] Help with adding a new variable to every Item and Block
larsgerrits replied to HappyKiller1O1's topic in Modder Support
So it expects a Reader, but you have a File. Maybe there exist something like FileReader (hint: it does...)? Try looking a bit better in the future. -
[1.7.10][Solved] EntityItem not spawning in world
larsgerrits replied to yorkeMC's topic in Modder Support
I do not see any more checks for client/server. So it might be calling the event client-side only. Where do you register your event handler? Not in any client-only code I suppose... -
Using World#getEntitiesWithinAABB(Entity.class, AxisAlignedBB) to get all entities in th specified range. Than use some math to calculate the motionX/Y/Z for each entity to go to to th black hole. You could also increase the speed of the items based on how close it is to the black hole, by increasing the motionX/Y/Z. If the entities are in a range of, lets say, 0.5 blocks, kill the Entity and add it's drops to the inventory of the black hole. You can calculate the 'force' of the black hole based on the amount of items in the inventory of the black hole. Thaumcraft 4 has an aura node modifier that makes it suck in everything, so you could at the Thaumcraft 4 source code to get some inspiration. You could, as americanman said, also damage entities, e.g. players, if they are to close to the black hole. Edit: I see Ernio was faster
-
[1.6.4] setting harvest level of vanilla minecraft blocks
larsgerrits replied to Ziplock_Jim's topic in Modder Support
This post is 2 years old! Why the f*ck are you replying to a 2 year old? This thread is now closed. -
Not at my workstation at the moment, but I think it is LCTRL or something.
-
[1.7.10]TileEntitySpecialRenderer Transparent Sides.
larsgerrits replied to JRE8's topic in Modder Support
You have to add the vertices 'anti-clockwise', rather than 'clockwise'. This will make sure you are rendering the outside of the block, and not the inside. -
Getting texture from block and adding overlay
larsgerrits replied to LoreSchaeffer's topic in Modder Support
"planks oak" != ""planks_oak". See the underscore? -
[1.7.10] [SOLVED] RenderGameOverlay - Vanilla texture breaking
larsgerrits replied to Muramasa's topic in Modder Support
If you are binding a custom texture in the event, you have to make sure to rebind the vanilla icons ( Gui.icons ) file after your rendering code. -
Getting texture from block and adding overlay
larsgerrits replied to LoreSchaeffer's topic in Modder Support
Stacktrace: at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:63) at com.lsmod.CompactStorage.client.TextureAtlasDynamic.load(TextureAtlasDynamic.java:53) The only thing that can be null on line 63 in SimpleReloadableResourceManager is the ResourceLocation parameter passed in. This corresponds to your ResourceLocation variable called resource1 . This gets intialized with a call to completeResourceLocation . This means that that method returns null . In your crash log, it also mentions this: [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.IllegalArgumentException: wrong number of arguments [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.reflect.Method.invoke(Method.java:606) [16:06:03] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: at com.lsmod.CompactStorage.client.TextureAtlasDynamic.completeResourceLocation(TextureAtlasDynamic.java:110) Line 110 in TextureAtlasDynamic is that line in completeResourceLocation , which means you call invoke with the wrong number of arguments. Seems a bit weird to me... -
Show what you have tried.