Posted September 2, 20205 yr Hello! If anyone knows, please help. I want to know: how to detect a flower placement in the pot; how to place a flower in the pot by the forge api or how place a pot with the flower (I think, what any of it can be usefull). With best regards. Edited September 2, 20205 yr by Klaem
September 2, 20205 yr You can use the PlayerInteractEvent.RightClickBlock to detect when a player right clicks a flower pot.
September 2, 20205 yr Author 8 minutes ago, vemerion said: You can use the PlayerInteractEvent.RightClickBlock to detect when a player right clicks a flower pot. But how I can place that pot with the flower? Edited September 2, 20205 yr by Klaem
September 2, 20205 yr You can check out the onBlockActivated method in the FlowerPotBlock class to see how to place flowers in the power pot. It involves changing the blockstate of the pot.
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.