The_G0dPiXeL
Members-
Posts
11 -
Joined
-
Last visited
Everything posted by The_G0dPiXeL
-
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
https://pastebin.com/QvStqhgV -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
I tend to skim over things from time to time, sorry. I made the block extend BlockDirectional and added a println statement in each function, and I found that my code doesn't even execute onNeighborChange, do you know why this is? -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
Well as you can tell from the name of the block, it's an AND logic gate in block form, I want it to take inputs from 2 sides and output out the other when both inputs are on. It's not doing anything -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
Oh sorry, I only read the beginning of the page which was createBlockState. After I added in those other functions Forge finally initializes, I got a ModelLoader exception but I fixed that. This is the current state of my code, it doesn't give any errors except the usual yggdrasil error, but it doesn't have the functionality I want. -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
Ok done, but now I'm getting this -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
https://pastebin.com/wEnmaiZB -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
I tried using a PropertyBool but it's not working https://pastebin.com/u0tK9BVk -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
Well, I don't see a function that gives an EnumFacing object that also watches neighbors, so can you give me some ideas. Also how come I can't use a boolean, that's kinda stupid, I'll make it a PropertyBool if that is the case. -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
Alright, so I did some more testing and stuff and I got the output working but I still don't know how to get inputs from both sides https://pastebin.com/WXSYfmpc -
[1.11.2] How do I program a block with redstone properties
The_G0dPiXeL replied to The_G0dPiXeL's topic in Modder Support
deleted -
What I am trying to do is create a block that does AND gate logic, which has 2 sides for input and 1 side for output. I have no code except the block registration because I have literally no clue where to start, the API for redstone blocks is terrible and I tried to look at the code for the Observer block and that gave me a little bit of information but I have no idea how to modify that code to my liking as I have no idea what any of those functions do. I've looked everywhere for documentation but alas I could not find a single tutorial, so I had to turn to the forums. I'm wondering if anybody has a modding library or some code that I could use make this. I'm sorry if this seems like I'm asking people to do my homework for me but I did hours upon hours of research and trial and error, yet I can't make it work, so I need help from the community.