Результаты (
английский) 1:
[копия]Скопировано!
It is very difficult to understand what you are saying, but I think I got it.Listen for a PlayerInteractEvent. If they are clicking on the fence gate, get the BlockState and get its MaterialData. Cast the MaterialData to Gate, and do setOpen (true). Start a BukkitTask that runs every tick, which checks if the player is no longer in that block, and if so, sets it back to the closed and cancels itself.
переводится, пожалуйста, подождите..
