-
Posts
398 -
Joined
-
Last visited
Everything posted by BeardlessBrady
-
I was not, I added it to all the places I change the data and it did not change the issue unfortunately.
-
I tried debugging the #toNBT and #fromNBT methods in my itemVendor class. It seems to only save the NBT when I pause the game for the very first time after first placing the block but when I quit the world it does not save the NBT nor does it do it when I pause any other time. It will however save NBT and load NBT on world startup... Any ideas?
-
For the amount value I am changing it in the #setAmnt method here https://github.com/Beardlessbrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/GuiVending.java#L989-L1007 Its not even just the values...If I add a new item into the machine and restart it will revert back to how it was before. Odd how it will save nbt once but after that revert for some reason.. Any ideas?
-
Hello, so I have this weird issue where if I change the 'cost' and 'amount' variable on the tile and restart the world the change will stay....but if I then change them again and restart the world they will revert back to the previous numbers. Anyone have any idea why this could be occuring? Tile Entity: https://github.com/Beardlessbrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/TileVending.java#L127-L194 Custom ItemHandler: https://github.com/Beardlessbrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/ItemVendorHandler.java#L44-L60 Custom Item: https://github.com/Beardlessbrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/ItemVendor.java#L133-L179
-
I am having a weird issue when trying to run my mod on a server. Crashlog: https://pastebin.com/g7WPcad4 ModBlock class: https://github.com/Beardlessbrady/Currency-Mod/blob/b426bb1843801de7673a3f7e3bac3c9f71cde38a/src/main/java/beardlessbrady/modcurrency/block/ModBlocks.java
-
[1.12.2] Blockstates not found on fresh install
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Thank you! I would have never figured that out on my own. -
So I had to factory reset my PC and when setting up Intellij and my mod's repository Im having an odd issue. While running the client all my block states cannot be found (console output below). I tried completely re cloning and setting up the repository from scratch again but its the same result. Any ideas? Console: https://pastebin.com/CcAGKrmF Repository: https://github.com/BeardlessBrady/Currency-Mod/tree/c1887659534bedc722be4126bc4e52fa629f7b68
-
[1.12.2] Block Model Display settings not working
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Thanks for finding it for me. Much appreciated! -
[1.12.2] Block Model Display settings not working
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Oh dang, could you link to said issue so I can see when it is fixed? -
Im trying to change the display settings of a block model but it isn't changing them in game. Block Model: https://github.com/BeardlessBrady/Currency-Mod/blob/56b50a5339915950d7dd5c55f5f05941ba09cc94/src/main/resources/assets/modcurrency/models/block/vendingItem.json#L351-L391 Block State: https://github.com/BeardlessBrady/Currency-Mod/blob/56b50a5339915950d7dd5c55f5f05941ba09cc94/src/main/resources/assets/modcurrency/blockstates/blockvending.json
-
Although I change settings under "display" in the model settings of the block nothing is changing in game. https://github.com/BeardlessBrady/Currency-Mod/blob/master-2-1.12/src/main/resources/assets/modcurrency/models/block/vendingitem.json
-
[1.12.2] Blockstate texture change
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Bump -
[1.12.2] Blockstate texture change
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Ive tried putting other things in color states like changing the rotation of the block and that works successfully just for some reason the texture is not changing. -
[1.12.2] Blockstate texture change
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
I added it and the texture is not changing. When I click F3 the state successfully changes but the texture does not. -
Im trying to make a way to change my blocks texture based on 'EnumDyeColor' I am successfully able to change the blockstate but for some reason the texture isn't being changed, I believe it has something to do with my blockstate.json for the block. https://github.com/BeardlessBrady/Currency-Mod/blob/847e2a9663c61214d27c8f172e9bae118e1db5dd/src/main/resources/assets/modcurrency/blockstates/blockvending.json Let me know if you see anything I should fix, thanks
-
[1.12.2] #onBlockPlacedBy not working clientside
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
AH. Thank you! It works! -
[1.12.2] #onBlockPlacedBy not working clientside
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Its very weird, owner works until I close and reopen the world. Obviously this is an issue with the NBT writing and reading but I do not understand why it isn't working correctly. https://github.com/BeardlessBrady/Currency-Mod/blob/627fabebd0635a71b1bf8103a2b291c4558d67b3/src/main/java/beardlessbrady/modcurrency/block/vending/TileVending.java https://github.com/BeardlessBrady/Currency-Mod/blob/627fabebd0635a71b1bf8103a2b291c4558d67b3/src/main/java/beardlessbrady/modcurrency/block/TileEconomyBase.java -
[1.12.2] #onBlockPlacedBy not working clientside
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Background: I have a base tile entity I extend the tile entity off of which is where the owner is created and saved via NBT stuff. Peculiarly if I move the NBT stuff for the owner to the main tile not the one its extended everything works fine despite the nbt methods running super first? EDIT: I figured it out. So when @Overriding #getUpdatePacket() I was just doing: super.getUpdatePacket(); NBTTagCompound compound = new NBTTageCompound; but I didn't realize that wasn't using the super's method correctly so I changed it to: NBTTagCompound compound = super.getUpdatePacket().getNbtCompound(); Thanks for trying to help! -
[1.12.2] #onBlockPlacedBy not working clientside
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
I was playing around with things since it wasn't saving correctly, saving it as a string was one of those things. I have tried adding tile.markDirty() after setting owner but it doesn't seem to have changed anything, what exactly do I need to do to re-send the packet? https://github.com/BeardlessBrady/Currency-Mod/blob/64b43d05b8e67f0b6ae469889cd5823ae05ff23d/src/main/java/beardlessbrady/modcurrency/block/vending/BlockVending.java#L62 -
My block is supposed to save the block placer as the owner when it is placed which it does correctly on both client and server side but when checking it afterwords anywhere else it only shows up server-side. Anyone know why? https://github.com/BeardlessBrady/Currency-Mod/blob/master-2-1.12/src/main/java/beardlessbrady/modcurrency/block/vending/BlockVending.java#L61
-
[1.12.2] Inventory not saving on world reload
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
Little late but it worked! Thanks ItsWormy -
[1.12.2] Inventory not saving on world reload
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
I've never had to do that before, but Ill give it a try. -
[1.12.2] Inventory not saving on world reload
BeardlessBrady replied to BeardlessBrady's topic in Modder Support
hmm, Ive never had to implement that before, I'd assume that its auto called with ItemStackHandlers? -
Hello, so the inventory of my tile entity is not saving/or being loaded correctly on world save/load. https://github.com/BeardlessBrady/Currency-Mod/blob/433ebdf4e2cc72ad61ebc6ab8459351198eaed5a/src/main/java/beardlessbrady/modcurrency/block/vending/TileVending.java#L71-L164