Topic category: Help with Minecraft modding (Java Edition)
Hello. I want to create a coal generator. It consumes coal with no problems, but I have a problem with sending energy to generator. I use this procedure to set "storedEnergy" NBT tag to energy stored in generator:
Set NBT number tag "storedEnergy" of block at x: x y: y z: z to Get energy of block at x: x y: y z: z on side Any direction if it has title entity
and this to send energy to generator block:
Set local: sent to Test sending 25 energy to block at x: x y: y z: z to side Any direction and return amount sent
Send Get local: sent energy to block at x: x y: y z: z to side Any direction if it has energy storage
So, it isn't working. I know that this procedures are executes on 1000000% but I don't see efects. If i delete first procedure and repalce second to this:
Set NBT number tag "storedEnergy" of block at x: x y: y z: z to Get NBT number tag "storedEnergy" of block at x: x y: y z: z if it has title entity + 25
effects are visible. I'm doing something wrong?
(I'm sorry for all mistakes. My English is hopeless)
mc ver. 1.15.2
mcreator ver. 2020.4 Snapshot
Please, send screenshot. I did not understand at all...
Sorry but I can't. Copy-paste don't work. "Image" option needs URL that I don't have.
imgur
Ok, I solved this. I made small but significant mistake.
Y
My god. Why doesn't someone make a cable that can transmit energy. Or why not publish a tutorial when friends who do are here. Why this stinginess cause. Yes, this is a riot
I did!
because some people are just waiting for others like us to make complicated procedures and get it without work.
It's not bad for me to want others to discover a better method that maybe I can't see. He is not satisfied with what you give and develops himself further with your help. I think so. I shared my project files on my profile, that's what I can do. I also know that you can broadcast cable. I wanted from you
You said sorry.
my cables are working, but for some bizarre reason only on negative X/Z axis (North or West), on East and South the energy wont jump right to the 2nd cable from the generator.
ok so i finally fixed my cables! they working on all 4 directions now (X/Z axis)! i will be working on Up/Down models later :D
but the procedure i made only works for my own machines, i dont see much problems with this for a simple reason; my machines still would work on other mods cables, so if someone use my mod and mekanism for example, he can still feed my machines with mekanism cables and also use my generators and mekanism cables to feed any machine.
here is my procedure if someone want:
http://www.mediafire.com/file/8glssdpn3a4fz7z/cable2.ptpl/file
i would make a tutorial but i dont have a video broadcast soft atm here.
on the procecure you set the generator positions (on this case here the cable only have 16 block reach, but you can make it wtv distance you want and/or even make cable 'repeaters' to make the range infinite), it checks witch side the original generator comes from; keep in mind you need another OR procedure for each generator block you want your cables to work, on this case i only set it up for my gasoline generator.
Thank you.. :D