Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

PianoManu

Members
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

0 Neutral

About PianoManu

  • Rank
    Tree Puncher

Converted

  • Gender
    Male
  • Location
    Germany
  • Personal Text
    Obese Platypus

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey, thank you very much for your tip! Your approach was very veeeeeery helpful. That gave me a good idea and it works now, although I've chosen a slightly different way. This is how I solved the problem: At first I took a look into the PlayerEvent class (which is highly documentated, special thanks to whoever did that - it is unfortunately not very common), so I had the idea to search for some sort of "WorldEvent" class and check, whether it contains some useful events, and tah-dah, it contains a static class "WorldEvent.Load", where I can get an IWorld-instance, that features a player l
  2. Hey guys, I made a custom dimension and everything is working completely fine (like world-generation, entering and exiting the dimension via portal block, respawning in the dimension, etc.), so I had the idea that after creating a new world, the player would start directly in my dimension instead of in the overworld. How could I achieve this? Thanks in advance, and kind regards, Manu Edit: if you need my github repository, here it is!
  3. Hey guys! I have some problems with the RenderLayers when testing my mod together with OptiFine. Some backstory: I made blocks, that can take on the model of any block using a tileentity that "stores" said block, and I also created baked models for all of them. It worked fine for solid blocks but not for transparent blocks, as they lose their transparency (see below). So I decided to change the RenderLayer to "translucent" using RenderTypeLookup.setRenderLayer(Registration.FRAMEBLOCK.get(), RenderType.getTranslucent()); where FRAMEBLOCK is the corresponding RegistryObject and "Reg
  4. Thanks to you both @Beethoven92 and @Draco18s. That fixed my problem and helped a lot!
  5. Hey guys! I ran into some obstinate NoSuchMethodError today whilst testing my mod on a server (locally). I made a block with a tile entity, that mimics another block when it's right-clicked with said block. When I break the block containing the other block, my method "dropContainedBlock" is called to spawn an ItemEntity of the mimicked block. Now that is where I get the NoSuchMethodError exception and the server crashes. Here's my method. I mainly copied it from the vanilla jukebox, but the jukebox works a bit different because it "stores" only records, not blocks: //Used to drop
  6. Oh okay, I didn't know this. I'll continue experimenting with this. Glass was the more important block right now. Thank you very much for your help! Regards, Manu
  7. I'm so stupid, you're right. Thank you so much! It works for glass, but the ice fence is still not translucent... I've changed the alpha value to 0.0f and it's working fine for glass. I also changed the render layer as you said: public static void setup() { RenderTypeLookup.setRenderLayer(Registration.FENCE_FRAMEBLOCK.get(), RenderType.getTranslucent()); } This method is called when the FMLClientSetupEvent is fired. Did I forget something concerning the ice block? As I wrote in the first post, it only needs to be translucent for ice and glass blocks and it is already very
  8. Hey guys, I'm again having a question concerning baked quads/models. How do I create transparent quads? This fence block I created takes the texture of the block it is clicked with (it can mimic blocks), but for glass and ice, the block appears solid. How can I make them transparent? Here you can see an example screenshot of the problem so far. I made a class that implements IDynamicBakedModel and for the getQuads(...)-method I made a method "createCuboid()" that returns a list of baked quads The createCuboid(...)-method: public static List<BakedQuad> createCuboi
  9. I'm sorry to bother you again, but how would I do that? I've tried it that way: BlockState mimic = ...; //the block I want my block to mimic (from vanilla minecraft) ModelResourceLocation location = BlockModelShapes.getModelLocation(mimic); IBakedModel model = Minecraft.getInstance().getModelManager().getModel(location); //and now? How do I get the texture of the IBakedModel? I found no methods that would return the texture but I can't figure out how to get the texture of the model... Thanks for your help in advance! Regards, Manu
  10. Hey guys! I want to read a string from a json file. To be specific, I want to get the textures from a given block, that are included in its model file as a string. To be more specific, I need the texture of the given block, because I made a block that mimics said block using baked models (these work quite fine right now). The reason for this topic is, that there are blocks with different textures on each side (e.g. furnace has at least 4 textures, I think). Now I think, I know the basics of Gson and Json, but I have two questions: 1. How do I get the path of the model fil
  11. I'M COMPLETELY STUPID. You're right, at least nearly. I put the wrong blockstate in the getMimicQuads method, that's why I got those errors. It's working pretty well by now. That means I only had to change the first parameter from the method from "mimic" (which would be the block in the slab) to "state" (which is the state of the button) So I changed in the code from if (model != null) { //only if model (from block saved in tile entity) exists: return getMimicQuads(mimic, side, rand, extraData); } to if (model != null) { //only if model (from block saved
  12. Thanks for your reply! Yeah, that's what I tried at first, but the problem is, that this state only determines the block, that is saved in the button, not the button itself. I just tried it again, but Minecraft crashes and I get the error "Cannot get property DirectionProperty{name=facing, clazz=class net.minecraft.util.Direction, values=[north, south, west, east]} as it does not exist in Block{minecraft:spruce_planks}", obviously because Minecraft tries to get directions from planks, which have no directions... I still haven't found a solution Nevermind, SoulQuant
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.