greetthemoth
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by greetthemoth
-
Due to my terrible debugging, ive been totally mis-diagnosing the problem, turns out: ^is actually working perfectly. Or at least returns true. Implying bed atlas is running. However is still giving me a null texture. Am i missing something super obvious? For clarification my packages go assets.progressionmod.textures.entity.sleeping_bag.png. Is it possible my texture is actually being referenced but just looks like looks like the null texture. how would i check for this?
-
Turns out if(event.getMap().getTextureLocation().equals(Atlases.BED_ATLAS)){ never gets passed. Atlases.BED_ATLAS doesnt seem to be part controlled by the event. neither is AtlasTexture.LOCATION_BLOCK_TEXTURE . Only AtlasTexture.LOCATION_PARTICLE_TEXTURE gets passed. Although that wont work for me since im not making a particle. Im honestly stuck and a bit confused, I expected TextureStitchEvent.Pre to work on all Atlases or least the block one (which i constantly see used here in the form) ill keep looking to see if im missing something.
-
[1.14.4][Solved] TileEntityRenderer render a texture
greetthemoth replied to Brbcode's topic in Modder Support
What did you do? -
i already did. and ive posted the solution.
-
Figured it out. Needed to put this function into my TileEntity class. @Override public void onDataPacket(NetworkManager net, SUpdateTileEntityPacket pkt){ CompoundNBT tag = pkt.getNbtCompound(); read(tag); } the read() command is only called for vinilla TileEntities, instead the onDataPacket() function is called.
-
Did you by any chance get your client synchronization to work, im having the exact problem.
-
Im creating a Campfire clone (with altered and added functionality). when i put meat in the campfire the data is stored, but the meat only appears when i reload the game. The TileEntity Class, most of it is basic campfire functionality. TileEntityRenderer Ive run debugs and the results seem very weird. The TileEntity tileEntityInst passed to the renderer for no apparent reason always has an empty inventory(even if the tile entity doesnt) this fixes when the game is reloaded. I suspect the issue has something to do client data, and the getUpdatePacket() method being set up wrongly. or something, but im in the dark on the specifics of the problem/how to fix it. I know very little about packets or data storage, so a straight forward answer would be appreciated.
-
Please help me register my TileEntityRenderer for my Campfire
greetthemoth replied to greetthemoth's topic in Modder Support
NICE IT WORKS. the only problem no is that for some reason when i put meat on the campfire it only shows up if a reload. Ill try to figure it out. -
Please help me register my TileEntityRenderer for my Campfire
greetthemoth replied to greetthemoth's topic in Modder Support
I think i got it! thaks for the help. ClientRegistry.bindTileEntityRenderer(ModTileEntityTypes.CAMPFIRE.get(),(bloop)->new ProCampfireTileEntityRenderer(bloop)); EDIT: hmm the game ran, but it doesnt seem to be working correctly, not sure if its a problem with my renderer script. or if im still registering wrong. -
Please help me register my TileEntityRenderer for my Campfire
greetthemoth replied to greetthemoth's topic in Modder Support
i know about interfaces and how to use them(assuming they work the same way as c#). Do i have to add the interface to my Renderer class? But yes im in the dark about lambda time. I guess i can try to figure it out from here. -
Please help me register my TileEntityRenderer for my Campfire
greetthemoth replied to greetthemoth's topic in Modder Support
Nice! the get() works. But i dont know how to reference the Function (im know missing something simple) -
Please help me register my TileEntityRenderer for my Campfire
greetthemoth replied to greetthemoth's topic in Modder Support
I am aware the types are off. I guess im asking how do i get the appropiate types given my data set. Like what even is a "Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>>" and how do i get the TileEntityType from the "RegistryObject<TileEntityType>" is it even possible? -
Im making a new torch type item "unlit torch". I copied the model json file for the vanilla torch on to my unlit torch. The plan was to change the texture reference in the file to my own texture. This worked for the centered torch, but the walled torches texture is referenced weirdly for some reason. I cant figure out how to change the texture of my walled torch. torch_wall_off.json The texture seams to be refrenced with "texture":"#torch" i dont know what this means, this isnt a texture file like how the other model files usually refrence. For reference this is the centered torches model json file. (Notice ive already changed the texture reference form "minecraft:blocks/torch" to my own texture "progressionmod:blocks/torch_off") torch_off.json Any info helps
-
Figured it out, the problem was i had a alternative within an alternative which doesnt work. what i needed to do was create a separate pool and add the an inverted condition so it doesnt work when silk touch i applied (silk touch drop is already dropped from the first pool). I pasted the completed code under the faulty one. https://github.com/greetthemoth/whats-the-problem-with-this-loot-table/blob/master/Whats the problem with this loot table
-
For some unknown issue this simple loot table isnt working im 100% sure its not the file name or simple syntax issue. The rest of my loot tables work fine. https://github.com/greetthemoth/whats-the-problem-with-this-loot-table/blob/master/Whats the problem with this loot table