Gateways to Eternity

Gateways to Eternity

37M Downloads

Request for help: Opening gateway by API

PlaIsMe opened this issue ยท 1 comments

commented

Hi Gateway dev

Is it impossible to open a gateway by using API ? I can see in your code at the GatewayCommand class:
public static int openGateway(CommandContext<CommandSourceStack> c, Vec3 pos, ResourceLocation type)

I'm working on 1.20.1 forge and 1.21.1 neoforge, I just want to open a gateway with the input: BlockPos to spawn, List of entity to spawn, time to close the gate. Is it possible to open a gateway defined directly in the code without customizing it by datapack via API ?

Appreciate for your help
BRs

commented

Gateways must be defined in data. If you want to generate a more dynamic gateway of sorts, you can implement your own Gateway (and the other associated bits of code), and do your own thing which should allow you to do what you want.