PneumaticCraft: Repressurized

PneumaticCraft: Repressurized

43M Downloads

ComputerCraft : can't ImportEntity

Sewef opened this issue · 1 comments

commented

For feature requests, just erase this template and clearly describe the feature you'd like to see

Minecraft Version 1.12.2

Forge Version 2705

Mod Version 219

Describe your problem, including steps to reproduce it

Hi there!
I'm trying to get some fun with ComputerCraft, and my Drone don't want to pick up an entity.

Here's my CC program :

local sides = { "top", "bottom", "left", "right", "front", "back" }

for i = 1, #sides do
	if peripheral.isPresent(sides[i]) then
        if peripheral.getType(sides[i]) == "chatBox" then
			chatBox = peripheral.wrap(sides[i])
        elseif peripheral.getType(sides[i]) == "droneInterface" then
			droneInterface = peripheral.wrap(sides[i])
		end
	end
end


owner = "Sewef"

while true do
	local event, player, arg = os.pullEvent("command")
	
	if droneInterface.isConnectedToDrone() then
		if player == owner then		
		
			if arg[1] == "test" then
				print("entityImport")
				droneInterface.setAction("entityImport")
			end
		end
	else
		chatBox.tell(owner, "Drone non connecté !")
	end
end

The Drone should pick up the nearest entity (tried with some animals) but it doesn't care... With a "setAction("suicide")" it kills himself properly but that's all...

commented

Ah, hem, forget this. Now I understand. I have to set an area before calling setAction. Okay.
Sorry.