Posted October 6, 20169 yr I don't know how I would go about creating a power system, I have looked into it and I have found close to nothing about it, and the stuff I have found hasn't been helpful, if you could spair time to help that would be very appreciated.
October 7, 20169 yr I don't know how I would go about creating a power system, I have looked into it and I have found close to nothing about it, and the stuff I have found hasn't been helpful, if you could spair time to help that would be very appreciated. Power systems are relatively simple in nature. You need 'machines' that can recieve power, 'generators' which generate power, and some way of transfering that power. Meaning atleast the old way you need three interfaces one for generators that allows you to extract power from it, another one for machines that allows input, and one that allows for both input and output. The way you handle the input and output is all up to you. There is another way, you can achieve this with capabilities there is an EnergyHandler (i believe that is its name) that you can give TileEntities and which is basically a forge energy network. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
October 7, 20169 yr I don't know how I would go about creating a power system, I have looked into it and I have found close to nothing about it, and the stuff I have found hasn't been helpful, if you could spair time to help that would be very appreciated. Power systems are relatively simple in nature. You need 'machines' that can recieve power, 'generators' which generate power, and some way of transfering that power. Meaning atleast the old way you need three interfaces one for generators that allows you to extract power from it, another one for machines that allows input, and one that allows for both input and output. The way you handle the input and output is all up to you. There is another way, you can achieve this with capabilities there is an EnergyHandler (i believe that is its name) that you can give TileEntities and which is basically a forge energy network. That's a thing now? Damn Anyway, unlike Liquid systems, you only need to pass along an int or float, representing the power level. It's best to create interfaces or capabilities for this. Then, simply add or subtract based on your blocks needs. If you wanted to pass along voltage, amps, etc, I'd recommend packing it up in a class, instead of passing values directly. [shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]
October 7, 20169 yr Author Thanks, but do you guys know how to create the wire system, thats the part that I don't know how to do, but anyway Thanks for your time.
October 7, 20169 yr What I do is implement a function called addPower. When called, the cable searches for nearby cables, except the one it came from, checks it's power levels, and runs addPower accordingly. [shadow=gray,left][glow=red,2,300]KEEGAN[/glow][/shadow]
October 7, 20169 yr What I do is implement a function called addPower. When called, the cable searches for nearby cables, except the one it came from, checks it's power levels, and runs addPower accordingly. Another way to do this would be like Extra Utilities. Having a master pipes and "slave" pipes. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.