Open trayer3 opened 9 years ago
Bouncing arrows sounds possible. May need to re-fire but even then it should be doable. .... what about other Mod's Projectiles If users add other mod's weapons.
Will the force field always be a cube or can it be a sphere? asking for brainstorming
Maybe any entity that runs into the field can catch fire and be reflected, so regular items will burn up as from lava and arrows will now be flaming. Not sure how that would do with other mod's projectiles.
Dropped items are different from an Arrow-type entity, huh? Hmm ...
I'd say generally a cube to stay in line with the name, but some maps are force-field-less (Little Hamsters). But I can try to make the reflection based only on the incoming velocity (assuming it has a direction and is only a scalar only) so that anything could reflect off of any block that might be designated as a force field.
Could also do a special case for Arrows that negates some of the downward velocity so that they fly slightly farther when reflecting. Adds a new tactic to the combat.
I read something saying Tile Entities are more expensive on memory because they have objects associated with them. Does that mean it is not a great idea to have all of the Force Field blocks as Tile Entities? It's just a lot of blocks in one place that could cause strain, so maybe be better to try for another way.
If I have a single Tile Entity that stores the size of the cube, maybe it could do all of the visuals and logic for the entire perimeter, but just with one block in-game. Not sure how that would work for bouncing arrows.
Initial Release:
Enhancements: